OSDN Git Service

e3c9fdb259b87d6b8121d369573be3f423fc072b
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2005-12-02  Richard Guenther  <rguenther@suse.de>
2
3         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
4
5 2005-12-01  Roger Sayle  <roger@eyesopen.com>
6
7         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
8         nodes.
9
10 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
11
12         * mlib-prj.adb (Build_Library): Initialize Delete.
13
14 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
15
16         * socket.c: Add extern int h_errno for rtems since networking header
17         files are not available at this point in a tool bootstrap. Newlib
18         only has basic C library header files.
19
20 2005-11-19  Richard Guenther  <rguenther@suse.de>
21         Roger Sayle  <roger@eyesopen.com>
22
23         PR ada/23717
24         * misc.c (internal_error_function): Don't use vsprintf to format
25         the error message text, instead use pp_format_text and the new
26         pretty printer APIs.  This allows handling of %qs, %w, etc.
27
28 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
29
30         PR ada/24857
31         * Makefile.in: Use s-auxdec-empty for RTEMS.
32
33 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34
35         PR ada/22333
36         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
37         a temporary if taking the address of something that is neither
38         reference, declaration, or constant, since the gimplifier
39         can't handle that case.
40
41 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
42
43         PR ada/24857
44         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
45         
46 2005-11-16  Richard Guenther  <rguenther@suse.de>
47
48         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
49
50 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
51
52         PR ada/24855
53         * raise-gcc.c: Add missing stdarg.h include.
54  
55 2005-11-16  Richard Guenther  <rguenther@suse.de>
56
57         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
58         (ada/misc.o): Likewise.
59
60 2005-11-14  Thomas Quinot  <quinot@adacore.com>
61
62         * g-soccon.ads: Minor reformatting. Update comments.
63
64         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
65         gain visibility on the declaration of struct timeval.
66
67         * g-soccon-freebsd.ads,
68         g-soccon-darwin.ads,
69         g-soccon-tru64.ads,
70         g-soccon-aix.ads,
71         g-soccon-irix.ads,
72         g-soccon-hpux.ads,
73         g-soccon-solaris.ads,
74         g-soccon-vms.ads,
75         g-soccon-mingw.ads,
76         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
77
78         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
79         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
80         g-soccon-linux-x86.ads: New files.
81
82         * g-socthi-mingw.adb: 
83         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
84
85         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
86         (time_t, suseconds_t): New types constructed to match the tv_sec
87         and tv_usec fields of C struct timeval.
88         (Timeval): Construct structure in terms of the new types.
89         (Host_Errno): New function (imported from socket.c), returns last hosts
90         database error.
91
92         * g-socthi-vxworks.adb:  Add error handling circuitry.
93
94         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
95         components of struct timeval.
96         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
97         (Check_Selector): In error conditions, clear internal socket sets to
98         avoid a memory leak.
99         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
100         Send_Timeout, Receive_Timeout.
101
102         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
103         the tv_sec and tv_usec fields of C struct timeval.
104         (Timeval): Construct structure in terms of the new types.
105         (Host_Errno): New function (imported from socket.c), returns last hosts
106         database error.
107
108         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
109         hosts database last error code.
110
111         * gen-soccon.c: Complete value expansion should not be performed on
112         TARGET, as it has the form of a math expression, and some components
113         may be platform-defined macros.
114         For VxWorks, generate the OK and ERROR values.
115         New constants giving the sizes of the components of C struct timeval.
116
117 2005-11-14  Robert Dewar  <dewar@adacore.com>
118             Ed Schonberg  <schonberg@adacore.com>
119
120         PR ada/18434
121
122         * types.ads: Include All_Checks in Suppress_Array
123
124         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
125         not(a=b), since we no longer do this rewriting, and hence it is not
126         needed.
127         (Elaboration_Checks_Suppressed): Add special casing to
128         deal with different cases of static and dynamic elaboration checks (all
129         checks does not count in the first case, but does in the second).
130         (Expr_Known_Valid): Do not assume that the result of any arbitrary
131         function call is valid, since this is not the case.
132         (Ensure_Valid): Do not apply validity check to a real literal
133         in a universal or fixed context
134
135         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
136         elementary types using the operator in standard. It is cleaner not to
137         modify the programmers intent, especially in the case of floating-point.
138         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
139         it did not matter because we always rewrote a/=b to not(a=b).
140         (Expand_Allocator_Expression): For an allocator expression whose nominal
141         subtype is an unconstrained packed type, convert the expression to its
142         actual constrained subtype.
143         Implement warning for <= or >= where < or > not possible
144         Fix to Vax_Float tests (too early in many routines, causing premature
145         Vax_Float expansions.
146
147         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
148         to be used with packages and generic packages as well as with
149         subprograms.
150         (Suppress): Set All_Checks, but not Elaboration_Check, for case
151         of pragma Suppress (All_Checks)
152         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
153         a string literal for precise control over warnings.
154         Avoid raise of pragma in case of unrecognized pragma and just return
155         instead.
156
157         * sem_prag.ads: Minor reformatting
158
159         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
160         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
161         Switch. Do not handle any exception.
162         Include -gnatwx as part of -gnatg (warn on redundant parens)
163         Allow optional = after -gnatm
164         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
165         longer sets Elaboration_Checks.
166         Code to set warning mode moved to Sem_Warn
167         so that it can be shared by pragma processing.
168
169         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
170         statement.
171
172         * s-taprop-solaris.adb: 
173         Change some <= to =, to avoid new warning
174
175         * a-exexda.adb, prj-proc.adb: 
176         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
177         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
178
179 2005-11-14  Robert Dewar  <dewar@adacore.com>
180
181         * exp_vfpt.adb: Handle /= case
182         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
183         so that we do not get duplicate scaling for fixed point conversions.
184
185         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
186
187 2005-11-14  Matthew Gingell  <gingell@adacore.com>
188
189         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
190         Increase default priority on Lynx from 15 to 17, and meet the Ada
191         requirement that Default_Priority be ((Priority'First +
192         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
193
194 2005-11-14  Vincent Celier  <celier@adacore.com>
195
196         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
197         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
198         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
199         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
200         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
201         mlib-tgt-lynxos.adb (DLL_Prefix): New function
202
203 2005-11-14  Doug Rupp  <rupp@adacore.com>
204
205         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
206         private part.
207
208 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
209
210         * s-traces-default.adb, s-trafor-default.ads,
211         s-tratas-default.adb: Fix compilation errors.
212
213 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
214
215         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
216         raising the exception so the memory used is freed.
217
218 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
219
220         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
221         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
222         (convert_address): Update comments and list of platforms using this.
223
224         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
225         no longer used.
226
227 2005-11-14  Pascal Obry  <obry@adacore.com>
228             Vincent Celier  <celier@adacore.com>
229
230         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
231         GNAT.Command_Line.
232
233         * memroot.adb: Remove redundant with/use clause on
234         System.Storage_Elements.
235
236 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
237
238         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
239         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
240         related code to a-exexpr.adb
241         (Save_Occurrence_And_Private): Move GCC EH related code to
242         a-exexpr-gcc.adb
243         (Raise_Current_Excep): Add new variable Id with pragma
244         volatile, to ensure that the variable lives on stack.
245
246         * a-exexpr-gcc.adb, raise-gcc.c: New file.
247
248         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
249         from a-except.adb.
250         Move GCC EH related code to a-exexpr-gcc.adb
251
252         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
253         64-bit Solaris
254         Split the Linux version of g-soccon into separate variants for 32 and 64
255         bit platforms.
256         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
257         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
258         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
259         of host variable $(RANLIB_FLAGS).
260         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
261         Code clean up: remove unused/obsolete targets.
262         (EH_MECHANISM): New variable introduced to differenciate between the
263         two EH mechanisms statically.
264         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
265         (LIBGNAT_OBJS): Add raise-gcc.o
266         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
267         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
268         supports VxWorks 6 RTPs.
269         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
270         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
271
272         * raise.c: Move all GCC EH-related routines to raise-gcc.c
273
274 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
275
276         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
277         deferral level, when abort is not allowed, to a later stage (the
278         Task_Wrapper).
279         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
280         it will not get changed by the generated code. It was previously done
281         in Create_Task.
282
283 2005-11-14  Thomas Quinot  <quinot@adacore.com>
284             Olivier Hainque  <hainque@adacore.com>
285             Eric Botcazou  <ebotcazou@adacore.com>
286
287         * decl.c:
288         Factor common code to build a storage type for an unconstrained object
289         from a fat or thin pointer type and a constrained object type.
290         (annotate_value): Handle BIT_AND_EXPR.
291         (annotate_rep): Don't restrict the back annotation of inherited
292         components to the type_annotate_only case.
293         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
294         we are not defining the type.
295         <E_Record_Type>: Likewise.
296         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
297         to get advantage of the new maybe_stabilize_reference interface, to
298         ensure that what we reference is indeed stabilized instead of relying
299         on assumptions on what the stabilizer does.
300         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
301         type imported through a limited_with clause, use its non-limited view.
302         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
303         differentiation.
304         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
305         of #if sections + explicit comparisons of convention identifiers.
306         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
307         before early-returning for certain types when code generation is
308         disabled.
309         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
310         nullification of gnu_expr we do for objects with address clause and
311         that we are not defining.
312         (elaborate_expression_1): Do not create constants when creating
313         variables needed by the debug info: the dwarf2 writer considers that
314         CONST_DECLs is used only to represent enumeration constants, and emits
315         nothing for them.
316         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
317         object with an address clause into an indirect reference, drop the
318         initializing expression.
319         Include "expr.h".
320         (STACK_CHECK_BUILTIN): Delete.
321         (STACK_CHECK_PROBE_INTERVAL): Likewise.
322         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
323         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
324         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
325         corresponding to the renamed object as ignored for debugging purposes.
326
327         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
328         related): For a prefix that is a dereference of a fat or thin pointer,
329         if there is an actual subtype provided by the front-end, use that
330         subtype to build an actual type with bounds template.
331         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
332         is provided by the front-end, use that subtype to compute the size of
333         the deallocated object.
334         (gnat_to_gnu): When adding a statement into an elaboration procedure,
335         check for a potential violation of a No_Elaboration_Code restriction.
336         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
337         with extra arguments to control whether to recurse through non-values
338         and to let the caller know if the stabilization has succeeded.
339         (gnat_stabilize_reference): Now a simple wrapper around
340         maybe_stabilize, for common uses without restriction on lvalues and
341         without need to check for the success indication.
342         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
343         pass false instead of 0 as the FORCE argument which is a bool.
344         (Identifier_to_gnu): Remove checks ensuring that an renamed object
345         attached to a renaming pointer has been properly stabilized, as no such
346         object is attached otherwise.
347         (call_to_gnu): Invoke create_var_decl to create the temporary when the
348         function uses the "target pointer" return mechanism.
349         Reinstate conversion of the actual to the type of the formal
350         parameter before any other specific treatment based on the passing
351         mechanism. This turns out to be necessary in order for PLACEHOLDER
352         substitution to work properly when the latter type is unconstrained.
353
354         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
355         common pattern.
356         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
357         with extra arguments to control whether to recurse through non-values
358         and to let the caller know if the stabilization has succeeded.
359
360         * utils2.c (gnat_build_constructor): Only sort the fields for possible
361         static output of record constructor if all the components are constant.
362         (gnat_build_constructor): For a record type, sort the list of field
363         initializers in increasing bit position order.
364         Factor common code to build a storage type for an unconstrained object
365         from a fat or thin pointer type and a constrained object type.
366         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
367         types variants, and process special cases of VIEW_CONVERT expressions
368         as their NOP_EXPR counterpart to ensure we get to the
369         CORRESPONDING_VARs associated with CONST_DECls.
370         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
371         on the right-hand side.
372
373         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
374         a common pattern.
375         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
376         are converting back to its original type.
377         (convert) <JM input>: Fallthrough regular conversion code instead of
378         extracting the object if converting to a type variant.
379         (create_var_decl): When a variable has an initializer requiring code
380         generation and we are at the top level, check for a potential violation
381         of a No_Elaboration_Code restriction.
382         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
383         SIZE and SIZE_UNIT which we need for later back-annotations.
384         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
385         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
386         is an unchecked union.
387         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
388         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
389         main variant, just replace the VIEW_CONVERT_EXPR.
390         <UNION_TYPE>: Revert 2005-03-02 change.
391
392         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
393
394         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
395
396 2005-11-14  Matthew Heaney  <heaney@adacore.com>
397
398         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
399         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
400         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
401         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
402         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
403         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
404         Compiles against the spec for ordered maps described in sections
405         A.18.6 of the most recent (August 2005) AI-302 draft.
406
407 2005-11-14  Olivier Hainque  <hainque@adacore.com>
408
409         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
410         to ensure bias adjustments take place when need be and to prevent
411         occurrences of intermediate overflows.
412
413 2005-11-14  Matthew Gingell  <gingell@adacore.com>
414             Olivier Hainque  <hainque@adacore.com>
415
416         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
417         ia64 HP-UX.
418
419         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
420         tracebacks on ia64 HP-UX and provide explanatory comment.
421         Enable backtraces on ia64 GNU/Linux.
422         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
423         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
424
425 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
426             Javier Miranda  <miranda@adacore.com>
427
428         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
429         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
430         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
431         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
432
433         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
434         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
435         assertions).
436
437         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
438         subprogram that generates the external name associated with a
439         secondary dispatch table.
440         (Get_Secondary_DT_External_Name): New subprogram that generates the
441         external name associated with a secondary dispatch table.
442
443 2005-11-14  Emmanuel Briot  <briot@adacore.com>
444
445         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
446         line in the ALI file to include both an instantiation reference, and a
447         returned value.
448
449 2005-11-14  Vincent Celier  <celier@adacore.com>
450
451         * clean.adb (Check_Project): Look for Ada code in extending project,
452         even if Ada is not specified as a language.
453         Use new function DLL_Prefix for DLL_Name
454         (Clean_Interface_Copy_Directory): New procedure
455         (Clean_Library_Directory): New procedure
456         (Clean_Directory): Remove procedure, no longer used
457         (Clean_Project): Do not delete any file in an externally built project
458
459         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
460         directory of an extending project, even when there are no Ada source
461         present.
462         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
463         (Set_Ada_Paths.Add.Recursive_Add): Ditto
464
465         * mlib-prj.adb (Check_Library): For all library projects, get the
466         library file timestamp.
467         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
468         (Build_Library): Use new function DLL_Prefix for the DLL_Name
469         (Clean): Remove procedure, no longer used
470         (Ultimate_Extension_Of): New function
471         (Build_Library): When cleaning the library directory, only remove an
472         existing library file and any ALI file of a source of the project.
473         When cleaning the interface copy directory, remove any source that
474         could be a source of the project.
475
476         * prj.ads, prj.adb (Project_Empty): Add values of new components
477         Library_TS and All_Imported_Projects.
478         (Project_Empty): Add values for new components of Project_Data:
479         Library_ALI_Dir and Display_Library_ALI_Dir
480
481         * prj-attr.adb: New project level attribute name Library_ALI_Dir
482
483         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
484         attribute Library_ALI_Dir.
485         (Check_Library_Attributes): The library directory cannot be the same as
486         any source directory of the project tree.
487         (Check_Stand_Alone_Library): The interface copy directory cannot be
488         the same as any source directory of the project tree.
489
490         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
491         all temporary files.
492
493 2005-11-14  Robert Dewar  <dewar@adacore.com>
494             Ed Schonberg  <schonberg@adacore.com>
495
496         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
497         (Check_Elab_Call): A call within a protected body is never an
498         elaboration call, and does not require checking.
499         (Same_Elaboration_Scope): Take into account protected types for both
500         entities.
501         (Activate_Elaborate_All_Desirable): New procedure
502
503         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
504         desirable
505
506         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
507         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
508
509         * lib-writ.ads, lib-writ.adb: 
510         Implement new AD/ED for Elaborate_All/Elaborate desirable
511         Use new Elaborate_All_Desirable flag in N_With_Clause node
512
513         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
514         N_Free_Statement nodes.
515         Define new class N_Subprogram_Instantiation
516         Add Elaborate_Desirable flag to N_With_Clause node
517         Add N_Delay_Statement (covering two kinds of delay)
518
519         * debug.adb: Introduce d.f flag for compiler
520         Add -da switch for binder
521
522 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
523             Cyrille Comar  <comar@adacore.com>
524
525         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
526         for task component, in the case of a limited aggregate. The enclosed
527         object declaration will create it earlier. Otherwise, in the case of a
528         nested aggregate, the object may appear in the wrong scope.
529         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
530         (Gen_Assign): If the component being assigned is an array type and the
531         expression is itself an aggregate, wrap the assignment in a block to
532         force finalization actions on the temporary created for each row of the
533         enclosing object.
534         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
535         structures are initialized after all discriminants are set so that
536         they can be accessed even when their offset is dynamic.
537
538 2005-11-14  Robert Dewar  <dewar@adacore.com>
539             Hristian Kirtchev  <kirtchev@adacore.com>
540
541         * sem_attr.adb: Implement Machine_Rounding attribute
542         (Analyze_Access_Attribute): The access attribute may appear within an
543         aggregate that has been expanded into a loop.
544         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
545         'Terminated whenever the prefix is of a task interface class-wide type.
546         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
547         the prefix is of a task interface class-wide type.
548
549         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
550         to avoid warnings.
551
552         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
553         Remove pragma Inline for [Unaligned_]Valid.
554         Add comments that Valid routines do not work for Vax_Float
555
556         * exp_attr.adb: Implement Machine_Rounding attribute
557
558         * snames.h: Add entry for Machine_Rounding attribute
559
560 2005-11-14  Javier Miranda  <miranda@adacore.com>
561             Robert Dewar  <dewar@adacore.com>
562             Hristian Kirtchev  <kirtchev@adacore.com>
563
564         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
565         and related): For a prefix that is an explicit dereference of an
566         access to unconstrained packed array type, annotate the dereference
567         with an actual subtype so GIGI can make a correct size computation.
568         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
569         'Unrestricted_Access, if the designated type is an interface we
570         add a type conversion to force the displacement of the pointer
571         to the secondary dispatch table.
572         Use Universal_Real instead of Long_Long_Float when we need a high
573         precision float type for the generated code (prevents gratuitous
574         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
575         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
576         'Terminated for task interface class-wide objects. Generate a call to
577         the predefined dispatching routine used to retrieve the _task_id from
578         a task corresponding record.
579         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
580
581         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
582         (Check_Dispatching_Operation): Protect the frontend againts
583         previously detected errors.
584
585         * Makefile.rtl: Add new instantiations of system.fat_gen
586
587         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
588         Change name of instantiated package for better consistency
589         with newly added system.fat_gen instantiations.
590
591         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
592         s-fvagfl.ads: New files.
593
594 2005-11-14  Cyrille Comar  <comar@adacore.com>
595             Thomas Quinot  <quinot@adacore.com>
596
597         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
598         assignment of a value of a tagged type that has been rewritten to a
599         block statement, it is known by construction that no checks are
600         necessary for the statements within the block: analyze it with checks
601         suppressed.
602         (Expand_N_If_Statement): When killing a dead then-branch in an
603         if-statement that has elsif_parts, recompute the Current_Value node
604         for any entity whose value is known from the condition of the first
605         elsif_part.
606         (Expand_N_Return_Statement): When returning a mutable record, convert
607         the return value into its actual subtype in order to help the backend
608         to return the actual size instead of the maximum. This is another
609         aftermath of not returning mutable records on the sec-stack anymore.
610
611         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
612         handling of error msg for suspicious reverse range iteration.
613         (Check_Possible_Current_Value_Condition): Move declaration from body to
614         spec, to allow this subprogram to be called from exp_ch5.
615
616 2005-11-14  Thomas Quinot  <quinot@adacore.com>
617
618         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
619         generate a set of nested array aggregates instead of a single flat
620         aggregate for multi-dimensional arrays.
621
622 2005-11-14  Pascal Obry  <obry@adacore.com>
623
624         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
625         by spawnve is a process handle, no need to convert. Add a parameter
626         close to control wether the process handle must be closed.
627         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
628         a process handle, not need to convert.
629         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
630
631         * g-expect.adb: (Kill): Document the new close parameter.
632         (Close): Do not release the process handle in the kill there as
633         waitpid() is using it.
634         (Send_Signal): Release the process handle.
635
636 2005-11-14  Robert Dewar  <dewar@adacore.com>
637
638         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
639         need a high precision float type for the generated code (prevents
640         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
641         used).
642
643         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
644         need a high precision float type for the generated code (prevents
645         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
646         used).
647         (Expand_Width_Attribute): In configurable run-time, the attribute is not
648         allowed on non-static enumeration subtypes. Force a load error to emit
649         the correct diagnostic.
650
651 2005-11-14  Thomas Quinot  <quinot@adacore.com>
652             Robert Dewar  <dewar@adacore.com>
653             Ed Schonberg  <schonberg@adacore.com>
654
655         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
656         subtype to compute the size of the designated object at run-time,
657         create such a subtype and store it in the Actual_Designated_Subtype
658         attribute of the N_Free_Statement.
659         Generate itype for classwide designated object in both cases of
660         user-specified storage pool: specific and class-wide, not only in the
661         specific case.
662         Raise CE when trying to set a not null access type object to null.
663         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
664         an explicit loop, because freeze nodes make its position variable.
665
666         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
667         null object.
668
669 2005-11-14  Javier Miranda  <miranda@adacore.com>
670
671         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
672         Build_Stream_Procedure): Add the null-excluding attribute to the first
673         formal.
674         This has no semantic meaning under Ada95 mode but it is a
675         requirement under Ada05 mode.
676
677         * par-ch3.adb (P_Access_Definition): Addition of warning message if
678         the null exclusion is used under Ada95 mode
679         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
680         (P_Access_Definition): Remove assertion that forbids the use of
681         the null-exclusion feature in Ada95.
682
683 2005-11-14  Robert Dewar  <dewar@adacore.com>
684
685         * impunit.adb: Exclude container helper units not intended for use by
686         users.
687
688 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
689
690         * freeze.adb (Freeze_Entity): For an access formal that is an access
691         to subprogram, freeze the anonymous subprogram type at the same time,
692         to prevent later freezing in the wrong scope, such as the enclosing
693         subprogram body.
694         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
695         subprogram whenever available.
696
697 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
698
699         PR ada/23732
700         * gnatvsn.ads (Library_Version): Bump to 4.1
701
702 2005-11-14  Robert Dewar  <dewar@adacore.com>
703
704         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
705         Storage_Offset to avoid wrap around causing invalid results.
706
707 2005-11-14  Pascal Obry  <obry@adacore.com>
708
709         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
710         cross-compiler.
711         (Scan_Bind_Arg): Fail with an error message if -M option is used
712         on a native compiler.
713
714 2005-11-14  Robert Dewar  <dewar@adacore.com>
715             Vincent Celier  <celier@adacore.com>
716
717         * gprep.adb: Implement -C switch to scan comments
718
719         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
720
721         * scans.ads: Comment updates (including new use of Tok_Comment in
722         preprocessing)
723
724         * opt.ads: Add documentation for flags that are used by gprmake,
725         currently and in the next version of gprmake.
726         (Verbosity_Level): New variable
727         Add Replace_In_Comments switch
728
729         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
730         and -vm.
731         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
732
733 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
734
735         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
736         message, friendlier.
737
738 2005-11-14  Robert Dewar  <dewar@adacore.com>
739
740         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
741
742 2005-11-14  Doug Rupp  <rupp@adacore.com>
743
744         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
745
746 2005-11-14  Robert Dewar  <dewar@adacore.com>
747
748         * interfac.ads: Change declarations of IEEE float types so that we no
749         longer need a separate version of this package for VMS.
750
751 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
752
753         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
754         internal entity created for the declaration of a child subprogram body
755         with no spec as coming from source, to generate proper cross-reference
756         information.
757
758 2005-11-14  Vincent Celier  <celier@adacore.com>
759
760         * make.adb (Compile_Sources): Change verbose message to minimum
761         verbosity level High for "is in an Ada library", "is a read-only
762         library" and "is an internal library",
763         (Create_Binder_Mapping_File): Path name of ALI file for library project
764         must include the library directory, not the object directory.
765         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
766         for new switches -vl, -vm and -vh.
767         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
768         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
769         (Compile_Sources): Do not attempt to compile if an ALI file is missing
770         in a project that is externally built.
771         (Compute_All_Imported_Projects): New procedure
772         (Gnatmake): Check if importing libraries should be regenerated because
773         at least an imported library is more recent.
774         (Initialize): For each project compute the list of the projects it
775         imports directly or indirectly.
776         (Add_Library_Search_Dir): New procedure, used in place of
777         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
778         put in the search paths.
779         (Add_Source_Search_Dir): New procedure, used in place of
780         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
781         put in the search paths.
782         (Mark_Directory): Resolve the absolute path the directory before marking
783         it.
784
785         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
786         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
787         Switch. Do not handle any exception.
788         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
789         so that the switch is recognized as valid.
790         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
791
792 2005-11-14  GNAT Script  <nobody@adacore.com>
793
794         * Make-lang.in: Makefile automatically updated
795
796 2005-11-14  Pascal Obry  <obry@adacore.com>
797
798         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
799         used.
800         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
801         In both cases the last argument was dropped.
802
803 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
804
805         * namet.h: (Column_Numbe): New type.
806         (Get_Column_Number): Define to sinput__get_column_number.
807         (Instantiation): Define to sinput__instantiation.
808         (Get_Column_Number): Declare.
809         (Instantiation): Likewise.
810
811 2005-11-14  Robert Dewar  <dewar@adacore.com>
812
813         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
814         syntax, which could cause compiler hangs.
815
816 2005-11-14  Vincent Celier  <celier@adacore.com>
817
818         * prj-ext.adb: Take into account new environment variable
819         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
820         are defined.
821         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
822         normalize its path name, making it absolute and resolving symbolic
823         links, and replace the original if resolved path is different.
824
825 2005-11-14  Vincent Celier  <celier@adacore.com>
826
827         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
828         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
829
830 2005-11-14  Emmanuel Briot  <briot@adacore.com>
831
832         * prj-pp.adb (Print): Do not output the with statement if the
833         associated name is empty, which happens for virtual extending projects.
834         (Print): Preserve the "extends all" attribute when printing the project.
835
836         * prj-tree.ads (String_Value_Of): Add comment about returned value for
837         a virtual extending project.
838
839 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
840
841         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
842         rhs of an assignment even if the type is unconstrained, when the
843         context is non-expanding.
844         In an inlined body, if the context type is private,
845         resolve with its full view, which must be a composite type.
846
847 2005-11-14  Robert Dewar  <dewar@adacore.com>
848             Ed Schonberg  <schonberg@adacore.com>
849
850         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
851         Do not give obsolescent warning on with of subprogram (since we
852         diagnose calls)
853         (Analyze_With_Clause): Add test for obsolescent package
854         (Install_Context_Clauses): If the unit is the body of a child unit, do
855         not install twice the private declarations of the parents, to prevent
856         circular lists of Use_Clauses in a parent.
857         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
858         compiling body of child unit.
859         Use new class N_Subprogram_Instantiation
860         (Expand_With_Clause): If this is a private with_clause for a child unit,
861         appearing in the context of a package declaration, then the implicit
862         with_clauses generated for parent units are private as well.
863         (License_Check): Do not generate message if with'ed unit is internal
864
865 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
866             Ed Schonberg  <schonberg@adacore.com>
867             Thomas Quinot  <quinot@adacore.com>
868
869         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
870         names are internal, because they will not have a corresponding partner
871         in the actual package.
872         (Analyze_Formal_Package): Move the setting of the formal package spec's
873         Generic_Parent field so that it occurs prior to analyzing the package,
874         to allow proper operation of Install_Parent_Private_Declarations.
875         (Analyze_Package_Instantiation): Set the instantiated package entity's
876         Package_Instantiation field.
877         (Get_Package_Instantiation_Node): Move declaration to package spec.
878         Retrieve the N_Package_Instantiation node when the Package_Instantiation
879         field is present.
880         (Check_Generic_Child_Unit): Within an inlined call, the only possible
881         instantiation is Unchecked_Conversion, for which no parents are needed.
882         (Inline_Instance_Body): Deinstall and record the use_clauses for all
883         parent scopes of a scope being removed prior to inlining an instance
884         body.
885         (Analyze_Package_Instantiation): Do not perform front-end inlining when
886         the current context is itself an instance within a non-instance child
887         unit, to prevent scope stack errors.
888         (Save_References): If the node is an aggregate that is an actual in a
889         call, rewrite as a qualified expression to preserve some type
890         information, to resolve possible ambiguities in the instance.
891         (Instance_Parent_Unit): New global variable to record the ultimate
892         parent unit associated with a generic child unit instance (associated
893         with the existing Parent_Unit_Visible flag).
894         (type Instance_Env): New component Instance_Parent_Unit for stacking
895         parents recorded in the global Instance_Parent_Unit.
896         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
897         stack.
898         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
899         it's not a top-level unit, and only do this if Instance_Parent_Unit is
900         not already set. Replace test of Is_Child_Unit with test of parent's
901         scope against package Standard. Add comments and a ??? comment.
902         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
903         on a child instance parent to test that the parent equals
904         Instance_Parent rather than simply checking that the unit is not a
905         child unit.
906         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
907         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
908         a formal interface are ancestors of the corresponding actual.
909         (Validate_Formal_Interface_Type): Additional legality checks.
910         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
911         interface types with ancestors.
912         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
913         to diagnose attempts to use generic within its own declaration.
914
915 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
916             Javier Miranda  <miranda@adacore.com>
917
918         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
919         discriminant.
920         (Build_Private_Derived_Type): The entity of the created full view of the
921         derived type does not come from source. If after installing the private
922         declarations of the parent scope the parent is still private, use its
923         full view to construct the full declaration of the derived type.
924         (Build_Derived_Record_Type): Relax the condition that controls the
925         execution of the check that verifies that the partial view and
926         the full view agree in the set of implemented interfaces. In
927         addition, this test now only takes into account the progenitors.
928         (Derive_Interface_Subprograms): No need to derive subprograms
929         of ancestors that are interfaces.
930         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
931         associated code.
932         Change name Is_Package to Is_Package_Or_Generic_Package
933         (Complete_Subprograms_Derivation): Handle the case in which the full
934         view is a transitive derivation of the ancestor of the partial view.
935         (Process_Full_View): Rename local subprogram Find_Interface_In_
936         Descendant to Find_Ancestor_Interface to leave the code more clear.
937         Remove wrong code that avoids the generation of an error message
938         when the immediate ancestor of the partial view is an interface.
939         In addition some minor reorganization of the code has been done to
940         leave it more clear.
941         (Analyze_Type_Declaration): If type has previous incomplete tagged
942         partial view, inherit properly its primitive operations.
943         (Collect_Interfaces): Make public, for analysis of formal
944         interfaces.
945         (Analyze_Interface_Declaration): New procedure for use for regular and
946         formal interface declarations.
947         (Build_Derived_Record_Type): Add support for private types to the code
948         that checks if a tagged type implements abstract interfaces.
949         (Check_Aliased_Component_Type): The test applies in the spec of an
950         instance as well.
951         (Access_Type_Declaration): Clean up declaration of malformed type
952         declared as an access to its own classwide type, to prevent cascaded
953         crash.
954         (Collect_Interfaces): For private extensions and for derived task types
955         and derived protected types, the parent may be an interface that must
956         be included in the interface list.
957         (Access_Definition): If the designated type is an interface that may
958         contain tasks, create Master_Id for it before analyzing the expression
959         of the declaration, which may be an allocator.
960         (Record_Type_Declaration): Set properly the interface kind, for use
961         in allocators, the creation of master id's for task interfaces, etc.
962
963 2005-11-14  Javier Miranda  <miranda@adacore.com>
964             Ed Schonberg  <schonberg@adacore.com>
965
966         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
967         omitted in case of stream attribute subprograms.
968         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
969         appear immediately after a subprogram body, when there is no previous
970         subprogram declaration.
971         Change name Is_Package to Is_Package_Or_Generic_Package
972         (Process_Formals): A non null qualifier on a non null named access
973         type is not an error, and is a warning only if Redundant_Constructs
974         are flagged.
975
976 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
977             Ed Schonberg  <schonberg@adacore.com>
978
979         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
980         nested within Analyze_Package_Specification to install the private
981         declarations and use clauses within each of the parent units of a
982         package instance of a generic child package.
983         (Analyze_Package_Specification): When entering a private part of a
984         package associated with a generic instance or formal package, the
985         private declarations of the parent must be installed (by calling new
986         procedure Install_Parent_Private_Declarations).
987         Change name Is_Package to Is_Package_Or_Generic_Package
988         (Preserve_Full_Attributes): For a synchronized type, the corresponding
989         record is absent in a generic context, which does not indicate a
990         compiler error.
991
992 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
993
994         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
995         not try to rewrite a renamed stream attribute, because the operations
996         on the type may not have been generated.
997         Handle properly a renaming_as_body generated for a stream operation
998         whose default is abstract because the object type itself is abstract.
999         (Find_Type): If the type is incomplete and appears as the prefix of a
1000         'Class reference, it is tagged, and its list of primitive operations
1001         must be initialized properly.
1002         (Chain_Use_Clauses): When chaining the use clauses that appear in the
1003         private declaration of a parent unit, prior to compiling the private
1004         part of a child unit, find on the scope stack the proper parent entity
1005         on which to link the use clause.
1006         (Note_Redundant_Use): Emit a warning when a redundant use clause is
1007         detected.
1008         (Analyze_Object_Renaming): An attribute reference is not a legal object
1009         if it is not a function call.
1010
1011 2005-11-14  Robert Dewar  <dewar@adacore.com>
1012             Ed Schonberg  <schonberg@adacore.com>
1013
1014         * sem_eval.adb: Implement d.f flag
1015         (Subtype_Statically_Match): A generic actual type has unknown
1016         discriminants when the corresponding actual has a similar partial view.
1017         If the routine is called to validate the signature of an inherited
1018         operation in a child instance, the generic actual matches the full view,
1019
1020 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
1021             Ed Schonberg  <schonberg@adacore.com>
1022             Robert Dewar  <dewar@adacore.com>
1023             Thomas Quinot  <quinot@adacore.com>
1024
1025         * sem_res.adb (Resolve_Call): Provide a better error message whenever
1026         a procedure call is used as a select statement trigger and is not an
1027         entry renaming or a primitive of a limited interface.
1028         (Valid_Conversion): If the operand has a single interpretation do not
1029         remove address operations.
1030         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
1031         statement to inhibit warning.
1032         (Resolve_Unary_Op): Do not produce a warning when
1033         processing an expression of the form -(A mod B)
1034         Use Universal_Real instead of Long_Long_Float when we need a high
1035         precision float type for the generated code (prevents gratuitous
1036         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
1037         (Resolve_Concatenation_Arg): Improve error message when argument is an
1038         ambiguous call to a function that returns an array.
1039         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
1040         there is an implicit operator in the given scope if we are within an
1041         instance: legality check has been performed on the generic.
1042         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
1043         after resolving operand, to avoid false warnings on overloaded calls.
1044
1045 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1046             Javier Miranda  <miranda@adacore.com>
1047
1048         PR ada/15604
1049
1050         * sem_type.adb (Covers): In an inlined body, a composite type matches
1051         a private type whose full view is a composite type.
1052         (Interface_Present_In_Ancestor): Protect the frontend against
1053         previously detected errors to ensure that its compilation
1054         with assertions enabled gives the same output that its
1055         compilation without assertions.
1056         (Interface_Present_In_Ancestor): Add support for private types.
1057         Change name In_Actual to In_Generic_Actual (clean up)
1058         (Disambiguate): New predicate In_Actual, to recognize expressions that
1059         appear in the renaming declaration generated for generic actuals, and
1060         which must be resolved in the outer context.
1061
1062 2005-11-14  Robert Dewar  <dewar@adacore.com>
1063             Thomas Quinot  <quinot@adacore.com>
1064             Hristian Kirtchev  <kirtchev@adacore.com>
1065             Ed Schonberg  <schonberg@adacore.com>
1066
1067         * sem_util.ads, sem_util.adb: Change name Is_Package to
1068         Is_Package_Or_Generic_Package.
1069         (Check_Obsolescent): New procedure.
1070         (Set_Is_Public): Remove obsolete junk test.
1071         (Set_Public_Status): Do not set Is_Public on an object whose declaration
1072         occurs within a handled_sequence_of_statemets.
1073         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
1074         for a parameterless procedure.
1075         (Enter_Name): Recognize renaming declarations created for private
1076         component of a protected type within protected operations, so that
1077         the source name of the component can be used in the debugger.
1078
1079 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
1080             Robert Dewar  <dewar@adacore.com>
1081
1082         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
1083         of a generic subprogram are not visible outside the body.
1084         (Set_Warning_Switch): New procedure (code to set warning mode moved
1085         here from Switch.C so that it can be shared by pragma processing.
1086         (Check_References): Special case warning for non-modified non-imported
1087         volatile objects.
1088         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
1089         form with a string literal argument
1090
1091 2005-11-14  Javier Miranda  <miranda@adacore.com>
1092
1093         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
1094         anonymous access.
1095         (Write): Addition of "not null" to the anonymous access.
1096         (Read): Addition of "not null" to the anonymous access.
1097         (Write): Addition of "not null" to the anonymous access.
1098
1099         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
1100         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
1101         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
1102         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
1103         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
1104         "not null" to the anonymous access.
1105
1106 2005-11-14  Robert Dewar  <dewar@adacore.com>
1107
1108         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
1109         offset values
1110
1111 2005-11-14  Vincent Celier  <celier@adacore.com>
1112
1113         * switch.adb (Bad_Switch): New procedure
1114         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
1115         message when in error.
1116
1117         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
1118         Too_Many_Output_Files): Remove declarations, no longer used.
1119         (Scan_Nat): New parameter Switch
1120         (Scan_Pos): Ditto
1121         (Bad_Switch): New procedure
1122
1123         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
1124         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
1125         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
1126         to Osint.Fail. Do not handle any exception.
1127
1128 2005-11-14  Vincent Celier  <celier@adacore.com>
1129
1130         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
1131         designates a non existent directory.
1132
1133 2005-11-14  Robert Dewar  <dewar@adacore.com>
1134
1135         * xgnatugn.adb: Replace invalid membership test by 'Valid
1136
1137 2005-11-14  Vincent Celier  <celier@adacore.com>
1138
1139         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
1140         there is no object directory.
1141
1142 2005-11-14  Robert Dewar  <dewar@adacore.com>
1143
1144         * usage.adb: Minor adjustment to output format, use nn instead of nnn
1145         (so that -gnateInnn does not run into next column)
1146
1147 2005-11-14  Ed Falis  <falis@adacore.com>
1148
1149         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
1150         "constrained"
1151
1152 2005-11-14  Cyrille Comar  <comar@adacore.com>
1153
1154         * s-chepoo.ads: Add comments on Dereference.
1155         Remove unnecessary inherited abstract primitives.
1156         Cosmetic cleanup.
1157
1158 2005-11-14  Robert Dewar  <dewar@adacore.com>
1159
1160         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
1161         node parameter, not needed, since it is available as Declaration_Node.
1162
1163 2005-11-14  Geert Bosch  <bosch@adacore.com>
1164
1165         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
1166         grammatically correct.
1167
1168 2005-11-14  Vincent Celier  <celier@adacore.com>
1169
1170         * s-fileio.ads: Correct spelling error in comment
1171
1172 2005-11-14  Cyrille Comar  <comar@adacore.com>
1173             Robert Dewar  <dewar@adacore.com>
1174             Vincent Celier  <celier@adacore.com>
1175             Ben Brosgol  <brosgol@adacore.com>
1176             Jose Ruiz  <ruiz@adacore.com>
1177             Pascal Obry  <obry@adacore.com>
1178
1179         * gnat_ugn.texi: 
1180         Document that -fstack-check is needed for strict compliance with the
1181         Ada 95 Reference Manual.
1182         Correct reference to VAX systems to meet HP guidelines
1183         Add documentation for new gnatmake switches -vl, -vm and -vh
1184         Replace DEC Ada by HP Ada
1185         Replace DIGITAL by HP
1186         Remove empty section on tools in compatibility section
1187         Clarify the Windows convention semantics.
1188         Document the Win32 calling convention.
1189         The Stdcall, Win32 and DLL convention are synonyms.
1190         Add a note in -gnatR description about zero size record components
1191         Note on new >= and <= warnings for -gnatwc
1192         Document that equal sign after -gnatm is optional.
1193         Note that strip is working fine on DLL built with a Library
1194         Project. The restriction apply only to DLL built with gnatdll.
1195         Update section about the way to debug a DLL.
1196         Update information about the DLL convention.
1197         Document -C switch for gnatprep
1198         Document new attribute Library_ALI_Dir
1199         Update elaboration doc to include implicit Elaborate pragmas now
1200         generated for subprogram instantiations.
1201         Document limitation on executable names that include spaces for --GCC,
1202         --GNATBIND, and --GNATLINK switches.
1203         Document that -w causes -gnatws to be added at start of gcc switches
1204
1205         * gnat_rm.texi: Document that -mieee is needed for generating infinite
1206         and NaN values in case of overflow on machines that are not fully
1207         compliant with the IEEE floating-point standard.
1208         Create a section describing the set of compiler options needed for
1209         strict compliance with the Ada 95 Reference Manual.
1210         Add documentation for pragma Obsolescent applied to a package
1211         Clarify potential issues of mixed language programs related to the
1212         I/O buffering enabling in the elaboration of the GNAT runtime.
1213         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
1214         This documentation only patch adds extra documentsion for pragma
1215         Restrictions (No_Elaboration_Code), explaining why it is not possible
1216         to document this restriction in terms of allowed source constructs.
1217         Document string literal form of pragma Warnings
1218         Document new attribute Library_ALI_Dir
1219         Add documentation on stable attributes in project files that was missing
1220
1221         * gnat-style.texi: Indicate that paragraphs within a single comment
1222         should be separated by empty comment lines
1223
1224         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
1225         /05 respectively)
1226
1227         * bindusg.adb: Minor cleanup, put -m before -M for consistency
1228
1229 2005-11-14  Robert Dewar  <dewar@adacore.com>
1230
1231         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
1232         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
1233         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
1234         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
1235         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
1236         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
1237         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
1238         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
1239         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
1240         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
1241         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
1242         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
1243         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
1244         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
1245         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
1246         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
1247         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
1248         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
1249         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
1250         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
1251         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
1252         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
1253         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
1254         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
1255         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
1256         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
1257         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
1258         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
1259         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
1260         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
1261         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
1262         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
1263         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
1264         system-interix.ads, system-solaris-sparc.ads,
1265         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
1266         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
1267         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
1268         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
1269         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
1270         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
1271         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
1272         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
1273         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
1274         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
1275         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
1276         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
1277         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
1278         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
1279         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
1280         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
1281         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
1282         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
1283         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
1284         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
1285         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
1286         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
1287         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1288         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
1289         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
1290         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
1291         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
1292         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
1293         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
1294         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
1295         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
1296         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
1297         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
1298         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
1299         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
1300         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
1301         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
1302         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
1303         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
1304         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
1305         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
1306         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
1307         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
1308         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
1309         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
1310         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
1311         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
1312         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
1313         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
1314         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
1315         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
1316         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
1317         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
1318         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
1319         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
1320         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
1321         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
1322         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
1323         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
1324         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
1325         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
1326         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
1327         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
1328         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
1329         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
1330         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
1331         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
1332         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
1333         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
1334         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
1335         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
1336         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
1337         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
1338         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
1339         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
1340         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
1341         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
1342         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
1343         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
1344         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
1345         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
1346         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
1347         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
1348         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
1349         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
1350         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
1351         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
1352         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
1353         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
1354         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
1355         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
1356         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
1357         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
1358         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
1359         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
1360         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
1361         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
1362         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
1363         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
1364         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
1365         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
1366         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
1367         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
1368         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
1369         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
1370         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
1371         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
1372         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
1373         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
1374         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
1375         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
1376         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
1377         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
1378         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
1379         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
1380         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
1381         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
1382         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
1383         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
1384         a-numaux-darwin.ads, a-numaux-darwin.adb,
1385         a-swuwha.ads, a-stunha.ads: Minor reformatting
1386
1387 2005-11-14  Robert Dewar  <dewar@adacore.com>
1388
1389         PR ada/18434
1390         * osint-m.adb: Add pragma Elaborate_All for Osint
1391
1392 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
1393
1394         PR ada/23995
1395         * trans.c (call_to_gnu): Restore statement lost in translation.
1396
1397 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1398
1399         * init.c: Use the Linux-specific section for the IA-64/Linux target.
1400         (__gnat_adjust_context_for_raise): Add conditional code so that the
1401         IA-64 is also supported.
1402
1403 2005-11-03  James E Wilson  <wilson@specifix.com>
1404
1405         PR ada/23427
1406         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
1407         TREE_OVERFLOW check.
1408
1409 2005-09-21  Olivier Hainque  <hainque@adacore.com>
1410
1411         PR ada/22418
1412         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
1413         as we create them to store a size in bits.
1414
1415 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1416
1417         PR ada/21937
1418         PR ada/22328
1419         PR ada/22381
1420         PR ada/22383
1421         PR ada/22419
1422         PR ada/22420
1423         * utils2.c (build_return_expr): New helper function.
1424         * gigi.h (build_return_expr): Declare it.
1425         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
1426         of manually building the RETURN_EXPR tree.
1427         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
1428         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
1429         build_binary_op for the "target pointer" case.  Use build_return_expr
1430         instead of manually building the RETURN_EXPR tree.
1431
1432 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
1433
1434         PR ada/23788
1435         * s-tpinop.ads: Make this unit Preelaborate.
1436
1437 2005-09-16  Andreas Jaeger  <aj@suse.de>
1438
1439         * socket.c: Add string.h for memcpy.
1440
1441 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
1442
1443         * dec-io.ads, dec-io.adb: Removed, no longer used.
1444
1445 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
1446
1447         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
1448
1449         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
1450         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
1451         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
1452         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
1453         dependent units are Preelaborate.
1454         (Initialize): Call Interrupt_Managemeent.Initialize and
1455         OS_Primitives.Initialize to ensure proper initialization of this unit.
1456         Remove use of System.Soft_Links
1457         Make this unit Preelaborate.
1458
1459         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
1460         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
1461         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
1462         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
1463         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
1464         s-tratas.ads, s-tasinf.ads: Minor reformatting.
1465         Add pragma Preelaborate, since these packages are suitable for this
1466         categorization.
1467         Update comments.
1468
1469         * s-traent-vms.ads, s-intman-dummy.adb,
1470         s-taprop-dummy.adb: Make this unit Preelaborate.
1471
1472         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
1473         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
1474         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
1475         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
1476         s-intman-solaris.adb, s-intman-irix-athread.adb,
1477         s-intman-irix.adb: Mark this unit Preelaborate.
1478         (Initialize): New procedure.
1479         Update comments.
1480
1481         * s-taspri-linux.ads: Removed.
1482
1483         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
1484         as done by other implementations (e.g. posix).
1485
1486         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
1487         responsible for deferring abort.
1488         Mark this unit Preelaborate.
1489
1490         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
1491         proper initialization of the tasking run-time.
1492
1493         * s-tasdeb.ads: Mark this unit Preelaborate.
1494         (Known_Tasks): Add explicit default value to avoid elaboration code.
1495
1496         * s-inmaop-vms.adb (Elaboration code): Add call to
1497         Interrupt_Management.Initialize since the elaboration code depends on
1498         proper initialization of this package.
1499
1500         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
1501         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
1502         s-osprim-posix.adb: Make this unit Preelaborate.
1503
1504         * a-calend.adb: Add call to OS_Primitives.Initialize
1505
1506         * a-elchha.adb: Update use of Except.Id.Full_Name.
1507         Minor reformatting.
1508         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
1509
1510         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
1511         Move with clauses outside Warnings Off now that dependent units are
1512         Preelaborate.
1513         Use raise xxx with "..."; Ada 2005 form.
1514
1515         * a-taside.ads, a-taside.adb:
1516         Remove some dependencies, to make it easier to make this unit truly
1517         Preelaborate.
1518         Rewrite some code to be conformant with Preelaborate rules.
1519
1520         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
1521         marked Preelaborate in the future.
1522
1523         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
1524         these units Preelaborate.
1525
1526         * s-exctab.adb: Update use of Except.Id.Full_Name.
1527
1528         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
1529         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
1530         Set_Exc_Stack_Addr): Removed, no longer used.
1531         Remove reference to *Machine_State_Addr*, no longer needed.
1532
1533         * s-stalib.ads: Mark this unit as Preelaborate[_05].
1534         (Exception_Data): Full_Name is now a System.Address so that this unit
1535         can be made Preelaborate.
1536         Clean up/simplify code thanks to Full_Name being a System.Address.
1537         Remove obsolete pragma Suppress (All_Checks), no longer needed.
1538
1539         * s-taskin.ads, s-taskin.adb:
1540         Move with clauses outside Warnings Off now that dependent units are
1541         Preelaborate.
1542         Make this unit Preelaborate.
1543         (Initialize): New proceduure, replace elaboration code and makes the
1544         set up of the tasking run-time cleaner.
1545         (Detect_Blocking): Now a function instead of a deferred boolean, to
1546         obey Preelaborate rules.
1547
1548         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
1549         soft links, no longer used.
1550
1551         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
1552         packages are suitable for this categorization.
1553
1554         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
1555         since we compile run-time sources in Ada 2005 mode.
1556         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
1557         avoid having s-taprop*.adb depend on s-soflin and to avoid code
1558         duplication.
1559         Remove reference to *Machine_State_Addr*, no longer needed.
1560
1561 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
1562
1563         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
1564         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
1565         Remove reference to System.Exceptions.
1566
1567         * s-mastop-x86.adb: Removed, no longer used.
1568
1569         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
1570
1571         * a-excach.adb: Minor reformatting.
1572
1573         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
1574         instead fix new warnings that were hidden by this change.
1575         (AAA, ZZZ): Removed, replaced by...
1576         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
1577         are used instead of constants, to help make Ada.Exception truly
1578         preelaborate.
1579         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
1580         Raise_Storage_Error): File is now a System.Address, to simplify code.
1581         (Elab code): Removed, no longer used.
1582         (Null_Occurrence): Remove Warnings Off and make this construct
1583         preelaborate.
1584         Remove code related to front-end zero cost exception handling, since
1585         it is no longer used.
1586         Remove -gnatL/-gnatZ switches.
1587
1588         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
1589         Update use of Except.Msg.
1590
1591         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
1592         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
1593         to front-end zero cost exception handling, since it is no longer used.
1594         Remove -gnatL/-gnatZ switches.
1595
1596         * lib-writ.ads: Minor reformatting
1597         Remove doc of UX
1598
1599         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
1600
1601         * Make-lang.in: Remove references to s-except.ads
1602
1603         * s-except.ads: Removed, no longer used.
1604
1605         * s-mastop.ads, s-mastop.adb:
1606         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
1607         Remove reference to System.Exceptions.
1608
1609         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
1610         switch-b.adb: Remove code related to front-end zero cost exception
1611         handling, since it is no longer used.
1612         Remove -gnatL/-gnatZ switches.
1613
1614 2005-09-01  Robert Dewar  <dewar@adacore.com>
1615             Gary Dismukes  <dismukes@adacore.com>
1616             Javier Miranda  <miranda@adacore.com>
1617
1618         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
1619         type by valid test and generate warning.
1620         (Tagged_Membership): Generate call to the run-time
1621         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
1622         Change formal name Subtype_Mark to Result_Definition in several calls to
1623         Make_Function_Specification.
1624         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
1625         check for proper accessibility of the operand of a class-wide allocator.
1626         The check can be left out if checks are suppressed or if the expression
1627         has a specific tagged type whose level is known to be safe.
1628
1629         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
1630         generates the run-time check associated with null-excluding entities.
1631         (Expand_N_Return_Statement): Add tests to determine if the accessibility
1632         check on the level of the return expression of a class-wide function
1633         can be elided. The check usually isn't needed if the expression has a
1634         specific type (unless it's a conversion or a formal parameter). Also
1635         add a test for whether accessibility checks are suppressed. Augment
1636         the comments to describe the conditions for performing the check.
1637
1638 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
1639             Javier Miranda  <miranda@adacore.com>
1640             Gary Dismukes  <dismukes@adacore.com>
1641             Ed Schonberg  <schonberg@adacore.com>
1642
1643         * a-tags.adb (IW_Membership): Give support to
1644         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
1645         subprogram has been extended to look for the tag in the ancestors tag
1646         table.
1647         Update the structure of the GNAT Dispatch Table to reflect the
1648         additional two tables used in dispatching selects.
1649         Introduce appropriate array types and record components in
1650         Type_Specific_Data to reflect the two tables.
1651         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
1652         the TSD of a tag, indexed by position.
1653         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
1654         operation kind in the TSD of a tag, indexed by position.
1655
1656         * a-tags.ads: Introduce an enumeration type to capture different
1657         primitive operation kinds. Define a constant reflecting the number of
1658         predefined primitive operations.
1659         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
1660         of an entry wrapper.
1661         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
1662         callable entity of a primitive operation.
1663
1664         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
1665         primitive operations used in dispatching selects for limited
1666         interfaces, limited tagged, task and protected types what implement a
1667         limited interface.
1668         (Freeze_Type): Generate the bodies of the primitive operations used in
1669         dispatching selects for limited tagged, task and protected types that
1670         implement a limited interface. Generate statements to populate the two
1671         auxiliary tables used for dispatching in select statements.
1672         (Freeze_Record_Type): Add call to initialize the dispatch table entries
1673         associated with predefined interface primitive operations.
1674         (Build_Dcheck_Function): Change Set_Subtype_Mark to
1675         Set_Result_Definition.
1676         (Build_Variant_Record_Equality): Change Subtype_Mark to
1677         Result_Definition.
1678         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
1679         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
1680         (Build_Assignment): Simplify the code that adds the run-time-check.
1681         (Expand_N_Object_Declaration): Code cleanup.
1682
1683         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
1684         entries when there is a protected type that implements a limited
1685         interface.
1686
1687         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
1688         common routines used in expansion of dispatching selects.
1689         (Add_Private_Declarations): Select the appropriate protection type when
1690         there is a protected type that implements a limited interface.
1691         (Build_Parameter_Block): Generate a wrapped parameter block.
1692         (Build_Protected_Subprogram_Body): Select the appropriate type for
1693         locking entries when there is a protected type that implements a
1694         limited interface.
1695         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
1696         classified as entry wrappers.
1697         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
1698         asynchronous selects.
1699         (Expand_N_Conditional_Entry_Call): Add support for expansion of
1700         dispatching conditional selects.
1701         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
1702         protection when there is a protected type that implements limited
1703         interfaces.
1704         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
1705         timed selects.
1706         (Extract_Dispatching_Call): Extract the entity of the name of a
1707         dispatching call, the object parameter, actual parameters and
1708         corresponding formals.
1709         (Make_Initialize_Protection): Correct logic of protection initialization
1710         when there is a protected type that implements a limited interface.
1711         (Parameter_Block_Pack): Populate a wrapped parameter block with the
1712         values of actual parameters.
1713         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
1714         block and assign them to the original actual parameters.
1715
1716         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
1717         (Build_Protected_Sub_Specification): Change the type and name of the
1718         last formal to account for the increased variety of protection modes.
1719
1720         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
1721         entities. Used to save the value of the Is_Hidden attribute when the
1722         limited-view is installed.
1723         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
1724         the attribute of procedures classified as entry wrappers.
1725         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
1726         entity of a primitive wrapper.
1727         (Write_Entity_Flags): Output the name and value of the
1728         Is_Primitive_Wrapper attribute.
1729         (Write_Field27_Name): Output the name and entity of the field Wrapped_
1730         Entity.
1731         (Underlying_Type): If we have an incomplete entity that comes from
1732         the limited view then we return the Underlying_Type of its non-limited
1733         view if it is already available.
1734         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
1735         including operators.
1736         (Write_Field26_Name): Add entry for Overridden_Operation
1737         (Overridden_Operation): New attribute of functions and procedures.
1738
1739         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
1740         predefined position in the dispatch table for the primitive operations
1741         used in dispatching selects.
1742         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
1743         predefined primitive operations and replace it with
1744         Default_Prim_Op_Count.
1745         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
1746         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
1747         the names of the generated primitive operations used in dispatching
1748         selects.
1749         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
1750         case of abstract interface types. They will be inherit by the objects
1751         implementing the interface.
1752         (Make_DT): There is no need to inherit the dispatch table of the
1753         ancestor interface for the elaboration of abstract interface types.
1754         The dispatch table will be inherited by the object implementing the
1755         interface.
1756         (Copy_Secondary_DTs): Add documentation.
1757         (Validate_Position): Improve this static check in case of
1758         aliased subprograms because aliased subprograms must have
1759         the same position.
1760         (Init_Predefined_Interface_Primitives): New subprogram that initializes
1761         the entries associated with predefined primitives of all the secondary
1762         dispatch tables.
1763         (Build_Anonymous_Access_Type): Removed.
1764         (Expand_Interface_Actuals): With the previous cleanup there is no need
1765         to build an anonymous access type. This allows further cleanup in the
1766         code generated by the expander.
1767         (Expand_Interface_Conversion): If the actual is an access type then
1768         build an internal function to handle the displacement. If the actual
1769         is null this function returns null because no displacement is
1770         required; otherwise performs a type conversion that will be
1771         expanded in the code that returns the value of the displaced actual.
1772         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
1773         conversions that have no effect in the generated code because no
1774         displacement is required. Code cleanup; use local variables to
1775         avoid repeated calls to the subprogram directly_designated_type().
1776
1777         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
1778         Classify the primitive operations used in dispatching selects as
1779         predefined.
1780         (Implements_Limited_Interface): Determine whether some type either
1781         directly implements a limited interface or extends a type that
1782         implements a limited interface.
1783         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
1784         (Expand_Subtype_From_Expr): Do not build actual subtype if the
1785         expression is limited.
1786         (Find_Interface_Tag): Add code to handle class-wide types and
1787         entities from the limited-view.
1788
1789         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
1790         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
1791         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
1792         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
1793         Set_Prim_Op_Kind.
1794
1795         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
1796         of procedure name or prefix that appears as a trigger in a triggering
1797         alternative.
1798
1799         * uintp.ads: Introduce constants Uint_11 and Uint_13.
1800
1801 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
1802
1803         * s-tataat.adb, a-tasatt.adb:
1804         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
1805
1806         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
1807         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
1808         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
1809         longer used.
1810
1811 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
1812             Jose Ruiz  <ruiz@adacore.com>
1813
1814         * s-taprop-vxworks.adb:
1815         Move with clauses outside Warnings Off now that dependent units are
1816         Preelaborate.
1817         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
1818         initialization of this unit.
1819         (Specific): Add new procedures Initialize and Delete so that this
1820         package can be used for VxWorks 5.x and 6.x
1821         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
1822         differences between VxWorks 5.x and 6.x
1823         Minor reformatting.
1824         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
1825         caller.
1826         Use only Preelaborate-compatible constructs.
1827
1828         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
1829         Primitives.Operations.
1830         (Delete, Initialize): New procedures.
1831
1832         * s-osinte-vxworks.adb: Body used to handle differences between
1833         VxWorks 5.x and 6.x
1834         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
1835
1836         * s-osinte-vxworks.ads: Minor reformatting.
1837         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
1838         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
1839         and 6.
1840         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
1841         between Vxworks 5 and 6.
1842         (taskLock, taskUnlock): Removeed, no longer used.
1843
1844         * adaint.c: The wait.h header is not located in the sys directory on
1845         VxWorks when using RTPs.
1846         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
1847         using RTPs.
1848         (__gnat_dup): dup is available on Vxworks when using RTPs.
1849         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
1850
1851         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
1852
1853         * expect.c: The wait.h header is not located in the sys directory on
1854         VxWorks when using RTPs.
1855
1856 2005-09-01  Thomas Quinot  <quinot@adacore.com>
1857
1858         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
1859
1860         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
1861
1862         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1863         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1864         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
1865         g-soccon-freebsd.ads: Add new constants:
1866          IP_MULTICAST_IF
1867          SO_RCVTIMEO/SO_SNDTIMEO
1868          IOV_MAX
1869
1870         * gen-soccon.c:
1871         Move all target-specific file inclusions and macro definitions to
1872         gsocket.h, in order to ensure that any C code in socket.c will see a
1873         set of constants that is consistent with the contents of g-soccon.ads.
1874
1875         * gsocket.h: Code imported from gen-soccon.c:
1876         Move all target-specific file inclusions and macro definitions to
1877         gsocket.h, in order to ensure that any C code in socket.c will see a set
1878         of constants that is consistent with the contents of g-soccon.ads.
1879         This change also makes gen-soccon self-contained (removing dependencies
1880         upon GCC internal headers).
1881
1882         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
1883         iovecs at a time.
1884         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
1885
1886         * socket.c: Minor reformatting.
1887
1888 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
1889             Thomas Quinot  <quinot@adacore.com>
1890
1891         * fname-sf.adb, mlib-tgt.ads,
1892         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
1893         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
1894         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
1895         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
1896         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
1897         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
1898         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
1899         makegpr.adb: Remove redundant use_clauses.
1900
1901 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
1902
1903         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
1904         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
1905         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
1906         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
1907         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
1908         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
1909         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
1910         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
1911         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
1912         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
1913         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
1914         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
1915         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
1916         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
1917         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
1918         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
1919         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
1920         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
1921         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
1922         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
1923         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
1924         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
1925         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
1926         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
1927         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
1928         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
1929         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
1930         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
1931         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
1932         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
1933         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
1934         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
1935         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
1936         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
1937         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
1938         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
1939         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
1940         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
1941         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
1942         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
1943         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
1944         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
1945         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
1946         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
1947         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
1948         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
1949         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
1950         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
1951         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
1952         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
1953         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
1954         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
1955         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
1956         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
1957         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
1958         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
1959         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
1960         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
1961         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
1962         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
1963         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
1964         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
1965         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
1966         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
1967         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
1968         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
1969         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
1970         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
1971         and always use the no parameter form for consistency.
1972
1973         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
1974
1975 2005-09-01  Robert Dewar  <dewar@adacore.com>
1976
1977         * binde.adb: Minor reformatting
1978         (Find_Elab_Order): Output warning if -p used with static elab order
1979
1980 2005-09-01  Robert Dewar  <dewar@adacore.com>
1981
1982         * checks.adb (Check_Needed): New procedure, deals with removing checks
1983         based on analysis of short-circuited forms. Also generates warnings for
1984         improper use of non-short-circuited forms.
1985         Code clean ups.
1986
1987 2005-09-01  Robert Dewar  <dewar@adacore.com>
1988
1989         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
1990         with 'Valid tests.
1991
1992 2005-09-01  Robert Dewar  <dewar@adacore.com>
1993
1994         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
1995         spec.
1996         Implement new insertion char < (conditional warning)
1997         * errutil.adb, erroutc.adb: Implement new insertion char <
1998         (conditional warning).
1999         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
2000         (Error_Msg_Warn): New variable for < insertion char.
2001         * prj-nmsc.adb: Implement new errout insertion char < (conditional
2002         warning).
2003         (Check_For_Source): Change value of Source_Id only after the current
2004         source has been dealt with.
2005
2006 2005-09-01  Robert Dewar  <dewar@adacore.com>
2007             Doug Rupp  <rupp@adacore.com>
2008
2009         * exp_attr.adb: Handle vax fpt for 'Valid attribute
2010         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
2011         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
2012         (Valid_D, Valid_F, Valid_G): New functions
2013
2014 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2015             Hristian Kirtchev  <kirtchev@adacore.com>
2016             Javier Miranda  <miranda@adacore.com>
2017
2018         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
2019         from object notation, the original node is unanalyzed and carries no
2020         semantic information, so that accessiblity checks must be performed on
2021         the type of the actual itself.
2022         (Expand_N_Subprogram_Declaration): Change last actual parameter for
2023         compatibility with Build_Protected_Sub_Specification.
2024         (Check_Overriding_Inherited_Interfaces): Add suport to handle
2025         overloaded primitives.
2026         (Register_Interface_DT_Entry): Use the new name of the formal
2027         the the calls to Expand_Interface_Thunk
2028
2029         * exp_dbug.ads: Augment comments on encoding of protected types to
2030         include the generation of dispatching subprograms when the type
2031         implements at least one interface.
2032
2033         * lib.ads: Extend information in Load_Stack to include whether a given
2034         load comes from a Limited_With_Clause.
2035
2036         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
2037         whether a potential circularity is harmless, because it includes units
2038         loaded through a limited_with clause. Extends previous treatment which
2039         did not handle properly arbitrary combinations of limited and
2040         non-limited clauses.
2041
2042 2005-09-01  Nicolas Setton  <setton@adacore.com>
2043
2044         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
2045         to be encoded as typ___XBLU_lowerbound__upperbound instead of
2046         typ___XB_lowerbound__upperbound.
2047
2048 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2049
2050         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
2051         dummy access formal for RACW/RAS TypeCode TSS.
2052         (Build_TypeCode_Call): Do not generate dummy null access actual for
2053         calls to the TypeCode TSS.
2054
2055 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2056
2057         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
2058         fully qualified name, to distinguish instances with the same local name.
2059
2060         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
2061         fully qualified.
2062
2063 2005-09-01  Robert Dewar  <dewar@adacore.com>
2064
2065         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
2066         packed arrays.
2067
2068 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
2069
2070         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
2071         (Free): New deallocation procedure for filter elements
2072         (Close): Deallocate any existing filter for the concerned connection
2073
2074 2005-09-01  Laurent Pautet  <pautet@adacore.com>
2075
2076         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
2077         position set is provided, we compute one in order to reduce the maximum
2078         length of the keys.  This computation first selects a character
2079         position between 1 and the minimum length of the keys in order to
2080         avoid reducing one of the keys to an empty string.
2081         (Initialize, Compute): When the ratio V to K is too low, the algorithm
2082         does not converge. The initialization procedure now comes with a
2083         maximum number of iterations such that when exceeded, an exception is
2084         raised in Compute. The user can initialize this ratio to another value
2085         and try again
2086         Reformating and updated headers.
2087
2088 2005-09-01  Javier Miranda  <miranda@adacore.com>
2089
2090         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
2091         that given an entity T creates and returns an Itype that duplicates the
2092         contents of T. The returned Itype has the null-exclusion
2093         attribute set to True, and its Etype attribute references T
2094         to keep the association between the two entities.
2095         Update copyright notice
2096
2097         * sem_aggr.adb (Check_Can_Never_Be_Null,
2098         Aggregate_Constraint_Checks, Resolve_Aggregate,
2099         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
2100
2101         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
2102
2103 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
2104             Robert Dewar  <dewar@adacore.com>
2105             Hristian Kirtchev  <kirtchev@adacore.com>
2106
2107         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
2108         Result_Definition.
2109
2110         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
2111         function specs.
2112         Call Set_Result_Definition instead of Set_Subtype_Mark.
2113         (P_Subprogram_Specification): Add parsing of anonymous access result
2114         plus null exclusions. Call Set_Result_Definition instead of
2115         Set_Subtype_Mark.
2116
2117         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2118         (P_Access_Type_Definition): Add parsing for an anonymous access result
2119         subtype, plus parsing for null exclusions. Call Set_Result_Definition
2120         instead of Set_Subtype_Mark.
2121
2122         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2123         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
2124         (Result_Definition): New function for N_Function_Specifications.
2125         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
2126         N_Function_Specification.
2127         (Set_Null_Exclusion_Present): Allow this flag for
2128         N_Function_Specification.
2129         (Set_Result_Definition): New procedure for N_Function_Specifications.
2130         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
2131         and N_Function_Specification.
2132
2133         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
2134         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
2135         Add support for LIMITED NEW for Ada 2005 AI-419
2136         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
2137         syntax for anonymous access results.
2138         Replace Subtype_Mark field by Result_Definition in
2139         N_Function_Specification and N_Access_Definition specs.
2140         Add Null_Exclusion_Present to spec of N_Function_Specification.
2141         (Result_Definition): New function for N_Function_Specification and
2142         N_Access_Function_Definition.
2143         (Set_Result_Definition): New procedure for N_Function_Specification and
2144         N_Access_Function_Definition.
2145
2146         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
2147         Result_Definition for cases of N_Access_Function_Definition and
2148         N_Function_Specification.
2149         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
2150
2151 2005-09-01  Vincent Celier  <celier@adacore.com>
2152
2153         * lib-writ.adb: Update Copyright notice
2154         (Write_With_Lines): On platforms where file names are case-insensitive,
2155         record the file names in lower case.
2156         (Write_ALI): For D lines, on platforms where file names are
2157         case-insensitive, record the file names in lower case.
2158
2159 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2160             Emmanuel Briot  <briot@adacore.com>
2161
2162         * lib-xref.adb (Output_Overridden_Op): Display information on
2163         overridden operation.
2164
2165         * lib-xref.ads: Add documentation on overridden operations.
2166
2167         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
2168         information.
2169
2170         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
2171         overriding entity information.
2172
2173 2005-09-01  Vincent Celier  <celier@adacore.com>
2174
2175         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
2176         including those that are inherited.
2177
2178 2005-09-01  Robert Dewar  <dewar@adacore.com>
2179
2180         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
2181
2182         * par-prag.adb: Implement new pragma Debug_Policy
2183
2184         * sem_prag.adb Implement new pragma Debug_Policy
2185         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
2186         Component_Size attribute specification. Give warning for ignored pragma
2187         Pack.
2188
2189         * snames.h, snames.ads, snames.adb: Introduce entries in
2190         Preset_Names for Name_Disp_Asynchronous_Select,
2191         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
2192         Name_Disp_Timed_Select.
2193         New pragma Debug_Policy
2194
2195         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
2196         explicitly.
2197         Switch -gnata also sets Debug_Pragmas_Enabled
2198
2199         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
2200         handle an explicit -gnata when compiling predefined files.
2201
2202 2005-09-01  Vincent Celier  <celier@adacore.com>
2203
2204         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
2205         directories of projects that have no Ada sources.
2206
2207 2005-09-01  Robert Dewar  <dewar@adacore.com>
2208
2209         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
2210         (makes a difference for wide characters)
2211
2212         * widechar.adb, widechar.ads:
2213         Add Wide_Char_Byte_Count feature to count chars vs bytes
2214
2215 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2216             Ed Schonberg  <schonberg@adacore.com>
2217             Robert Dewar  <dewar@adacore.com>
2218
2219         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
2220         'Address attribute reference with an overloaded prefix, use the
2221         location of the prefix (not the location of the attribute reference) as
2222         the error location.
2223         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
2224         a function renaming thereof, is a valid prefix for 'Size (where it is
2225         intepreted as a function call).
2226         (Statically_Denotes_Entity): New predicate to determine whether the
2227         prefix of an array attribute can be considered static.
2228
2229         PR ada/9087
2230         (Eval_Attr): Fix failure to evaluate Component_Size for
2231         unconstrained arrays (resulted in wrong value in packed case, since
2232         back end cannot handle this case)
2233
2234 2005-09-01  Robert Dewar  <dewar@adacore.com>
2235
2236         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
2237         error msgs for most common cases.
2238         Use new errout insertion char < (conditional warning)
2239
2240 2005-09-01  Javier Miranda  <miranda@adacore.com>
2241             Ed Schonberg  <schonberg@adacore.com>
2242
2243         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
2244         become local to the whole package.
2245         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
2246         the package was already analyzed the new algorithm "replaces" the
2247         real entities by the shadow ones. This is required to ensure that
2248         the order of these entities in the homonym chains does not change;
2249         otherwise we can have undefined references at linking time because
2250         in case of conflicts the external name of the entities will have
2251         a suffix that depends on the order of the entities in the chain.
2252         (Remove_Limited_With_Clause): Complementary code that completes the
2253         new algorithm and replaces the shadow entities by the real ones.
2254         (Install_Limited_Withed_Unit): When unchaining entities before the
2255         installation of the shadow entities, only regular entities of the
2256         public part must be taken into account. This is required to
2257         keep this routine in synch with the work done by Remove_Limited_
2258         With_Clause
2259         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
2260         even if unit is analyzed, because the analysis of the unit is
2261         idempotent in any case, and the limited view of the unit may have to
2262         be installed for proper visibility.
2263         (Expand_Limited_With_Clause): Even if the unit in the implicit
2264         with_clause has been analyzed already, a limited view of the package
2265         must be built for the current context, if it does not exist yet.
2266
2267 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2268             Javier Miranda  <miranda@adacore.com>
2269             Gary Dismukes  <dismukes@adacore.com>
2270
2271         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
2272         defining entity for the instance body, make a new defining identifier
2273         rather than copying the entity of the spec, to prevent accidental
2274         sharing of the entity list.
2275         (Check_Private_View): When exchanging views of private types, build the
2276         list of exchanged views as a stack, to ensure that on exit the exchanges
2277         are undone in the proper order.
2278         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
2279         Restore the compilation environment in case of instantiation_error.
2280         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
2281         for an anonymous access result.
2282         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
2283         (Formal_Entity): Handle properly the case of a formal package that
2284         denotes a generic package renaming.
2285
2286 2005-09-01  Thomas Quinot  <quinot@adacore.com>
2287
2288         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
2289         clause if the array aggregate is surrounded by parentheses.
2290
2291 2005-09-01  Cyrille Comar  <comar@adacore.com>
2292             Gary Dismukes  <dismukes@adacore.com>
2293             Ed Schonberg  <schonberg@adacore.com>
2294             Javier Miranda  <miranda@adacore.com>
2295
2296         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
2297         underlying type
2298         to check if a type is Constrained in cases related to code generation
2299         (rather than semantic checking) since otherwise we do not generate
2300         similar code for mutable private types depending if their
2301         discriminants are visible or not.
2302         (Check_Abstract_Overriding): Do not complain about failure to override
2303         the primitive operations used in dispatching selects since they will
2304         always be overriden at the freeze point of the type.
2305         (Access_Definition): Separate out handling for resetting the scope
2306         of an anonymous access function result type. Retrieve the scope
2307         of the associated function rather than using Current_Scope, which
2308         does not have a consistent value (depends on whether we're in the
2309         middle of analyzing formal parameters). Add ??? comment about
2310         finding a cleaner way to handle the special cases of scope setting.
2311         (Process_Incomplete_Dependents): A protected operation is never a
2312         dispatching operation (only its wrapper may be).
2313         (Build_Derived_Record_Type): In case of tagged private types that
2314         implement interfaces add derivation of predefined primitive
2315         operations.
2316         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
2317         by two parameters that are used in case of derivation from abstract
2318         interface types: No_Predefined_Prims is used to avoid the derivation
2319         of predefined primitives from the interface, and Predefined
2320         Prims_Only is used to complete the derivation predefined primitives
2321         in case of private tagged types implementing interfaces.
2322         Fix typo in comments
2323         (Find_Interface_In_Descendant): Protect the frontend against
2324         wrong code with large circularity chains.
2325         (Is_Private_Overriding): Add support for entities overriding interface
2326         subprograms. The test failed because Entities associated with overriden
2327         interface subprograms are always marked as hidden (and used to build
2328         the secondary dispatch table); in this case the overriden entity is
2329         available through the field abstract_interface_alias (cf. override_
2330         dispatching_operation)
2331         (Access_Definition): Set the scope of the type to Current_Scope for the
2332         case of a function with an anonymous access result type.
2333         (Access_Subprogram_Declaration): Handle creation of the type entity for
2334         an access-to-function type with an anonymous access result.
2335         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
2336         in handling for N_Access_Function_Definition.
2337         (Analyze_Subtype_Declaration): Modify the text of error message.
2338         (Derived_Type_Declaration): Modify the text of error message.
2339         (Process_Subtype): Modify the text of error message plus cleanup
2340         of one redundant error message.
2341         (Analyze_Component_Declaration): Code cleanup.
2342         (Analyze_Object_Declaration): Code cleanup.
2343         (Analyze_Subtype_Declaration): Propagate the null-exclusion
2344         attribute in case of access types. Code cleanup.
2345         (Array_Type_Declaration): Code cleanup.
2346         (Process_Discriminants): Create the new null-excluding itype
2347         if required. Code cleanup.
2348         (Process_Subtype): Create the new null-excluding itype if
2349         required. Code cleanup.
2350         (Build_Derived_Record_Type): Code cleanup to avoid calling
2351         twice the subprogram derive_subprograms in case of private
2352         types that implement interfaces. In this particular case the
2353         subprogram Complete_Subprograms_Derivation already does the
2354         job associated with the second call.
2355
2356         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
2357         conversion to the full view when generating an operation for a
2358         discriminant whose type may currently be private.
2359
2360 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2361             Javier Miranda  <miranda@adacore.com>
2362
2363         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
2364         V (Obj.F), the rewriting does not involve the indexed component, but
2365         only the selected component itself.
2366         Do not apply the transformation if the analyzed node is an actual of a
2367         call to another subprogram.
2368         (Complete_Object_Operation): Retain the entity of the
2369         dispatching operation in the selector of the rewritten node. The
2370         entity will be used in the expansion of dispatching selects.
2371         (Analyze_One_Call): Improve location of the error message associated
2372         with interface.
2373         (Analyze_Selected_Component): No need to resolve prefix when it is a
2374         function call, resolution is done when parent node is resolved, as
2375         usual.
2376         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
2377         when attempting to resolve a call transformed from its object notation.
2378         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
2379         of the argument list for each interpretation of the operation.
2380         (Try_Object_Operation): The designated type of an access parameter may
2381         be an incomplete type obtained through a limited_with clause, in which
2382         case the primitive operations of the type are retrieved from its full
2383         view.
2384         (Analyze_Call): If this is an indirect call, and the return type of the
2385         access_to_subprogram is incomplete, use its full view if available.
2386
2387 2005-09-01  Javier Miranda  <miranda@adacore.com>
2388             Gary Dismukes  <dismukes@adacore.com>
2389
2390         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
2391         access types the null-exclusion and access-to-constant attributes must
2392         also match.
2393         (Analyze_Return_Statement): When the result type is an anonymous access
2394         type, apply a conversion of the return expression to the access type
2395         to ensure that appropriate accessibility checks are performed.
2396         (Analyze_Return_Type): For the case of an anonymous access result type,
2397         generate the Itype and set Is_Local_Anonymous_Access on the type.
2398         Add ??? placeholder for check to disallow returning a limited object
2399         in Ada 2005 unless it's an aggregate or a result of a function call.
2400         Change calls from Subtype_Mark to Result_Definition.
2401         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
2402         Result_Definition in call to Make_Function_Specification.
2403         (Build_Body_To_Inline): Change Set_Subtype_Mark to
2404         Set_Result_Definition.
2405         (Make_Inequality_Operator): Change formal Subtype_Mark to
2406         Result_Definition in call to Make_Function_Specification.
2407         (Process_Formals): Create the new null-excluding itype if required.
2408         (New_Overloaded_Entity): For an entity overriding an interface primitive
2409         check if the entity also covers other abstract subprograms in the same
2410         scope. This is required to handle the general case, that is, overriding
2411         other interface primitives and overriding abstract subprograms inherited
2412         from some abstract ancestor type.
2413         (New_Overloaded_Entity): For an overriding entity that comes from
2414         source, note the operation that it overrides.
2415         (Check_Conformance, Type_Conformant): Addition of one new formal
2416         to skip controlling formals in the analysis. This is used to
2417         handle overloading of abstract interfaces.
2418         (Base_Types_Match): Add missing case for types imported from
2419         limited-with clauses
2420         (New_Overloaded_Entity): Add barrier to protect the use of
2421         the "alias" attribute.
2422
2423 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2424
2425         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
2426         verify that the procedure and the entry are mode conformant.
2427         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
2428         as a different operator, which is often a cut-and-paste error.
2429
2430 2005-09-01  Javier Miranda  <miranda@adacore.com>
2431             Ed Schonberg  <schonberg@adacore.com>
2432
2433         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
2434         used in controlling parameters exclude null because it is necessary to
2435         read the tag to dispatch, and null has no tag.
2436         (Override_Dispatching_Operation): If the previous operation is inherited
2437         from an interface, it becomes hidden  and does not participate in later
2438         name resolution.
2439
2440 2005-09-01  Javier Miranda  <miranda@adacore.com>
2441             Ed Schonberg  <schonberg@adacore.com>
2442             Gary Dismukes  <dismukes@adacore.com>
2443
2444         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
2445         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
2446         the expander will generate the corresponding run-time check to evaluate
2447         the expression.
2448         (Resolve_Call): Check for legal type of procedure name or prefix that
2449         appears as a trigger in a triggering alternative.
2450         (Valid_Conversion): If expression is ambiguous and the context involves
2451         an extension of System, remove System.Address interpretations.
2452         (Resolve_Qualified_Expression): Reject the case of a specific-type
2453         qualification applied to a class-wide argument. Enhance comment
2454         to explain checking of Original_Node.
2455         (Resolve_Type_Conversion): The location of the error message was not
2456         general enough to handle the general case and hence it has been removed.
2457         In addition, this patch improves the text of the message.
2458         (Resolve_Type_Conversion): Add missing support for access to interface
2459         types.
2460         (Resolve_Type_Conversion): If the target is a class-wide interface type,
2461         do not expand if the expression is the actual in a call, because proper
2462         expansion will take place when the call itself is expanded.
2463         (Resolve_Allocator): If the context is an unchecked conversion, the
2464         allocator inherits its storage pool, if any, from the target type of
2465         the conversion.
2466
2467 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2468             Javier Miranda  <miranda@adacore.com>
2469
2470         * sem_type.adb (Add_One_Interp): If a candidate operation is an
2471         inherited interface operation that has an implementation, use the
2472         implementation to avoid spurious ambiguities.
2473         (Interface_Present_In_Ancestor): In case of concurrent types we can't
2474         use the Corresponding_Record_Typ attribute to look for the interface
2475         because it is set by the expander (and hence it is not always
2476         available). For this reason we traverse the list of interfaces
2477         (available in the parent of the concurrent type).
2478         (Interface_Present_In_Ancestor): Handle entities from the limited view
2479
2480 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2481
2482         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
2483         from the list of required components.
2484         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
2485         primitive procedure of a limited interface with a controlling first
2486         parameter.
2487         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
2488         of an entry.
2489         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
2490         capture if it is generated in the second operand of a short-circuit
2491         operation.
2492         Do not capture values for variables with address clauses.
2493         (Is_Object_Reference): Treat a function call as an object reference only
2494         if its type is not Standard_Void_Type.
2495
2496 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
2497
2498         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
2499         to a variable that is statically known to be constant.
2500
2501 2005-09-01  Geert Bosch  <bosch@adacore.com>
2502             Robert Dewar  <dewar@adacore.com>
2503
2504         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
2505         (VAXGF_Safe_First): Idem.
2506
2507 2005-09-01  Robert Dewar  <dewar@adacore.com>
2508             Arnaud Charlet  <charlet@adacore.com>
2509
2510         * g-dirope.ads: Minor reformatting
2511         Document that bounds of result of Base_Name match the input index
2512         positions.
2513         Add documentation on environment variable syntax for Expand_Path
2514
2515         * gnat_ugn.texi: Update documentation to include mention of -m switches
2516         Document new treatment of wide characters in max line length
2517         style check.
2518         Remove -gnatL/-gnatZ switches, no longer used.
2519         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
2520         of -gnata switch.
2521
2522         * gnat_rm.texi: Add doc for two argument form of pragma
2523         Float_Representation.
2524         Add documentation for pragma No_Strict_Aliasing
2525         Add note that explicit component clause overrides pragma Pack.
2526         Add documentation of pragma Debug_Policy
2527
2528 2005-09-01  Matthew Heaney  <heaney@adacore.com>
2529
2530         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
2531         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
2532         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
2533         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
2534         draft (Draft 13, August 2005) of Ada Amendment 1.
2535
2536 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
2537
2538         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
2539         Note that the platform-specific version of g-soccon.ads for VMS is now
2540         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
2541         really is a package spec).
2542         Replace s-taspri-linux.ads by s-taspri-posix.ads
2543         Remove references to s-mastop-x86.adb
2544
2545         * system-vxworks-xscale.ads: Removed, no longer used.
2546         * s-vxwork-xscale.ads: Removed, no longer used.
2547
2548 2005-09-01  Robert Dewar  <dewar@adacore.com>
2549
2550         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
2551         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
2552         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
2553         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
2554         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
2555         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
2556         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
2557         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
2558         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
2559         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
2560         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
2561         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
2562         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
2563         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
2564         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
2565         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
2566         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
2567         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
2568         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
2569         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
2570         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
2571
2572 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
2573
2574         PR ada/23187
2575         * adaint.c
2576         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
2577
2578 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
2579             Doug Rupp  <rupp@adacore.com>
2580
2581         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
2582         when needed.
2583         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
2584         this code in the GNAT run-time.
2585
2586         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
2587
2588         PR ada/21053
2589         * init.c (__gnat_error_handler [many]): Mark "msg" as const
2590         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
2591
2592         (__gnat_inside_elab_final_code): Moved here from
2593         Standard_Library and only defined for the compiler.
2594         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
2595         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
2596         using RTPs because directly vectored Interrupt routines are not
2597         supported on this configuration.
2598         (getpid): Do not redefine this function on VxWorks when using RTPs
2599         because this primitive is well supported by the RTP libraries.
2600         (copy_msg): Correct the code that checks for buffer overflow.
2601         Discovered during code reading.
2602
2603 2005-08-29  Olivier Hainque  <hainque@adacore.com>
2604
2605         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
2606         a library level mutable variable with an initializer, tell
2607         build_allocator to ignore the initializer's size. It may not be large
2608         enough for all the values that might be assigned to the variable later
2609         on.
2610
2611 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
2612             Eric Botcazou  <ebotcazou@adacore.com>
2613
2614         * trans.c: Protect < in error msg with quote
2615         Replace GCC_ZCX by Back_End_Exceptions.
2616         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
2617         has been sufficiently aligned in the record.
2618
2619 2005-08-15  James E. Wilson  <wilson@specifix.com>
2620
2621         * system-linux-alpha.ads: Change ia64 to alpha.
2622
2623 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
2624
2625         * decl.c, utils.c: Fix comment typos.
2626
2627 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
2628
2629         * decl.c, init.c, initialize.c: Fix comment typos.
2630
2631 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
2632
2633         Make CONSTRUCTOR use VEC to store initializers.
2634         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
2635         CONSTRUCTOR_ELTS.
2636         * trans.c (extract_values): Likewise.
2637         * utils.c (convert, remove_conversions): Likewise.
2638         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
2639         gnat_build_constructor): Likewise.
2640
2641 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
2642
2643         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
2644         DECL_SECTION_NAME.
2645         (compare_field_bitpos): Likewise.
2646
2647 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
2648
2649         * utils.c (create_var_decl): Only set DECL_COMMON on
2650         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
2651         VAR_OR_FUNCTION_DECL_P.
2652
2653 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
2654
2655         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
2656         removed.
2657
2658 2005-07-07  Pascal Obry  <obry@adacore.com>
2659
2660         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
2661         returned type on Windows.
2662
2663         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
2664         routine.
2665
2666         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
2667         exception in this case.
2668         Simplify the code as "Image (Image'Range)" = "Image".
2669
2670 2005-07-07  Vincent Celier  <celier@adacore.com>
2671
2672         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
2673         the destructor/constructor attributes for <lib>final/<lib>init.
2674
2675         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
2676
2677 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
2678
2679         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
2680         type if the parameter is not passed by copy but reference by default.
2681
2682 2005-07-07  Javier Miranda  <miranda@adacore.com>
2683
2684         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
2685         Reimplementation of the support for abstract interface types in order
2686         to leave the code more clear and easy to maintain.
2687
2688         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
2689         abstract interface types in order to leave the code clearer and easier
2690         to maintain.
2691
2692         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
2693         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
2694         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
2695         appropriate entry of the secondary dispatch table.
2696         (Make_DT): Add code to inherit the secondary dispatch tables of
2697         the ancestors.
2698
2699         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
2700         implementing both functionalities by means of a common routine, each
2701         routine has its own code.
2702
2703 2005-07-07  Javier Miranda  <miranda@adacore.com>
2704
2705         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
2706
2707         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
2708         types:
2709         --
2710           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2711         --
2712
2713         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
2714         use of tag incomplete types.
2715
2716         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
2717         give support to tagged incomplete types.
2718
2719         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
2720         expression is a discriminant reference and its type is private, as can
2721         happen within a stream operation for a mutable record, use the full
2722         view of the type to resolve the case alternatives.
2723         (Analyze_Assignment): Check wrong dereference of incomplete types.
2724
2725         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
2726         types.
2727
2728         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
2729         incomplete types.
2730
2731         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
2732         N_Incomplete_Type_Declaration nodes.
2733
2734         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
2735         Tag_Present to give support to tagged incomplete types:
2736         --
2737           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2738         --
2739
2740 2005-07-07  Olivier Hainque  <hainque@adacore.com>
2741
2742         PR ada/22301
2743
2744         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
2745         definitions for the Unwind wrappers in the compiler case.
2746
2747 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
2748             Javier Miranda  <miranda@adacore.com>
2749
2750         * par-load.adb (Load): If a child unit is loaded through a limited_with
2751         clause, each parent must be loaded as a limited unit as well.
2752
2753         * sem_ch10.adb (Previous_Withed_Unit): Better name for
2754         Check_Withed_Unit. Return true if there is a previous with_clause for
2755         this unit, whether limited or not.
2756         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
2757         the current unit.
2758         (Is_Visible_Through_Renamings): New local subprogram of install_limited
2759         _withed_unit that checks if some package installed through normal with
2760         clauses has a renaming declaration of package whose limited-view is
2761         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
2762         of the current Draft document for Ada 2005.
2763         (Analyze_Context): Complete the list of compilation units that
2764         are allowed to contain limited-with clauses. It also contains
2765         checks that were previously done by Install_Limited_Context_Clauses.
2766         This makes the code more clear and easy to maintain.
2767         (Expand_Limited_With_Clause) It is now a local subprogram of
2768         Install_Limited_Context_Clauses, and contains the code that adds
2769         the implicit limited-with clauses for parents of child units.
2770         This functionality was prevously done by Analyze_Context.
2771
2772         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
2773         incomplete type.
2774
2775         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
2776         been erroneously named in a limited-with clause of its own context.
2777         In this case the error has been previously notified by Analyze_Context.
2778
2779 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
2780
2781         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
2782         generic package that contains local declarations with the same name.
2783         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
2784
2785 2005-07-07  Bernard Banner  <banner@adacore.com>
2786
2787         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
2788         ia64 platform only on platforms that you the GCC unwind library
2789         rather than the system unwind library.
2790
2791 2005-07-07  Thomas Quinot  <quinot@adacore.com>
2792
2793         * expect.c: Minor reformatting
2794
2795 2005-07-07  Sergey Rybin  <rybin@adacore.com>
2796
2797         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
2798         --no-separate-is
2799
2800         * gnat_ugn.texi: Add description for new gnatpp option
2801         (--no-separate-is)
2802
2803 2005-07-04  Thomas Quinot  <quinot@adacore.com>
2804
2805         * g-expect-vms.adb, g-expect.ads, g-expect.adb
2806         (Get_Command_Output): New subprogram to launch a process and get its
2807         standard output as a string.
2808
2809 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
2810             Olivier Hainque  <hainque@adacore.com>
2811
2812         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
2813         fetch a code-range descriptor associated with the machine state. On
2814         failure set the machine state's PC to 0; on success, pass the
2815         descriptor to exc_virtual_unwind.
2816
2817         * init.c (Tru64 section): New function __gnat_set_code_loc.
2818
2819 2005-07-04  Vincent Celier  <celier@adacore.com>
2820
2821         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2822         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
2823         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
2824         Remove all auto-initialization code, as this is now done through the
2825         constructor mechanism.
2826
2827         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
2828         __gnat_sals_init_using_constructors): New functions.
2829
2830         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
2831         Linker_Constructor and Linker_Destructor when switch -a is used.
2832
2833         * bindusg.adb: Add line for new switch -a
2834
2835         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
2836         (Gnatbind): When switch -a is used, check if it is allowed
2837
2838         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
2839
2840 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
2841
2842         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
2843         This prevents us from hitting a limitation during the debug info
2844         generation when using stabs.
2845         (Prims_Ptr): Likewise.
2846
2847 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
2848             Ed Schonberg  <schonberg@adacore.com>
2849             Javier Miranda  <miranda@adacore.com>
2850
2851         * checks.adb (Null_Exclusion_Static_Checks): In the case of
2852         N_Object_Declaration, only perform the checks if the Object_Definition
2853         is not an Access_Definition.
2854
2855         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
2856         where the parent of an the access definition is an N_Object_Declaration
2857         when determining the Associated_Node_For_Itype and scope of an
2858         anonymous access-to-subprogram type.
2859
2860         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
2861         Corresponding_Spec on the body created for a null procedure. Add ???
2862         comment. Remove New_Copy_Tree call on body argument to
2863         Set_Body_To_Inline.
2864
2865         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
2866         discriminants, use the type of the actual as well, because the
2867         discriminants may be read by the called subprogram.
2868
2869         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
2870         access type we do not need to handle non-limited views.
2871         (Build_Derived_Record_Type): Additional check to check that in case of
2872         private types, interfaces are only allowed in private extensions.
2873
2874 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
2875
2876         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
2877         <Pragma_Linker_Destructor>: Likewise.
2878
2879         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
2880         Pragma_Linker_Destructor.
2881
2882         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
2883         ATTR_LINK_DESTRUCTOR.
2884         (static_ctors, static_dtors): New variables.
2885
2886         * misc.c (gnat_expand_body): Output current function as constructor
2887         and destructor if requested.
2888
2889         * par-prag.adb: Add processing for pragma Linker_Constructor and
2890         Linker_Destructor.
2891
2892         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
2893         extracted from Check_Interrupt_Or_Attach_Handler.
2894         (Check_Interrupt_Or_Attach_Handler): Invoke it.
2895         Implement pragma Linker_Constructor and Linker_Destructor with the
2896         help of Find_Unique_Parameterless_Procedure.
2897         Replace Name_Alias with Name_Target for pragma Linker_Alias.
2898
2899         * snames.h, snames.ads, snames.adb:
2900         Add Name_Linker_Constructor and Name_Linker_Destructor.
2901         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
2902         * snames.adb: Remove Name_Alias.
2903
2904         * trans.c: Include cgraph.h.
2905         (build_global_cdtor): New function.
2906         (Compilation_Unit_to_gnu): Build global constructor and destructor if
2907         needed.
2908         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
2909         of objects too.
2910         (addressable_p) <COMPONENT_REF>: Unconditionally test
2911         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
2912
2913         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
2914         variable if it is external.
2915
2916         (static_ctors, static_dtors): New global variables.
2917         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
2918         <ATTR_LINK_DESTRUCTOR>: Likewise.
2919         (end_subprog_body): Chain function as constructor and destructor
2920         if requested.
2921
2922         * exp_util.adb (Force_Evaluation): Unconditionally invoke
2923         Remove_Side_Effects with Variable_Ref set to true.
2924         (Remove_Side_Effects): Handle scalar types first. Use a renaming
2925         for non-scalar types even if Variable_Ref is true and for class-wide
2926         expressions.
2927
2928 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
2929
2930         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
2931         to prevent spurious warnings.
2932
2933 2005-07-04  Thomas Quinot  <quinot@adacore.com>
2934
2935         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
2936         Itypes. Itypes are really unexpected there.
2937         (Build_TypeCode_Function): Generalise special processing for Itypes to
2938         handle the case of numeric implicit base types as well as enumerated
2939         ones.
2940
2941 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
2942
2943         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
2944         controlled, indicate the expected type of the dereference that is
2945         created for the call to Deep_Finalize, to prevent spurious errors when
2946         the designated type is private and completed with a derivation from
2947         another private type.
2948
2949 2005-07-04  Vincent Celier  <celier@adacore.com>
2950
2951         * make.adb (Change_To_Object_Directory): When unable to change the
2952         current dir to the object directory, output the full path of the
2953         directory.
2954
2955 2005-07-04  Matthew Gingell  <gingell@adacore.com>
2956
2957         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
2958
2959         * indepsw-linux.adb: Replace by...
2960
2961         * indepsw-gnu.adb: ...this new file
2962
2963 2005-07-04  Vincent Celier  <celier@adacore.com>
2964
2965         * mlib-prj.adb (Auto_Initialize): New constant String
2966         (SALs_Use_Constructors): New Boolean function
2967         (Build_Library): Call gnatbind with Auto_Initialize switch when
2968         SALs_Use_Constructors returns True.
2969
2970         * mlib-tgt.ads: Minor reformatting
2971
2972         * mlib-utl.ads: Minor reformatting
2973
2974         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
2975
2976 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
2977
2978         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
2979         single protected declarations can have an interface list.
2980         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
2981         with seriously malformed entry declarations, and lead to compilation
2982         abandoned messages.
2983
2984 2005-07-04  Javier Miranda  <miranda@adacore.com>
2985
2986         * par-load.adb: Load the context items in two rounds.
2987
2988 2005-07-04  Robert Dewar  <dewar@adacore.com>
2989
2990         * scng.adb: Do not consider Mod used as an attribute to be a keyword
2991
2992 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
2993             Javier Miranda  <miranda@adacore.com>
2994
2995         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
2996         type extension needs a limited view.
2997         Remove previous restriction on private types available through the
2998         limited-view (only tagged private types were previously allowed).
2999         (Install_Withed_Unit): In the code that implements the
3000         legality rule given in AI-377, exclude a child unit with the name
3001         Standard, because it is a homonym of the Standard environment package.
3002
3003 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3004
3005         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
3006         overloaded function call, carry interpretations from the original tree
3007         to the copy.
3008
3009 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3010
3011         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
3012         types check whether some designated type is a limited view, and use
3013         the non-limited view if available.
3014
3015 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
3016
3017         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
3018         constraint of full view of a private view T1 if present, when T2 is a
3019         discriminated full view.
3020
3021 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3022
3023         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
3024         actual that is a view conversion of a bit packed array reference.
3025
3026 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3027
3028         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
3029         present before checking whether an interface type covers a synchronized
3030         type.
3031
3032 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
3033
3034         * sem_util.adb (Is_Object_Reference): An indexed or selected component
3035         whose prefix is an implicit dereference is an object reference. Removes
3036         spurious errors when compiling with -gnatc.
3037
3038 2005-07-04  Robert Dewar  <dewar@adacore.com>
3039
3040         PR ada/22039
3041
3042         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
3043
3044 2005-07-04  Matthew Gingell  <gingell@adacore.com>
3045
3046         * tracebak.c: Enable tracebacks on ia64 platforms
3047
3048 2005-07-04  Vincent Celier  <celier@adacore.com>
3049
3050         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
3051         the GNAT BIND command, as gnatbind accepts multiples ALI files with
3052         the -L or -n switches.
3053
3054 2005-07-04  Vincent Celier  <celier@adacore.com>
3055
3056         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
3057         correctly computed and the main project data is not modified while
3058         doing so.
3059         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
3060         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
3061         c++linker as this does not work on some platforms.
3062
3063 2005-07-04  Matthew Heaney  <heaney@adacore.com>
3064
3065         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
3066         was changed.
3067         * a-coinve.adb: Perform constraint checks explicitly.
3068
3069 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3070             Thomas Quinot  <quinot@adacore.com>
3071
3072         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
3073         new target gen-soccon.
3074
3075 2005-07-04  Robert Dewar  <dewar@adacore.com>
3076
3077         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
3078
3079 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3080
3081         * g-socket.ads (Check_Selector): Minor rewording of comment.
3082
3083 2005-07-04  Vincent Celier  <celier@adacore.com>
3084
3085         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
3086
3087 2005-07-04  Thomas Quinot  <quinot@adacore.com>
3088
3089         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
3090
3091 2005-07-04  Sergey Rybin  <rybin@adacore.com>
3092
3093         * gnat_ugn.texi: Add description of --eol gnatpp option
3094
3095 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3096             Thomas Quinot  <quinot@adacore.com>
3097
3098         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
3099         if the user wants all calls of a subprogram to be flagged,
3100         independently of whether they are made from within the same unit or
3101         another unit.
3102         Mention restriction for pragma Linker_Alias on some platforms.
3103         Document pragma Linker_Constructor and Linker_Destructor.
3104         Rewrite documentation of Weak_External, Linker_Section and
3105         Linker_Alias pragmas.
3106
3107 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
3108
3109         * s-stausa.ads, s-stausa.adb: New files.
3110
3111 2005-06-30  Kelley Cook
3112
3113         * all files:  Update FSF address in copyright headers.
3114         * gen-soccon.co (main): Output new FSF address in generated files.
3115
3116 2005-06-28  Paul Brook  <paul@codesourcery.com>
3117
3118         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
3119
3120 2005-06-14  Olivier Hainque  <hainque@adacore.com>
3121             Eric Botcazou  <ebotcazou@adacore.com>
3122
3123         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
3124         exc_unwind, now that we are generating proper .debug_frame output for
3125         that target.
3126
3127         * tracebak.c: Remove the mips-irix section, as we are now using the
3128         s-mastop based unwinder again.
3129         Under SPARC/Solaris, take into account the stack bias to compute the
3130         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
3131         ABI.
3132
3133 2005-06-14  Doug Rupp  <rupp@adacore.com>
3134
3135         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
3136
3137         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
3138
3139 2005-06-14  Pascal Obry  <obry@adacore.com>
3140
3141         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
3142         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
3143         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
3144         package name).
3145
3146         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
3147         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
3148         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
3149         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
3150         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
3151         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
3152         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
3153         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
3154         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
3155         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
3156         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
3157         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
3158         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
3159         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
3160         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
3161         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
3162         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
3163         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
3164         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
3165         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
3166         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
3167         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
3168         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
3169         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
3170         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
3171         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3172         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
3173         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
3174         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
3175         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
3176         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
3177         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
3178         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
3179         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
3180         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
3181         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
3182         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
3183         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
3184         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
3185         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
3186         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
3187         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
3188         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
3189         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
3190         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
3191         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
3192         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
3193         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
3194         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
3195         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
3196         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
3197         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
3198         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
3199         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
3200         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
3201         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
3202         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
3203         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
3204         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
3205         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
3206         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
3207         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
3208         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
3209         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
3210         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
3211         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
3212         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
3213         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
3214         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
3215         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
3216         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
3217         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
3218         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
3219         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
3220         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
3221         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
3222         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
3223         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
3224         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
3225         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
3226         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
3227         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
3228         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
3229         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
3230         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
3231         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
3232         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
3233         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
3234         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
3235         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
3236         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
3237         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
3238         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
3239         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
3240         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
3241         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
3242         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
3243         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
3244         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
3245         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
3246         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
3247         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
3248         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
3249         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
3250         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
3251         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
3252         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
3253         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
3254         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
3255         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
3256         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
3257         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
3258         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3259         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
3260         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
3261         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
3262         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
3263         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
3264         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
3265         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
3266         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
3267         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
3268         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
3269         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
3270         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
3271         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
3272         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
3273         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
3274         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
3275         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
3276         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
3277         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
3278         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
3279
3280 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
3281             Arnaud Charlet  <charlet@adacore.com>
3282
3283         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
3284         longer protected objects. They have been replaced by lower-level
3285         suspension objects made up by a mutex and a condition variable (or
3286         their equivalent given a particular OS) plus some internal data to
3287         reflect the state of the suspension object.
3288         (Initialize, Finalize): Add this initialization procedure for
3289         Suspension_Object, which is a controlled type.
3290         (Finalize): Add the finalization procedure for Suspension_Object,
3291         which is a controlled type.
3292
3293         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
3294         Ada.Synchronous_Task_Control because there is no longer a need for a
3295         VxWorks specific version of this package. Target dependencies
3296         has been moved to System.Task_Primitives.Operations.
3297
3298         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
3299         longer needed.
3300         (InitializeCriticalSection, EnterCriticalSection,
3301         LeaveCriticalSection, DeleteCriticalSection): Replace the type
3302         pCriticalSection by an anonymous access type so that we avoid problems
3303         of accessibility to local objects.
3304
3305         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
3306         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
3307         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
3308         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
3309         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
3310         set the environment task mask here.
3311         (Current_State): Add this function that returns the state of the
3312         suspension object.
3313         (Set_False): Add this procedure that sets the state of the suspension
3314         object to False.
3315         (Set_True): Add this procedure that sets the state of the suspension
3316         object to True, releasing the task that was suspended, if any.
3317         (Suspend_Until_True): Add this procedure that blocks the calling task
3318         until the state of the object is True. Program_Error is raised if
3319         another task is already waiting on that suspension object.
3320         (Initialize): Add this procedure for initializing the suspension
3321         object. It initializes the mutex and the condition variable which are
3322         used for synchronization and queuing, and it sets the internal state
3323         to False.
3324         (Finalize): Add this procedure for finalizing the suspension object,
3325         destroying the mutex and the condition variable.
3326
3327         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
3328         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
3329         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
3330         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
3331         which provides a low-level abstraction (using operating system
3332         primitives) for Ada.Synchronous_Task_Control.
3333         This object is made up by a mutex (for ensuring mutual exclusion), a
3334         condition variable (for queuing threads until the condition is
3335         signaled), a Boolean (State) indicating whether the object is open,
3336         and a Boolean (Waiting) reflecting whether there is a task already
3337         suspended on this object.
3338
3339         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
3340         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
3341         s-intman-vms.ads, s-intman-mingw.adb,
3342         (Initialize_Interrupts): Removed, no longer used.
3343
3344         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
3345         (Setup_Interrupt_Mask): New procedure.
3346
3347         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
3348
3349         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
3350
3351         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
3352         this is no longer done in the body of s-taprop
3353         (Server_Task): Explicitely test for Pending_Action in case
3354         System.Parameters.No_Abort is True.
3355
3356         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
3357         is no longer done in the body of s-taprop
3358
3359 2005-06-14  Robert Dewar  <dewar@adacore.com>
3360
3361         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
3362         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
3363         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
3364         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
3365         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
3366         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
3367         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
3368         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
3369         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
3370         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
3371         system-linux-hppa.ads, system-vms_64.ads,
3372         system-vxworks-alpha.ads: Minor comment update for
3373         AI-362 (unit is Pure).
3374
3375         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
3376         Add pragma Pure_05 for AI-362
3377         Make remaining conversion functions obsolescent in Ada 95
3378
3379         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
3380         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
3381         Add entries for a-wichun and a-zchuni
3382         Add a-widcha a-zchara for AI-395
3383         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
3384
3385         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
3386         Add entries for a-wichun.o and a-zchuni.o
3387         Entries for a-widcha.o and a-zchara.o
3388         Add entry for a-chacon.o
3389
3390         * a-ztenau.adb: Add with of Ada.Characters.Conversions
3391
3392         * a-chacon.ads, a-chacon.adb: New files.
3393
3394         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
3395         categorization violations.
3396
3397         * a-strmap.ads: Add pragma Pure_05 for AI-362
3398         * a-strmap.ads: Add note on implicit categorization for AI-362
3399
3400         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
3401
3402         * par-prag.adb: Dummy entry for pragma Persistent_BSS
3403         Set Ada_Version_Explicit, for implementation of AI-362
3404         Add processing for pragma Pure_05 and Preelaborate_05
3405         Add entry for Assertion_Policy pragma
3406
3407         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
3408         when needed for proper processing of categorization stuff
3409
3410         * sem_cat.adb:
3411         For several cases, make errors in preealborate units warnings,
3412         instead of errors, if GNAT_Mode is set. For AI-362.
3413
3414         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
3415         preelaborate unit is now warning if in GNAT mode
3416
3417         * s-stoele.ads: Document AI-362 for pragma preelaborate
3418
3419 2005-06-14  Doug Rupp  <rupp@adacore.com>
3420
3421         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
3422         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
3423         Default_Exception_Msg_Max_Length: new parameter.
3424
3425         * a-except.ads: (Exception_Msg_Max_Length): Set to
3426         System.Parameters.Default_Exception_Msg_Max_Length
3427         Add pragma Preelaborate_05 for AI-362
3428         Add warnings off to allow categorization violations for AI-362
3429
3430 2005-06-14  Vincent Celier  <celier@adacore.com>
3431
3432         * gnatsym.adb: Adapt to modification of package Symbols: procedure
3433         Process is now in package Processing.
3434
3435         * symbols.ads, symbols.adb:
3436         (Processing): New package, containing procedure Process
3437
3438         * symbols-vms-alpha.adb:
3439         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
3440
3441         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
3442         symbols-processing-vms-ia64.adb: New files.
3443
3444 2005-06-14  Pascal Obry  <obry@adacore.com>
3445
3446         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
3447         implementation. This new version generates the proper DllMain routine
3448         to initialize the SAL. The DllMain is generated in Ada and compiled
3449         before being added as option to the library build command.
3450
3451 2005-06-14  Doug Rupp  <rupp@adacore.com>
3452             Pascal Obry  <obry@adacore.com>
3453
3454         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
3455         call to decc$translate_vms.
3456         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
3457         need to remove those quotes before catenating the filename.
3458         (__gnat_locate_exec_on_path): improvements to the Win32 section:
3459         * avoid allocating the memory twice for better efficiency;
3460         * allocate 32K buffer for environment expansion as suggested by MSDN;
3461         * prepend ".;" to the path so that current directory is searched too.
3462
3463 2005-06-14  Robert Dewar  <dewar@adacore.com>
3464
3465         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
3466         instead of raising CE (AI-241)
3467         Add warnings off to allow categorization violations for AI-362
3468
3469 2005-06-14  Robert Dewar  <dewar@adacore.com>
3470
3471         * ali-util.adb, gnatbind.adb: Remove references to
3472         Force_RM_Elaboration_Order.
3473
3474         * switch-b.adb: Remove recognition of -f switch
3475
3476 2005-06-14  Pascal Obry  <obry@adacore.com>
3477
3478         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
3479         implementation which is slightly more efficient.
3480
3481 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
3482             Javier Miranda  <miranda@adacore.com>
3483             Ed Schonberg  <schonberg@adacore.com>
3484             Hristian Kirtchev  <kirtchev@adacore.com>
3485
3486         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
3487         allocator's designated type is a class-wide type, and compiling for
3488         Ada 2005, emit a run-time check that the accessibility level of the
3489         type given in the allocator's expression is not deeper than the level
3490         of the allocator's access type.
3491
3492         (Tagged_Membership): Modified to gives support to abstract interface
3493         types.
3494
3495         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
3496         Access_Level.
3497         (Descendant_Tag): New predefined function
3498         (Is_Descendant_At_Same_Level): New predefined function
3499         (Get_Access_Level): New private function
3500         (Set_Access_Level): New private procedure
3501         (IW_Membership): New function. Given the tag of an object and the tag
3502         associated with an interface, evaluate if the object implements the
3503         interface.
3504         (Register_Interface_Tag): New procedure used to initialize the table of
3505         interfaces used by the IW_Membership function.
3506         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
3507         of the dispatch table.
3508         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
3509         table of interfaces of the parent.
3510         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
3511         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
3512         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
3513         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
3514         Ada 2005 semantics for the new predefined function.
3515
3516         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
3517         call to Descendant_Tag rather than Internal_Tag.
3518         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
3519         the accessibility level of the attribute's Item parameter is not deeper
3520         than the level of the attribute's prefix type. Tag_Error is raised if
3521         the check fails. The check is only emitted for Ada_05.
3522         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
3523         requested stream attribute, use it.
3524         (Expand_N_Attribute_Reference): If the designated type is an interface
3525         then rewrite the referenced object as a conversion to force the
3526         displacement of the pointer to the secondary dispatch table.
3527         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
3528         is a dereference of an object with a constrained partial view.
3529
3530         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
3531         type is a class-wide type, emit a run-time check that the accessibility
3532         level of the returned object is not deeper than the level of the
3533         function's master (only when compiling for Ada 2005).
3534
3535         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
3536         Action_Nb_Arg): Add entries for new Get_Access_Level and
3537         Set_Access_Level routines in these tables.
3538         (Make_DT): Generate a call to set the accessibility level of the
3539         tagged type in its TSD.
3540         (Make_DT): Code cleanup. The functionality of generating all the
3541         secondary dispatch tables has been moved to freeze_record_type.
3542         (Make_Abstract_Interface_DT): Minor code cleanup.
3543         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
3544         this subprogram implements a new algorithm that provides the
3545         same functionality and it is more clear in case of primitives
3546         associated with abstract interfaces.
3547         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
3548         clean up, the functionality of this subprogram is now provided
3549         by Set_All_DT_Position.
3550         (Write_DT): New subprogram: a debugging procedure designed to be called
3551         within gdb to display the dispatch tables associated with a tagged
3552         type.
3553         (Collect_All_Interfaces): New subprogram that collects the whole list
3554         of interfaces that are directly or indirectly implemented by a tagged
3555         type.
3556         (Default_Prim_Op_Position): New subprogram that returns the fixed
3557         position in the dispatch table of the default primitive operations.
3558         (Expand_Interface_Actuals): New subprogram to generate code that
3559         displaces all the actuals corresponding to class-wide interfaces to
3560         reference the interface tag of the actual object.
3561         (Expand_Interface_Conversion): New subprogram. Reference the base of
3562         the object to give access to the interface tag associated with the
3563         secondary dispatch table.
3564         (Expand_Interface_Thunk): New subprogram that generates the code of the
3565         thunk. This is required for compatibility with the C+ ABI.
3566         (Make_Abstract_Interface_DT): New subprogram that generate the
3567         declarations for the secondary dispatch tables associated with an
3568         abstract interface.
3569         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
3570         attribute for each primitive operation covering interface subprograms
3571         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
3572         These subprograms were upgraded to give support to abstract interfaces
3573
3574         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
3575         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
3576         RE_Set_Access_Level.
3577         (RE_Unit_Table): Add entries for new Ada.Tags operations.
3578         Add support to call the followig new run-time subprograms:
3579         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
3580
3581         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
3582         match its full declaration when both have an access definition with
3583         statically matching designated subtypes.
3584         (Analyze_Component_Declaration): Delete commented out code that was
3585         incorrectly setting the scope of an anonymous access component's type.
3586         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
3587         an access discriminant when the containing type is nonlimited.
3588         (Make_Incomplete_Type_Declaration): Create an incomplete type
3589         declaration for a record type that includes self-referential access
3590         components.
3591         (Check_Anonymous_Access_Types): Before full analysis of a record type
3592         declaration, create anonymous access types for each self-referential
3593         access component.
3594         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
3595         an access component in this context is a Local_Anonymous_Access, for
3596         proper accessibility checks.
3597         (Access_Definition): Set properly the scope of the anonymous access type
3598         created for a stand-alone access object.
3599         (Find_Type_Of_Object): An object declaration may be given with an access
3600         definition.
3601         (Complete_Subprograms_Derivation): New subprogram used to complete
3602         type derivation of private tagged types implementing interfaces.
3603         In this case some interface primitives may have been overriden
3604         with the partial-view and, instead of re-calculating them, they
3605         are included in the list of primitive operations of the full-view.
3606         (Build_Derived_Record_Type): Modified to give support to private
3607         types implemening interfaces.
3608         (Access_Definition): Reject ALL on anonymous access types.
3609         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
3610         type derivation to occur at a deeper accessibility level than the
3611         parent type.
3612         For the case of derivation within a generic body however, disallow the
3613         derivation if the derived type has an ancestor that is a formal type
3614         declared in the formal part of an enclosing generic.
3615         (Analyze_Object_Declaration): For protected objects, remove the check
3616         that they cannot contain interrupt handlers if not declared at library
3617         level.
3618         (Add_Interface_Tag_Components): New subprogram to add the tag components
3619         corresponding to all the abstract interface types implemented by a
3620         record type or a derived record type.
3621         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
3622         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
3623         Process_Full_View, Record_Type_Declaration): Modified to give
3624         support to abstract interface types
3625         (Collect_Interfaces): New subprogram that collects the list of
3626         interfaces that are not already implemented by the ancestors
3627         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
3628         when partial view has no discriminants and full view has defaults.
3629         (Constrain_Access): Reject a constraint on a general access type
3630         if the discriminants of the designated type have defaults.
3631         (Access_Subprogram_Declaration): Associate the Itype node with the inner
3632         full-type declaration or subprogram spec. This is required to handle
3633         nested anonymous declarations.
3634         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
3635         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
3636         Process_Full_View, Record_Type_Declaration): Modified to give
3637         support to abstract interface types
3638         (Derive_Subprograms): Addition of a new formal to indicate if
3639         we are in the case of an abstact-interface derivation
3640         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
3641         to the specification because it is requied to analyze all the
3642         identifiers found in a list of interfaces
3643
3644         * debug.adb: Complete documentation of flag "-gnatdZ"
3645
3646         * exp_ch3.adb: Implement config version of persistent_bss pragma
3647         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
3648         testing for TSS presence to properly enforce visibility rules.
3649         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
3650         Make_Abstract_Interfaces_DT to generate the secondary tables
3651         associated with abstract interfaces.
3652         (Build_Init_Procedure): Modified to initialize all the tags
3653         corresponding.
3654         (Component_Needs_Simple_Initialization): Similar to other tags,
3655         interface tags do not need initialization.
3656         (Freeze_Record_Type): Modified to give support to abstract interface
3657         types.
3658         (Expand_N_Object_Declaration): Do not generate an initialization for
3659         a scalar temporary marked as internal.
3660
3661         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
3662         in-out parameter that is a component in an initialization procedure,
3663         whose constraint might depend on discriminants, and that may be
3664         misaligned because of packing or representation clauses.
3665         (Is_Legal_Copy): New predicate to determine whether a possibly
3666         misaligned in-out actual can actually be passed by copy/return. This
3667         is an error in case the type is by_reference, and a warning if this is
3668         the consequence of a DEC import pragma on the subprogram.
3669         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
3670         interface types
3671         (Expand_Inlined_Call): Mark temporary generated for the return value as
3672         internal, so that no useless scalar normalization is generated for it.
3673         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
3674         null procedure can always be inlined.
3675         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
3676         procedure, generate an explicit empty body for it.
3677
3678         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
3679         Given a type implementing an interface, returns the corresponding
3680         access_disp_table value.
3681         (Find_Interface_Tag): New subprogram. Given a type implementing an
3682         interface, returns the record component containing the tag of the
3683         interface.
3684         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
3685         previous ones that return the corresponding tag and access_disp_table
3686         entities.
3687         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
3688         is a predefined primitive operation.
3689         (Expand_Subtype_From_Expr): If the expression is a selected component
3690         within an initialization procedure, compute its actual subtype, because
3691         the component may depend on the discriminants of the enclosing record.
3692
3693         * i-cpp.ads, i-cpp.adb:
3694         This package has been left available for compatibility with previous
3695         versions of the frontend. As part of the new layout this is now a
3696         dummy package that uses declarations available at a-tags.ads
3697
3698         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
3699         "constant access" and "aliased [constant] access" when not compiling
3700         with -gnat05.
3701         Suppress Ada 2005 keyword warning if -gnatwY used
3702         (P_Identifier_Declarations): Add support for object declarations with
3703         access definitions.
3704         (Private_Extension_Declaration): Complete the documentation
3705         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
3706         attribute in case of private extension declaration
3707         (P_Type_Declaration): Mark as "abstract" the type declarations
3708         corresponding with protected, synchronized and task interfaces
3709         (P_Declarative_Items): "not" and "overriding" are overriding indicators
3710         for a subprogram or instance declaration.
3711
3712         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
3713         instantiation that is a dispatching operation has controlling access
3714         parameters that are null excluding.
3715         Save and restore Ada_Version_Explicit, for implementation of AI-362
3716         (Validate_Derived_Type_Instance): Add check for abstract interface
3717         types.
3718         (Analyze_Formal_Package): Establish Instantiation source for the copy of
3719         the generic that is created to represent the formal package.
3720         (Analyze_Package_Instantiation): Instantiate body immediately if the
3721         package is a predefined unit that contains inlined subprograms, and
3722         we are compiling for a Configurable_Run_Time.
3723         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
3724         If the program has a null default, generate an empty body for it.
3725
3726         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
3727         error message condition, null procedures are correctly detected now.
3728         (New_Overloaded_Entity): Bypass trivial overriding indicator check
3729         for subprograms in the context of protected types. Instead, the
3730         indicator is examined in Sem_Ch9 while analysing the subprogram
3731         declaration.
3732         (Check_Overriding_Indicator): Check consistency of overriding indicator
3733         on subprogram stubs as well.
3734         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
3735         the library level.
3736         (Analize_Subprogram_Specification): When analyzing a subprogram in which
3737         the type of the first formal is a concurrent type, replace this type
3738         by the corresponding record type.
3739         (Analyze_Subprogram_Body): Undo the previous work.
3740         (Analyze_Procedure_Call): If the call has the form Object.Op, the
3741         analysis of the prefix ends up analyzing the call itself, after which
3742         we are done.
3743         (Has_Interface_Formals): New subprogram subsidiary to analyze
3744         subprogram_specification that returns true if some non
3745         class-wide interface subprogram is found
3746         (New_Overloaded_Entity): Modified to give support to abstract
3747         interface types
3748         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
3749         access to subprograms must be recursive.
3750         (Is_Unchecked_Conversion): Improve the test that recognizes
3751         instantiations of Unchecked_Conversion, and allows them in bodies that
3752         are to be inlined by the front-end. When the body comes from an
3753         instantiation, a reference to Unchecked_Conversion will be an
3754         Expanded_Name, even though the body has not been analyzed yet.
3755         Replace Is_Overriding and Not_Overriding in subprogram_indication with
3756         Must_Override and Must_Not_Override, to better express intent of AI.
3757         (Analyze_Subprogram_Body): If an overriding indicator is given, check
3758         that it is consistent with the overrinding status of the subprogram
3759         at this point.
3760         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
3761         always inlined.
3762         If the subprogram is a null procedure, indicate that it does not need
3763         a completion.
3764
3765         * sem_disp.adb (Check_Controlling_Type): Give support to entities
3766         available through limited-with clauses.
3767         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
3768         allowed as the last primitive of a tagged type if it has no previous
3769         spec.
3770         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
3771         to give support to abstract interface types
3772
3773         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
3774         in the case where the target type is an anonymous access type of an
3775         object or component (that is, when Is_Local_Anonymous_Access is true).
3776         Prevent the special checks for conversions of access discriminants in
3777         the case where the discriminant belongs to a nonlimited type, since
3778         such discriminants have their accessibility level defined in the same
3779         way as a normal component of an anonymous access type.
3780         (Resolve_Allocator): When an allocator's designated type is a class-wide
3781         type, check that the accessibility level of type given in the
3782         allocator's expression or subtype indication is not statically deeper
3783         than the level of the allocator's access type.
3784         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
3785         name in a discriminant constraint of a record component.
3786         (Resolve_Explicit_Dereference): Do not check whether the type is
3787         incomplete when the dereference is a use of an access discriminant in
3788         an initialization procedure.
3789         (Resolve_Type_Conversion): Handle conversions to abstract interface
3790         types.
3791         (Valid_Tagged_Conversion): The conversion of a tagged type to an
3792         abstract interface type is always valid.
3793         (Valid_Conversion): Modified to give support to abstract interface types
3794         (Resolve_Actuals): Enable full error reporting on view conversions
3795         between unrelated by_reference array types.
3796         The rule for view conversions of arrays with aliased components is
3797         weakened in Ada 2005.
3798         Call to obsolescent subprogram is now considered to be a violation of
3799         pragma Restrictions (No_Obsolescent_Features).
3800         (Check_Direct_Boolean_Operator): If the boolean operation has been
3801         constant-folded, there is nothing to check.
3802         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
3803         check on possible violation of restriction No_Direct_Boolean_Operators
3804         until after expansion of operands, to prevent spurious errors when
3805         operation is constant-folded.
3806
3807         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
3808         Has_Compatible_Type): Modified to give support to abstract interface
3809         types.
3810         (Interface_Present_In_Ancestor): New function to theck if some ancestor
3811         of a given type implements a given interface
3812
3813         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
3814         prefix is a parameterless function that returns an access_to_procedure.
3815         (Transform_Object_Operation): Handle properly function calls of the
3816         form Obj.Op (X), which prior to analysis appear as indexed components.
3817         (Analyze_One_Call): Complete the error notification to help new Ada
3818         2005 users.
3819         (Analyze_Allocator): For an allocator without an initial value, where
3820         the designated type has a constrained partial view, a discriminant
3821         constraint is illegal.
3822
3823 2005-06-14  Robert Dewar  <dewar@adacore.com>
3824
3825         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
3826         do with treatment of Set_Col when positioned at end of line character.
3827
3828 2005-06-14  Robert Dewar  <dewar@adacore.com>
3829
3830         * atree.adb: (Elist*): Protect against uninitialized field
3831
3832 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
3833
3834         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
3835         for an attribute reference that returns an access type.
3836         (Apply_Discriminant_Check): No need for check if (designated) type has
3837         constrained partial view.
3838
3839         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
3840         both bound checks, rather than a conjunction.
3841         (Insert_Valid_Check): If the expression is an actual that is an indexed
3842         component of a bit-packed array, force expansion of the packed element
3843         reference, because it is specifically inhibited elsewhere.
3844
3845 2005-06-14  Vincent Celier  <celier@adacore.com>
3846
3847         * clean.adb (Clean_Project): Correctly delete executable specified as
3848         absolute path names.
3849
3850         * make.adb (Gnatmake): Allow relative executable path names with
3851         directory information even when project files are used.
3852         (Change_To_Object_Directory): Fail gracefully when unable to change
3853         current working directory to object directory of a project.
3854         (Gnatmake): Remove exception handler that could no longer be exercized
3855         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
3856         may be deallocated by Normalize_Arguments.
3857         (Collect_Arguments): Eliminate empty arguments
3858
3859         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
3860         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
3861         (Check_Project): Return False when Project is No_Project. Return True
3862         when All_Projects is True.
3863         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
3864         All_Projects to True.
3865         Minor reformatting
3866
3867 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
3868             Javier Miranda  <miranda@adacore.com>
3869             Thomas Quinot  <quinot@adacore.com>
3870             Robert Dewar  <dewar@adacore.com>
3871             Hristian Kirtchev  <kirtchev@adacore.com>
3872             Gary Dismukes  <dismukes@adacore.com>
3873
3874         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
3875         anonymous access types, to indicate that the accessibility level of
3876         the type is determined by that of the enclosing declaration.
3877         (Has_Persistent_BSS): New flag
3878         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
3879         of this attribute with functions.
3880         (Is_Primitive_Wrapper): Remove the barrier.
3881         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
3882         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
3883         New subprograms.
3884         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
3885         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
3886         New subprograms.
3887         (Is_Pure_Unit_Access_Type): New flag
3888         (Abstract_Interfaces): Complete the assertion to cover all usages.
3889         (Set_Is_Interface): Complete the assertion to cover all usages.
3890         (Is_Primitive_Wrapper): New attribute.
3891         (Is_Obsolescent): Now applies to all entities (though it is only set
3892         for subprograms currently)
3893         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
3894         which solves various problems concerning access subtypes.
3895         (Has_Persistent_BSS): New flag
3896         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
3897         Remove these subprograms because this attribute is currently
3898         not used.
3899         New entity flags:
3900         Has_Specified_Stream_Input (Flag190)
3901         Has_Specified_Stream_Output (Flag191)
3902         Has_Specified_Stream_Read (Flag192)
3903         Has_Specified_Stream_Write (Flag193)
3904         Present in all type and subtype entities. Set for a given view if the
3905         corresponding stream-oriented attribute has been defined by an
3906         attribute definition clause. When such a clause occurs, a TSS is set
3907         on the underlying full view; the flags are used to track visibility of
3908         the attribute definition clause for partial or incomplete views.
3909         (Is_Pure_Unit_Access_Type): New flag
3910         Clarify use of Is_Internal.
3911         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
3912         internally generated to wrap the invocation of tasks and protected
3913         types that implement interfaces.
3914         (Implementation_Base_Type): Documentation correction
3915         (Is_Obsolescent): Now applies to all entities (though it is only set
3916         for subprograms currently)
3917         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
3918         which solves various problems concerning access subtypes.
3919
3920         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
3921         for examined parameters. Identify unequal parameter list lengths as
3922         non-conformant parameters.
3923         (Overriding_Possible): Do not check for "All" qualifier in declaration
3924         of controlling access parameter, following prescription of AI-404.
3925         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
3926         that build the procedure body that wraps an entry invocation
3927         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
3928         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
3929         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
3930         give support to abstract interface types
3931
3932         * freeze.adb (Freeze_Entity): Issue error message if
3933         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
3934         type has no storage pool (Ada 2005) AI-366.
3935         Also modified to give support to abstract interface types
3936         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
3937         Inline_Always pragma.
3938
3939         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
3940         now begin an entry declaration.
3941         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
3942         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
3943         a subprogram declaration preceded by an overriding indicator.
3944         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
3945         declarations or subprogram declarations preceded by reserved words
3946         "not" or "overriding".
3947         (P_Entry_Declaration): Update comment. Parse and check overriding
3948         indicator, set semantic flags of entry declarations.
3949         (P_Task): New error message in case of private applied
3950         to a task type declaration.
3951         (P_Protected): New error message in case of private applied
3952         to a task type declaration.
3953
3954         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
3955         in which the full view of a type implementing an interface is a
3956         concurrent type.
3957         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
3958         Declare_Inherited_Private_Subprograms): If an explicit operation
3959         overrides an operation that is inherited in the private part, mark the
3960         explicit one as overriding, to enable overriding indicator checks.
3961         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
3962         full view to partial view, to simplify handling in back-end.
3963
3964         * sprint.adb: Print interface lists where needed: derived types,
3965         protected types, task types.
3966         output "is null" for null procedures. Part of implementation of
3967
3968         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
3969         relaxation of rules for access types in pure, shared passive partitions.
3970
3971         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
3972         first read discriminants into temporary objects, performing checks on
3973         the read values, then possibly performing discriminant checks on the
3974         actual (if it is constrained), and only finally reading the components
3975         into a constrained temporary object.
3976         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
3977         case of reading discriminants of a mutable record type to recognize
3978         the new form of the code generated by
3979         Build_Mutable_Record_Read_Procedure.
3980
3981         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
3982         of a simple call to Make_TSS_Name.
3983         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
3984         buffer, in order for Is_TSS to work correctly on local TSS names.
3985
3986         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
3987         Is_Local_Anonymous_Access to check legaliy of attributes in the
3988         context of  access components and stand-alone access objects.
3989         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
3990         treated as available for a limited private type if there is an
3991         attribute_definition_clause that applies to its full view, but not in
3992         other cases where the attribute is available for the full view
3993         (specifically, the sole fact that the full view is non-limited does not
3994         make the attribute available for the partial view).
3995         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
3996         non-overloaded intrinsic subprogram.
3997         (Check_Stream_Attribute): Reject an attribute reference for an
3998         unavailable stream attribute even if the prefix is not a limited type
3999         (case of a 'Input attribute reference for an abstract, non-classwide
4000         type)
4001         (Stream_Attribute_Available): New function to determine whether a stream
4002         attribute is available at a place.
4003         (Check_Attribute): Use Stream_Attribute_Available instead of just
4004         testing for TSS presence on the implementation base type.
4005         (Analyze_Attribute): Modified to give support to task interfaces.
4006         (Analyze_Access_Attribute): Add error check for use of an Access (or
4007         Unrestricted_Access) attribute with a subprogram marked as
4008         Inline_Always.
4009         (Analyze_Attribute, case Attribute_Address): Add error check for use of
4010         an Address attribute with a subprogram marked as Inline_Always.
4011         Update Eval_Attribute to handle new value of Width from AI-395
4012
4013         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
4014         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
4015         Factor common code across the stream-oriented attribute circcuits into
4016         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
4017         processing is functionally identical to the previous duplicated one,
4018         except that an expression that denotes an abstract subprogram will now
4019         be rejected, as mandated by AI-195 item 5.
4020
4021         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
4022         Is_Local_Anonymous_Access to apply accessibility checks to access
4023         components and stand-alone access objects.
4024         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
4025         elsewhere.
4026         (Is_Potentially_Persistent_Type): New function
4027         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
4028         a heap-object whose type has a constrained partial view, the object is
4029         unconstrained and the component may depend on a discriminant, making its
4030         renaming illegal.
4031
4032         * sinfo.ads, sinfo.adb
4033         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
4034         (Must_Override): Flag applicable to N_Entry_Declaration.
4035         Indicate that interface_list can appear in single task and single
4036         protected declarations.
4037         Replace Is_Overriding and Not_Overriding with Must_Override and
4038         Must_Not_Override, to better express intent of AI.
4039         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
4040         of an overriding indicator in a subprogram or instance.
4041         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
4042         Add the overriding indicator [[not] overriding] construct to the
4043         following grammar productions:
4044          ENTRY_DECLARATION
4045          GENERIC_INSTANTIATION
4046          SUBPROGRAM_SPECIFICATION
4047
4048         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
4049         can start with an overriding indicator.
4050
4051         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
4052         flags accordingly on subrogram specifications or instances.
4053
4054         * sem_ch8.adb:
4055         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
4056         overriding_indicator, if present, is consistent with status of spec.
4057         Improve error message for null-excluding checks on controlling access
4058         parameters.
4059         (Check_In_Previous_With_Clause): Protect the frontend against
4060         previously reported critical errors in the context clauses.
4061         Save and restore Ada_Version_Explicit, for implementation of AI-362
4062         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
4063         operation verify that controlling formals of the renamed entity that
4064         are access parameters are explicitly non-null.
4065         (Find_Expanded_Name): Improve error message when prefix is an illegal
4066         reference to a private child unit.
4067
4068         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
4069         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
4070         Rewrite to correspond to new wide character names in AI-395
4071
4072         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
4073         default procedures.
4074
4075 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4076             Robert Dewar  <dewar@adacore.com>
4077
4078         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
4079         code, not on the bodies of predefined operations, to cut down on
4080         spurious noise.
4081
4082 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4083
4084         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
4085         be expanded in place. The size computation does not require a
4086         subtraction, which would raise an exception on a compiler built with
4087         assertions when the upper bound is Integer'first.
4088         (Flatten): For an array of composite components, take into account the
4089         size of the components to determine whether it is safe to expand the
4090         array into a purely positional representation.
4091
4092 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4093
4094         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
4095         denoting a formal parameter into account.
4096
4097 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4098
4099         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
4100         the entry_call alternative of a conditional entry call, wrap the
4101         conditional entry call itself.
4102
4103 2005-06-14  Nicolas Setton  <setton@adacore.com>
4104             Ed Schonberg  <schonberg@adacore.com>
4105
4106         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
4107         the "simple_choice" member in a variant record, in accordance with the
4108         description in the package spec: the information output for a constant
4109         should be "S number", not "SS number".
4110         (Get_Encoded_Name): Return at once if not generating code. Avoids name
4111         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
4112
4113 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4114
4115         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
4116         RACW without any primitives, do not generate the if statement for
4117         dispatching by name in the PolyORB/DSA case, as it would be malformed
4118         (it would have an Elsif_Parts list that is not No_List, but with a
4119         length of 0).
4120
4121 2005-06-14  Robert Dewar  <dewar@adacore.com>
4122
4123         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
4124
4125 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
4126
4127         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
4128         can determine whether pragma Suppress_Exception_Locations is in effect.
4129
4130         * utils2.c (build_call_raise): Do not pass the file name to the
4131         exception handler if pragma Suppress_Exception_Locations is in effect.
4132         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
4133
4134 2005-06-14  Emmanuel Briot  <briot@adacore.com>
4135
4136         * g-debpoo.adb (Deallocate, Dereference): Improve output.
4137
4138 2005-06-14  Nicolas Roche  <roche@adacore.com>
4139
4140         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
4141         to ""
4142         (Next_Level): Fix minor bug in handling of ../dir case
4143         (Read): Add dir separator to Directory name so that "" is understood as
4144          "/"
4145
4146 2005-06-14  Pascal Obry  <obry@adacore.com>
4147
4148         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
4149         releasing the items.
4150
4151 2005-06-14  Vincent Celier  <celier@adacore.com>
4152             Cyrille Comar  <comar@adacore.com>
4153
4154         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
4155         with output file descriptor and with output file name.
4156         (Dup, Dup2): Now global procedures as they are used by two subprograms
4157         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
4158
4159 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4160
4161         PR ada/6717
4162
4163         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
4164         broadcast address.
4165         (Create_Selector): Bind listening socket used to create the signalling
4166         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
4167         Set listen backlog to 1 to ensure that we detect socket theft by a
4168         failure of our own connect(2) call.
4169         (Check_Selector): Improve documentation of the selector mechanism.
4170         (Broadcast_Inet_Addr): New constant.
4171
4172 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
4173
4174         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
4175         type which turns out to be an incomplete and incorrect fix.
4176         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
4177         of the type is declared in a record (for determination of insertion
4178         type).
4179         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
4180         a private type and ensure that the primary entity is used for the type
4181         of the newly created function's V formal by taking the Etype of the
4182         view.
4183
4184 2005-06-14  Javier Miranda  <miranda@adacore.com>
4185             Jose Ruiz  <ruiz@adacore.com>
4186             Robert Dewar  <dewar@adacore.com>
4187             Ed Schonberg  <schonberg@adacore.com>
4188
4189         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
4190         that indicates if we are parsing a compilation unit found in a
4191         limited-with clause.
4192         It is use to avoid the circularity check.
4193
4194         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
4195         we are parsing a compilation unit found in a limited-with clause. This
4196         is use to avoid the circularity check.
4197
4198         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
4199         unit as a consequence of parsing a limited-with clause. This is used
4200         to avoid the circularity check.
4201
4202         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
4203         (Analyze_Context): Limited-with clauses are now allowed
4204         in more compilation units.
4205         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
4206         againts previously reported critical errors in context clauses
4207         (Install_Limited_Withed_Unit): Code cleanup plus static detection
4208         of two further errors: renamed subprograms and renamed packages
4209         are not allowed in limited with clauses.
4210         (Install_Siblings): Do not install private_with_clauses on the package
4211         declaration for a non-private child unit.
4212         (Re_Install_Parents): When a parent of the subunit is reinstalled,
4213         reset visibility of child units properly.
4214         (Install_Withed_Unit): When a child unit appears in a with_clause of its
4215         parent, it is immediately visible.
4216
4217 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4218             Emmanuel Briot  <briot@adacore.com>
4219
4220         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
4221         declared within an inlined body as referenced, to prevent spurious
4222         warnings.
4223         (Output_One_Ref): If an entity renames an array component, indicate in
4224         the ALI file that this aliases (renames) the array. Capture as well
4225         function renamings that rename predefined operations.
4226         Add information about generic parent for package and subprogram
4227         instances.
4228         (Get_Type_Reference): For a subtype that is the renaming of an actual in
4229         an instantiation, use the first_subtype to ensure that we don't generate
4230         cross-reference information for internal types.
4231         For objects and parameters of a generic private type, retain the '*'
4232         indicator to distinguish such an entity from its type.
4233
4234         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
4235         to store information about instantiated entities.
4236
4237         * ali.adb (Scan_ALI): Add support for parsing the reference to the
4238         generic parent
4239
4240         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
4241         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
4242         information.
4243
4244 2005-06-10  Doug Rupp  <rupp@adacore.com>
4245             Arnaud Charlet  <charlet@adacore.com>
4246             Olivier Hainque  <hainque@adacore.com>
4247             Jose Ruiz  <ruiz@adacore.com>
4248
4249         * Make-lang.in: Add initialize.o when needed.
4250         Remove obsolete references to RT_FLAGS.
4251         Add missing dependencies for sdefault.o
4252
4253         * initialize.c: New file.
4254
4255         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
4256         [VMS] cond_signal_table: Fix problem in declaration.
4257         [VMS] __gnat_error_handler: rewrite.
4258         Move all __gnat_initialize() routines to initialize.c
4259         Specialize the former "hpux" section to "hppa hpux", as this is what the
4260         section really is here for and we now have other hpux ports that need
4261         different contents.
4262         (__gnat_adjust_context_for_raise) i386-linux: First version of this
4263         function for this target. Adjust PC by one in the machine context. This
4264         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
4265         it is more reliable to do that in the signal handler itself.
4266         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
4267         flags, so that the handler is passed the context structure to adjust
4268         prior to the raise.
4269         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
4270         SA_SIGINFO sigaction should look like. Call
4271         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
4272         Machine_State_Operations stuff.
4273         Add conditional code so that the x86_64 is also supported.
4274
4275 2005-06-14  Pascal Obry  <obry@adacore.com>
4276
4277         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
4278         the library name.
4279
4280 2005-06-14  Robert Dewar  <dewar@adacore.com>
4281
4282         * opt.ads, opt.adb: New flags for persistent_bss mode
4283         Add Ada_Version_Explicit, for implementation of AI-362
4284         Add Assertions_Enabled_Config and associated handling
4285         Needed since setting can be changed with Assertion_Policy pragma
4286         Add new flag Warn_On_Ada_2005_Compatibility
4287
4288         * switch-c.adb: Recognize -gnatwy/Y
4289         Set Ada_Version_Explicit, for implementation of AI-362
4290         The -gnatg switch now includes -gnatyu
4291
4292         * usage.adb: Add -gnatwy/Y
4293         Remove wrong asterisk on -gnatwX line
4294         Add line for -gnatyu switch
4295
4296 2005-06-14  Vincent Celier  <celier@adacore.com>
4297
4298         * osint.adb (Add_Default_Search_Dirs): Put source and object
4299         directories of project files before directories coming from
4300         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
4301
4302 2005-06-14  Robert Dewar  <dewar@adacore.com>
4303
4304         PR ada/15613
4305
4306         * par-ch2.adb (Scan_Pragma_Argument): New procedure
4307         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
4308
4309 2005-06-14  Vincent Celier  <celier@adacore.com>
4310
4311         * prep.adb (Preprocess): Ignore error when scanning the first token of
4312         a line.
4313
4314 2005-06-14  Vincent Celier  <celier@adacore.com>
4315
4316         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
4317         (Check_Stand_Alone_Library): If the specified reference symbol file does
4318         not exist, only issue a warning when the symbol policy is not
4319         Controlled. And, when symbol policy is Compliant, set the symbol
4320         policy to Autonomous.
4321
4322 2005-06-14  Vincent Celier  <celier@adacore.com>
4323
4324         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
4325         when the project file in a with clause is not the last one, that is the
4326         project file name is followed by a comma.
4327         * prj-pp.adb: (First_With_In_List): New Boolean global variable
4328         (Print): Issue list of project files separated by commas in with clauses
4329         according to the values returned by Is_Not_Last_In_List.
4330         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
4331         (Set_Is_Not_Last_In_List): New procedure
4332
4333 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
4334
4335         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
4336
4337 2005-06-14  Robert Dewar  <dewar@adacore.com>
4338
4339         * scng.adb: Add call to new Check_EOF routine
4340         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
4341         Add some comments regarding wide character handling
4342
4343         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
4344
4345         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
4346
4347         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
4348         characters are now considered graphic characters and hence yield false
4349         in this call.
4350
4351         * nmake.adt: Modify header so that xnmake does not generate output
4352         files with multiple blank lines.
4353
4354         * treeprs.adt: Remove a blank line so that output from xtreeprs does
4355         not have an extra blank line
4356
4357 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
4358
4359         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
4360         expression when the component type is an anonymous access type to
4361         ensure that appropriate accessibility checks are done.
4362
4363         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
4364         expression of an assignment when the target object is of an anonymous
4365         access type. This ensures that required accessibility checks are done.
4366         (One_Bound): Move the check for type Universal_Integer to
4367         Process_Bounds.
4368         (Process_Bounds): Check whether the type of the preanalyzed range is
4369         Universal_Integer, and in that case set Typ to Integer_Type prior
4370         to setting the type of the original range and the calls to One_Bound.
4371
4372 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4373
4374         * sem_case.adb (Expand_Others_Choice): Improve warning.
4375
4376 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4377
4378         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
4379         constraint of full view if present, when other type is discriminated.
4380         (Eval_Relational_Op): Recognize tests of pointer values against Null,
4381         when the pointer is known to be non-null, and emit appropriate warning.
4382
4383 2005-06-14  Robert Dewar  <dewar@adacore.com>
4384             Ed Schonberg  <schonberg@adacore.com>
4385
4386         PR ada/10671
4387
4388         * sem_prag.adb: Implement pragma Persistent_BSS
4389         Remove obsolete pragma Persistent_Data, Persistent_Object
4390         Set Ada_Version_Explicit, for implementation of AI-362
4391         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
4392         Add processing for pragma Pure_05 and Preelaborate_05
4393         Add processing for Assertion_Policy pragma
4394         Add pragma identifiers for Assert
4395         (Analyze_Pragma, case Assert): Check number of arguments
4396         (Process_Inline): Additional guard against an illegal program, where the
4397         argument of the pragma is undefined, and warnings on redundant
4398         constructs are enabled.
4399         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
4400         Ada_05 to this pragma, specifying that the pragma is only active in
4401         Ada_05 mode.
4402         (Check_Arg_Order): New procedure
4403         Add appropriate calls to this procedure throughout
4404         Also throughout, check entity name before doing any other checks
4405
4406         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
4407         Remove obsolete pragma Persistent_Data, Persistent_Object
4408         Add entries for pragma Pure_05 and Preelaborate_05
4409         Add entries for Assertion_Policy pragma and associated names
4410         Add some names for pragma argument processing
4411
4412         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
4413
4414 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
4415
4416         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
4417         appears within a negation (either from source or as a rewriting of
4418         inequality) adjust text of warning accordingly.
4419
4420 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4421
4422         * s-strxdr.adb: Follow AI95-00132
4423
4424 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
4425
4426         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
4427
4428 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
4429             Jose Ruiz  <ruiz@adacore.com>
4430
4431         * s-tposen.adb, s-tpobop.adb
4432         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
4433         the exception id.
4434         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
4435         there is no violation of the Max_Entry_Queue_Length restriction (if it
4436         has been set); Program_Error is raised otherwise.
4437         (Requeue_Call): Before requeuing the task on the target entry queue we
4438         check that there is no violation of the Max_Entry_Queue_Length
4439         restriction (if it has been set); Program_Error is raised otherwise.
4440
4441 2005-06-14  Robert Dewar  <dewar@adacore.com>
4442
4443         * styleg.adb: Fix several remaining problems in -gnatyu switch
4444         Blank line count not reset at start
4445         Scanning outside source buffer in some cases
4446         Confusing message for blanks at end of file
4447         Non-empty blank lines not recognized
4448
4449         * nmake.adt: Modify header so that xnmake does not generate output
4450         files with multiple blank lines.
4451
4452         * treeprs.adt: Remove a blank line so that output from xtreeprs does
4453         not have an extra blank line
4454
4455 2005-06-14  Sergey Rybin  <rybin@adacore.com>
4456
4457         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
4458
4459 2005-06-14  Doug Rupp  <rupp@adacore.com>
4460             Vincent Celier  <celier@adacore.com>
4461
4462         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
4463         Update copyright.
4464
4465         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
4466         Remove "Library" command.
4467         Change keyword for style check -gnatyd from NOCRLF to
4468         DOS_LINE_ENDINGS.
4469         Remove useless second style check keyword NONE
4470         Remove help documentation for inexistent style check keyword
4471         RM_COLUMN_LAYOUT.
4472         Add help documentation for style check keywords DOS_LINE_ENDINGS,
4473         UNNECESSARY_BLANK_LINES and XTRA_PARENS
4474         Add UNNECESSARY_BLANK_LINES for -gnatyu
4475         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
4476
4477         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
4478
4479 2005-06-14  Vincent Celier  <celier@adacore.com>
4480
4481         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
4482         gprmake was invoked with -d.
4483         (Compile_Sources): If -d was used, output the "completed ..." message
4484         for each compilation.
4485         (Scan_Arg): Recognize new switch -d
4486         When -c and at least one main is specified, set
4487         Unique_Compile to True to guarantee that no other sources will be
4488         compiled.
4489
4490 2005-06-14  Matthew Heaney  <heaney@adacore.com>
4491
4492         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
4493         * a-swuwha.ads, a-swuwha.adb: New files
4494
4495         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
4496         * a-szuzha.ads, a-szuzha.adb: New files.
4497
4498         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
4499         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
4500         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
4501         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4502         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
4503         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
4504         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
4505         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
4506         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
4507         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
4508         Ada 2005 RM.
4509
4510 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
4511             Olivier Hainque  <hainque@adacore.com>
4512             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4513             Pascal Obry  <obry@adacore.com>
4514
4515         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
4516
4517         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
4518         making a temporary around a procedure call because of non-addressable
4519         actual parameter.
4520         (process_freeze_entity): If entity is a private type, capture size
4521         information that may have been computed for the full view.
4522         (tree_transform, case N_Allocator): If have initializing expression,
4523         check type for Has_Constrained_Partial_View and pass that to
4524         build_allocator.
4525         (tree_transform, case N_Return_Statement): Pass extra arg to
4526         build_allocator.
4527
4528         * decl.c (annotate_value): Remove early return if -gnatR is not
4529         specified.
4530         (gnat_to_gnu_field): Don't make a packable type for a component clause
4531         if the position is byte aligned, the field is aliased, and the clause
4532         size isn't a multiple of the packable alignment. It serves no useful
4533         purpose packing-wise and would be rejected later on.
4534         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
4535
4536         PR ada/20515
4537         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
4538         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
4539         instead.
4540         (create_concat_name): Idem.
4541
4542 2005-06-10  Robert Dewar  <dewar@adacore.com>
4543             Eric Botcazou  <ebotcazou@adacore.com>
4544             Ben Brosgol  <brosgol@adacore.com>
4545             Cyrille Comar  <comar@adacore.com>
4546             Sergey Rybin  <rybin@adacore.com>
4547             Pascal Obry  <obry@adacore.com>
4548
4549         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
4550         Document second argument (Ada_05) of pragma Obsolescent
4551         Add note that call to subprogram marked with pragma Obsolescent
4552         is now considered to be a violation of program Restrictions
4553         (No_Obsolescent_Features).
4554         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
4555         that only machine-dependent attributes are supported.
4556
4557         * gnat_ugn.texi:
4558         Commented out menu lines and empty section for gnatclean examples
4559         Document -gnatwy/Y
4560         Fix some over long lines
4561         Clarify and enhance documentation of ADA_PROJECT_PATH.
4562         Rework section 2.11.2(3) about linking with a non-GNU compiler.
4563         Mention new switch -fcallgraph-info.
4564         Mention new switch -fstack-usage.
4565         For gnatpp, replace '-notab' with '-N' and add this option to Index
4566         Corrected VMS example.
4567         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
4568         Minor reformatting
4569         Add documentation for -gnatyu switch (unnecessary blank lines)
4570         Document new switch -U for GNAT PRETTY and GNAT METRIC
4571         Add note about Stdcall being handled as C convention on non Windows OS.
4572         Remove some junk typo in description of gnatbind -S switch
4573         Remove reference to Extensions_Allowed pragma
4574         Document the new order of the directories to be searched (source and
4575         object directories of project files before directories in ADA_*_PATH
4576         environment variables.
4577
4578         * g-trasym.ads: Document that IRIX is supported
4579
4580 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
4581
4582         * Makefile.in: Add initialize.o when needed.
4583         Adapt to new VMS package body Symbols and subunits
4584         No specialized version of a-sytaco is needed for VxWorks.
4585
4586         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
4587         * a-zchara.ads, a-widcha.ads: New files.
4588
4589         * system-hpux-ia64.ads: New file.
4590
4591         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
4592         is imported from the VxWorks kernel.
4593
4594 2005-06-14  Robert Dewar  <dewar@adacore.com>
4595
4596         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
4597         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
4598         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
4599         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
4600         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
4601         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
4602         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
4603         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
4604         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
4605         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
4606         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
4607         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
4608
4609 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4610
4611         * xeinfo.adb: Fix typo in comment
4612
4613 2005-06-14  Javier Miranda  <miranda@adacore.com>
4614
4615         * repinfo.ads: Fix typo in comment
4616
4617 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
4618
4619         * s-finimp.adb (Parent_Tag): Delete this imported function (function
4620         Parent_Tag is now in the visible part of Ada.Tags).
4621         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
4622         using imported function.
4623
4624 2005-06-14  Bernard Banner  <banner@adacore.com>
4625
4626         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
4627         also apply for handling support for VxSim 653.
4628
4629 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
4630
4631         * xsnames.adb: Add automatic generation of snames.h.
4632
4633 2005-06-14  Thomas Quinot  <quinot@adacore.com>
4634
4635         * gen-soccon.c: Add IP_MULTICAST_IF constant
4636         Minor reformatting and adjustments to prevent warnings.
4637
4638 2005-06-14  Pascal Obry  <obry@adacore.com>
4639
4640         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
4641
4642 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
4643
4644         * trans.c (gnat_gimplify_expr): Call
4645         recompute_tree_invarant_for_addr_expr when we change
4646         the operand of the ADDR_EXPR.
4647
4648 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4649
4650         * misc.c: Don't include errors.h.
4651
4652 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4653
4654         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
4655
4656 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4657
4658         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
4659         comment typos.
4660         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
4661
4662 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
4663
4664         PR ada/20270
4665         * Makefile.in: Make TGT_LIB behave correctly.
4666
4667 2005-04-23  DJ Delorie  <dj@redhat.com>
4668
4669         * misc.c: Adjust warning() callers.
4670
4671 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
4672
4673         PR ada/18847
4674         * a-nudira.adb (Value): Check for valid string.
4675         * a-nuflra.adb (Value): Likewise.
4676
4677 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
4678
4679         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
4680
4681 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
4682
4683         * adaint.c, init.c, tracebak.c: Fix comment typos.
4684         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
4685
4686 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
4687             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4688
4689         * Makefile.in: Add make ifeq define for hppa linux tasking support.
4690         * system-hpux.ads: Define Signed_Zeros to be True.
4691         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
4692
4693 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4694
4695         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
4696         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
4697         typos.
4698
4699 2005-03-30  Tom Tromey  <tromey@redhat.com>
4700
4701         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
4702
4703 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4704
4705         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
4706
4707 2005-03-29  Robert Dewar  <dewar@adacore.com>
4708
4709         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
4710         fixed-point expression has value that is not a multiple of the Small
4711         value.
4712
4713         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
4714
4715         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
4716         nanoseconds.
4717
4718         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
4719
4720 2005-03-29  Vincent Celier  <celier@adacore.com>
4721
4722         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
4723         (Build_Dynamic_Library.Version_String): Return the empty string when
4724         Lib_Version is empty or when the symbol policy is not Autonomous.
4725
4726         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
4727         a symbol is not in the reference symbol file, increase the Major ID
4728         and set the Minor ID to 0.
4729         Use gsmatch=lequal instead of gsmatch=equal
4730
4731 2005-03-29  Doug Rupp  <rupp@adacore.com>
4732
4733         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
4734         name and translate.
4735
4736 2005-03-29  Javier Miranda  <miranda@adacore.com>
4737
4738         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
4739         (Inherit_DT): The first formal has been redefined as a Tag.
4740         This allows us the removal of the subprogram Get_TSD.
4741         (TSD): Replace the call to Get_TSD by the actual code.
4742
4743         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
4744         (Make_DT): Upgrade the call to Inherit_TSD according to the
4745         new interface: the first formal is now a Tag.
4746
4747         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
4748         redefined as a Tag.
4749         This change allows us to remove the subprogram Get_TSD.
4750         (CPP_Get_TSD): Subprogram removed.
4751         (TSD): Replace the call to CPP_Get_TSD by the actual code.
4752
4753         * rtsfind.ads: Remove support to call the run-time
4754         subprogram Get_TSD
4755
4756 2005-03-29  Robert Dewar  <dewar@adacore.com>
4757
4758         * errutil.adb, errout.adb:
4759         Minor comment updates on Line_Terminator references
4760
4761         * par-ch10.adb: Add ??? comment about line terminator
4762
4763         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
4764         (check dos line terminator).
4765         (Check_Line_Max_Length): New procedure, split off from the existing
4766         Check_Line_Terminator routine. Separating this out allows -gnatyf to
4767         be properly recognized.
4768
4769         * styleg.adb: Add ??? comment for line terminator reference
4770
4771         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
4772         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
4773
4774         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
4775         (check dos line terminator).
4776         (Check_Line_Max_Length): New procedure, split off from the existing
4777         Check_Line_Terminator routine. Separating this out allows -gnatyf to
4778         be properly recognized.
4779
4780         * stylesw.ads, stylesw.adb:
4781         Add handling for new -gnatyd switch (check dos line terminator)
4782
4783         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
4784         Recognize -gnatwb/-gnatwB switches
4785         Include Warn_On_Bad_Fixed_Value for -gnatg
4786
4787         * usage.adb:
4788         Add line for new -gnatyd switch (check dos line terminator)
4789
4790         * usage.adb: Add lines for -gnatwb/-gnatwB
4791
4792         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
4793
4794         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
4795
4796         * gnat_ugn.texi: Fix overlong lines
4797         Document new -gnatyd switch
4798         Document new -gnatwb/-gnatwB switches
4799
4800 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
4801
4802         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
4803         order to retrieve the component list of the type, before examining
4804         individual components.
4805
4806         * sem_type.adb (Covers): Types are compatible if one is the base type
4807         of the other, even though their base types might differ when private
4808         views are involved.
4809
4810 2005-03-29  Thomas Quinot  <quinot@adacore.com>
4811
4812         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
4813         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
4814         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
4815         analyzed if expansion is disabled (which could otherwise cause spurious
4816         error messages if expansion has been disabled due to previous
4817         (unrelated) errors).
4818
4819         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
4820         is disabled, the entity denoted by the argument is the access type
4821         itself, not an underlying record type, so there is no need to go back
4822         to the Corresponding_Remote_Type.
4823
4824 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
4825             Robert Dewar  <dewar@adacore.com>
4826
4827         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
4828         expand a call to an instance of
4829         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
4830         Constructor actual of the instance. A class-wide membership
4831         check is also generated, to ensure that the tag passed to the instance
4832         denotes a type in the class.
4833         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
4834         of Name_Generic_Dispatching_Constructor.
4835
4836         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
4837         05 unit for AI-260-02).
4838
4839         * a-tgdico.ads: New file.
4840
4841         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
4842         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
4843
4844         * snames.ads, snames.adb (Preset_Names): Add entry for
4845         Generic_Dispatching_Constructor.
4846
4847         PR ada/20300
4848
4849         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
4850         character type cases.
4851         (Analyze_Subprogram_Renaming): Add special handling for
4852         the case of renaming of stream attributes when the renaming denotes a
4853         generic formal subprogram association for an abstract formal subprogram.
4854         Check that the attribute is a primitive stream attribute (and not
4855         a class-wide stream attribute) and then rewrite the attribute name
4856         as the name of the appropriate compiler-generated stream primitive.
4857
4858 2005-03-29  Robert Dewar  <dewar@adacore.com>
4859
4860         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
4861         recursive calls.
4862         (Is_Possibly_Unaligned_Object): Correct typo that
4863         resulted in inaccurate result for unaligned scalars within records.
4864
4865 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
4866
4867         * freeze.adb (Freeze_Record_Type): If the type of the component is an
4868         itype whose parent is controlled and not yet frozen, do not create a
4869         freeze node for the itype if expansion is disabled.
4870
4871 2005-03-29  Vincent Celier  <celier@adacore.com>
4872
4873         * make.adb (Gnatmake): Don't fail if the main project file is declared
4874         as having no Ada sources. Do not display message "no sources to
4875         compile" in quiet output.
4876
4877 2005-03-29  Doug Rupp  <rupp@adacore.com>
4878
4879         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
4880         extra tools.
4881
4882 2005-03-29  Robert Dewar  <dewar@adacore.com>
4883
4884         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
4885         child.
4886
4887 2005-03-29  Robert Dewar  <dewar@adacore.com>
4888
4889         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
4890         missing TYPE Improve the error message generated when compiling a
4891         limited interface in Ada83 or Ada95 mode.
4892
4893 2005-03-29  Robert Dewar  <dewar@adacore.com>
4894
4895         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
4896         rather than proceed ahead using a junk attribute name.
4897
4898 2005-03-29  Vincent Celier  <celier@adacore.com>
4899
4900         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
4901
4902         * prj-part.adb (Parse_Single_Project): Set the location of a project
4903         on its defining identifier, rather than on the reserved word "project".
4904
4905         * prj-proc.adb (Expression): Adapt to the fact that default of external
4906         references may be string expressions, not always literal strings.
4907         (Recursive_Process): Set Display_Name equal to Name
4908         when Location is No_Location, that is when there is no actual file.
4909         Get the Display_Name of the project from the source, when it is not a
4910         virtual project.
4911         (Process): Use the Display_Name in error messages
4912
4913         * prj-strt.adb (External_Reference): Allow default to be string
4914         expressions, not only literal strings.
4915
4916 2005-03-29  Vincent Celier  <celier@adacore.com>
4917
4918         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
4919         file and the reference symbol file to be the same file.
4920
4921 2005-03-29  Thomas Quinot  <quinot@adacore.com>
4922
4923         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
4924         forbid conversion of a local access-to-subprogram type to a remote one.
4925
4926         * sem_util.adb (Wrong_Type): For a record type that is the expanded
4927         equivalent type for a remote access-to-subprogram type, go back to the
4928         original RAS entity when displaying an error message, so the casing is
4929         the original source casing.
4930
4931 2005-03-29  Robert Dewar  <dewar@adacore.com>
4932
4933         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
4934         on param update.
4935
4936 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
4937
4938         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
4939         subtype if code is being pre-analyzed, to prevent un-expanded
4940         references to protected formals, among others.
4941         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
4942         interpretation that can be a call, include the result of the call as a
4943         possible interpretation of the dereference.
4944
4945         * sem_ch5.adb (Process_Bounds): Determine type of range by
4946         pre-analyzing a copy of the original range, and then analyze the range
4947         with the expected type.
4948
4949         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
4950         with an overloaded prefix where not all interpretations yield an
4951         access to subprogram, do not rewrite node as a call.
4952         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
4953         the node as a call once the context identifies the interpretation of
4954         the prefix whose call yields the context type.
4955         (Valid_Conversion): For the case of a conversion between
4956         local access-to-subprogram types, check subtype conformance using
4957         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
4958         detailed error message.
4959
4960 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
4961
4962         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
4963         indicator, indicate that the formal can never be null.
4964         (Process_Formals): If a formal has a non_null indicator, insert the
4965         resulting subtype immediately before the enclosing subprogram decl,
4966         and not at the beginning of the corresponding declarative part, to
4967         prevent access before elaboration (Ada2005).
4968
4969 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4970
4971         PR ada/19956
4972         * utils.c (finish_record_type): Use variable_size when setting sizes.
4973
4974 2005-03-29  Robert Dewar  <dewar@adacore.com>
4975
4976         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
4977         guarantee Unix style line terminators for the output files, even when
4978         running on windows.
4979
4980 2005-03-29  Robert Dewar  <dewar@adacore.com>
4981
4982         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
4983         buffer if an exception is raised.
4984
4985 2005-03-29  Ed Falis  <falis@adacore.com>
4986
4987         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
4988         VxWorks 653 1.4
4989
4990 2005-03-29  Robert Dewar  <dewar@adacore.com>
4991
4992         * sem_util.ads: Minor reformatting
4993         * gnat_rm.texi: Minor editing.
4994
4995 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
4996
4997         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
4998         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
4999
5000 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5001
5002         * adaint.c (__gnat_portable_spawn): Adjust cast.
5003
5004 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5005
5006         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
5007
5008 2005-03-17  Pascal Obry  <obry@adacore.com>
5009
5010         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
5011         used.
5012
5013         * expect.c (__gnat_waitpid): Moved here from adaint.c.
5014         Reimplement under Win32 using Win32 API.
5015
5016         (__gnat_kill) [Win32]: Properly close the process handle before leaving
5017         this routine.
5018
5019 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
5020
5021         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
5022         (DECL_RENAMED_OBJECT): New accessor macro.
5023         (SET_DECL_RENAMED_OBJECT): New setter macro.
5024
5025         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
5026         object in all cases.  Attach the renamed object to the VAR_DECL.
5027         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
5028         field is not prescribed.
5029
5030         * misc.c (gnat_handle_option): Handle -gnatO separately.
5031         (gnat_print_decl) <VAR_DECL>: New case.
5032         Print the DECL_RENAMED_OBJECT node.
5033
5034         * lang.opt:  Declare separate -gnatO option.
5035
5036         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
5037         pointer, replace it with the renamed object.
5038         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
5039         pointer type if the source is not a fat pointer type whose underlying
5040         array has the same non-zero alias set as that of the destination array.
5041
5042 2005-03-17  Javier Miranda  <miranda@adacore.com>
5043
5044         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
5045         (Get_Inheritance_Depth): Removed.
5046         (Set_Inheritance_Depth): Removed.
5047
5048         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
5049         subprogram Get_Expanded_Name because it is not referenced by the
5050         frontend.
5051
5052         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
5053         (CPP_Get_Inheritance_Depth): Removed.
5054         (CPP_Set_Inheritance_Depth): Removed.
5055
5056         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
5057
5058 2005-03-17  Robert Dewar  <dewar@adacore.com>
5059
5060         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
5061         3, since we now expect GCC 3 to do all the work.
5062
5063 2005-03-17  Javier Miranda  <miranda@adacore.com>
5064
5065         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
5066         of one barrier to avoid wrong usage of this attribute.
5067
5068         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
5069         First_Private_Entity.
5070
5071         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
5072         the subprogram against wrong usage.
5073         Adapt the code to traverse the entities in the
5074         scope of a record_type because in addition to its usage regarding
5075         packages, this subprogram is also called by Expand_N_Freeze_Entity
5076         to install the visible declarations of the enclosing scope of a
5077         record_type_with_private to establish the proper visibility before
5078         freezing the entity and related subprograms.
5079
5080 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
5081
5082         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
5083         entry formals.
5084
5085 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5086
5087         * exp_ch3.adb (Check_Attr): New subprogram.
5088         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
5089         into a new Check_Attr subprogram, in order to provide a more
5090         explanatory error message (including the name of the missing attribute).
5091         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
5092         subprogram determines whether a default implementation exists for a
5093         given stream attribute.
5094         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
5095         Determine whether to generate a default implementation for each stream
5096         attribute separately, as this depends on the specific attribute.
5097
5098         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
5099         limited extension where a stream attribute is missing for a limited
5100         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
5101         generate a bogus reference to the missing attribute to prevent
5102         cascaded errors. Instead, generate a null statement.
5103
5104         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
5105         available for a limited type if it has been specified for an ancestor
5106         of the type.
5107
5108 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
5109
5110         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
5111         entity is an operator.
5112
5113 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5114
5115         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5116         spec, to make this predicate available to other units.
5117
5118         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
5119         reimplementing it.
5120
5121         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
5122         when no distribution runtime library is available.
5123
5124         * sem_res.adb, sem_dist.adb: Disable expansion of remote
5125         access-to-subprogram types when no distribution runtime library is
5126         available.
5127         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
5128         predicate available to other units.
5129
5130         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5131         spec, to make this predicate available to other units.
5132
5133 2005-03-17  Vincent Celier  <celier@adacore.com>
5134
5135         * make.adb (Insert_Project_Sources): Make sure the Q is always
5136         initialized.
5137
5138         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
5139         the default for the tree, not the global default naming.
5140
5141         * prj-proc.adb (Recursive_Process): No need to put the default naming
5142         in the project data, it's already there.
5143
5144 2005-03-17  Doug Rupp  <rupp@adacore.com>
5145
5146         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
5147
5148         * 5xcrtl.ads: Renamed to...
5149         * s-crtl-vms64.ads: ...this new file
5150
5151 2005-03-17  Robert Dewar  <dewar@adacore.com>
5152
5153         PR ada/19519
5154
5155         * namet.adb (Copy_One_Character): Set proper wide character encoding
5156         for upper half character if we have upper half encoding.
5157
5158 2005-03-17  Robert Dewar  <dewar@adacore.com>
5159
5160         * par.adb (Par): Improved msg for attempt to recompile predefined unit
5161
5162 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5163
5164         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
5165         tagged limited type, the TSS is a newly built renaming declaration:
5166         insert it using Set_TSS, not Copy_TSS.
5167
5168 2005-03-17  Javier Miranda  <miranda@adacore.com>
5169
5170         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
5171         Try_Object_Operation): Analyze the object that is accessible
5172         through the prefix of the subprogram call before we apply
5173         the transformation of the object-operation notation.
5174
5175 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
5176
5177         * s-taprob.adb (Initialize_Protection): Initialize the protected
5178         object's owner to Null_Task.
5179         (Lock): If pragma Detect_Blocking is in effect and the caller of this
5180         procedure is already the protected object's owner then Program_Error
5181         is raised. In addition the protected object's owner is updated.
5182         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
5183         of this procedure is already the protected object's owner then
5184         Program_Error is raised.
5185         In addition the protected object's owner is updated.
5186         (Unlock): Remove the ownership of the protected object.
5187
5188         * s-taprob.ads (Protection): Add the field Owner, used to store the
5189         protected object's owner.
5190         This component is needed for detecting one type of potentially blocking
5191         operations (external calls on a protected subprogram with the same
5192         target object as that of the protected action). Document the rest of
5193         the components.
5194
5195         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
5196         Initialize the protected object's owner to Null_Task.
5197         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
5198         caller of this procedure is already the protected object's owner then
5199         Program_Error is raised.
5200         Do not raise Program_Error when this procedure is called from a
5201         protected action.
5202         (Unlock_Entries): Remove the ownership of the protected object.
5203         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
5204         of this procedure is already the protected object's owner then
5205         Program_Error is raised.
5206         Do not raise Program_Error when this procedure is called from
5207         a protected action.
5208
5209         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
5210         used to store the protected object's owner.
5211
5212         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
5213         effect and this procedure (a potentially blocking operation) is called
5214         from whithin a protected action, Program_Error is raised.
5215         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
5216         and this procedure (a potentially blocking operation) is called from
5217         whithin a protected action, Program_Error is raised.
5218
5219 2005-03-17  Vincent Celier  <celier@adacore.com>
5220             Nicolas Setton  <setton@adacore.com>
5221
5222         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
5223         switch, not supported by the linker on Darwin. Add '_' before
5224         <library>init, as this character is added unconditionally by the
5225         compiler.
5226         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
5227         correct one ".dylib". This fixes detection of the archive files when
5228         building library projects.
5229
5230 2005-03-17  Vincent Celier  <celier@adacore.com>
5231
5232         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
5233         -gnat83, -gnat95 and -gnat05.
5234
5235 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
5236
5237         * gnat_ugn.texi: Document gnatmem restriction
5238
5239 2005-03-17  Thomas Quinot  <quinot@adacore.com>
5240
5241         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
5242         cleanup
5243
5244 2005-03-17  Robert Dewar  <dewar@adacore.com>
5245
5246         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
5247         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
5248         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
5249
5250         * casing.adb: Comment improvements
5251
5252 2005-03-17  Pascal Obry  <obry@adacore.com>
5253
5254         * g-expect.adb: Minor reformatting.
5255
5256 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
5257
5258         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
5259         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
5260         to dependencies.
5261
5262 2005-03-15  Vincent Celier  <celier@adacore.com>
5263
5264         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
5265         Add new parameter In_Tree to specify the project tree: needed
5266         by the project manager. Adapt to changes in project manager
5267         using new parameter In_Tree.
5268
5269 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
5270
5271         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
5272         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
5273         ada/bldtools to avoid make -jN failures.
5274
5275 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5276
5277         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
5278         to NULL_TREE on entry.
5279
5280 2005-03-15  Robert Dewar  <dewar@adacore.com>
5281
5282         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
5283         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
5284         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
5285         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
5286         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5287         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
5288         system-interix.ads, system-solaris-sparc.ads,
5289         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
5290         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
5291         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
5292         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
5293         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
5294         Compiler_System_Version to be False.
5295
5296         * opt.ads: Add new flag Opt.Address_Is_Private
5297
5298         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
5299         Add new parameter Compiler_System_Version to avoid checking for
5300         completeness of parameters when compiler is compiling itself.
5301         Allows old versions of GNAT to be compiled with new compiler.
5302
5303 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5304
5305         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
5306         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
5307         calling thread.
5308         (Stack_Base_Available): New flag.
5309         (Get_Page_Size): New overloaded functions imported from C.
5310         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
5311         PROT_ON, PROT_OFF): New constants.
5312         (mprotect): New function imported from C.
5313         (pthread_teb_t): New record type.
5314
5315         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
5316         (Create_Task): Account for the Yellow Zone and the guard page.
5317
5318 2005-03-15  Vincent Celier  <celier@adacore.com>
5319
5320         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5321         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5322         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
5323         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
5324         Library_File_Name_For): Add new parameter In_Tree
5325         to specify the project tree: needed by the project manager.
5326         Adapt to changes in project manager using new parameter In_Tree.
5327         Remove local imports, use functions in System.CRTL.
5328
5329         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
5330         to use the project manager.
5331
5332         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
5333         In_Tree to designate the project tree. Adapt to changes in the project
5334         manager, using In_Tree.
5335
5336         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
5337         Copy_Interface_Sources): Add new parameter In_Tree to specify the
5338         project tree: needed by the project manager.
5339         (Build_Library): Check that Arg'Length >= 6 before checking if it
5340         contains "--RTS=...".
5341
5342         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
5343         Library_File_Name_For): Add new parameter In_Tree to specify the
5344         project tree: needed by the project manager.
5345
5346         * prj.ads, prj.adb: Major modifications to allow several project trees
5347         in memory at the same time.
5348         Change tables to dynamic tables and hash tables to dynamic hash
5349         tables. Move tables and hash tables from Prj.Com (in the visible part)
5350         and Prj.Env (in the private part). Move some constants from the visible
5351         part to the private part. Make other constants deferred.
5352         (Project_Empty): Make it a variable, not a function
5353         (Empty_Project): Add parameter Tree. Returns the data with the default
5354         naming data of the project tree Tree.
5355         (Initialize): After updating Std_Naming_Data, copy its value to the
5356         component Naming of Project Empty.
5357         (Register_Default_Naming_Scheme): Use and update the default naming
5358         component of the project tree, instead of the global variable
5359         Std_Naming_Data.
5360         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
5361         Tree is not defaulted, return the default naming data of the Tree.
5362         (Initial_Buffer_Size): Constant moved from private part
5363         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
5364         variables initialized in procedure Initialize.
5365         (Add_To_Buffer): Add two in out parameters to replace global variables
5366         Buffer and Buffer_Last.
5367         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
5368         functions.
5369         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
5370         hash tables.
5371         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
5372         for the project tree.
5373         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
5374         constant at the beginning of the package spec, so that they cane be used
5375         in subprograms before their full declarations.
5376         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
5377         (Empty_Project): Add parameter of type Project_Node_Ref
5378         (Private_Project_Tree_Data): Add component Default_Naming of type
5379         Naming_Data.
5380         (Buffer, Buffer_Last): remove global variables
5381         (Add_To_Buffer): Add two in out parameters to replace global variables
5382         Buffer and Buffer_Last.
5383         (Current_Packages_To_Check): Remove global variable
5384         (Empty_Name): Move to private part
5385         (No-Symbols): Make it a constant
5386         (Private_Project_Tree_Data): New type for the private part of the
5387         project tree data.
5388         (Project_Tree_Data): New type for the data of a project tree
5389         (Project_Tree_Ref): New type to designate a project tree
5390         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
5391         for the project tree.
5392
5393         * prj-attr.ads: Add with Table; needed, as package Prj no longer
5394         imports package Table.
5395
5396         * prj-com.adb: Remove empty, no longer needed body
5397
5398         * prj-com.ads: Move most of the content of this package to package Prj.
5399
5400         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
5401         designate the project node tree and Packages_To_Check to replace
5402         global variable Current_Packages_To_Check.
5403         Add new parameters In_Tree and Packages_To_Check to local subprograms,
5404         when needed. Adapt to changes in project manager with project node tree
5405         In_Tree.
5406
5407         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
5408         project tree to most subprograms. Move tables and hash tables to
5409         private part of package Prj.
5410         Adapt to changes in project manager using project tree In_Tree.
5411
5412         * prj-makr.adb (Tree): New constant to designate the project node tree
5413         Adapt to change in project manager using project node tree Tree
5414
5415         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
5416         display the Library_Src_Dir and the Library_Dir.
5417         Add new parameter In_Tree to designate the project node tree to most
5418         subprograms. Adapt to changes in the project manager, using project tree
5419         In_Tree.
5420         (Check_Naming_Scheme): Do not alter the casing on platforms where
5421         the casing of file names is not significant.
5422         (Check): Add new parameter In_Tree to designate the
5423
5424         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
5425         designate the project tree.
5426         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
5427
5428         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
5429         to replace those that were in the private part of package Prj.
5430         Add new parameter In__Tree to designate the project node tree to most
5431         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
5432         (Post_Parse_Context_Clause): When specifying the project node of a with
5433         clause, indicate that it is a limited with only if there is "limited"
5434         in the with clause, not necessarily when In_Limited is True.
5435         (Parse): Add new parameter In_Tree to designate the project node tree
5436
5437         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
5438         designate the project node tree. Adapt to change in Prj.Tree with
5439         project node tree In_Tree.
5440
5441         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
5442         tree In_Tree in the call to function Empty_Process to give its initial
5443         value to the project data Processed_Data.
5444         Add new parameters In_Tree to designate the project tree and
5445         From_Project_Node_Tree to designate the project node tree to several
5446         subprograms. Adapt to change in project manager with project tree
5447         In_Tree and project node tree From_Project_Node_Tree.
5448
5449         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
5450         to replace those that were in the private part of package Prj.
5451         Add new parameter In_Tree to designate the project node tree to most
5452         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
5453
5454         * prj-tree.ads, prj-tree.adb: Add new parameter of type
5455         Project_Node_Tree_Ref to most subprograms.
5456         Use this new parameter to store project nodes in the designated project
5457         node tree.
5458         (Project_Node_Tree_Ref): New type to designate a project node tree
5459         (Tree_Private_Part): Change table to dynamic table and hash tables to
5460         dynamic hash tables.
5461
5462         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
5463         the project tree to most subprograms. Adapt to changes in project
5464         manager using project tree In_Tree.
5465
5466         * makegpr.adb (Project_Tree): New constant needed to use project
5467         manager.
5468
5469 2005-03-15  Olivier Hainque  <hainque@adacore.com>
5470
5471         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
5472         for sigactions with SA_SIGINFO set. Call
5473         __gnat_adjust_context_for_raise before raising, to perform the
5474         potentially required adjustments to the machine context for the GCC
5475         unwinder.
5476
5477         * raise.h (__gnat_adjust_context_for_raise): New prototype.
5478
5479         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
5480         Adjust PC by one in the provided machine context.
5481         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
5482         so that the handler is passed the context structure to adjust prior to
5483         the raise.
5484         (__gnat_error_handler) HPUX: Adjust the signature to match what an
5485         SA_SIGINFO sigaction should look like. Call
5486         __gnat_adjust_context_for_raise before actually raising.
5487         (__gnat_adjust_context_for_raise): Default noop to help PC
5488         adjustments before raise from signal handlers.
5489         (__gnat_error_handler): Indirectly call a predicate function to
5490         determine if a condition should be resignaled or not.
5491         (__gnat_set_resignal_predicate): User interface to modify the predicate.
5492         (__gnat_default_resignal_p): Default GNAT predicate.
5493
5494 2005-03-15  Doug Rupp  <rupp@adacore.com>
5495
5496         * adaint.c: Prefix #include of VMS system header files with vms/
5497         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
5498         Do not define a dummy function "convert_addresses" under Darwin,
5499         not needed.
5500
5501         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
5502         with vms/
5503
5504 2005-03-15  Nicolas Setton  <setton@adacore.com>
5505
5506         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
5507         PPC/AIX.
5508
5509 2005-03-15  Robert Dewar  <dewar@adacore.com>
5510
5511         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
5512         AI-386.
5513
5514         * a-retide.ads: Minor comment changes
5515
5516 2005-03-15  Robert Dewar  <dewar@adacore.com>
5517
5518         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
5519         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
5520         Realloc_For_Chunk to private part of package.
5521         New subprograms for AI-301
5522
5523         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
5524         Get_Line procedure.
5525         Avoid unnecessary use of Get/Set_Wide_String
5526
5527 2005-03-15  Robert Dewar  <dewar@adacore.com>
5528
5529         PR ada/13470
5530
5531         * a-stunau.ads, a-stunau.adb:
5532         Change interface to allow efficient (and correct) implementation
5533         The previous changes to allow extra space in unbounded strings had
5534         left this interface a bit broken.
5535
5536         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
5537
5538         * g-spipat.ads, g-spipat.adb: New interface for Get_String
5539         Minor reformatting (function specs)
5540
5541         * g-spitbo.adb: New interface for Get_String
5542
5543         * g-spitbo.ads: Minor reformatting
5544
5545         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
5546
5547         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
5548
5549 2005-03-15  Javier Miranda  <miranda@adacore.com>
5550             Robert Dewar  <dewar@adacore.com>
5551             Thomas Quinot  <quinot@adacore.com>
5552             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5553
5554         * atree.ads, atree.adb: Add support for Elist24 field
5555
5556         * atree.h: Fix wrong definition of Field27
5557         Add support for Elist16 field
5558         Add support for Elist24 field
5559
5560         * einfo.ads, einfo.adb (Abstract_Interfaces,
5561         Set_Abstract_Interfaces): New subprograms.
5562         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
5563         subprograms.
5564         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
5565         entities rather than a single node.
5566         (Is_Interface, Set_Is_Interface): New subprogram
5567         (First_Tag_Component): New syntesized attribute
5568         (Next_Tag_Component): New synthesized attribute
5569         (Write_Entity_Flags): Upgraded to write Is_Interface
5570         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
5571         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
5572         (Task_Body_Procedure): New subprogram to read this attribute.
5573         (Set_Task_Body_Procedure): New subprogram to set this attribute.
5574         (Has_Controlled_Component): Now applies to all entities.
5575         This is only a documentation change, since it always worked to apply
5576         this to other than composite types (yielding false), but now this is
5577         official.
5578         Update documentation on Must_Be_Byte_Aligned for new spec
5579
5580         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
5581         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
5582         uses of the Access_Disp_Table attribute to reference the first dispatch
5583         table associated with a tagged type. As
5584         part of the implementation of abstract interface types,
5585         Access_Disp_Table has been redefined to contain a list of dispatch
5586         tables (rather than a single dispatch table).
5587         Similarly, upgrade all the references to Tag_Component by the
5588         new attribute First_Tag_Component.
5589         (Find_Inherited_TSS): Moved to exp_tss.
5590         Clean up test in Expand_N_Object_Declaration for cases
5591         where we need to do a separate assignment of the initial value.
5592         (Expand_N_Object_Declaration): If the expression in the
5593         declaration of a tagged type is an aggregate, no need to generate an
5594         additional tag assignment.
5595         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
5596         is to be deleted.
5597         Bit packed array ops are only called if operands are known to be
5598         aligned.
5599         (Component_Equality): When returning an N_Raise_Program_Error statement,
5600         ensure that its Etype is set to Empty to avoid confusing GIGI (which
5601         expects that only expressions have a bona fide type).
5602         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
5603         determine the amount of data to be copied.
5604
5605         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
5606         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
5607             INTERFACE_TYPE_DEFINITION ::=
5608               [limited | task | protected | synchronized] interface
5609                 [AND interface_list]
5610
5611         * par-ch3.adb (P_Type_Declaration): Modified to give support to
5612         interfaces.
5613         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
5614         interfaces.
5615         (P_Interface_Type_Definition): New subprogram that parses the new
5616         syntax rule of Ada 2005 interfaces
5617         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
5618         messages by the correct RENAMES (quotes removed).
5619
5620         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
5621         attribute First_Tag_Component.
5622
5623         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
5624         (Interface_List, Set_Interface_List): New subprograms.
5625         (Interface_Present, Set_Interface_Present): New subprograms.
5626         (Limited_Present, Set_Limited_Present): Available also in derived
5627         type definition nodes.
5628         (Protected_Present, Set_Protected_Present): Available also in
5629         record type definition and
5630         derived type definition nodes.
5631         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
5632         (Task_Present, Set_Task_Present): New subprogram.
5633         (Task_Body_Procedure): Removed.
5634         (Set_Task_Body_Procedure): Removed.
5635         These subprogram have been removed because the attribute
5636         Task_Body_Procedure has been moved to the corresponding task type
5637         or task subtype entity to leave a field free to store the list
5638         of interfaces implemented by a task (for AI-345)
5639         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
5640         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
5641         expression flag Do_Range_Check
5642         (Exception_Junk): Change to Flag7 to accomodate above change
5643         (Box_Present, Default_Name, Specification, Set_Box_Present,
5644         Set_Default_Name, Set_Specification): Expand the expression
5645         "X in N_Formal_Subprogram_Declaration" into the corresponding
5646         two comparisons. Required to use the csinfo tool.
5647
5648         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
5649         "with string" given.
5650
5651         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
5652         expression given.
5653
5654         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
5655         in 2005 mode
5656
5657         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
5658         attribute Task_Body_Procedure rather than the old semantic field that
5659         was available in the task_type_declaration node.
5660
5661         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
5662         interface type definitions.
5663         (P_Formal_Derived_Type_Definition): Modified to handle the list of
5664         interfaces.
5665
5666         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
5667         task type declaration.
5668         (P_Protected): Modified to handle the list of interfaces in a
5669         protected type declaration.
5670
5671 2005-03-15  Doug Rupp  <rupp@adacore.com>
5672             Vincent Celier  <celier@adacore.com>
5673
5674         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
5675         (Gen_Output_File_C): Likewise.
5676         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
5677
5678 2005-03-15  Thomas Quinot  <quinot@adacore.com>
5679
5680         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
5681         is an N_Raise_Constraint_Error node, create a new copy of it without
5682         going through a call to Duplicate_Subexpr.
5683
5684 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5685             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5686             Nicolas Setton  <setton@adacore.com>
5687             Ed Schonberg  <schonberg@adacore.com>
5688
5689         PR ada/19900
5690         PR ada/19408
5691         PR ada/19140
5692         PR ada/20255
5693
5694         * decl.c (gnat_to_gnu_field): Reject aliased components with a
5695         representation clause that prescribes a size not equal to the rounded
5696         size of their types.
5697         (gnat_to_gnu_entity, case E_Component): Always look at
5698         Original_Record_Component if Present and not the entity.
5699         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
5700         of tagged extension types by not making field for components that are
5701         inside the parent.
5702         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
5703         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
5704         expression to the type of the object when the object is constant.
5705         Reverse defer_debug_incomplete_list before traversing it, so that trees
5706         are processed in the order at which they were added to the list. This
5707         order is important when using the stabs debug format.
5708         If we are deferring the output of debug information, also defer this
5709         output for a function return type.
5710         When adding fields to a record, prevent emitting debug information
5711         for incomplete records, emit the information only when the record is
5712         complete.
5713         (components_to_record): New parameter defer_debug.
5714         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
5715         (gnat_to_gnu_field_decl): New function.
5716         (substitution_list, annotate_rep): Call it.
5717         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
5718         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
5719         No longer update discriminants to not be a COMPONENT_REF.
5720         (copy_alias_set): Strip padding from input type; also handle
5721         unconstrained arrays properly.
5722
5723         * gigi.h (write_record_type_debug_info): New function.
5724         Convert to use ANSI-style prototypes. Remove unused
5725         declarations for emit_stack_check, elab_all_gnat and
5726         set_second_error_entity.
5727         (gnat_to_gnu_field_decl): New decl.
5728
5729         * utils.c (write_record_type_debug_info): New function.
5730         (finish_record_type): Delegate generation of debug information to
5731         write_record_type_debug_info.
5732         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
5733         (update_pointer_to): Fix pasto.
5734         (convert) <UNION_TYPE>: Accept slight type variations when
5735         converting to an unchecked union type.
5736
5737         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
5738         replace the N_Freeze_Entity with a null statement.
5739
5740         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
5741         within a constrained subcomponent of an enclosing record, place the
5742         freeze nodes in the scope stack entry for the enclosing record.
5743         (Undelay_Type): New Subprogram.
5744         (Set_Small_Size): Pass T, the type to modify; all callers changed.
5745         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
5746         within records; allow them to have freeze nodes if their base types
5747         aren't frozen yet.
5748
5749         * exp_util.adb (Remove_Side_Effects): Properly test for
5750         Expansion_Delayed and handle case when it's inside an
5751         N_Qualified_Expression.
5752
5753         * sem_ch3.adb (Derived_Type_Declaration): New predicate
5754         Comes_From_Generic, to recognize accurately that the parent type in a
5755         derived type declaration can be traced back to a formal type, because
5756         it is one or is derived from one, or because its completion is derived
5757         from one.
5758         (Constrain_Component_Type): If component comes from source and has no
5759         explicit constraint, no need to constrain in in a subtype of the
5760         enclosing record.
5761         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
5762         Minor change to propagate Is_Ada_2005 flag
5763
5764         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
5765         Expansion_Delayed is False.
5766         (assoc_to_constructor): Ignore fields that have a
5767         Corresponding_Discriminant.
5768         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
5769         function returns "by target", dereference the target pointer using the
5770         type of the actual return value.
5771         <all>: Be prepared for a null gnu_result.
5772         (processed_inline_subprograms): Check flag_really_no_inline
5773         instead of flag_no_inline.
5774         (set_second_error_entity): Remove unused function.
5775         (gnat_to_gnu, case N_Selected_Component): Call
5776         gnat_to_gnu_field_decl.
5777         (assoc_to_constructor): Likewise.
5778
5779 2005-03-15  Robert Dewar  <dewar@adacore.com>
5780             Ed Schonberg  <schonberg@adacore.com>
5781             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5782
5783         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
5784         Must_Be_Byte_Aligned for cases where we do not need to use a
5785         System.Pack_nn unit.
5786
5787         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
5788         as procedures.
5789         Needed now that we do some processing for IN parameters as well. This
5790         may well fix some unrelated errors.
5791         (Expand_Call): Handle case of unaligned objects (in particular those
5792         that come from packed arrays).
5793         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
5794         renamed entity is an inherited operation, re-expand the call using the
5795         original operation, which is the one to call.
5796         Detect attempt to inline parameterless recursive subprogram.
5797         (Represented_As_Scalar): Fix to work properly with private types
5798         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
5799         accurate estimate. Yields True in far fewer cases than before,
5800         improving the quality of code that depends on this test.
5801
5802         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
5803         over both visible and private declarations to remove them from tree,
5804         and mark subprograms declared in package as eliminated, to prevent
5805         spurious use in subsequent compilation of generic units in the context.
5806
5807         * exp_util.ads: Minor cleanup in variable names
5808
5809         * sem_eval.ads, sem_eval.adb: Minor reformatting
5810         (Compile_Time_Known_Bounds): New function
5811
5812 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
5813
5814         * exp_ch7.adb (Convert_View): Use base types of underlying types when
5815         determining whether an unchecked conversion is needed for the argument
5816         of an initialization call.
5817
5818 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
5819
5820         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
5821         that appears in the instantiation rather than the internal subtype
5822         generated in the wrapper package, to avoid anomalies in gigi when the
5823         target is derived from a private type whose full view is an access type.
5824
5825 2005-03-15  Robert Dewar  <dewar@adacore.com>
5826
5827         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
5828         not needed.
5829         Add documentation to replace the use of this flag
5830         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
5831         the x86_64.
5832
5833 2005-03-15  Thomas Quinot  <quinot@adacore.com>
5834
5835         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
5836         here from exp_attr so it can be shared between exp_attr and exp_dist.
5837         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
5838         all TSS names, not a subset thereof, and the previous name introduced
5839         an unnecessarily confusion that a distinction might exist between
5840         "OK" TSS names and some "not OK" TSS names.
5841
5842 2005-03-15  Doug Rupp  <rupp@adacore.com>
5843
5844         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
5845         Command_Name.
5846
5847 2005-03-15  Pascal Obry  <obry@adacore.com>
5848             Eric Botcazou  <ebotcazou@adacore.com>
5849
5850         PR ada/20226
5851         PR ada/20344
5852
5853         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
5854         when IN_RTS. This is to work around a bootstrap path problem.
5855
5856         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
5857         table and pass it to __gnat_install_SEH_handler().
5858         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
5859
5860         * lang.opt: Fix specification of -fRTS=.
5861
5862 2005-03-15  Doug Rupp  <rupp@adacore.com>
5863             Bernard Banner  <banner@adacore.com>
5864             Vincent Celier  <celier@adacore.com>
5865             Arnaud Charlet  <charlet@adacore.com>
5866
5867         PR ada/6852
5868         This change works fine when gnatlib is built from the gcc directory,
5869         but does not work when using the libada Makefile, since GCC_FOR_TARGET
5870         is not passed to ada/Makefile.in, so more work is needed by a
5871         Makefile/configure expert.
5872
5873         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
5874         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
5875         Setup gnatlink switch -M for x86_64 linux, as it is already setup
5876         for Linux x86.
5877         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
5878         Run ranlib on libgccprefix.a
5879         Define PREFIX_OBJS for Darwin, to build libgccprefix.
5880         (ADA_INCLUDE_SRCS): Split Ada packages.
5881
5882 2005-03-15  Robert Dewar  <dewar@adacore.com>
5883
5884         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
5885
5886         * impunit.adb: Add GNAT.UTF_32
5887
5888         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
5889
5890         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
5891         now uses GNAT.UTF_32).
5892
5893         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
5894         capabilities for categorizing characters using Unicode categories
5895
5896 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
5897
5898         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
5899         instantiation that has been rewritten as a package body, retrieve spec
5900         to generate proper name for implicit_with_clause.
5901         (Install_Parents): Recognize a parent that is an instantiation but has
5902         been rewritten as a package declaration during analysis.
5903
5904 2005-03-15  Javier Miranda  <miranda@adacore.com>
5905             Ed Schonberg  <schonberg@adacore.com>
5906
5907         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
5908         parameter reported some error we immediately return. This improves the
5909         behaviour of the frontend in case of errors.
5910         (Install_Parent, Remove_Parent): Introduce new flag
5911         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
5912         ancestor of a generic child unit, when the child is being instantiated.
5913         (Inline_Instance_Body): If we are compiling the private
5914         part or the body of a child unit, restore the proper visibility of the
5915         parents after compiling the instance body.
5916
5917 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
5918             Javier Miranda  <miranda@adacore.com>
5919
5920         PR ada/15608
5921         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
5922         of a private type, in which case it is underlying_type that denotes
5923         the proper task. Also modified to use the new entity attribute
5924         that is directly available in the task type and task subtype entities
5925         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
5926         arrays when other dimensions than the first are constrained by
5927         discriminants of an enclosing record.
5928         (Insert_Explicit_Dereference): If the prefix is an indexed component or
5929         a combination of indexed and selected components, find ultimate entity
5930         and generate the appropriate reference for it, to suppress spurious
5931         warnings.
5932         (Note_Possible_Modification): If an entity name has no entity, return.
5933         (Is_Variable): A function call never denotes a variable.
5934         (Requires_Transient_Scope): For record types, recurse only on
5935         components, not on internal subtypes that may have been generated for
5936         constrained components.
5937
5938 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
5939
5940         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
5941         Eliminated as candidates for resolution. Both efficient, and avoids
5942         anomalies with operators declared in deleted code.
5943         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
5944         expansion is disabled (as when compiling a generic) to prevent spurious
5945         warnings on prefixes of selected components.
5946
5947 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
5948
5949         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
5950         attached to a list before checking whether it appears in the private
5951         declarations of the current package.
5952         (Make_Inequality_Operator): Insert declaration in proper declarative
5953         list rather than just setting the Parent field, so that
5954         Is_Private_Declaration can handle it properly.
5955
5956 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
5957
5958         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
5959         a renaming a body, check that the renamed subprogram in not intrinsic.
5960         (Find_Direct_Name): If several use_visible entities hide
5961         each other, and the context is a predefined file compiled through
5962         rtsfind, keep only the entity that comes from a predefined file.
5963
5964 2005-03-15  Geert Bosch  <bosch@adacore.com>
5965
5966         * s-fatgen.adb (Valid): Extend special exceptions to account for long
5967         long float padding to also cover AMD64 and IA64.
5968
5969 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
5970
5971         * s-imgwch.adb: Add with and use of Interfaces.
5972         (Img_Wide_Character): Change type of Val to Unsigned_16.
5973         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
5974
5975 2005-03-15  Matthew Gingell  <gingell@adacore.com>
5976
5977         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
5978
5979 2005-03-15  Robert Dewar  <dewar@adacore.com>
5980
5981         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
5982
5983         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
5984
5985         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
5986
5987 2005-03-15  Robert Dewar  <dewar@adacore.com>
5988
5989         * s-bitops.adb, s-bitops.ads,
5990         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
5991         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
5992         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
5993         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
5994         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
5995         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
5996         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
5997         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
5998         reformatting.
5999
6000 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
6001
6002         * utils2.c (build_binary_op): Fix typo.
6003
6004 2005-03-15  Doug Rupp  <rupp@adacore.com>
6005
6006         * s-crtl.ads (popen,pclose): New imports.
6007
6008 2005-03-15  Cyrille Comar  <comar@adacore.com>
6009
6010         * comperr.adb (Compiler_Abort): remove references to obsolete
6011         procedures in the bug boxes for various GNAT builds.
6012
6013 2005-03-15  Vincent Celier  <celier@adacore.com>
6014
6015         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
6016
6017 2005-03-15  Geert Bosch  <bosch@adacore.com>
6018             Arnaud Charlet  <charlet@adacore.com>
6019             Robert Dewar  <dewar@adacore.com>
6020             Cyrille Comar  <comar@adacore.com>
6021             Sergey Rybin  <rybin@adacore.com>
6022
6023         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
6024         too specific and long-winded to be appropriate for the GNAT User's
6025         Guide.
6026         Warn about use of GCC switches not documented in the GNAT User's Guide,
6027         as these may cause generated code to not conform to Ada semantics.
6028         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
6029         Add documentation for -gnat95 and -gnat05 switches
6030         Remove paragraph documenting obsolete way to refer to third party
6031         libraries.
6032         Add a few references to Ada_05 that were missing.
6033         Update documentation on -gnatZ/-gnatL.
6034         Document limitation when using -m64 under Solaris.
6035         Change the "Name Casing" subsection of the pretty-printer section
6036         according to the changes in the dictionary processing.
6037
6038         * gnat_rm.texi: Document the Ada_05 pragma.
6039         Section on record representation clauses describes the new more
6040         relaxed rules about placement of large packed bit array components.
6041         Add documentation of GNAT.UTF_32
6042
6043 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
6044
6045         * misc.c (gnat_post_options): Turn off structural
6046         aliasing for now.
6047
6048 2005-03-08  Laurent Guerby <laurent@guerby.net>
6049
6050         * system-linux-sparc.ads: Fix typo in previous commit.
6051
6052 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
6053             Laurent Guerby <laurent@guerby.net>
6054
6055         PR ada/20035
6056         * system-linux-sparc.ads: New.
6057         * Makefile.in: Add sparc linux entry.
6058
6059 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
6060
6061         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
6062         parameters as unused.
6063
6064 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6065         Partial merge from libada-gnattools-branch:
6066
6067         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6068         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
6069         into code in gnattools/Makefile.in.  Remove direct dependencies on
6070         stamp-tools by tools clauses.
6071         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6072         * config-lang.in: Add gnattools to $lang_dirs.
6073
6074 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
6075
6076         PR ada/19942
6077         * utils.c (gnat_type_for_mode): Return null instead of ICE because
6078         we asked for an unknown mode.
6079
6080 2005-02-12  Richard Henderson  <rth@redhat.com>
6081
6082         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
6083         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
6084
6085 2005-02-10  Andreas Jaeger  <aj@suse.de>
6086
6087         * init.c (__gnat_initialize): Mark parameter as unused.
6088
6089 2005-02-09  Doug Rupp  <rupp@adacore.com>
6090
6091         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
6092         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
6093
6094 2005-02-09  Doug Rupp  <rupp@adacore.com>
6095
6096         * gnatchop.adb (dup, dup2),
6097         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
6098
6099         * gnatlbr.adb (mkdir),
6100         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
6101
6102         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
6103
6104 2005-02-09  Doug Rupp  <rupp@adacore.com>
6105
6106         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
6107
6108 2005-02-09  Robert Dewar  <dewar@adacore.com>
6109             Thomas Quinot  <quinot@adacore.com>
6110             Javier Miranda  <miranda@adacore.com>
6111             Pascal Obry  <obry@adacore.com>
6112             Ed Schonberg  <schonberg@adacore.com>
6113             Doug Rupp  <rupp@adacore.com>
6114             Gary Dismukes  <dismukes@adacore.com>
6115             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6116
6117         * g-zstspl.ads: New file.
6118
6119         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
6120
6121         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
6122         Ada 95 mode
6123         Add definition of Wide_Wide_Space for AI-285
6124
6125         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
6126         interface (to support Ada 95 and Ada 2005 units).
6127         Add Unbounded_IO files
6128         Add entries for Wide_Wide packages for AI-285
6129         Add list of containers packages to Ada 2005 unit list
6130
6131         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
6132         support new Unbounded_IO package cleanly.
6133
6134         * g-utf_32.ads, g-utf_32.adb: New files.
6135
6136         * Makefile.rtl: Add entry for g-utf_32
6137         Add new files for Unbounded_IO
6138         Adjust make file for new AI-285 wide wide packages
6139         Add AI-302 containers to the run time.
6140
6141         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
6142         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
6143         subprograms for AI-301.
6144
6145         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
6146
6147         * a-stunau.ads: Minor comment correction
6148
6149         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
6150         etc.
6151         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
6152         (Check_RPC): Update to match changes in expanded code.
6153         Clean up unused entity.
6154
6155         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
6156         was not taken into account.
6157         This includes proper initialization with Normalize_Scalars.
6158         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
6159         normalize scalars cases (particularly the latter) to do a better job
6160         of finding invalid representations.
6161
6162         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
6163
6164         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
6165         used
6166
6167         * exp_dist.adb: Add support for wide wide character type
6168         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
6169         private part, generate stub bodies at the end of the private part,
6170         not the visible part.
6171         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
6172         PolyORB support.
6173         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
6174         generic wrapper to execute final processing after completing the
6175         expansion of the RPC receiver for an RACW.
6176
6177         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
6178         packages and attributes.
6179         (Preset_Names): Addition of the new reserved words of Ada 2005,
6180         that is interface, overriding and synchronized.
6181         (Get_Pragma_Id): Give support to the use of the new reserved word
6182         "interface" as a pragma name.
6183         (Is_Pragma_Name): Give support to the use of the new reserved word
6184         "interface" as a pragma name.
6185         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
6186         attribute implementation.
6187
6188         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
6189         checks to entities that are output parameters of Asm operations.
6190         Handle the Stream_Size attribute.
6191         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
6192
6193         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
6194
6195         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
6196         for second parameter being 0.0.
6197         Add support for wide wide character type.
6198         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
6199
6200         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
6201         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
6202         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
6203         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
6204         for wide wide character cases.
6205
6206         * cstand.adb: Create entities for Wide_Wide_Character and
6207         Wide_Wide_String.
6208
6209         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
6210         accordance with AI-258.
6211         Add new declarations for 16/32 bit C character types (Part of AI285)
6212
6213         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
6214         (Obsolescent_Warning): New field
6215         (Rep_Clause): New local subprogram used to share code. Returns the rep
6216         clause for which the name is given in parameter.
6217         (Has_Stream_Size_Clause): New routine.
6218         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
6219         (Address_Clause): Implementation is now using Rep_Clause.
6220         (Alignment_Clause): Idem.
6221         (Size_Clause): Idem.
6222
6223         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
6224         entity in non-Ada 2005 mode and generate warning.
6225
6226         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
6227         (Prag): Code cleanup. Remove old gnat pragma "overriding"
6228
6229         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
6230         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
6231         on the named unit if the pragma is not in the current compilation unit,
6232         so that elaboration calls in the current unit can set up an elaboration
6233         dependency on the named unit, as needed.
6234         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
6235         subprogram as well as for subprograms declared within a package.
6236         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
6237         pragma overriding.
6238
6239         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
6240         to z) to avoid some instances of duplication for Wide_Wide packages.
6241
6242         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
6243         characters.
6244
6245         * scn.adb: Char_Literal_Value field is now a Uint
6246
6247         * scng.adb: Significant rewrite to handle new Ada 2005 features
6248         allowing wide and wide wide characters in program text, e.g. for
6249         identifiers, as described in AI-285.
6250         (Set_Reserved): New procedure, makes setting up keywords cleaner.
6251         (Initialize_Scanner): Register the new reserved words of Ada 2005.
6252         (Scan): Give support to the new reserved words.
6253
6254         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
6255         warning notifying that interface, overriding, and synchronized are
6256         new reserved words.
6257         (P_Pragma): Allow the use of the new reserved word "interface" as
6258         a pragma name.
6259
6260         * gnatls.adb, gnatbind.adb,
6261         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
6262         identifiers named "interface" to "SAL_Interface".
6263
6264         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
6265         (Structured Exception handling).
6266         (Gen_Main_C): Idem.
6267
6268         * bindgen.adb:
6269         (Gen_Main_Ada): Set the default exit code if specified.
6270         (Gen_Main_C): Likewise.
6271         Part of *DC20-006.
6272         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
6273         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
6274
6275         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
6276         new -Xnnn switch.
6277
6278         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
6279         has a collision with the new Ada 2005 "interface" reserved word.
6280
6281         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
6282         generate a warning notifying that interface, overriding, and
6283         synchronized are new reserved words.
6284
6285         * scans.ads (Token_Type): Addition of the tokens corresponding to the
6286         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
6287         and Tok_Synchronized.
6288
6289         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
6290         "dispatching" rather than "primitive" operations, since dispatching
6291         calls are now allowed to abstract formal subprograms (which are not
6292         primitive).
6293         Char_Literal_Value field is now a Uint
6294         (Resolve_Slice): If the prefix is an access to an unconstrained array,
6295         compute the actual subtype of the designated object to impose the proper
6296         index constraints.
6297         (Resolve_Selected_Component): Do not insert an access check if the
6298         prefix is an access type: such a node is expanded into an explicit
6299         dereference, on which the access check is performed anyway. Removes
6300         expensive duplicate checks.
6301         (Resolve_Call): Use new flag Is_Obsolescent and field
6302         Obsolescent_Warning so that pragma Obsolescent works on library
6303         subprograms.
6304         Add support for wide wide character type
6305         (Resolve_Allocator): Replace the error message on wrong null-exclusion
6306         value by a warning message.
6307         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
6308         as fixed-point, and one of the operands is non-static and universal, it
6309         can only be an illegal exponentiation operation, in which case there is
6310         no real value to retrieve.
6311
6312         * exp_strm.adb: Add support for wide wide character type
6313         (Build_Elementary_Input_Call): Compute the size of the stream element by
6314         querying the rep chain to find the Stream_Attribute attribute value.
6315         (Build_Elementary_Write_Call): Ditto.
6316
6317         * sem_aggr.adb: Char_Literal_Value field is now a Uint
6318         Add support for wide wide character type
6319         Replace the error messages on wrong null-exclusion value by warnings
6320         as described in Ada 2005.
6321         (Resolve_Extension_Aggregate): Document the fact that the error
6322         message on class-wide expressions in extensions aggregates.
6323
6324         * sem_case.adb: Add support for wide wide character type
6325
6326         * sem_ch13.adb: Add support for wide wide character type
6327         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
6328
6329         * sem_ch3.adb: Add support for wide wide character type
6330         (Process_Subtype): If constraint is illegal for the type, set Ekind of
6331         now-useless Itype, to prevent cascaded errors on a compiler built
6332         without -gnatp.
6333
6334         * sem_ch8.adb: Add with and use of Sem_Disp.
6335         (Analyze_Subprogram_Renaming): Replace unclean uses of
6336         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
6337         of Corresponding_Spec to Empty).
6338         (Attribute_Renaming): Replace use of Corresponding_Spec with
6339         Corresponding_ Formal_Spec and simplify condition.
6340         (Use_One_Package): Check that scope of homonym of identifier is defined,
6341         before checking whether it is a wrapper package.
6342         Add support for wide wide character type
6343
6344         * sem_eval.adb: Add support for wide wide character type.
6345         (Eval_Arithmetic_Op): Check for compile time known signed integer
6346         overflow in the non-static case.
6347         (Subtypes_Statically_Match): A formal scalar type and its base type do
6348         not statically match.
6349
6350         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
6351         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
6352         subtype).
6353         (Unit_Declaration_Node): Ditto.
6354         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
6355         has a packed array type, the prefix has been rewritten into a type
6356         conversion. Determine variable-ness from the converted expression.
6357         Handle wide wide character cases.
6358
6359         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
6360
6361         * stringt.ads, stringt.adb: Handle full UTF-32 range.
6362         Remove ["0A"] from comment, since it can look like a line terminator.
6363         Currently we don't permit this, but this is under discussion by the
6364         ARG, and it is easy enough to use a different example.
6365
6366         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
6367         handling UTF-32 encoding for wide wide character.
6368         Implement new brackets coding ["hhhhhhhh"]
6369         Add UTF-8 encodings for full UTF-32 range
6370
6371         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
6372
6373         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
6374         bit range Add full UTF-32 support.
6375         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
6376         notify that constraint error will be raised at run-time
6377         because a null value is assigned to a null-excluding object.
6378         Remove some obsolete declarations and make Char_Code
6379         unsigned.
6380
6381         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
6382         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
6383         Rcheck subprograms.
6384
6385         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
6386         wrong null-exclusion value by a warning message.
6387         (Enable_Range_Check): Do range check if the prefix is an
6388         explicit dereference whose designated object is an unconstrained array.
6389         Current algorithm for removing duplicate checks is over-eager in this
6390         case.
6391
6392         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
6393         null-exclusion value by a warning message
6394
6395         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
6396         completely. Add support for Uint2 field
6397
6398         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
6399         exp_prag.adb: Char_Literal_Value field is now a Uint.
6400
6401         * exp_util.adb (Insert_Actions): Replace
6402         N_Formal_Subprogram_Declaration by
6403         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
6404         Char_Literal_Value field is now a Uint.
6405
6406         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
6407         defined for subprogram renaming declarations. When set, the field
6408         indicates the defining entity of a corresponding formal subprogram
6409         when the renaming corresponds to a formal subprogram association in an
6410         instantiation.
6411         (Set_Corresponding_Formal_Spec): New procedure to return
6412         Corresponding_Formal_Spec field.
6413         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
6414         (which is now a subtype).
6415         Char_Literal_Value field is now a Uint
6416
6417         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
6418         pointer to the base of the dispatch table.
6419         Minor changes to comments.
6420         (Controlling_Type): New function for determining the tagged type
6421         associated with a tagged primitive subprogram.
6422         (Expand_Dispatching_Call): Add support for a controlling actual that is
6423         directly a value of type Ada.Tag rather than a tagged object.
6424
6425         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
6426         describing the new layout.
6427         (Dispatch_Table): The expander computes the actual array size, allocates
6428         the Dispatch_Table record accordingly, and generates code that displaces
6429         the base of the record after the Typeinfo_Ptr component. The access to
6430         these components is done by means of local functions.
6431         (Offset_To_Top): New function.
6432         (Typeinfo_Ptr): New function.
6433         (Get_TSD): Modified to access the new position of the TSD.
6434         (Set_TSD): Modified to save the TSD in its new position.
6435
6436         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
6437         case of formal abstract subprograms. Add check and message for -gnat05.
6438         Update comments.
6439
6440         * sem_ch12.adb: Add with and use for Sem_Disp.
6441         (Analyze_Associations): Minor change from "=" to "in" for use of
6442         N_Formal_Subtype_Declaration (which is now a subtype).
6443         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
6444         N_Formal_Subtype_Declaration (which is now a subtype).
6445         (Analyze_Formal_Subprogram): Add handling for
6446         N_Formal_Abstract_Subprogram, marking the formal as abstract and
6447         dispatching, setting the controlling status of the formal parameters
6448         and result, and issuing an error if there is no controlling type for
6449         the formal subprogram.
6450         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
6451         which is an unclean use of that field, we set the new field
6452         Corresponding_Formal_Spec to make the formal subprogram available to
6453         processing in Analyze_Subprogram_Declaration.
6454         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
6455         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
6456         Constrained, so that it is is does not statically match its anonymous
6457         base type.
6458
6459         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
6460         abstract formal subprograms in error check for functions returning
6461         abstract types. Set scope of new designator for
6462         a parameterless subprogram, so that it is available when checking the
6463         body for nested subprograms, before full analysis of said body.
6464         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
6465         subprogram only if inner one comes from source.
6466         (Analyze_Function_Call): If the call is given in object notation, the
6467         analysis of the name rewrites the node and analyzes it with the proper
6468         argument list. After analyzing the name, if the call has been rewritten
6469         and the result type is set, no further analysis is needed.
6470         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
6471         mark in function specification, in a context where the formals are
6472         visible and hide outer homographs.
6473
6474         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
6475         as the tagged type for the cases of abstract formal subprograms and
6476         renamings of those.  Clean up spec comments.
6477         (Check_Dispatching_Context): Add error message to indicate "abstract
6478         procedure", covering the case of a call to a formal abstract procedure
6479         that has statically tagged operands.
6480         (Check_Dispatching_Call): Check for the case of an actual given by
6481         a tag-indeterminate function call whose type is an ancestor of the
6482         containing call's associated tagged type. This situation can occur
6483         for inherited primitives with function defaults. In this case we
6484         use the tagged type's tag directly as the controlling argument for
6485         the calls.
6486         (Expand_Call): Name change on call to Expand_Dispatch_Call.
6487
6488         * sprint.adb (Sprint_Node_Actual): Split
6489         N_Formal_Subprogram_Declaration into two alternatives for the new
6490         cases N_Formal_Abstract_Subprogram_Declaration and
6491         N_Formal_Concrete_Subprogram_Declaration.
6492         Char_Literal_Value field is now a Uint.
6493
6494         * trans.c: Get rid of junk Uint2 reference.
6495         Char_Literal_Value field is now a Uint.
6496         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
6497         (gigi): Correct third arg to gimplify_body.
6498
6499         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
6500         (TYPE_LANG_FLAG_0): Check for record or union.
6501
6502         * treepr.adb: Char_Literal_Value field is now a Uint
6503
6504         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
6505         UI_From_CC.
6506
6507         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
6508         Add full UTF-32 support
6509         Char_Code is now 32 bits
6510
6511         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
6512         wide character UTF_32 line terminators.
6513         Initialize Main_Source_File to avoid error when no main
6514         source is loaded.
6515
6516         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
6517         (Main_Source_File) when no main source has been loaded, to avoid
6518         potential crash.
6519
6520 2005-02-09  Robert Dewar  <dewar@adacore.com>
6521
6522         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
6523         Fix name of Set routine
6524
6525         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
6526         fixed packages.
6527
6528         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
6529         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
6530         fixed packages
6531
6532         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
6533         forms of Get_Line subprograms for AI-301.
6534
6535         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
6536         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
6537         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
6538         a-stwima.ads: Minor reformatting.
6539
6540 2005-02-09  Doug Rupp  <rupp@adacore.com>
6541             Thomas Quinot  <quinot@adacore.com>
6542
6543         * adaint.c, adaint.h
6544         [VMS] (to_ptr32): New function.
6545         (MAYBE_TO_PTR32): New macro.
6546         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
6547         for pointer size.
6548         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
6549         [VMS] (#define fork()): Remove since unneccessary.
6550         (__gnat_set_close_on_exec): New routine to support
6551         GNAT.OS_Lib.Set_Close_On_Exec.
6552
6553         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
6554         the parent side as close-on-exec so that they are not inherited by the
6555         child.
6556
6557         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
6558         set or clear the FD_CLOEXEC flag on a file descriptor.
6559
6560 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
6561             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6562
6563         Fix for c330001 - PR ada/19386
6564
6565         * decl.c:
6566         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
6567         on the field if Pragma Component_Alignment (Storage_Unit).
6568         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
6569         side-effects as if it were a constant; also make SAVE_EXPR to protect
6570         side-effects.
6571         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
6572         UNION_TYPE.
6573         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
6574         (components_to_record): Test it.
6575         Fix improper usage of REFERENCE_CLASS_P.
6576
6577         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
6578         RECORD_TYPE.
6579
6580         * utils2.c: Minor reformatting.
6581
6582         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
6583         handle other cases like RECORD_TYPE.
6584
6585         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
6586
6587 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
6588
6589         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
6590         component of an array of arrays in an assignment context, and the
6591         aggregate has component associations that require sliding on
6592         assignment, force reanalysis of the aggregate to generate a temporary
6593         before the assignment.
6594         (Must_Slide): Make global to the package, for use in Gen_Assign.
6595
6596 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
6597
6598         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
6599         unchecked union with no inferable discriminants, return a
6600         Raise_Program_Error node, rather than inserting it at the point the
6601         type is frozen.
6602         (Expand_Record_Equality, Component_Equality): Handle properly the case
6603         where some subcomponent is an unchecked union whose generated equality
6604         code raises program error.
6605
6606 2005-02-09  Doug Rupp  <rupp@adacore.com>
6607
6608         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
6609         [VMS] (#define exit hack): Remove.
6610
6611 2005-02-09  Pascal Obry  <obry@adacore.com>
6612             Arnaud Charlet <charlet@adacore.com>
6613
6614         * init.c (__gnat_initialize): Add a new parameter eh which contains the
6615         address of the exception registration. The Win32 version of this
6616         routine calls __gnat_install_SEH_handler() to initialize the SEH
6617         (Structured Exception Handling) handler.
6618         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
6619         SEH (Structured Exception Handling) now.
6620         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
6621         (__gnat_initialize for ppc-vxworks): Adjust comments and the
6622         preprocessor condition protecting the call to the extra eh setup
6623         subprogram, which is only available for the ppc target.
6624         (__gnat_clear_exception_count): replaced reference to
6625         variable taskIdCurrent by call to taskIdSelf(), cleaner.
6626
6627         * seh_init.c: New file.
6628
6629         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
6630         (GNATBIND_OBJS): Idem.
6631
6632         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
6633         routine takes a new parameter (a pointer to the exception registration
6634         for the SEH (Structured Exception Handling) support.
6635
6636         * raise.h: (__gnat_install_SEH_handler): New prototype.
6637         Update copyright notice.
6638
6639         * s-tassta.adb (Task_Wrapper): Declare the exception registration
6640         record and initialize it by calling __gnat_install_SEH_handler.
6641
6642 2005-02-09  Vincent Celier  <celier@adacore.com>
6643
6644         * make.adb (Gnatmake): Do not fail when the main project has no object
6645         directory.
6646
6647 2005-02-09  Doug Rupp  <rupp@adacore.com>
6648
6649         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
6650         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
6651         [VMS]: Add translations for g-enblsp.adb.
6652
6653         * s-asthan-vms.adb: Removed.
6654         * s-asthan-vms-alpha.adb: Added.
6655
6656 2005-02-09  Pascal Obry  <obry@adacore.com>
6657
6658         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
6659         (LIBGNAT_OBJS): Add seh_init.o.
6660
6661 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
6662
6663         PR ada/16592
6664
6665         * Makefile.in: Link all gnat tools with -static-libgcc, since
6666         -shared-libgcc is now used by default on some systems (e.g. linux with
6667         recent binutils).
6668         Remove references to Makefile.prolog/generic, no longer used.
6669
6670 2005-02-09  Vincent Celier  <celier@adacore.com>
6671
6672         * prj-makr.adb (Process_Directory): Put file name in canonical case
6673         before matching against the patterns.
6674         If gnatname has been invoked as <prefix>-gnatname
6675         then invoke the compiler as <prefix>-gcc, not just "gcc".
6676
6677 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
6678
6679         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
6680         with expansion disabled. The actual subtype is needed among other
6681         places when the selected component appears in the context of a loop
6682         bound, and denotes a packed array.
6683         (Operator_Check): Always use the first subtype in the
6684         error message, to avoid the appearance of internal base types.
6685         (Transform_Object_Operation): Copy each actual in full
6686         to the parameter associations of the constructed call, rather than
6687         using the shallow copy mechanism of New_Copy_List. This ensures that
6688         the chaining of named associations is done properly.
6689         (Complete_Object_Operation): Rewrite node, rather than
6690         replacing it, so that we can trace back to the original selected
6691         component.
6692
6693         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
6694         and calls that use object notation, if the called function is not
6695         declared  in a withed unit, place the elaboration constraint on the
6696         unit in the context that makes the function accessible.
6697         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
6698         imposes an elaboration constraint between two packages.
6699
6700 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
6701
6702         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
6703         views of a private type after handling its private dependents, to
6704         maintain proper stack discipline between entry and exit from the
6705         package.
6706
6707 2005-02-09  Cyrille Comar  <comar@adacore.com>
6708
6709         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
6710         Minor reformatting.
6711
6712 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
6713
6714         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
6715         fields for foreign threads.
6716
6717 2005-02-09  Doug Rupp  <rupp@adacore.com>
6718
6719         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
6720         recursion warnings when compiled with -gnatdm.
6721
6722 2005-02-09  Robert Dewar  <dewar@adacore.com>
6723
6724         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
6725         Slight fix to documentation of -gnaty with no parameters
6726
6727         * xr_tabls.ads: Add ??? comment for missing overall comment
6728
6729         * xsinfo.adb: Make default file name be sinfo.h, since this is what
6730         we now use by default.
6731
6732         * xsnames.adb: Adjust end of file test to look for five space followed
6733         by '#' instead of six spaces. The format of xsnames.adb was modified
6734         in the last update.
6735
6736         * a-numeri.ads: Add reference to AI-388 for greek letter pi
6737         identifier.
6738
6739         * clean.adb: Minor reformatting.
6740
6741         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
6742         gnatname.adb: Minor reformatting
6743         Add 2005 to copyright output when utility is run
6744
6745         * csets.adb: Eliminate obsolete comment
6746
6747         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
6748         Update comments.
6749
6750         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
6751
6752 2005-02-09  Sergey Rybin  <rybin@adacore.com>
6753
6754         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
6755         the difference between compact and incompact layout and add the record
6756         representation clause to the example illustrating different layouts.
6757         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
6758         component clauses").
6759
6760 2005-02-09  Florian Villoing  <villoing@adacore.com>
6761
6762         * gnat_ugn.texi: Fix typos.
6763         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
6764         @file.
6765         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
6766         in the generated documentation.
6767
6768 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
6769
6770         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
6771         longer supported.
6772         Update linker wrapper when linking with non GNU C++.
6773
6774 2005-02-09  Pascal Obry  <obry@adacore.com>
6775
6776         * gnat_ugn.texi:
6777         Document the procedure to debug the DllMain routine on Windows.
6778         Add note about -funwind-tables and mixed Ada and C/C++ programming in
6779         ZCX mode.
6780         Document new BIND qualifer /RETURN_CODES=VMS.
6781
6782 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
6783
6784         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
6785         Edited gnatmetric chapter
6786
6787 2005-02-09  Robert Dewar  <dewar@adacore.com>
6788
6789         * gnat_rm.texi:
6790         Changes to document new wide wide character support
6791         For AI-285
6792         Update documentation on Normalize_Scalars and Initialize_Scalars
6793
6794 2005-02-09  Pascal Obry  <obry@adacore.com>
6795
6796         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
6797
6798 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
6799
6800         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
6801         from the VxWorks kernel) that is needed for getting the active
6802         priority of the different tasks.
6803
6804         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
6805         Use a pragma Elaborate_Body in the spec file instead.
6806         Noticed by code reading.
6807
6808 2005-02-09  Thomas Quinot  <quinot@adacore.com>
6809
6810         * exp_util.ads: Minor correction in comment.
6811
6812 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
6813
6814         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
6815         since this procedure is now too complex to be worth inlining.
6816
6817 2005-02-09  Richard Henderson  <rth@redhat.com>
6818
6819         * utils.c (gnat_define_builtin): Remove.
6820         (gnat_install_builtins): Use build_common_builtin_nodes.
6821
6822 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
6823
6824         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
6825         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
6826         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
6827         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
6828         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
6829         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
6830         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
6831         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
6832         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
6833         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
6834         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
6835         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
6836         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
6837         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
6838         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
6839         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
6840         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
6841         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
6842         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
6843         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
6844         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
6845         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
6846         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
6847         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
6848         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
6849         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
6850         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
6851         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
6852         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
6853         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
6854         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
6855         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
6856         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
6857         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
6858         library.
6859
6860 2005-01-27  Laurent GUERBY <laurent@guerby.net>
6861
6862         * Makefile.in: Fix a-intnam.ads from previous commit,
6863         add 2005 to copyright.
6864         * a-intman-rtems.ads: Renamed to...
6865         * a-intnam-rtems.ads:
6866
6867 2005-01-27  Laurent GUERBY <laurent@guerby.net>
6868
6869         * Makefile.in: Rename GNAT RTEMS specific files.
6870         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
6871         5rosinte.ads, 5rparame.adb: Replaced by files below.
6872         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
6873         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
6874
6875 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
6876             Laurent GUERBY <laurent@guerby.net>
6877
6878         PR ada/19488
6879         * 5rosinte.ads: Add No_Key constant.
6880         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
6881         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
6882
6883 2005-01-26  Laurent GUERBY <laurent@guerby.net>
6884
6885         PR ada/19414
6886         * i-cobol.adb (Valid_Numeric): Handle zero length case.
6887
6888 2005-01-20  Richard Henderson  <rth@redhat.com>
6889
6890         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
6891         a-intnam-linux.ads and system-linux-alpha.ads.
6892         * a-intnam-linux-alpha.ads: Remove file.
6893         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
6894         * system-linux-alpha.ads: New file.
6895
6896 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
6897
6898         PR ada/13470
6899         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
6900         set to the new string.
6901
6902 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
6903
6904         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
6905         to True.
6906
6907 2005-01-18  Richard Henderson  <rth@redhat.com>
6908
6909         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
6910         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
6911         for alpha-linux.
6912         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
6913
6914 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
6915
6916         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
6917         (GCC_ZCX_Support): Likewise.
6918
6919 2005-01-11  Bastian Blank  <waldi@debian.org>
6920
6921         * system-linux-s390.ads: Define Preallocated_Stacks.
6922         * system-linux-s390x.ads: Likewise.
6923
6924 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
6925
6926         * gnat_ugn.texi: Fix texi errors with null variables.
6927
6928 2005-01-03  Thomas Quinot  <quinot@adacore.com>
6929
6930         * gen-soccon.c: New utility program to generate g-soccon.ads
6931         automatically.
6932
6933         * socket.c, gsocket.h: Split inclusion of system header files into a
6934         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
6935
6936         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
6937         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
6938         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
6939         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
6940         should not be edited by hand anymore, but should be regenerated using
6941         gen-soccon.
6942
6943 2005-01-03  Robert Dewar  <dewar@adacore.com>
6944             Ed Schonberg  <schonberg@adacore.com>
6945             Vincent Celier  <celier@adacore.com>
6946
6947         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
6948         on/off, since this is an obsolescent feature, for which we now generate
6949         a warning.
6950
6951         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
6952         warning mode is set and obsolescent usage of this attribute occurs.
6953         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
6954         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
6955         predates, and partly motivates, the adoption of the AI.
6956         Implement new Ada 2005 attribute Mod
6957
6958         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
6959         attribute Mod.
6960
6961         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
6962
6963         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
6964         pragma restrictions.
6965         New entry for Ada 2005 attribute Mod.
6966
6967         * par-prag.adb:
6968         Add recognition of new pragma Restrictions No_Dependence
6969         Recognize restriction No_Obsolescent_Features at parse time
6970
6971         * bcheck.adb: Add circuitry for checking for consistency of
6972         No_Dependence restrictions.
6973
6974         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
6975         restrictions.
6976
6977         * restrict.ads, restrict.adb: Add subprograms to deal with
6978         No_Dependence restrictions.
6979
6980         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
6981         restrictions.
6982
6983         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
6984         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
6985
6986         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
6987         dummy parameter to scng instantiation.
6988         Needed for new restriction No_Obsolescent_Features
6989
6990         * scn.adb: (Obsolescent_Check): New procedure
6991         Needed for new restriction No_Obsolescent_Features
6992
6993         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
6994         specified by AI-285, needed for implementation of AI-388 (adding greek
6995         pi to Ada.Numerics).
6996         Add new generic formal to scng, needed for new restriction
6997         No_Obsolescent_Features.
6998
6999         * s-rident.ads: Add new restriction No_Obsolescent_Features.
7000
7001         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
7002         restrictions lines.
7003         (Scan_ALI): When finding an unexpected character on an R line, raise
7004         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
7005         Ignore_Errors is True, default restrictions are set and scanning of the
7006         ALI file continues with the next line. Also, when Bad_R_Line is raised
7007         and Ignore_Errors is True, skip to the end of le line.
7008
7009         * sem_ch10.adb: Check that explicit with's do not violate
7010         No_Dependence restrictions.
7011         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
7012         illegal context clauses containing child units of instance.
7013
7014         * sem_prag.adb: Processing and checking for new No_Dependence
7015         restrictions.
7016         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
7017         analyze and check the External argument.
7018
7019         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
7020
7021 2005-01-03  Robert Dewar  <dewar@adacore.com>
7022
7023         * atree.adb: Add a fifth component to entities
7024         This allows us to add 32 flags and four new fields
7025
7026         * atree.ads: Add a fifth component to entities
7027         This allows us to add 32 flags and four new fields
7028
7029         * einfo.ads, einfo.adb: Document new fields and new flags now available
7030         Add routines for printing new fields
7031
7032         * treepr.adb: Call routines to print out additional fields if present
7033
7034 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7035
7036         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
7037         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
7038
7039         * Makefile.in: Add support to build shared Ada libraries on solaris x86
7040         Remove gpr2make, replaced by gprmake.
7041         Remove references to gnatmem and libaddr2line.
7042         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
7043         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
7044         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
7045         a-numaux-darwin.ads and a-numaux-darwin.adb
7046         Enable mlib-tgt-lynxos.adb on lynxos.
7047
7048         * Make-lang.in: Remove rules for gpr2make.
7049         When generating sdefault.adb, do not call Relocate_Path
7050         on S3 for function Target_Name, as it is not a path.
7051         Remove references to gnatmem and libaddr2line.
7052
7053         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
7054         files.
7055
7056 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
7057
7058         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
7059         address is incompatible with its base type alignment constraints when
7060         this can be decided statically.
7061
7062 2005-01-03  Olivier Hainque  <hainque@adacore.com>
7063
7064         * decl.c (compatible_signatures_p): New function. The intended purpose
7065         is to check if two function signatures for a call-site and a callee are
7066         compatible enough for the call to be valid. The underlying purpose is
7067         to check if a call to a mapped builtin is using the right interface.
7068         The current code actually does not check antyhing - this a placeholder
7069         for future refinements.
7070         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
7071         builtin calls for convention Intrinsic.
7072
7073         * gigi.h (builtin_decl_for): Declare (new function).
7074
7075         * utils.c (gnat_install_builtins): Install the target specific builtins.
7076         (builtin_decl_for): New function, provide a dummy body for now.
7077
7078 2005-01-03  Geert Bosch  <bosch@adacore.com>
7079
7080         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
7081         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
7082         (Pred): Implement in terms of Succ.
7083
7084         * trans.c (convert_with_check): Reimplement conversion of float to
7085         integer.
7086
7087 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7088             Vincent Celier  <celier@adacore.com>
7089
7090         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
7091         bounds can be negative, and must be declared Int, not Nat.
7092
7093         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
7094         array is checked after using the index in the array.
7095
7096         * makegpr.adb (Add_Switches): Check if there is a package for the
7097         processor. If there is no package, do not look for switches.
7098
7099 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7100
7101         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
7102         generation of predefined stream operations (specs and bodies) should
7103         proceed. Under various restrictions these subprograms must not be
7104         generated.
7105
7106 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7107
7108         * exp_dist.adb:
7109         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
7110         amount of PCS-specific code in RACW stubs generation.
7111         (Copy_Specification): Set Etype on copied formal parameter entities, as
7112         this information is needed for PolyORB stubs generation.
7113         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
7114         variable Dynamic_Async.
7115         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
7116         (Build_RPC_Receiver_Specification): Make generic again, as recent
7117         changes have allowed RPC receivers to have the same profile for both
7118         variants of the PCS.
7119         Reorganise RPC receiver generation to reduce differences between the
7120         structure of GARLIC and PolyORB RPC receivers.
7121         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
7122         PCS-specific.
7123         Simplify elaboration code for RCI packages.
7124
7125         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
7126         generation to reduce differences between the structure of GARLIC and
7127         PolyORB RPC receivers.
7128
7129         * s-stratt.adb: Fix typo in comment.
7130
7131 2005-01-03  Thomas Quinot  <quinot@adacore.com>
7132
7133         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
7134         copied from Make_Init_Call).
7135
7136         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
7137         reads and assignments on a temporary variable declared with appropriate
7138         discriminants.
7139
7140 2005-01-03  Robert Dewar  <dewar@adacore.com>
7141
7142         * i-c.adb (To_C): Raise CE if string is null and Append_Null
7143
7144 2005-01-03  Robert Dewar  <dewar@adacore.com>
7145
7146         * i-cstrin.adb (Update): Do not append a null in form called with a
7147         String. This avoids unintended behavior.
7148
7149 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7150
7151         PR ada/17527
7152         * init.c: Fix warnings on Free BSD section.
7153
7154 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7155
7156         PR ada/16949
7157         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
7158         xsinfo.adb).
7159
7160 2005-01-03  Vincent Celier  <celier@adacore.com>
7161
7162         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
7163         libraries when Unique_Compile is True (-u switch).
7164         (Gnatmake): ditto.
7165
7166 2005-01-03  Robert Dewar  <dewar@adacore.com>
7167
7168         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
7169         upper case letter or underscore after W, as allowed by spec.
7170
7171 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7172
7173         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
7174         darwin port by using proper type definitions from header files.
7175         Use SIGTERM instead of SIGABRT for SIGADAABORT.
7176
7177 2005-01-03  Robert Dewar  <dewar@adacore.com>
7178
7179         * par.adb: Enhance error message handling for configuration file
7180         pragmas.
7181
7182 2005-01-03  Robert Dewar  <dewar@adacore.com>
7183
7184         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
7185         removed during the previous update (test properly for case of dividing
7186         largest negative number by -1, which generates overflow).
7187
7188 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7189             Sergey Rybin  <rybin@adacore.com>
7190
7191         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
7192         to use as the defining identifier for a formal package.
7193         (Remove_Parent): If the instance takes place within (an instance of)
7194         a sibling, preserve private declarations of common parent.
7195
7196 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7197
7198         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
7199         to determine whether one of the operands is a fixed-point type for
7200         which a user-defined multiplication or division operation might be
7201         defined.
7202
7203         * sem_res.adb (Valid_Conversion): The legality rules for conversions
7204         of access types are symmetric in Ada 2005: either designated type can
7205         be unconstrained.
7206
7207 2005-01-03  Vincent Celier  <celier@adacore.com>
7208
7209         * s-fileio.adb (Temp_File_Record): Change length of string component
7210         Name from L_tmpnam + 1 to max_path_len + 1.
7211
7212 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
7213
7214         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
7215         Self_Id.Deferral_Level = 0.
7216         (Do_Pending_Action): Move this function to the spec.
7217
7218         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
7219         Do_Pending_Action explicitely when needed, in case we're using
7220         No_Abort restrictions.
7221
7222         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
7223         deferral level since it will not get changed by the generated code.
7224         Keeping a default value of 1 would prevent some operations (e.g.
7225         select or delay) to proceed successfully.
7226
7227 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
7228             Robert Dewar  <dewar@adacore.com>
7229             Cyrille Comar  <comar@adacore.com>
7230
7231         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
7232         porting guide chapter (vms version).
7233         Revised doc title (removed "for native platforms") and subtitle.
7234         Add discussion on warning flag for obsolescent features. First we
7235         note that it applies to obsolete GNAT features, which was previously
7236         omitted. Second we contrast the behavior with that of the new
7237         Ada 2005 AI-368 restriction No_Obsolescent_Features.
7238         Preliminary rewriting of GNAT & libraries chapter in order to take
7239         into account default project locations & new project manager
7240         capabilities.
7241
7242 2005-01-03  Robert Dewar  <dewar@adacore.com>
7243
7244         * cstand.adb (Create_Operators): Clean up format and documentation of
7245         unary and binary operator result tables. No change in code, just
7246         reformatting and addition of comments.
7247
7248         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
7249         sem_ch2.adb: Minor reformatting
7250
7251         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
7252         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
7253         comments for Tree_Read and Tree_Write.
7254
7255 2005-01-03  Pascal Obry  <obry@adacore.com>
7256
7257         * exp_attr.ads: Minor reformatting.
7258
7259 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
7260
7261         * comperr.adb (Compiler_Abort): Add specialized message for GAP
7262         versions.
7263
7264 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
7265
7266         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
7267         whether the ancestor type is private, as may be the case with nested
7268         instantiations.
7269
7270 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
7271
7272         PR ada/19128
7273         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
7274
7275 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7276
7277         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
7278         * utils2.c (build_unary_op): Likewise.
7279
7280 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7281
7282         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
7283
7284 2004-12-19  Richard Henderson  <rth@redhat.com>
7285
7286         * trans.c (gigi): Update gimplify_body call.
7287
7288 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
7289
7290         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
7291
7292 2004-12-07  Ed Falis  <falis@adacore.com>
7293
7294         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
7295         current task being suspended.
7296
7297         * init.c (__gnat_clear_exception): added to reset VxWorks exception
7298         count.
7299         (__gnat_map_signal): removed test for current task being suspended.
7300
7301 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
7302
7303         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
7304         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
7305         targets (such as AAMP).
7306
7307 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
7308
7309         * atree.adb (Visit_Itype): Create a new name for the generated itype,
7310         because the back-end may otherwise treat it as a redefinition of the
7311         old symbol.
7312
7313 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
7314
7315         * back_end.adb (Scan_Back_End_Switches): Accept --param.
7316
7317         * lang-specs.h: Accept --param.
7318
7319 2004-12-07  Vincent Celier  <celier@adacore.com>
7320
7321         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
7322         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
7323         Current_Body_Suffix => Ada_Body_Suffix).
7324         Take into account Externally_Built attribute.
7325
7326         * clean.adb (In_Extension_Chain): Always return False when one of the
7327         parameter is No_Project.
7328         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
7329         Ada_Language_Index).
7330         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
7331         Process_Languages for procedure Parse).
7332
7333         * gnatcmd.adb (Carg_Switches): New table.
7334         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
7335         Adapt to name changes in package Prj (Current_Spec_Suffix =>
7336         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
7337
7338         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
7339         Header_Num and function Hash are now declared in package Prj,
7340         not Prj.Com.
7341
7342         * prj.adb (Suffix_Of): New function.
7343         (Set (Suffix)): New procedure.
7344         (Hash): One function moved from Prj.Com
7345         (Is_Present, Language_Processing_Data_Of): New functions
7346         (Set): Two new procedures
7347         (Add_Language_Name, Display_Language_Name): New procedures
7348
7349         * prj.ads: (Suffix_Of): New function
7350         (Set (Suffix)): New procedure
7351         Add several types and tables for multi-language support.
7352         (Header_Num): Type moved from Prj.Com
7353         (Hash): Two functions moved from Prj.Com
7354         (Is_Present, Language_Processing_Data_Of): New functions
7355         (Set): Two new procedures
7356         (Add_Language_Name, Display_Language_Name): New procedures
7357         (Naming): Component name changes:
7358         Current_Spec_Suffix => Ada_Spec_Suffix,
7359         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
7360         Impl_Suffixes, Supp_Suffixes.
7361         (Project_Data): New components: Externally_Built, Supp_Languages,
7362         First_Language_Processing, Supp_Language_Processing, Default_Linker,
7363         Default_Linker_Path.
7364
7365         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
7366         new package Language_Processing with its attributes (Compiler_Driver,
7367         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
7368         Binder_Driver, Default_Linker).
7369
7370         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
7371         (Header_Num): Type moved to package Prj
7372
7373         * prj-env.adb: Adapt to name changes in package Prj
7374         (Current_Spec_Suffix => Ada_Spec_Suffix,
7375         Current_Body_Suffix => Ada_Body_Suffix).
7376
7377         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
7378         default to the project path, except the "-" is one of the directories
7379         in env var ADA_PROJECT_PATH.
7380         (Current_Project_Path): Global variable, replacing Project_Path
7381         that was in the body of Prj.Part.
7382         (Project_Path): New function
7383         (Set_Project_Path): New procedure
7384         Initialize Current_Project_Path during elaboration of the package
7385         Remove dependency on Prj.Com, no longer needed
7386
7387         * prj-ext.ads (Project_Path): New function
7388         (Set_Project_Path): New procedure
7389
7390         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
7391         suffix is defined for language <lang>.
7392         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
7393         accessing directly the components of Naming.
7394         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
7395         Reorganise of this package.
7396         Break procedure Check in several procedures.
7397
7398         * prj-nmsc.ads: Replace all procedures (Ada_Check,
7399         Other_Languages_Check and Language_Independent_Check) with a single
7400         procedure Check.
7401
7402         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
7403         Process_Languages, no longer needed.
7404
7405         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
7406         Current_Project_Path.
7407         Remove elaboration code, moved to the body of Prj.Ext
7408         Use new function Prj.Ext.Project_Path instead of old variable
7409         Project_Path.
7410         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
7411         When comparing with project paths on the stack, first put the resolved
7412         path in canonical case.
7413         (Parse_Single_Project): Set the path name of the project file in the
7414         tree to the normalized path.
7415
7416         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
7417         parameter Process_Languages, no longer needed.
7418         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
7419         Other_Languages_Check.
7420
7421         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
7422         to store the resolved canonical path of the project file.
7423         Remove dependency to Prj.Com, no longer needed
7424
7425         * prj-util.adb: Adapt to name changes in package Prj
7426         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
7427         Ada_Body_Suffix).
7428
7429         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
7430         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
7431         Externally_Built, Include_Option, Language_Processing.
7432
7433         * makegpr.adb: Numerous changes due to changes in packages
7434         Prj and Prj.Nmsc.
7435
7436         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
7437         default to the project path, except whe "-" is one of the directories
7438         in env var ADA_PROJECT_PATH.
7439         (Gnatls): In verbose mode, add the new section "Project Search Path:"
7440
7441 2004-12-07  Robert Dewar  <dewar@adacore.com>
7442
7443         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
7444
7445         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
7446         set -gnatR3m mode.
7447
7448         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
7449         flag. No longer needed now that we handle this in gnat1drv.adb.
7450
7451         * repinfo.ads: Minor reformatting
7452
7453 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7454             Olivier Hainque  <hainque@adacore.com>
7455             Eric Botcazou  <ebotcazou@adacore.com>
7456
7457         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
7458         TYPE_SIZE_UNIT of result type if SIZE is not specified.
7459         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
7460         of a bitfield, which we know is useless and causes trouble because of
7461         alignment implications.
7462
7463         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
7464         BSS sections.
7465         (process_attributes): Clear DECL_COMMON again when a section attribute
7466         is present.
7467         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
7468         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
7469         (create_field_decl): Special case ADDRESSABLE negative to mean
7470         "no bitfield creation", to be used by make_aligning_type. Don't
7471         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
7472         fields claimed addressable still have to be bitfields. Use
7473         value_factor_p instead of a raw binop construction to check for the
7474         position's alignment.
7475
7476 2004-12-07  Geert Bosch  <bosch@adacore.com>
7477
7478         * eval_fat.adb: Revert previous change.
7479
7480 2004-12-07  Thomas Quinot  <quinot@adacore.com>
7481             Ed Schonberg  <schonberg@adacore.com>
7482
7483         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
7484         with an implicit dereference as its prefix, use
7485         Insert_Explicit_Dereference instead of merely rewriting the prefix into
7486         an explicit dereference. This ensures that a reference to the original
7487         prefix is generated, if appropriate.
7488
7489         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
7490         dereference is rewritten to an explicit one, generate a reference to
7491         the entity denoted by its prefix using the original prefix node, so
7492         the dereference can be properly recorded as a read of the denoted
7493         access value, if appropriate.
7494
7495         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
7496         emitting 'assigned but never read' warning on a variable on the basis
7497         that it has an access type.
7498         (Check_References): Emit unreferenced warning when the scope is a
7499         subprogram body.
7500
7501 2004-12-07  Robert Dewar  <dewar@adacore.com>
7502             Ed Schonberg  <schonberg@adacore.com>
7503
7504         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
7505         intrinsic
7506
7507         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
7508         leaving call unchanged.
7509         This deals with the case where the pragma Import specified
7510         an external name, to be handled by the back end.
7511
7512         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
7513         subprogram which is Imported with convention Intrinsic if an
7514         External_Name argument is specified.
7515         (Process_Import_Or_Interface): Properly diagnose link name argument.
7516         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
7517         with Sem_Ch6.Cannot_Inline.
7518         (Process_Inline): Provide separate warning for inapplicable inline
7519         pragma.
7520         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
7521         treatment is uniform on different targets.
7522
7523 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
7524
7525         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
7526         construct is rewritten, preserve end label to permit source navigation.
7527
7528 2004-12-07  Thomas Quinot  <quinot@adacore.com>
7529
7530         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
7531         Specific_Build_Stub_Target): New subprograms.
7532         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
7533         the PCS implementation used, using the above PCS-customized subprograms.
7534         Minor reformatting.
7535         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
7536         for generation of DSA code targeted to the PolyORB PCS.
7537         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
7538         implementation of the partition communication subsystem in ancillary
7539         subprograms.
7540         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
7541         PolyORB_Support.Build_Stub_Type): New subrograms containing the
7542         PCS-specific part of Add_Stub_Type.
7543         (Insert_Partition_Check): Use runtime library function to perform
7544         E.4(19) check.
7545
7546         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
7547         (RE_Same_Partition): New entity, from s-parint.
7548
7549         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
7550
7551 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
7552
7553         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
7554         Output the copyright message on a separate line from the version
7555         message.
7556
7557 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
7558
7559         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
7560         compile-time warning.
7561
7562 2004-12-07  Robert Dewar  <dewar@adacore.com>
7563
7564         * g-regpat.adb: (Match): Change a misuse of or to or else
7565
7566 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
7567
7568         * lib-xref.adb:
7569         (Generate_Reference): Handle properly a reference to an entry formal,
7570          when an accept statement has a pragma Unreferenced for it.
7571
7572         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
7573         and the Has_Pragma_Unreferenced flag for each formal before analyzing
7574         the body, to ensure that warnings are properly emitted for each accept
7575         statement of a given task entry.
7576
7577 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
7578
7579         * Makefile.in: Add support for foreign threads on VMS.
7580
7581 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7582
7583         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
7584         Remove.
7585         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
7586
7587         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
7588
7589         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
7590         exception.
7591         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
7592
7593 2004-12-07  Robert Dewar  <dewar@adacore.com>
7594
7595         * nlists.adb (Prepend_Debug): Remove parameters and nest within
7596         Prepend.
7597         (Remove_Next_Debug): Same fix
7598
7599         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
7600         maintain back pointers now, though we did not used to, and comments
7601         were out of date).
7602         (Prepend): Remove pragma Inline.
7603         (Remove_Next): Same cleanup
7604
7605 2004-12-07  Thomas Quinot  <quinot@adacore.com>
7606
7607         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
7608         used to record an implicit dereference as a read operation on its
7609         prefix when operating under -gnatc. Necessary to avoid spurious
7610         'variable assigned but never read' warnings in that mode.
7611         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
7612         is a non-overloaded implicit dereference, call the above subprogram to
7613         ensure proper recording of references.
7614
7615 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
7616
7617         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
7618         to be resolved later as part of Analyze_Iteration_Scheme's call to
7619         Make_Index.
7620
7621 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
7622
7623         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
7624         prefix is not a scalar type, place error message on prefix, not on
7625         type entity.
7626
7627 2004-12-07  Bernard Banner  <banner@adacore.com>
7628
7629         * vxaddr2line.adb: Add support for x86 vxworks
7630
7631 2004-12-07  Thomas Quinot  <quinot@adacore.com>
7632
7633         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
7634         documentation of the behaviour of these functions when passed an IP
7635         address that has no record in the system hosts database and no reverse
7636         record in the DNS.
7637
7638         * cstand.adb, a-tags.ads: Fix typos in comment.
7639
7640 2004-12-07  Robert Dewar  <dewar@adacore.com>
7641
7642         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
7643         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
7644         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
7645         s-poosiz.ads: Minor reformatting
7646
7647         * make.adb: Minor reformatting
7648         Add some ??? comments asking for more comments
7649
7650         * s-poosiz.adb: Minor reformatting
7651         Add comments on alignment requirement
7652
7653         * sinfo.ads: Remove obsolete comment and fix typo.
7654
7655 2004-12-07  Vincent Celier  <celier@adacore.com>
7656             Sergey Rybin  <rybin@adacore.com>
7657
7658         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
7659         Files" with the new tool and package names.
7660         Reformatting to suppress most of the warnings for line too long
7661         Document the new section "Project Search Path:" in the output of
7662         gnatls -v.
7663         Add gnatmetric section
7664
7665 2004-12-07  Vincent Celier  <celier@adacore.com>
7666
7667         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
7668         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
7669         and -eit to -ept. Added qualifier
7670         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
7671
7672 2004-11-27  Andreas Schwab  <schwab@suse.de>
7673
7674         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
7675
7676 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
7677
7678         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
7679         internal implementation unit GNAT.Sockets.Thin,
7680         as their usage for sockets is non-portable (using the read and write
7681         functions from the system runtime library is fine on UNIX but won't
7682         work under Windows).
7683
7684         * mingw32.h: Update copyright notice.
7685
7686 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
7687
7688         * ada-tree.h: Minor reformatting of previous change to avoid lines
7689         longer than 79 characters.
7690
7691 2004-11-25  Olivier Hainque  <hainque@adacore.com>
7692
7693         * tb-gcc.c: GCC infrastructure based implementation of
7694         __gnat_backtrace.
7695
7696 2004-11-24  Steven Bosscher  <stevenb@suse.de>
7697
7698         * misc.c (gnat_post_options): Don't clear
7699         flag_inline_functions.
7700
7701 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
7702
7703         PR ada/17986
7704         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
7705         tree.
7706
7707 2004-11-21  Andreas Jaeger  <aj@suse.de>
7708
7709         * stylesw.adb: Change Style_Check_Subprogram_Order to
7710         Style_Check_Order_Subprograms.
7711
7712 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
7713
7714         * adaint.h, adaint.c
7715         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
7716         to avoid warnings.
7717         Add also a cast to kill another warning.
7718         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
7719         parameter with the priority class of the parent process instead of
7720         always using the NORMAL_PRIORITY_CLASS.
7721         (__gnat_dup): New function.
7722         (__gnat_dup2): New function.
7723         (__gnat_is_symbolic_link): Enable the effective body of this
7724         function when __APPLE__ is defined.
7725
7726         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
7727         Update comments.
7728
7729 2004-11-18  Olivier Hainque  <hainque@adacore.com>
7730
7731         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
7732         address of which may be used to represent "others" and "all others"
7733         choices in exception tables, instead of the current harcoded
7734         (void *)0 and (void *)1.
7735         (Setup_Exception): Do nothing in the GNAT SJLJ case.
7736
7737         * gigi.h (others_decl, all_others_decl): New decls representing the
7738         new Others_Value and All_Others_Value objects.
7739         (struct attrib): Rename "arg" component as "args", since GCC expects a
7740         list of arguments in there.
7741
7742         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
7743         corresponding objects exported by a-exexpr, instead of hardcoded dummy
7744         addresses.
7745
7746         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
7747         others_decl and all_others_decl instead of hardcoded dummy addresses
7748         to represent "others" and "all others" choices, which is cleaner and
7749         more flexible with respect to the possible eh pointer encoding policies.
7750
7751         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
7752         (process_attributes): Account for the naming change of the "args"
7753         attribute list entry component.
7754
7755         * decl.c (build_attr_list): Rename into prepend_attributes to allow
7756         cumulating attributes for different entities into a single list.
7757         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
7758         attributes for the current entity and propagate first subtype
7759         attributes to other subtypes.
7760         <E_Procedure>: Attribute arguments are attr->args and not
7761         attr->arg any more.
7762         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
7763         argument provided, as this is what GCC expects. Use NULL_TREE instead
7764         of 0 for trees.
7765
7766 2004-11-18  Robert Dewar  <dewar@adacore.com>
7767
7768         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
7769         Minor reformatting througout (including new function specs)
7770         Add ??? comments asking for clarification.
7771
7772 2004-11-18  Thomas Quinot  <quinot@adacore.com>
7773
7774         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
7775         incomplete duplicate implementation of this subprogram from butil.
7776
7777 2004-11-18  Thomas Quinot  <quinot@adacore.com>
7778
7779         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
7780         procedures factors the common processing for building an RPC receiver
7781         for an RCI package or an RACW type.
7782         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
7783         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
7784         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
7785         in use.
7786         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
7787         Add_RACW_Features.
7788         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
7789         Add_RAST_Features.
7790         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
7791         distribution subprogram identifiers that are either subprogram numbers
7792         or strings.
7793         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
7794         string distribution identifiers assigned to a given subprogram.
7795         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
7796         (Add_RAS_Dereference_TSS): Add comments.
7797         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
7798         is not referenced yet because it will be used by the PolyORB DSA
7799         implementation.
7800         (Insert_Partition_Check): Remove fossile code.
7801         (First_RCI_Subprogram_Id): Document this constant.
7802         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
7803         RAS_Access TSS.
7804         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
7805         replaced with calls to Get_Library_Unit_Name_String. Previously there
7806         were several instances of the same code in different locations in the
7807         compiler; this checkin completes the replacement of all of these
7808         instances with calls to a common subprogram.
7809         Minor reformatting.
7810
7811         * sem_dist.adb: Remove comment noting that RPC receiver generation
7812         should be disabled for RACWs that implement RASs.
7813         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
7814
7815         * sem_util.ads, sem_util.adb (Has_Stream): New function
7816         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
7817         qualified name of a library unit into the name buffer.
7818         (Note_Possible_Modification): Generate a reference only
7819         if the context comes from source.
7820
7821         * snames.ads (PCS_Names): New subtype corresponding to names of
7822         supported implementations of the Partition Communication Subsystem
7823         (PCS) (i.e. the runtime library support modules for the distributed
7824         systems annex).
7825
7826 2004-11-18  Robert Dewar  <dewar@adacore.com>
7827             Ed Schonberg  <schonberg@adacore.com>
7828
7829         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
7830         (Has_Rep_Pragma): New function
7831         (Has_Attribute_Definition_Clause): New function
7832         (Record_Rep_Pragma): Moved here from sem_ch13.adb
7833         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
7834
7835         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
7836
7837         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
7838         (Expand_Pragma_Psect_Object): New procedure
7839         These procedures contain the revised and cleaned up processing for
7840         these two pragmas. This processing was formerly in Sem_Prag, but
7841         is more appropriately moved here. The cleanup involves making sure
7842         that the pragmas are properly attached to the tree, and that no
7843         nodes are improperly shared.
7844
7845         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
7846         pragmas to Exp_Prag, which is more appropriate.
7847         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
7848         check for duplicates Remove use of Is_Psected flag, no longer needed.
7849         Use new Make_String_Literal function with string.
7850
7851         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
7852         that are functions return universal values, that have to be converted
7853         to the context type.
7854         Use new Make_String_Literal function with string.
7855         (Get_Stream_Convert_Pragma): New function, replaces the use of
7856         Get_Rep_Pragma, which had to be kludged to work in this case.
7857
7858         * freeze.adb: Use new Has_Rep_Pragma function
7859
7860         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
7861         function with string.
7862         Use new Has_Rep_Pragma function.
7863
7864         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
7865         string argument.
7866
7867 2004-11-18  Robert Dewar  <dewar@adacore.com>
7868
7869         * errout.ads, errout.adb: (First_Sloc): New function
7870
7871         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
7872         check (-gnatyx) instead of being included as a redundant construct
7873         warning.
7874
7875         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
7876         Style_Check_Order_Subprograms.
7877
7878         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
7879         stylesw.adb: Add Style_Check_Xtra_Parens
7880
7881         * usage.adb: Add line for -gnatyx (check extra parens)
7882
7883         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
7884
7885 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
7886             Robert Dewar  <dewar@adacore.com>
7887
7888         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
7889         discriminant of a constrained subtype, analyze the copy of the
7890         corresponding constraint, because in some cases it may be only
7891         partially analyzed.
7892         Removes long-lived ??? comments.
7893
7894         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
7895         handled controlled or secondary-stack expressions within the
7896         iteration_scheme of a loop.
7897
7898         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
7899         bounds that may contain functions calls, to prevent memory leaks when
7900         the bound contains a call to a function that uses the secondary stack.
7901         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
7902         generate temporaries for loop bounds that might contain function calls
7903         that require secondary stack and/or finalization actions.
7904
7905         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
7906         selected component and the selector is overloadable (not just a
7907         function) treat as function call, Analyze_Call will disambiguate if
7908         necessary.
7909         (Analyze_Selected_Component): Do not generate an actual subtype for the
7910         selected component if expansion is disabled. The actual subtype is only
7911         needed for constraint checks.
7912         (Analyze_Allocator): If restriction No_Streams is set, then do
7913         not permit objects to be declared of a stream type, or of a
7914         composite type containing a stream.
7915
7916         * restrict.ads: Remove the a-stream entry from Unit_Array, since
7917         No_Streams no longer prohibits with'ing this package.
7918
7919         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
7920         discriminants, but the parent base has unknown discriminants, there is
7921         no discriminant constraint to inherit. Such a discrepancy can arise
7922         when the actual for a formal type with unknown discriminants is a
7923         similar private type whose full view has discriminants.
7924         (Analyze_Object_Declaration): If restriction No_Streams is set, then
7925         do not permit objects to be declared of a stream type, or of a
7926         composite type containing a stream.
7927
7928 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
7929
7930         * exp_dbug.ads: Update documentation to reflect simpler encoding for
7931         protected operations.
7932
7933         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
7934         generated name, it complicates decoding in gdb and hinders debugging
7935         of protected operations.
7936         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
7937         flag for the protected entry barrier function.
7938         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
7939         flag for the protected entry function.
7940
7941 2004-11-18  Nicolas Setton  <setton@adacore.com>
7942
7943         * expect.c: Define __unix__ when __APPLE__ is defined.
7944
7945         * Makefile.in: Inform the value of the variable GMEM_LIB in the
7946         Darwin-specific section.
7947
7948         * lang-specs.h: Change the placement of the %1 marker.
7949         Works around the fact that gcc adds -fPIC by default under Darwin.
7950
7951 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
7952
7953         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
7954         type of the object with the packed array type, set the Analyzed flag
7955         on the object if it is an entity or simple indexed component, to avoid
7956         spurious type errors.
7957
7958 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
7959
7960         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
7961         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
7962         separate line from the version message.
7963
7964 2004-11-18  Ed Falis  <falis@adacore.com>
7965
7966         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
7967         vthreads.
7968         (init_float): Eliminate initialization of floating point status for
7969         AE653. The instructions have no effect for vThreads.
7970
7971 2004-11-18  Vincent Celier  <celier@adacore.com>
7972
7973         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
7974         gnatbind is invoked with -shared.
7975
7976 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
7977
7978         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
7979         for Detect_Blocking which is redundant with the check done within the
7980         procedure Protected_Single_Entry_Call.
7981         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
7982         Detect_Blocking which is redundant with the check done within the
7983         procedure Protected_Single_Entry_Call.
7984
7985 2004-11-18  Vincent Celier  <celier@adacore.com>
7986
7987         * makegpr.adb (Compile): Put the compiling switches (in package
7988         Compiler and on the command line) immediately after "-c", instead of
7989         at the end of the command line invocation of the compiler, when
7990         compiling a non-Ada file.
7991         (Build_Global_Archive): When there is no need to rebuild the archive,
7992         set Global_Archive_Exists, so that the archive is passed to the linker
7993         if one is needed.
7994
7995 2004-11-18  Robert Dewar  <dewar@adacore.com>
7996             Sergey Rybin  <rybin@adacore.com>
7997
7998         * gnat_ugn.texi:
7999         Remove extra paren check from list of checks for redundant constructs
8000         Add documentation of new -gnatyx style check (check extra parens)
8001         Remove paragraph about gnatelim debug options.
8002
8003         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
8004         objects rather than forbidding dependencies on the package Ada.Streams.
8005
8006         * sinfo.ads: Add ??? note that we should document pragmas passed to
8007         back end.
8008
8009         * g-expect.ads: Fix a few typos in the comments.
8010
8011 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
8012
8013         * misc.c (gnat_handle_option): Use %< and %> for quoting in
8014         warning message.
8015
8016 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8017
8018         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
8019
8020 2004-11-07  Andreas Schwab  <schwab@suse.de>
8021
8022         * Makefile.in (install-gnatlib): Remove spurious hyphen.
8023
8024 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
8025
8026         PR ada/18228
8027         * Makefile.in (darwin): Set soext to .dylib.
8028
8029 2004-10-26  Vincent Celier  <celier@gnat.com>
8030             Thomas Quinot   <quinot@act-europe.fr>
8031
8032         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
8033         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
8034         there is no use of GNAT.Sockets.Constants.
8035         Remove remaining pragma Import for C_Write
8036         Remove C_Read and C_Write from internal implementation unit
8037         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
8038         the read and write functions from the system runtime library is fine
8039         on UNIX but won't work under Windows).
8040
8041         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
8042         (Check_Selector): Use C_Recv instead of C_Read.
8043         Selectors are the GNAT.Sockets abstraction to perform a select()
8044         call on a set of descriptors. To allow abortion of an ongoing
8045         select operation, some data is written to a dedicated socket that
8046         is always monitored.
8047         Under Windows, the write and read library functions cannot operate
8048         on sockets, so we need to use send and recv instead, which is portable
8049         across all supported platforms.
8050
8051         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
8052         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
8053         (using the read and write functions from the system runtime library is
8054         fine on UNIX but won't work under Windows).
8055
8056 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
8057
8058         * mlib-tgt-darwin.adb: New file.
8059
8060         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8061         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8062         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8063         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
8064         subprogram body.
8065
8066         * Makefile.in: Add support for building shared libraries under Darwin.
8067         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
8068         the low level EH init subprogram to be called from __gnat_initialize.
8069
8070         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
8071         indicates which options to pass to the archive indexer.
8072
8073         * mlib-utl.adb: Add support for calling ranlib with additional
8074         options. This is needed for instance under Mac OS X.
8075         (Ranlib_Options): New global variable, used to store the potential
8076         options to pass to ranlib.
8077         (Ar): Use Ranlib_Options when spawning ranlib.
8078         (Initialize): Set the value of ranlib option.
8079
8080 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
8081
8082         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
8083         instead of 8K, to reflect the real potential needs for stack-checking
8084         in the ZCX case.
8085
8086 2004-10-26  Pascal Obry  <obry@gnat.com>
8087
8088         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
8089
8090         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
8091         Windows only the initial thread stack size can be set so it is good to
8092         start we a low stack size.
8093         The OS will adjust the size as needed.
8094
8095 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
8096             Nicolas Setton  <setton@act-europe.fr>
8097
8098         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
8099         "__unix__" instead of "unix".
8100         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
8101         sections were just mistakenly ignored. The former is
8102         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
8103         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
8104         of hpux. This prevents an unwanted definition of the symbol
8105         convert_addresses in adaint.o.
8106
8107 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
8108
8109         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
8110         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
8111
8112 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
8113
8114         * a-filico.ads, a-filico.adb: fix incorrect header.
8115
8116 2004-10-26  Javier Miranda  <miranda@gnat.com>
8117
8118         * a-ststio.ads: Fix typo in identifier
8119
8120 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8121
8122         * sem_ch4.adb: Minor reformatting.
8123
8124 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8125
8126         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
8127         enabled, check the result of unary and binary operations when the
8128         expression is the right-hand side of an assignment.
8129
8130 2004-10-26  Vincent Celier  <celier@gnat.com>
8131
8132         * clean.adb (Delete): Do not output warnings when in quiet output and
8133         not in verbose mode.
8134         (Force_Deletions): New Boolean flag, defaulted to False
8135         (Delete): Only delete a file if it is writable, and when
8136         Force_Deletions is True.
8137         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
8138         (Usage): Line for new switch -f
8139         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
8140         own.
8141
8142 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
8143
8144         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
8145         JM type only if its size matches that of the wrapper.  When a size is
8146         prescribed and the field is not aliased, remove the wrapper of a JM
8147         type only if the size is not greater than that of the packed array.
8148         (gnat_to_gnu_entity): Change the extension of packed array wrappers
8149         from LJM to JM.
8150
8151 2004-10-26  Geert Bosch  <bosch@gnat.com>
8152
8153         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
8154         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
8155         (Pred): Implement in terms of Succ.
8156
8157 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8158
8159         * exp_aggr.adb (Safe_Component): An aggregate component that is an
8160         unchecked conversion is safe for in-place use if the expression of the
8161         conversion is safe.
8162         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
8163         be expandable in place even if the aggregate does not come from source.
8164         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
8165         designated object of an allocator in place, rather than building it
8166         first on the stack. The previous scheme forces a full copy of the array,
8167         and may be altogether unsusable if the size of the array is too large
8168         for stack allocation.
8169
8170 2004-10-26  Robert Dewar  <dewar@gnat.com>
8171
8172         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
8173         compares if the component is atomic.
8174
8175         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
8176         array assignment if the component type is atomic.
8177
8178 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8179             Eric Botcazou  <ebotcazou@act-europe.fr>
8180
8181         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
8182         is aliased and is a by_reference type, do not pass by copy.
8183         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
8184         detect whether the call is in the right side of an assignment or
8185         the expression of an object declaration.  Recurse on component
8186         association within aggregates.
8187         Call it in the condition that determines whether the temporary is
8188         necessary for correct stack-checking.
8189
8190 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8191
8192         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
8193         RACW_Type, used in the PolyORB version.
8194         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
8195         version and the GARLIC version.
8196
8197         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
8198         Rename RCI_Info to RCI_Locator for better consistency between the
8199         GARLIC and PolyORB versions of the distributed systems annex.
8200         (DSA_Implementation_Name): This enumeration lists the possible
8201         implementations of the Partition Communication Subsystem for the
8202         Distributed Systems Annex (DSA). The three available implementations
8203         are the dummy stub implementation (No_DSA), and two versions based on
8204         two different distribution runtime libraries: GARLIC and PolyORB. Both
8205         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
8206         technology.
8207         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
8208         that organization.
8209
8210         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
8211         between the GARLIC and PolyORB versions of the distributed systems
8212         annex.
8213         Remove RE_Unbounded_Reclaim_Pool since it is unused.
8214
8215 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
8216
8217         * gnat1drv.adb: Suppress calling the back end when
8218         Frontend_Layout_On_Target is true.
8219
8220 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8221
8222         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
8223         Set_Read_Only): New subprograms.
8224         These new routines allow the user to set or unset the Owner execute
8225         and Owner write permission flags on a file.
8226
8227         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
8228         GNAT.OS_Lib.Set_Executable instead of rolling our own.
8229
8230 2004-10-26  Matthew Gingell  <gingell@gnat.com>
8231
8232         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
8233
8234 2004-10-26  Pascal Obry  <obry@gnat.com>
8235
8236         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
8237         memory before the faulting page we properly test the process read
8238         access for this address using appropriate Win32 routine.
8239         (HPUX sections): guard with "__hpux__" instead of "hpux".
8240
8241 2004-10-26  Robert Dewar  <dewar@gnat.com>
8242
8243         * lib-xref.adb (Generate_Reference): Don't complain about reference to
8244         entry parameter if pragma Unreferenced set, since we do not properly
8245         handle the case of multiple parameters.
8246
8247 2004-10-26  Vincent Celier  <celier@gnat.com>
8248
8249         * prj-env.adb: (Contains_ALI_Files): New Boolean function
8250         (Ada_Objects_Path.Add): For a library project, add to the object path
8251         the library directory only if there is no object directory or if the
8252         library directory contains ALI files.
8253         (Set_Ada_Paths.Add.Recursive_Add): Ditto
8254
8255 2004-10-26  Vincent Celier  <celier@gnat.com>
8256
8257         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
8258         extension of library projects.
8259
8260         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
8261         path defaults to ".:<prefix>/lib/gnat".
8262         (Parse): For an extending all project, allow direct import of a project
8263         that is virtually extended.
8264
8265         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
8266         the specified name is directly imported, return its ID. Otherwise, if
8267         an extension of this project is imported, return the ID of the
8268         extension.
8269
8270 2004-10-26  Robert Dewar  <dewar@gnat.com>
8271
8272         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
8273         (Sub3): New procedure, used by Scaled_Divide
8274         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
8275         correct more than one instance of failure to propagate carries
8276         correctly.
8277         (Double_Divide): Handle overflow case of largest negative number
8278         divided by minus one.
8279
8280         * s-arit64.ads (Double_Divide): Document that overflow can occur in
8281         the case of a quotient value out of range.
8282         Fix comments.
8283
8284 2004-10-26  Robert Dewar  <dewar@gnat.com>
8285
8286         * s-bitops.adb (Bit_Eq): Remove redundant check.
8287
8288         * s-bitops.ads: Minor comment updates
8289         Change some occurrences of Address to System.Address
8290
8291         * s-carsi8.ads: Fix minor cut-and-paste error in comments
8292
8293 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8294
8295         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
8296         accessibility check to prefix that is a protected operation.
8297
8298 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8299
8300         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
8301         empty, post message on stub.
8302
8303 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8304             Javier Miranda  <miranda@gnat.com>
8305
8306         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
8307         current instance appears within a unit that is directly in the context
8308         of the main unit.
8309         Used to determine whether the body of the instance should be analyzed
8310         immediately after its spec, to make its subprogram bodies available
8311         for front-end inlining.
8312         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
8313         constraint is not allowed on the component type (AARM 12.5.3(3))
8314
8315 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
8316
8317         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
8318         'Storage_Pool): enhance, document & limit detection of non-sharable
8319         internal pools.
8320
8321         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
8322
8323         * s-pooglo.ads: Add more documentation now that this pool is properly
8324         documented.
8325
8326 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8327
8328         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
8329         or protected type with discriminants, do not constrain the
8330         corresponding record type if the subtype declaration has no
8331         discriminant constraints. This can be the case in source code, or in
8332         the subtype declaration created to rename an actual type within an
8333         instantiation.
8334
8335 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8336
8337         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
8338         different kind of stub (possibly wrong name for file), do not check
8339         for conformance.
8340         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
8341         includes call to some function that returns an unconstrained type, do
8342         not inline.
8343
8344 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
8345
8346         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
8347         appear in the code for the main unit. Dependencies among units in the
8348         context of the main unit are established when those other units are
8349         compiled. Otherwise spurious elaboration constraints can generate
8350         incorrect elaboration circularities.
8351
8352 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
8353             Ed Schonberg   <schonberg@gnat.com>
8354
8355         * sem_util.adb (Is_Aliased_View): Defend against the case where this
8356         subprogram is called with a parameter that is not an object name. This
8357         situation arises for some cases of illegal code, which is diagnosed
8358         later, and in this case it is wrong to call Is_Aliased, as that might
8359         cause a compiler crash.
8360         (Explain_Limited_Type): Refine previous fix to include
8361         inherited components of derived types, to provide complete information.
8362
8363         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
8364         is the prival for a protected object.
8365         It is necessary to mark this entity as a variable, in addition to
8366         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
8367         modified to avoid checking the Aliased flag on entities that are not
8368         objects. (Checking that flag for non-objects is erroneous and could
8369         lead to a compiler crash).
8370
8371 2004-10-26  Robert Dewar  <dewar@gnat.com>
8372
8373         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
8374         X_Frac = 0.5, then we know that the number X must be positive.
8375         (Succ): Remove the same redundant test, and also fix the primary test
8376         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
8377         Minor reformatting
8378         (Decompose): Add fuller comments to spec
8379
8380 2004-10-26  Pascal Obry  <obry@gnat.com>
8381
8382         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
8383         validity (process must have read access). Set to 0 in all other cases.
8384         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
8385         violation on Win32.
8386         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
8387         segmentation violation.
8388
8389 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
8390
8391         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
8392         whose type is a constructed subtype of an aliased object with an
8393         unconstrained nominal subtype, convert the actual to the constructed
8394         subtype before taking its address.
8395
8396 2004-10-26  Vincent Celier  <celier@gnat.com>
8397
8398         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
8399         (Is_Path_Name_Case_Sensitive): New function
8400
8401         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
8402         (Base_Name, Simple_Name, Current_Directory, Compose,
8403         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
8404         the result.
8405
8406 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
8407             Vasiliy Fofanov  <fofanov@act-europe.fr>
8408             Vincent Celier   <celier@gnat.com>
8409
8410         * gnat_ugn.texi: Generalize "finding memory problems" section into a
8411         "memory management issues" section and document some of the useful
8412         memory pools provided as part of the GNAT library.
8413         Remove "virtual" from declaration of A::method2 in
8414         the simple example of Ada/C++ mixed system.
8415         Library Projects may be virtually extended: their virtual extensions
8416         are not Library Projects.
8417         Added section on extending project hierarchies.
8418
8419 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8420
8421         * adaint.c (__gnat_get_libraries_from_registry): Cast value
8422         to LPBYTE.
8423         (__gnat_portable_spawn): Remove const.
8424
8425         * mingw32.h (MAXPATHLEN): Check for previous definition.
8426
8427 2004-10-17  Matthias Klose  <doko@debian.org>
8428
8429         * gnatvsn.ads: Set gnat library version to 4.0.
8430
8431 2004-10-05  Vincent Celier  <celier@gnat.com>
8432
8433         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
8434
8435 2004-10-04  Laurent GUERBY <laurent@guerby.net>
8436
8437         PR ada/15156
8438         * Makefile.in: Define and use RANLIB_FLAGS.
8439
8440 2004-10-04  Pascal Obry  <obry@gnat.com>
8441
8442         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
8443         other x86 platforms).
8444
8445 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
8446
8447         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
8448         in general and triggers stack alignment adjustment for thread entry
8449         points on targets where this is necessary.
8450
8451 2004-10-04  Bernard Banner  <banner@gnat.com>
8452
8453         PR ada/13897
8454
8455         * Makefile.in: Add section for powerpc linux
8456         Add variant i-vxwork-x86.ads
8457
8458         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
8459
8460 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
8461
8462         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
8463         table registration calls when need be. Ensures no reference to the crt
8464         ctors symbol are issued in the SJLJ case, which avoids possible
8465         undefined symbol errors in the case of modules to be statically linked
8466         with the kernel.
8467
8468 2004-10-04  Javier Miranda  <miranda@gnat.com>
8469
8470         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
8471         in-line the code corresponding to subprogram Analyze_Actuals. In
8472         addition, analyze the actuals only in case of subprogram call.
8473
8474 2004-10-04  Ed Falis  <falis@gnat.com>
8475
8476         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
8477
8478 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
8479
8480         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
8481         in the documentation.
8482
8483 2004-10-04  Robert Dewar  <dewar@gnat.com>
8484
8485         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
8486         IF and CASE.
8487         (Analyze_Block_Statement): Add circuitry to detect following dead code
8488         (Check_Unreachable_Code): Handle case of block exit
8489
8490 2004-10-04  Robert Dewar  <dewar@gnat.com>
8491
8492         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
8493         (XMatchD): Avoid warning for Logic_Error call
8494
8495 2004-10-04  Robert Dewar  <dewar@gnat.com>
8496
8497         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
8498         consider expressions buried within a procedure actual to be an actual.
8499         This caused some blowups with uses of packed slices within a procedure
8500         actual.
8501
8502 2004-10-04  Robert Dewar  <dewar@gnat.com>
8503
8504         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
8505         longer need to be initialized to zero.
8506         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
8507         initialized to zero.
8508
8509         * checks.adb (Expr_Known_Valid): Packed arrays are now always
8510         considered valid, even if the representation is modular. That's correct
8511         now that we no longer initialize packed modular arrays to zero.
8512
8513         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
8514         suffixes. These are now documented as the only cases in which the
8515         debugger ignores outer records.
8516         Previously, the spec allowed arbitrary suffixes for this purpose.
8517         Change name of LJM to JM for packed array pad records
8518         Create separate section on packed array handling, and add a whole new
8519         set of comments to this section describing the situation with packed
8520         modular types and justification requirements depending on endianness.
8521
8522 2004-10-04  Robert Dewar  <dewar@gnat.com>
8523
8524         * a-except.adb: Add a comment for last change
8525
8526         * einfo.ads: Minor spelling correction in comment
8527
8528         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
8529
8530         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
8531         messages.
8532
8533         * sem_util.ads: Minor comment update
8534
8535 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
8536
8537         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
8538         Inline_Always when in Configurable_Run_Time mode.
8539
8540         * sem_prag.adb (Process_Convention): If entity is an inherited
8541         subprogram, apply convention to parent subprogram if in same scope.
8542         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
8543         when in Configurable_Run_Time mode.
8544
8545 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
8546
8547         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
8548         class_wide type after component list has been inherited.
8549
8550 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
8551
8552         * sem_ch12.adb (Check_Generic_Actuals): New predicate
8553         Denotes_Previous_Actual, to handle properly the case of a private
8554         actual that is also the component type of a subsequent array actual.
8555         The visibility status of the first actual is not affected when the
8556         second is installed.
8557         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
8558         make fully recursive the treatment of formals of packages declared
8559         with a box.
8560         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
8561         the above on exit from an instantiation.
8562         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
8563         current instantiation which is now complete.
8564         (Analyze_Package_Instantiation): No instantiated body is needed if the
8565         main unit is generic. Efficient, and avoid anomalies when a instance
8566         appears in a package accessed through rtsfind.
8567
8568 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
8569
8570         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
8571         do not generate a declaration for a temporary if the call is part of a
8572         library-level instantiation.
8573
8574 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
8575
8576         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
8577         searching for a limited component to flag.
8578
8579         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
8580         expansion of Input, to account for the fact that the implicit call
8581         generated by the attribute reference must freeze the user-defined
8582         stream subprogram. This is only relevant to 'Input, because it can
8583         appear in an object declaration, prior to the body of the subprogram.
8584
8585         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
8586         expansion can proceed and further errors uncovered.
8587         (Minor clean up): Fix cases of using | instead of \ for continuation
8588         messages.
8589
8590 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8591
8592         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
8593
8594         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
8595         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
8596         Use gcc_assert and gcc_unreachable.
8597
8598         * decl.c (gnat_to_gnu_entity, case object): Check and process a
8599         specified alignment before validating size.
8600         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
8601         stripped-down declaration for the type of the inner field when making
8602         a JM type.
8603
8604         * utils.c (finish_record_type): Do not compute the size in units
8605         incrementally. Instead compute it once for the rep clause case.
8606         Use gcc_assert and gcc_unreachable.
8607
8608 2004-10-04  Vincent Celier  <celier@gnat.com>
8609
8610         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
8611         in file name.
8612         (Is_Valid_Path_Name): Take '/' as a directory separator.
8613
8614 2004-10-04  Vincent Celier  <celier@gnat.com>
8615
8616         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
8617         (Extended_Project) only if Extended_Project is defined, to avoid
8618         assertion error.
8619         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
8620         resolved path.
8621         (Parse_Single_Project): Ditto.
8622
8623         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
8624         Add_To_Project_Path for virtual projects.
8625
8626 2004-10-04  Vincent Celier  <celier@gnat.com>
8627
8628         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8629         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8630         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
8631         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
8632         parameter Options_2.
8633
8634         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
8635         Build_Dynamic_Library with an empty Options_2.
8636
8637         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
8638         default anymore.
8639
8640         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
8641         directory separator, if any.
8642         (Gprmake): Do not allow mains on the command line for library projects.
8643         Do not attempt to link when the project is a library project.
8644         (Library_Opts): New table to store Library_Options.
8645         (Build_Library): If Library_Options is specified, pass these options
8646         when building a shared library.
8647
8648 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
8649
8650         * s-tposen.adb (Service_Entry): The object must be always unlocked at
8651         the end of this procedure now that the unlock operation was inserted
8652         by the expander.
8653
8654 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
8655
8656         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
8657         corresponding to the Preallocated_Stacks flags in System.
8658         (Get_Target_Parameters): Including the processing for
8659         Preallocated_Stacks.
8660
8661         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
8662         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
8663         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
8664         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
8665         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
8666         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
8667         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
8668         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
8669         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8670         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
8671         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
8672         used to signal whether the compiler creates the required stacks and
8673         descriptors for the different tasks (when True) or it is done by the
8674         underlying operating system at run time (when False).
8675         It is initially set to False in all targets.
8676
8677         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
8678         if it is supported by the target.
8679         (Make_Task_Create_Call): Pass the stack address if it has been
8680         previously created. Otherwise pass a Null_Address.
8681
8682         * snames.adb: Add _stack.
8683
8684         * snames.ads: Add Name_uStack. Required to allow the expander to
8685         statically allocated task stacks.
8686
8687         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
8688         Stack_Address argument.
8689         Check that its value is equal to Null_Address because this target does
8690         not support the static stack allocation.
8691
8692 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
8693
8694         * usage.adb: Change "pragma inline" to "pragma Inline" in information
8695         and error messages
8696
8697 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
8698
8699         * exp_dist.adb: Split declaration of asynchronous flag out of
8700         Add_RACW_Read_Attribute.
8701         Minor reformatting for better alignment with PolyORB version.
8702         Store the entity for the asynchronous flag of an RACW, rather than the
8703         expression, in the asynchronous flags table. This will allow this flag
8704         to be used in other subprograms beside Add_RACW_Read_Attribute.
8705
8706 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
8707
8708         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
8709         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
8710         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
8711         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
8712         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
8713         sockets constant MSG_NOSIGNAL (Linux-specific).
8714         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
8715         all Send operations.
8716         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
8717         from trigerring SIGPIPE.
8718         Rename components to avoid clash with Ada 2005 possible reserved
8719         word 'interface'.
8720         (Check_Selector): When the select system call returns with an error
8721         condition, propagate Socket_Error to the caller.
8722
8723 2004-10-01  Jan Hubicka  <jh@suse.cz>
8724
8725         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
8726
8727 2004-09-23  Robert Dewar  <dewar@gnat.com>
8728
8729         PR ada/17540
8730
8731         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
8732         instead do this at freeze time (we won't do it if there is an address
8733         clause).
8734         Change "pragma inline" to "pragma Inline" in information and error
8735         messages.
8736         Minor reformatting.
8737
8738         * freeze.adb (Check_Address_Clause): Remove previous change, not the
8739         right way of doing things after all.
8740         (Freeze_Entity): For object, set Is_Public for imported entities
8741         unless there is an address clause present.
8742
8743 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
8744
8745         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
8746         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
8747         ensures proper handling of types with rep clauses, which might have
8748         their TYPE_SIZE set already.
8749
8750 2004-09-21  Robert Dewar  <dewar@gnat.com>
8751
8752         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
8753         packed array types in both little- and big-endian cases. This change
8754         ensures that we no longer count on the unused bits being initialized
8755         for such types (and in particular ensures that equality testing will
8756         only read the relevant bits).
8757         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
8758         These changes mean that we no longer need to initialize small packed
8759         arrays.
8760         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
8761         optimization to an LJM field as to its parent field.
8762
8763         * ada-tree.h, trans.c, utils.c, utils2.c:
8764         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
8765
8766 2004-09-20  Jan Hubicka  <jh@suse.cz>
8767
8768         * utils.c (gnat_finalize): Remove.
8769         (end_subprog_body): Directly call cgraph_finalize_function;
8770         do not lower the nested functions.
8771
8772 2004-09-20  Robert Dewar  <dewar@gnat.com>
8773
8774         PR ada/17540
8775
8776         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
8777         if an address clause is present, since that means that the Import
8778         should be ignored.
8779
8780 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
8781
8782         * 5tsystem.ads: Removed, no longer used.
8783
8784 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
8785             Zack Weinberg  <zack@codesourcery.com>
8786
8787         * ada-tree.def: Use tree_code_class enumeration constants
8788         instead of code letters.
8789         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
8790         Update for new tree-class enumeration constants.
8791
8792 2004-09-17  Vincent Celier  <celier@gnat.com>
8793
8794         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
8795         capabilities of the general project manager.
8796
8797 2004-09-09  Vincent Celier  <celier@gnat.com>
8798
8799         * a-direct.ads: Add pragma Ada_05
8800         (Directory_Entry_Type): Give default value to component Kind to avoid
8801         not initialized warnings.
8802
8803         * a-direct.adb (Current_Directory): Remove directory separator at the
8804         end.
8805         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
8806         an existing directory.
8807         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
8808         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
8809         Convert the result to File_Size.
8810
8811         * prj.ads: (Project_Error): New exception
8812
8813         * prj-attr.adb: Except in procedure Initialize, Fail comes from
8814         Prj.Com, not from Osint.
8815         (Attrs, Package_Attributes): Tables moved to private part of spec
8816         (Add_Attribute, Add_Unknown_Package): Moved to new child package
8817         Prj.Attr.PM.
8818         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
8819         Prj.Project_Error after call to Fail.
8820         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
8821         Fail. Check that package name is not already in use.
8822
8823         * prj-attr.ads: Comment updates to indicate that all subprograms may be
8824         used by tools, not only by the project manager, and to indicate that
8825         exception Prj.Prj_Error may be raised in case of problem.
8826         (Add_Unknown_Package, Add_Attribute): Moved to new child package
8827         Prj.Attr.PM.
8828         (Attrs, Package_Attributes): Table instantiations moved from the body to
8829         the private part to be accessible from Prj.Attr.PM body.
8830
8831         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
8832         from new package Prj.Attr.PM.
8833         (Parse_Attribute_Declaration): Call Add_Attribute from new package
8834         Prj.Attr.PM.
8835
8836         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
8837
8838         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
8839         instead of Elaboration_Checks).
8840
8841         * a-calend.adb: Minor reformatting
8842
8843 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8844
8845         * gigi.h (maybe_pad_type): New declaration.
8846         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
8847
8848         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
8849
8850         * cuintp.c: Convert to use buildN.
8851
8852         * decl.c (maybe_pad_type): No longer static.
8853         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
8854         target pointer.
8855         Convert to use buildN.
8856
8857         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
8858         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
8859         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
8860         RHS.
8861         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
8862         (gnat_gimplify_expr, case ADDR_EXPR): New case.
8863         Convert to use buildN.
8864
8865         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
8866         TREE_READONLY for const.
8867         Convert to use buildN.
8868
8869         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
8870         (create_var_decl): Refine when TREE_STATIC is set.
8871         Convert to use buildN.
8872
8873 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
8874
8875         * gnat_ugn.texi: Delete text relating to checking of ali and object
8876         consistency.
8877
8878         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
8879         routines.
8880
8881 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
8882
8883         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
8884         pragmas recognized by GNAT.
8885
8886         * gnat_rm.texi: Document pragma Detect_Blocking.
8887
8888         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
8889         raise Program_Error if called from a protected operation.
8890
8891         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
8892         the protected action nesting level.
8893         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
8894         protected action nesting level.
8895         (Unlock): When pragma Detect_Blocking is active decrease the protected
8896         action nesting level.
8897
8898         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
8899         Protected_Action_Nesting.
8900
8901         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
8902         Common_ATCB record. It contains the dynamic level of protected action
8903         nesting for each task. It is needed for checking whether potentially
8904         blocking operations are called from protected operations.
8905         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
8906         Detect_Blocking is active or not in the partition.
8907
8908         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
8909         raise Program_Error if called from a protected operation.
8910         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
8911         Program_Error if called from a protected operation.
8912         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
8913         Program_Error if called from a protected operation.
8914
8915         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
8916         raise Program_Error if called from a protected operation.
8917
8918         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
8919         raise Program_Error if called from a protected operation, and increase
8920         the protected action nesting level.
8921         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
8922         Program_Error if called from a protected operation, and increase the
8923         protected action nesting level.
8924         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
8925         protected action nesting level.
8926
8927         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
8928         raise Program_Error if called from a protected operation, and increase
8929         the protected action nesting level.
8930         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
8931         Program_Error if called from a protected operation, and increase the
8932         protected action nesting level.
8933         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
8934         raise Program_Error if called from a protected operation.
8935         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
8936         active, raise Program_Error if called from a protected operation.
8937         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
8938         protected action nesting level.
8939
8940         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
8941         insertion of the statement raising Program_Error. The run time
8942         contains the required machinery for handling that.
8943
8944         * sem_util.ads: Change comment associated to procedure
8945         Check_Potentially_Blocking_Operation.
8946         This procedure does not insert a call for raising the exception because
8947         that is currently done by the run time.
8948
8949         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
8950
8951         * init.c: Add the global variable __gl_detect_blocking that indicates
8952         whether pragma Detect_Blocking is active (1) or not (0). Needed for
8953         making the pragma available at run time.
8954         (__gnat_set_globals): Pass and update the detect_blocking parameter.
8955
8956         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
8957         pragma Detect_Blocking is active.
8958
8959         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
8960
8961         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
8962         DB is found in the ali file. Any unit compiled with pragma
8963         Detect_Blocking active forces its effect in the whole partition.
8964
8965         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
8966         Detect_Blocking is active and delay is called from a protected
8967         operation.
8968
8969         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
8970         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
8971         Detect_Blocking is active (0 otherwise).
8972         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
8973         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
8974         otherwise).
8975
8976 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
8977
8978         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
8979         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
8980         package.
8981
8982         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
8983         (Register_Receiving_Stub): Add Subp_Info formal parameter.
8984         Update API in placeholder implemetation of s-parint to reflect changes
8985         in distribution runtime library.
8986
8987         * sem_ch3.adb (Expand_Derived_Record): Rename to
8988         Expand_Record_Extension.
8989
8990         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
8991         primitive operations of potentially distributed object types that have
8992         non-controlling anonymous access formals.
8993
8994         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
8995         subprogram.
8996         New implementation of expansion for remote access-to-subprogram types,
8997         based on the RACW infrastructure.
8998         This version of sem_dist is compatible with PolyORB/DSA as well as
8999         GLADE.
9000
9001         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
9002         Asynchrronous that applies to a remote access-to-subprogram type, mark
9003         the underlying RACW type as asynchronous.
9004
9005         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
9006          __gnat_using_gnu_linker to 1.
9007
9008         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
9009         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
9010         GNAT.Perfect_Hash_Generators, and remove the empty
9011         GNAT.Perfect_Hash package.
9012
9013         * atree.adb: Minor reformatting
9014
9015         * exp_ch3.adb (Expand_Derived_Record): Rename to
9016         Expand_Record_Extension.
9017         (Build_Record_Init_Proc.Build_Assignment): The default expression in
9018         a component declaration must remain attached at that point in the
9019         tree so New_Copy_Tree copies it if the enclosing record type is derived.
9020         It is therefore necessary to take a copy of the expression when building
9021         the corresponding assignment statement in the init proc.
9022         As a side effect, in the case of a derived record type, we now see the
9023         original expression, without any rewriting that could have occurred
9024         during expansion of the ancestor type's init proc, and we do not need
9025         to go back to Original_Node.
9026
9027         * exp_ch3.ads (Expand_Derived_Record): Rename to
9028         Expand_Record_Extension.
9029
9030         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
9031         Returns the RACW type used to implement a remote access-to-subprogram
9032         type.
9033         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
9034         New subprograms. Used to create a proxy tagged object for a remote
9035         subprogram. The proxy object is used as the designated object
9036         for RAS values on the same partition (unless All_Calls_Remote applies).
9037         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
9038         System.Partition_Interface.Get_Unique_Remote_Pointer.
9039         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
9040         Renamed from Add_RAS_*_Attribute.
9041         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
9042         subprograms.
9043         New implementation of expansion for remote access-to-subprogram types,
9044         based on the RACW infrastructure.
9045
9046         * exp_dist.ads (Copy_Specification): Update comment to note that this
9047         function can copy the specification from either a subprogram
9048         specification or an access-to-subprogram type definition.
9049
9050 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
9051
9052         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
9053         in an instance, between an explicit subprogram an one inherited from a
9054         type derived from an actual.
9055
9056         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
9057         add a polling call if the subprogram is to be inlined by the back-end,
9058         to avoid repeated calls with multiple inlinings.
9059
9060         * checks.adb (Apply_Alignment_Check): If the expression in the address
9061         clause is a call whose name is not a static entity (e.g. a dispatching
9062         call), treat as dynamic.
9063
9064 2004-09-09  Robert Dewar  <dewar@gnat.com>
9065
9066         * g-trasym.ads: Minor reformatting
9067
9068         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
9069         packed arrays, since unused bits are expected to be zero for a
9070         comparison.
9071
9072 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
9073
9074         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
9075         comment.
9076
9077 2004-09-09  Pascal Obry  <obry@gnat.com>
9078
9079         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
9080         enable map file generation. Add the right option to generate the map
9081         file if Map_File is set to True.
9082
9083         * gnatdll.adb (Gen_Map_File): New variable.
9084         (Syntax): Add info about new -m (Map_File) option.
9085         (Parse_Command_Line): Add support for -m option.
9086         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
9087         Minor reformatting.
9088
9089 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
9090
9091         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
9092         new gnatdist implementation.
9093         Define a subpackage isolating the output routines specific to this
9094         verbose mode.
9095
9096 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
9097
9098         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
9099
9100         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
9101
9102 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
9103
9104         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
9105         internal unit.
9106
9107         * opt.ads: Add Ada_Version_Runtime constant used to decide which
9108         version of the language is used to compile the run time.
9109
9110 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
9111
9112         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
9113         of variable length temporaries for function return now that the
9114         back-end and gigi support it.
9115
9116 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9117
9118         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
9119
9120         * trans.c (struct stmt_group): Delete field GLOBAL.
9121         (gnat_init_stmt_group): Do not initialize it.
9122         (call_to_gnu): Use save_expr, not protect_multiple_eval.
9123         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
9124         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
9125         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
9126         (start_stmt_group): Likewise.
9127         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
9128
9129         * utils2.c (ggc.h): Include.
9130         (build_call_raise): Call build_int_cst, not build_int_2.
9131
9132         * utils.c (gnat_init_decl_processing): Fix arg to
9133         build_common_tree_nodes.
9134         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
9135         (gnat_define_builtin): Set built_in_decls.
9136         (init_gigi_decls): Call build_int_cst, not build_int_2.
9137
9138         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
9139         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
9140         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
9141         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
9142         SET_TYPE_MODULE): Use them.
9143         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
9144         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
9145         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
9146         SET_TYPE_ADA_SIZE): Likewise.
9147         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
9148         (DECL_CONST_CORRESPONDING_VAR,
9149         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
9150         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
9151         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
9152         (TYPE_RM_SIZE_NUM): New macro.
9153         (TYPE_RM_SIZE): Modified to use above.
9154
9155         * cuintp.c: (build_cst_from_int): New function.
9156         (UI_To_gnu): Use it.
9157
9158         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
9159         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
9160         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
9161         MIN_EXPR for the size, copy it into new.
9162
9163 2004-09-01  Robert Dewar  <dewar@gnat.com>
9164
9165         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
9166         packed indexed component where array is an IN OUT formal. This
9167         generated garbage code previously.
9168
9169         * gnat_ugn.texi: Document -fverbose-asm
9170
9171         * gnat-style.texi: Minor updates (note that boolean constants and
9172         variables are joined with AND/OR rather than short circuit forms).
9173
9174 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
9175
9176         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
9177         it is an upward conversion of an untagged type with no representation
9178         change.
9179
9180 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
9181
9182         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
9183         System.Partition_Interface.
9184
9185         * checks.adb (Apply_Access_Checks): Do not generate checks when
9186         expander is not active (but check for unset reference to prefix of
9187         dereference).
9188
9189         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
9190         pragma Debug as an if statement with a constant condition, for
9191         consistent treatment of entity references contained within the
9192         enclosed procedure call.
9193
9194 2004-09-01  Vincent Celier  <celier@gnat.com>
9195
9196         * bindgen.adb: (Set_EA_Last): New procedure
9197         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
9198         Set_EA_Last.
9199         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
9200         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
9201         linked without errors.
9202         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
9203         ST and EA.
9204         (Gen_Exception_Table_C): Correct same bugs
9205
9206         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
9207
9208         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
9209         on Windows, make sure that the drive letter is in upper case.
9210
9211         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
9212         Windows, when the drive letter is added and Case_Sensitive is True, the
9213         drive letter is forced to upper case.
9214
9215         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
9216         to Options_2 for the call to MLib.Utl.Gcc.
9217
9218         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
9219         directory separator when defining BASE_DIR.
9220
9221 2004-09-01  Pascal Obry  <obry@gnat.com>
9222
9223         * gprcmd.adb (Extend): Do not output trailing directory separator. This
9224         is not needed and it confuses Windows GNU/make which does not report
9225         directory terminated by a slash as a directory.
9226         (gprcmd): Idem for "pwd" internal command.
9227
9228         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
9229         target names rewrite to fix regressions with recent version of
9230         GNU/make. Starting with GNU/make 3.80 the pipe character was not
9231         handled properly anymore.
9232
9233 2004-09-01  Andreas Schwab  <schwab@suse.de>
9234
9235         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
9236         * raise.c [!IN_RTS]: Undef abort.
9237
9238 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
9239
9240         * utils2.c (build_allocator): Use ssize_int.
9241
9242         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
9243
9244 2004-08-27  Andreas Schwab  <schwab@suse.de>
9245
9246         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
9247
9248 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
9249             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9250
9251         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
9252
9253 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
9254
9255         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
9256         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
9257         * utils.c (init_gigi_decls): Likewise.
9258         * utils2.c (build_call_raise, build_allocator): Likewise.
9259
9260 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
9261
9262         * utils.c (gnat_init_decl_processing): Adjust
9263         build_common_tree_nodes call.
9264
9265 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
9266
9267         * utils2.c (build_allocator): Use build_int_cst for negative
9268         size types.
9269
9270 2004-08-18  Richard Henderson  <rth@redhat.com>
9271
9272         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
9273
9274 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
9275
9276         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
9277         call.s
9278         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
9279         (gnat_to_gnu): Likewise.
9280
9281 2004-08-16  Pascal Obry  <obry@gnat.com>
9282
9283         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
9284         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
9285         option and not mdll anymore. Update comment.
9286
9287 2004-08-16  Pascal Obry  <obry@gnat.com>
9288
9289         * bld.adb (Put_Include_Project): Properly handle directory separators
9290         on Windows.
9291
9292 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
9293
9294         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
9295         decreasing the number of allocated junk nodes while searching for the
9296         appropriate subprogram.
9297
9298 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
9299
9300         * cuintp.c (UI_To_gnu): Use build_int_cst..
9301         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
9302         * utils.c (init_gigi_decls): Likewise.
9303         * utils2.c (build_call_raise): Likewise.
9304
9305 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
9306
9307         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
9308         for a global aliased object with a variable size and an unconstrained
9309         nominal subtype, pretend there is no initializer if the one we have is
9310         incomplete, and avoid referencing an inexistant component in there. The
9311         part we have will be rebuilt anyway and the reference may confuse
9312         further operations.
9313
9314 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
9315
9316         * einfo.ads: Minor reformatting
9317
9318         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
9319         restrictions in the ALI if we only want to warn about violations.
9320
9321 2004-08-13  Vincent Celier  <celier@gnat.com>
9322
9323         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
9324         when creating a new Unit_Record in table Units.
9325
9326         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
9327         that are violated, if any.
9328
9329         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
9330         add directory separator if path already ends with a directory separator.
9331
9332 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
9333
9334         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
9335         unit, this is an attempt to inline a construct that is not available in
9336         the current restricted mode, so abort rather than trying to continue.
9337
9338         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
9339         discriminants that rename those of the parent, recover names of
9340         original discriminants for the constraint on the full view of the
9341         parent.
9342         (Complete_Private_Subtype): Do not create a subtype declaration if the
9343         subtype is an itype.
9344
9345         * gnat_rm.texi: Added section on implementation of discriminated
9346         records with default values for discriminants.
9347
9348 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
9349
9350         PR ada/15601
9351         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
9352         the second operand is overloaded.
9353
9354 2004-08-10  Richard Henderson  <rth@redhat.com>
9355
9356         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
9357         add __builtin_alloca.
9358
9359 2004-08-10  Richard Henderson  <rth@redhat.com>
9360
9361         * config-lang.in (boot_language): Yes.
9362
9363 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
9364
9365         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
9366         from complaining on potential uninitialized reference.
9367         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
9368         new specification and test explicitly for non-zero return value.
9369
9370         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
9371         returning C.int, to avoid using a derived boolean type.
9372
9373         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
9374         Duplicate_Subexpr_No_Checks in preference to direct use of
9375         Remove_Side_Effects and New_Copy_Tree.
9376         Clear Comes_From_Source on prefix of 'Size attribute reference.
9377
9378         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
9379         g-socthi-vxworks.adb: Change calls to
9380         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
9381         and test explicitly for non-zero return value.
9382
9383         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
9384         (Is_Socket_In_Set): Declare imported function as returning C.int, to
9385         avoid using a derived boolean type.
9386
9387 2004-08-09  Albert Lee  <lee@gnat.com>
9388
9389         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
9390
9391 2004-08-09  Pascal Obry  <obry@gnat.com>
9392
9393         * gnat_ugn.texi: Document new way to build DLLs on Windows using
9394         GCC's -shared option.
9395
9396         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
9397         Options_2 parameter (options put after object files).
9398
9399 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
9400
9401         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
9402         ignore overflows on low and high bounds of an index to also account for
9403         differences in signedness between sizetype and gnu_index_subtype.
9404         These are as legitimate as the ones caused by a lower TYPE_PRECISION
9405         on sizetype.
9406
9407 2004-08-09  Robert Dewar  <dewar@gnat.com>
9408
9409         * s-solita.ads, s-solita.adb: Minor reformatting
9410
9411         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
9412         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
9413         obsolescent section
9414         Add note that No_Implicit_Conditionals does not suppress
9415         run time constraint checks.
9416
9417         * vms_conv.ads: Minor reformatting
9418
9419         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
9420         and necessary for following change).
9421         (Mark): Return new format Mark_Id containing sec stack address
9422         (Release): Use sec stack address from Mark_Id avoiding Self call
9423
9424         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
9425         pointer (cleanup and necessary for following change).
9426         Define Mark_Id as record containing address of secondary stack, that way
9427         Release does not need to find the stack again, decreasing the number of
9428         calls to Self and improving efficiency.
9429
9430         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
9431
9432         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
9433         case variable into the individual case branches when possible.
9434
9435         * sem_ch11.adb: Minor reformatting
9436
9437         * prj.ads: Correct spelling of suffixs
9438
9439         * prj-nmsc.adb: Minor reformatting
9440         Correct spelling suffixs throughout (also in identifiers)
9441
9442         * freeze.adb: Minor spelling correction
9443
9444         * exp_ch2.adb: Cleanups to handling of Current_Value
9445         (no functional effect).
9446
9447         * bld.adb: Correct spelling of suffixs
9448
9449         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
9450
9451 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
9452
9453         PR ada/15408
9454
9455         * sem_ch7.adb (Install_Private_Declarations): In the body of the
9456         package or of a child, private entities are both immediately_visible
9457         and not hidden.
9458
9459 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
9460
9461         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
9462         there are no range checks on the value of the literal.
9463
9464         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
9465         wrapped is the triggering alternative of an asynchronous select, action
9466         statements mustbe inserted before the select itself.
9467
9468         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
9469         case where the prefix is a protected function call.
9470         (Resolve_Attribute, case 'Access): The attribute reference on a
9471         subprogram is legal in a generic body if the subprogram is declared
9472         elsewhere.
9473
9474 2004-08-09  Vincent Celier  <celier@gnat.com>
9475
9476         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
9477         languages, otherwise building the library may fail with unresolved
9478         symbols.
9479         (Compile_Sources): Do not build libraries if -c switch is used
9480
9481         * gnatlink.adb (Process_Args): New switches -M and -Mmap
9482         (Write_Usage): If map file creation is supported, output new switches
9483         -M and -Mmap.
9484         (Gnatlink): When -M is specified, add the necessary switch(es) to the
9485         gcc call, when supported.
9486
9487         * Makefile.in: Added indepsw.o to the object list for gnatlink
9488         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
9489
9490         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
9491         indepsw.adb, indepsw.ads: New files.
9492
9493 2004-08-09  Bernard Banner  <banner@gnat.com>
9494
9495         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
9496
9497         * Makefile.in: add section for vxworks x86
9498
9499 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
9500
9501         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
9502         per-object constrained components where the discriminant is of an
9503         Access type.
9504         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
9505         the parent initialization procedure for derived Unchecked_Unions.
9506         Instead, derived Unchecked_Unions build their own initialization
9507         procedure.
9508         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
9509         Check the body of the subprogram for details.
9510         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
9511         functions for derived Unchecked_Union types by introducing a condition.
9512         Allow the creation of TSS equality functions for Unchecked_Unions.
9513         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
9514         Add formal parameter Discr to function signature. Discr is used to
9515         control the generated case statement for Unchecked_Union types.
9516         (Make_Eq_If): Rename formal parameter Node to E in function signature.
9517
9518         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
9519         Unchecked_Unions.
9520         Check the body of the subprogram for details.
9521         (Expand_Composite_Equality): Augment composite type equality to include
9522         correct handling of Unchecked_Union components.
9523         (Expand_N_In): Add condition to detect illegal membership tests when the
9524         subtype mark is a constrained Unchecked_Union and the expression lacks
9525         inferable discriminants, and build a Raise_Program_Error node.
9526         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
9527         to detect types that contain components of unconstrained Unchecked_Union
9528         subtype. Add condition to detect equality between types that have an
9529         unconstrained Unchecked_Union component, and build a Raise_Program_Error
9530         node. Add condition to detect equality between Unchecked_Union types
9531         that lack inferable discriminants, and build a Raise_Program_Error node.
9532         Otherwise build a TSS equality function call.
9533         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
9534         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
9535         with the operand lacking inferable discriminants, and build a Raise_
9536         Program_Error node.
9537         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
9538         composite equality.
9539         (Has_Inferable_Discriminants): Implement new predicate for objects and
9540         expressions of Unchecked_Union type. Check the body of subprogram for
9541         details.
9542         (Has_Unconstrained_UU_Components): Add function
9543         Component_Is_Unconstrained_UU. It is used to detect whether a single
9544         component is of an unconstrained Unchecked_Union subtype. Add function
9545         Variant_Is_Unconstrained_UU. It is used to detect whether a single
9546         component inside a variant is of an unconstrained Unchecked_Union type.
9547
9548         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
9549         inferred discriminant values. Add condition to generate a case
9550         statement with an inferred discriminant as the switch.
9551         (Make_Component_List_Assign): Introduce a Boolean flag that determines
9552         the behaviour of the subprogram in the presence of an Unchecked_Union.
9553         Add condition to trigger the usage of the inferred discriminant value
9554         as the generated case statement switch.
9555         (Make_Field_Assign): Introduce a Boolean flag that determines the
9556         behaviour of the subprogram in the presence of an Unchecked_Union. Add
9557         condition to trigger the usage of the inferred discriminant value as
9558         the right-hand side of the generated assignment.
9559
9560         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
9561         parameter generation when dealing with Unchecked_Unions.
9562
9563         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
9564         checks for Unchecked_Unions.
9565
9566         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
9567
9568         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
9569         Raise_Program_Error nodes for the execution of Read and Write
9570         attributes of Unchecked_Union types and the execution of Input and
9571         Output attributes of Unchecked_Union types that lack default
9572         discriminant values.
9573
9574         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
9575         Unchecked_Union. Add procedure Check_Component. It is used to inspect
9576         per-object constrained components of Unchecked_Unions for being
9577         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
9578         check individual components withing a variant.
9579
9580         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
9581         comparison of Unchecked_Unions.
9582         (Resolve_Equality_OP): Remove guard that prevents equality between
9583         Unchecked_Unions.
9584
9585         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
9586         of component subtypes for Unchecked_Union components.
9587         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
9588         since it is the actual subtype.
9589
9590         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
9591         pass of Unchecked_Union subtypes as generic actuals to formal types
9592         that lack known_discriminant_parts or that are derived Unchecked_Union
9593         types, and do nothing. In any other case, produce an error message.
9594
9595         * sem_ch3.adb (Analyze_Component_Declaration): Add function
9596         Contains_POC. It determines whether a constraint uses the discriminant
9597         of an enclosing record type.
9598         Add condition to detect per-object constrained component and set the
9599         appropriate flag.
9600         (Derived_Type_Declaration): Remove guard that prevents derivation from
9601         Unchecked_Union types.
9602         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
9603         Union subtypes.
9604
9605         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
9606         references to Unchecked_Union discriminants.
9607
9608         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
9609         formal generation when dealing with Unchecked_Unions.
9610         (Set_Actual_Subtypes): Add condition to prevent generation of actual
9611         subtypes for Unchecked_Unions.
9612
9613         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
9614         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
9615         completions of discriminated partial views by Unchecked_Unions and
9616         produce an error message.
9617
9618 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9619
9620         * trans.c (struct stmt_group): New field, GLOBAL.
9621         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
9622         (struct elab_info): New struct.
9623         (elab_info_list, gnu_elab_proc_stack): New variables.
9624         (Compilation_Unit_to_gnu): New procedure.
9625         (gigi): Call it and also handle elaboration procs we've saved.
9626         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
9627         global field from parent.
9628         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
9629         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
9630         (start_stmt_group): Initialize global field from parent.
9631         (add_decl_expr): Set to global for current statement group.
9632         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
9633         post.
9634
9635         * utils.c (global_bindings_p): True when no current_function_decl; no
9636         longer check current_binding_level.
9637
9638 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
9639
9640         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
9641         choice.
9642
9643         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
9644
9645 2004-08-06  Andreas Schwab  <schwab@suse.de>
9646
9647         * utils.c (gnat_define_builtin): Remove second parameter of
9648         make_decl_rtl.
9649         (begin_subprog_body): Likewise.
9650
9651 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
9652
9653         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
9654         optimization, not supported by the tree-ssa back-end.
9655
9656 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
9657
9658         * s-mastop-irix.adb: Update comments.
9659
9660         * a-except.adb (Exception_Information): Raise Constraint_Error if
9661         exception Id is Null_Id.
9662         This is required behavior, which is more reliably and clearly checked
9663         at the top level interface level.
9664
9665 2004-07-26  Javier Miranda  <miranda@gnat.com>
9666
9667         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
9668         call if a component has no default_expression and the box is used.
9669
9670         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
9671         default_expression and you use box, it behaves as if you had declared a
9672         stand-alone object.
9673         (Resolve_Record_Aggregate): If a component has no default_expression and
9674         you use box, it behaves as if you had declared a stand-alone object.
9675
9676         * sem_ch10.adb (Install_Siblings): Do not make visible the private
9677         entities of private-with siblings.
9678
9679 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
9680
9681         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
9682         for a component of an itype, set the parent pointer for analysis,
9683         there is no list in which to insert it.
9684
9685         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
9686         bona-fide renamings, not for inherited operations.
9687
9688         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
9689         actual for a formal that is an access parameter, create local
9690         finalization list even if the expression is not an aggregate.
9691
9692 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
9693
9694         PR ada/16213
9695         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
9696         Diagnose properly illegal subprogram renamings that are library units.
9697
9698 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
9699
9700         PR ada/15588
9701         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
9702         conversion rewritten as an unchecked conversion, check that original
9703         expression is a variable.
9704
9705         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
9706         unchecked_conversion, create new node rather than rewriting in place,
9707         to preserve original construct.
9708
9709 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9710
9711         * gigi.h (gnat_expand_body): Deleted.
9712
9713         * Make-lang.in: (trans.o): Depends on function.h.
9714
9715         * misc.c: (gnat_expand_body): Moved to here.
9716
9717         * trans.c (gnat_expand_body_1): Deleted.
9718         (gnat_expand_body): Moved from here.
9719         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
9720         (add_stmt): Check for marked visited with global_bindings_p.
9721         (gnat_gimplify_expr, case COMPONENT_REF): New case.
9722         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
9723
9724         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
9725         VIEW_CONVERT_EXPR if not operation type.
9726
9727         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
9728         fat pointer.
9729
9730         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
9731         changes: reformatting of negation operators, removing unneeded
9732         inequality comparison with zero, converting equality comparisons with
9733         zero to negations, changing int/0/1 to bool/false/true, replace calls
9734         to gigi_abort with abort, and various other similar changes.
9735
9736 2004-07-26  Vincent Celier  <celier@gnat.com>
9737
9738         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
9739         "setup".
9740
9741         * make.adb (Gnatmake): Fail when a library is not present and there is
9742         no object directory.
9743
9744         * mlib-prj.adb (Check_Library): No need to check if the library needs
9745         to be rebuilt if there is no object directory, hence no object files
9746         to build the library.
9747
9748         * opt.ads (Setup_Projects): New Boolean flag.
9749
9750         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
9751         Location.
9752         Create directory when Kind /= "" and in "gnat setup". Report error if
9753         directory cannot be created.
9754         (Ada_Check): Create library interface copy dir if it does not exist
9755         and we are in "gnat setup".
9756         (Find_Sources): No error if in "gnat setup" and no Ada sources were
9757         found.
9758         (Language_Independent_Check): Create object directory, exec directory
9759         and/or library directory if they do not exist and we are in
9760         "gnat setup".
9761
9762         * vms_conv.ads: (Command_Type): New command Setup.
9763
9764         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
9765
9766         * vms_data.ads: Add qualifiers/switches for new built-in command
9767         "setup".
9768
9769 2004-07-25  Richard Henderson  <rth@redhat.com>
9770
9771         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
9772         DECL_IGNORED_P on RESULT_DECL.
9773
9774 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
9775
9776         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
9777         allocation and potentially overflowing update with
9778         Tailored_Exception_Information. Use the sec-stack free procedural
9779         interface to output Exception_Information instead.
9780
9781         * a-except.adb (To_Stderr): New subprogram for character, and string
9782         version moved from a-exextr to be visible from other separate units.
9783         (Tailored_Exception_Information): Remove the procedural version,
9784         previously used by the default Last_Chance_Handler and not any more.
9785         Adjust various comments.
9786
9787         * a-exexda.adb: Generalize the exception information procedural
9788         interface, to minimize the use of secondary stack and the need for
9789         local buffers when the info is to be output to stderr:
9790         (Address_Image): Removed.
9791         (Append_Info_Character): New subprogram, checking for overflows and
9792         outputing to stderr if buffer to fill is of length 0.
9793         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
9794         (Append_Info_Address, Append_Info_Exception_Name,
9795         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
9796         Append_Info_Basic_Exception_Traceback,
9797         Append_Info_Exception_Information): New subprograms.
9798         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
9799         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
9800         Exception_Info_Maxlength, Exception_Name_Length,
9801         Exception_Message_Length): New subprograms.
9802         (Exception_Information): Use Append_Info_Exception_Information.
9803         (Tailored_Exception_Information): Use
9804         Append_Info_Basic_Exception_Information.
9805         Export services for the default Last_Chance_Handler.
9806
9807         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
9808         other separate units.
9809
9810 2004-07-20  Vincent Celier  <celier@gnat.com>
9811
9812         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
9813
9814 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
9815
9816         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
9817         emit itype references for the designated types of component types that
9818         are declared outside of the full record declaration, and that may
9819         denote a partial view of that record type.
9820
9821 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
9822
9823         PR ada/15607
9824         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
9825         which is the designated type in an access component declaration, to the
9826         list of incomplete dependents of the parent type, to avoid elaboration
9827         issues with out-of-scope subtypes.
9828         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
9829         full view of the parent.
9830
9831 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
9832
9833         PR ada/15610
9834         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
9835         entities that are hidden, such as references to generic actuals
9836         outside an instance.
9837
9838 2004-07-20  Javier Miranda  <miranda@gnat.com>
9839
9840         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
9841         support to the new notation.
9842         (Analyze_Selected_Component): Add call to Try_Object_Operation.
9843
9844 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
9845
9846         * s-taprob.adb: Adding the elaboration code required for initializing
9847         the tasking soft links that are common to the full and the restricted
9848         run times.
9849
9850         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
9851         restricted run time has been moved to the package
9852         System.Soft_Links.Tasking.
9853
9854         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
9855         restricted run time has been moved to the package
9856         System.Soft_Links.Tasking.
9857
9858         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
9859
9860         * s-solita.ads, s-solita.adb: New files.
9861
9862 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9863
9864         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
9865         Case_Statement_to_gnu): Split off from gnat_to_gnu.
9866         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
9867         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
9868         Exception_Handler_to_gnu_zcx): Likewise.
9869
9870 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
9871
9872         * gigi.h (builtin_function): Declare.
9873
9874 2004-07-15  Robert Dewar  <dewar@gnat.com>
9875
9876         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
9877         reformatting
9878
9879         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
9880         access values as an example of a warning.
9881
9882         * gnat_rm.texi: Document new attribute Has_Access_Values
9883
9884         * gnat-style.texi: Document that box comments belong on nested
9885         subprograms
9886
9887         * sem_util.ads (Has_Access_Values): Improved documentation
9888
9889         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
9890
9891         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
9892         (Process_Interface_Name): Call to this new procedure
9893         (Set_Extended_Import_Export_External_Name): Call to this new procedure
9894
9895         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
9896
9897         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
9898
9899         * einfo.ads: Minor comment typo fixed
9900
9901 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
9902
9903         * snames.adb: Add _atcb.
9904
9905         * snames.ads: Add Name_uATCB.
9906
9907         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
9908         (in the expanded code) when using the restricted run time.
9909
9910         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
9911         a in parameter in order to allow ATCBs to be preallocated (in the
9912         expanded code).
9913
9914         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
9915         order to allow ATCBs to be preallocated. In case of error, the ATCB is
9916         deallocated in System.Tasking.Stages.
9917
9918         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
9919         order to allow ATCBs to be preallocated.
9920
9921         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
9922         here. It was previously done in Initialize_ATCB.
9923
9924         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
9925
9926         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
9927         Restricted run time.
9928
9929         * exp_ch3.adb: When using the Restricted run time, pass the
9930         preallocated Ada_Task_Control_Block when creating a task.
9931
9932 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
9933
9934         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
9935         function call that is itself an actual in an enclosing call, diagnose
9936         problem here rather than assuming that resolution will catch it.
9937
9938         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
9939         the local copy of a generic unit for a formal package, and the generic
9940         is a child unit, install private part of ancestors before compiling
9941         private part of spec.
9942
9943         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
9944         use scope entities rather than tree structures, to handle properly
9945         parent units that are instances rewritten as bodies for inlining
9946         purposes.
9947
9948         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
9949         Remove_Parents): Handle properly a parent unit that is an
9950         instantiation, when the unit has been rewritten as a body for inlining
9951         purposes.
9952
9953         * par.adb (Goto_List): Global variable to collect goto statements in a
9954         given unit, for use in detecting natural loops.
9955
9956         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
9957         use in detecting natural loops.
9958
9959         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
9960         backwards goto's, and rewrite as a infinite loop, to improve locality
9961         of temporaries.
9962
9963         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
9964         subcomponent that includes an indexed reference, to prevent the
9965         generation of copies that would miscompile the desired assignment
9966         statement.
9967         (Build_Task_Image_Decls): Add a numeric suffix to
9968         generated name for string variable, to avoid spurious conflicts with
9969         the name of the type of a single protected object.
9970
9971         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
9972         loop with an explicit exit statement, to avoid generating an
9973         out-of-range value with 'Succ leading to spurious constraint_errors
9974         when compiling with -gnatVo.
9975
9976 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
9977
9978         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
9979         might not be analyzed yet, even if its Etype is already set (case of an
9980         unchecked conversion built using Unchecked_Convert_To, for example).
9981         If the prefix has already been analyzed, this will be a nop anyway.
9982
9983         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
9984         controller type, or an assignment of a record type with controlled
9985         components, copy only user data, and leave the finalization chain
9986         pointers untouched.
9987
9988 2004-07-15  Vincent Celier  <celier@gnat.com>
9989
9990         * make.adb (Collect_Arguments): Improve error message when attempting
9991         to compile a source not part of any project, when -x is not used.
9992
9993         * prj.ads: (Defined_Variable_Kind): New subtype
9994
9995         * prj-attr.adb (Register_New_Package): Two new procedures to register
9996         a package with or without its attributes.
9997         (Register_New_Attribute): Mew procedure to register a new attribute in a
9998         package.
9999         New attribute oriented subprograms: Attribute_Node_Id_Of,
10000         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
10001         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
10002         Next_Attribute.
10003         New package oriented subprograms: Package_Node_Id_Of,
10004         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
10005
10006         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
10007         type.
10008         (Package_Node_Id): Now a private, self initialized type
10009         (Register_New_Package): New procedure to register a package with its
10010         attributes.
10011         New attribute oriented subprograms: Attribute_Node_Id_Of,
10012         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
10013         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
10014         Next_Attribute.
10015         New package oriented subprograms: Package_Node_Id_Of,
10016         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
10017
10018         * prj-dect.adb (Parse_Attribute_Declaration,
10019         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
10020
10021         * prj-makr.adb (Make): Parse existing project file before creating
10022         other files. Fail if there was an error during parsing.
10023
10024         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
10025         new spec of Prj.Attr.
10026
10027         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
10028         to new spec of Prj.Attr.
10029
10030 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10031
10032         * utils2.c: Fix typo in comment.
10033
10034 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10035
10036         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
10037         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
10038
10039 2004-07-14  Andreas Schwab  <schwab@suse.de>
10040
10041         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
10042
10043 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10044
10045         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
10046         object type.
10047         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
10048         TYPE_STUB_DECL.
10049
10050         * misc.c (gnat_types_compatible_p): New function.
10051         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
10052         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
10053
10054         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
10055         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
10056         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
10057         (mark_visited): Don't mark dummy type.
10058         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
10059         parameter, we must remove any LJM building from GNU_NAME.
10060         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
10061         (pos_to_constructor): Use int_const_binop.
10062         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
10063         PARM_DECL.
10064
10065         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
10066         (gnat_pushlevel): Set TREE_USE on BLOCK node.
10067         (gnat_install_builtins): Add __builtin_memset.
10068
10069 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
10070
10071         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
10072         for a renaming, stabilize the initialization expression if we are at a
10073         local level.  At the local level, uses of the renaming may be performed
10074         by a direct dereference of the initializing expression, and we don't
10075         want possible variables there to be evaluated for every use.
10076
10077         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
10078         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
10079         them on the way.  Account for the fact that we may introduce side
10080         effects in the process.
10081
10082 2004-07-13  Richard Henderson  <rth@redhat.com>
10083
10084         * misc.c (default_pass_by_ref): Use pass_by_reference.
10085
10086 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
10087
10088         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
10089         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
10090
10091 2004-07-08  Richard Henderson  <rth@redhat.com>
10092
10093         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
10094         commentary.
10095
10096 2004-07-06  Vincent Celier  <celier@gnat.com>
10097
10098         * vms_conv.ads: Minor reformatting.
10099         Alphabetical order for enumerated values of type Command_Type, to have
10100         the command in alphabetical order for the usage.
10101
10102         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
10103         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
10104
10105         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
10106
10107         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
10108         (Add_Archive_Path): Only add the global archive if there is one.
10109         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
10110         or not any object file to put in the global archive, and don't build
10111         a global archive if there is none.
10112         (X_Switches): New table
10113         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
10114         in the X_Switches table, if any.
10115         (Initialize): Make sure the X_Switches table is empty
10116         (Scan_Arg): Record -X switches in table X_Switches
10117
10118         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
10119
10120         * make.adb: Minor comment fix
10121
10122         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
10123         invoked with directory information, add the directory in front of the
10124         path.
10125
10126         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
10127         invoked with directory information, add the directory in front of the
10128         path.
10129
10130         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
10131         when Keep_Temporary_Files is False.
10132         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
10133         directory information, add the directory in front of the path.
10134         When not on VMS, handle new switch -dn before the command to set
10135         Keep_Temporary_Files to True.
10136         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
10137         everywhere.
10138
10139         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
10140         invoked with directory information, add the directory in front of the
10141         path.
10142
10143 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
10144
10145         * snames.ads, snames.adb (Name_Stub): New name for the distributed
10146         systems annex.
10147
10148         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
10149         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
10150
10151         * g-socket.adb (To_Timeval): Fix incorrect conversion of
10152         Selector_Duration to Timeval for the case of 0.0.
10153
10154         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
10155         documentation from Evolve_And_Then.
10156
10157 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
10158
10159         * s-taprop-tru64.adb, s-taprop-os2.adb,
10160         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
10161
10162 2004-07-06  Robert Dewar  <dewar@gnat.com>
10163
10164         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
10165         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
10166         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
10167         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
10168         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
10169         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
10170         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
10171         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
10172         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
10173         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
10174         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
10175         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
10176         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
10177         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
10178         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
10179         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
10180         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
10181         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
10182         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
10183         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
10184         vms_data.ads: Minor reformatting,
10185         Fix bad box comment format.
10186
10187         * gnat_rm.texi: Fix minor grammatical error
10188
10189         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
10190
10191         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
10192         more cases of discriminated records to be recognized as not needing a
10193         secondary stack.
10194         (Has_Access_Values): New function.
10195
10196         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
10197
10198         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
10199         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
10200         with LRM terminology).
10201         Change terminology in comments primitive type => elementary type.
10202
10203 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10204
10205         PR ada/15602
10206         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
10207         parameters do not impose any requirements on the presence of a body.
10208
10209 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10210
10211         PR ada/15593
10212         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
10213         compilation unit and is in an open scope at the point of instantiation,
10214         assume that a body may be present later.
10215
10216 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
10217
10218         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
10219         Improve error message when specified size is not supported.
10220
10221         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
10222         is never a primitive operation.
10223
10224 2004-07-05  Andreas Schwab  <schwab@suse.de>
10225
10226         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
10227         RECORD_OR_UNION_CHECK.
10228         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
10229
10230 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
10231
10232         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
10233         dependency on xgnatugn, instead build it via a submake.
10234         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
10235
10236 2004-07-04  Richard Henderson  <rth@redhat.com>
10237
10238         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
10239
10240 2004-07-01  Richard Henderson  <rth@redhat.com>
10241
10242         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
10243         * utils.c (max_size): Likewise.
10244
10245 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10246
10247         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
10248         and rest_of_type_compilation; add arg to create_*_decl.
10249         (annotate_decl_with_node): Deleted.
10250         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
10251         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
10252         (get_current_block_context, gnat_pushdecl): New declarations.
10253         (gnat_init_stmt_group): Likewise.
10254         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
10255         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
10256         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
10257         (gnat_init): Call gnat_init_stmt_group.
10258         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
10259         (gnu_pending_elaboration_list): Deleted.
10260         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
10261         (gigi): Rearrange initialization calls and move some to last above.
10262         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
10263         Delete calls to add_decl_expr; add arg to create_*_decl.
10264         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
10265         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
10266         begin_subprog_body and call it.
10267         Don't push and pop ggc context.
10268         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
10269         (add_stmt): Remove handling of DECL_EXPR from here.
10270         If not in function, mark visited.
10271         (add_decl_expr): Put global at top level.
10272         Check for cases of DECL_INITIAL we have to handle here.
10273         (process_type): Add extra arg to create_type_decl.
10274         (build_unit_elab): Rework to just gimplify.
10275         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
10276         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
10277         (get_pending_elaborations, pending_elaborations_p): Likewise.
10278         (push_pending_elaborations, pop_pending_elaborations): Likewise.
10279         (get_elaboration_location, insert_elaboration_list): Likewise.
10280         (gnat_binding_level): Renamed from ada_binding_level.
10281         (init_gnat_to_gnu): Don't clear pending_elaborations.
10282         (global_bindings_p): Treat as global if no current_binding_level.
10283         (set_current_block_context): New function.
10284         (gnat_pushdecl): Renamed from pushdecl; major rework.
10285         All callers changed.
10286         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
10287         (finish_record_type): Call call pushdecl for stub decl.
10288         (function_nesting_depth): Deleted.
10289         (begin_subprog_body): Delete obsolete code.
10290         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
10291
10292 2004-06-28  Robert Dewar  <dewar@gnat.com>
10293
10294         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10295         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10296         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
10297         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10298         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
10299
10300         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
10301         deal with problem of inefficient slices on machines with strict
10302         alignment, when the slice is a component of a composite.
10303
10304         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
10305         machines, we need the check there as well.
10306
10307 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
10308
10309         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
10310         determine safe copying direction for overlapping slice assignments
10311         when component is controlled.
10312
10313         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
10314         formal derived type in the actual for a formal package are visible in
10315         the enclosing instance.
10316
10317 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
10318
10319         PR ada/15600
10320         * sem_util.adb (Trace_Components): Diagnose properly an illegal
10321         circularity involving a private type whose completion includes a
10322         self-referential component.
10323         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
10324         renaming or an instantiation from an implicit derived operation.
10325
10326 2004-06-28  Pascal Obry  <obry@gnat.com>
10327
10328         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
10329         DLL.
10330         (Library_File_Name_For): Idem.
10331
10332 2004-06-28  Matthew Gingell  <gingell@gnat.com>
10333
10334         * g-traceb.ads: Add explanatory note on the format of addresses
10335         expected by addr2line.
10336
10337 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
10338
10339         * Makefile.in: Force debugging information on s-tasdeb.adb,
10340         a-except.adb and s-assert.adb needed by the debugger.
10341
10342 2004-06-28  Vincent Celier  <celier@gnat.com>
10343
10344         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
10345         Need_To_Build_Lib.
10346         (Gnatmake): Ditto.
10347
10348         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
10349
10350         * prj.adb: Minor reformatting
10351         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
10352
10353         * prj.ads: Comment updates
10354         Minor reformatting
10355         (Project_Data): Change Flag1 to Need_To_Build_Lib.
10356         Remove Flag2: not used.
10357
10358         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
10359         declaration.
10360
10361         * gnat_ugn.texi: Put a "null;" declaration in one project file example
10362
10363         * gnat_rm.texi: Document Empty declarations "null;".
10364
10365         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
10366         front of the linker options.
10367         (Link_Foreign): Put the global archives and the libraries in front of
10368         the linker options.
10369
10370 2004-06-28  Javier Miranda  <miranda@gnat.com>
10371
10372         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
10373         (RTU_Loaded): Code cleanup
10374         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
10375         withed predefined units.
10376
10377         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
10378         explicitly withed predefined units.
10379         Fix typo in comment
10380
10381         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
10382         explicitly withed predefined units.
10383
10384 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10385
10386         * ada-tree.def (DECL_STMT): Deleted.
10387         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
10388         (DECL_STMT_VAR): Deleted.
10389         * decl.c: add_decl_stmt now add_decl_expr.
10390         * gigi.h: Likewise.
10391         * trans.c: Likewise.
10392         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
10393         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
10394         (add_stmt): Only handle padded type here.
10395         (add_stmt_with_node): Allow gnat_node to not be present.
10396         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
10397         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
10398         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
10399         make a SAVE_EXPR for the entire fat pointer.
10400         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
10401         (create_index_type): Make a DECL_EXPR.
10402         (end_subprog_body): Don't call allocate_struct_function here but
10403         do clear cfun.
10404
10405 2004-06-25  Pascal Obry  <obry@gnat.com>
10406
10407         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
10408         Relocatable from Build_Dynamic_Library call.
10409
10410         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
10411         Relocatable are now synonym.
10412
10413         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
10414
10415         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
10416         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
10417         call.
10418
10419         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
10420         Lib_Address and Relocatable.
10421         (Default_DLL_Address): Removed.
10422
10423         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10424         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10425         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
10426         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
10427         (Default_DLL_Address): Removed.
10428
10429         * mlib-tgt-mingw.adb: Ditto.
10430         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
10431
10432         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
10433         the initial thread stack size.
10434
10435         * a-strmap.ads: Move package L to private part as it is not used in
10436         the spec. Found while reading code.
10437
10438 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
10439
10440         * tracebak.c: Introduce support for a GCC infrastructure based
10441         implementation of __gnat_backtrace.
10442
10443         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
10444         any more. Use accessors instead. This eases maintenance and relaxes
10445         some alignment constraints.
10446         (_GNAT_Exception structure): Remove the Ada specific fields
10447         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
10448         a-exexpr.adb.
10449         (is_handled_by, __gnat_eh_personality): Replace component references to
10450         exception structure by use of the new accessors.
10451
10452         * init.c (__gnat_initialize): Adjust comments to match the just
10453         reverted meaning of the -static link-time option.
10454
10455         * adaint.c (convert_addresses): Arrange not to define a stub for
10456         mips-irix any more, as we now want to rely on a real version from a
10457         recent libaddr2line.
10458
10459         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
10460         the personality routine can use them and not have to rely on a C
10461         counterpart of the record anymore. This simplifies maintenance and
10462         relaxes the constraint of having Standard'Maximum_Alignment match
10463         BIGGEST_ALIGNMENT.
10464         Update comments, and add a section on the common header alignment issue.
10465
10466 2004-06-25  Geert Bosch  <bosch@gnat.com>
10467
10468         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
10469         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
10470
10471 2004-06-25  Robert Dewar  <dewar@gnat.com>
10472
10473         * gnat_rm.texi: Fix section on component clauses to indicate that the
10474         restriction on byte boundary placement still applies for bit packed
10475         arrays.
10476         Add comment on stack usage from Initialize_Scalars
10477
10478         * gnat_ugn.texi: Add documentation for -gnatyLnnn
10479
10480         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
10481         limiting nesting level.
10482
10483         * usage.adb: Add line for -gnatyLnnn switch
10484
10485         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
10486         sem_ch13.adb, exp_aggr.adb: Minor reformatting
10487
10488         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
10489         type as well as on the subtype. This corrects a problem in freeze in
10490         setting alignments of atomic types.
10491
10492         * sem_eval.ads: Minor comment typo fixed
10493
10494         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
10495         level.  Minor reformatting.
10496
10497         * fname.adb (Is_Predefined_File_Name): Require a letter after the
10498         minus sign. This means that file names like a--b.adb will not be
10499         considered predefined.
10500
10501         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
10502         record Test new flag and give diagnostic for bad component clause.
10503         (Freeze_Entity): Set alignment of array from component alignment in
10504         cases where this is safe to do.
10505
10506         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
10507         arrays.
10508
10509         * cstand.adb: (Create_Standard): Set alignment of String to 1
10510
10511         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
10512
10513         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
10514         code in the common constrained array cases.
10515
10516         * a-storio.adb: Change implementation to avoid possible alignment
10517         problems on machines requiring strict alignment (data should be moved
10518         as type Buffer, not type Elmt).
10519
10520         * checks.adb (Apply_Array_Size_Check): Improve these checks by
10521         killing the overflow checks which we really do not need (64-bits is
10522         enough).
10523
10524 2004-06-25  Vincent Celier  <celier@gnat.com>
10525
10526         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
10527         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
10528         inconditionally for the main project.
10529         (Recursive_Add_Archives.Add_Archive_Path): New procedure
10530         (Link_Executables.Check_Time_Stamps): New procedure
10531         (Link_Executables.Link_Foreign): New procedure
10532         Changes made to reduce nesting level of this package
10533         (Check): New procedure
10534         (Add_Switches): When not in quiet output, check that a switch is not
10535         the concatenation of several valid switches. If it is, issue a warning.
10536         (Build_Global_Archive): If the global archive is rebuilt, linking need
10537         to be done.
10538         (Compile_Sources): Rebuilding a library archive does not imply
10539         rebuilding the global archive.
10540         (Build_Global_Archive): New procedure
10541         (Build_Library): New name for Build_Archive, now only for library
10542         project
10543         (Check_Archive_Builder): New procedure
10544         (Create_Global_Archive_Dependency_File): New procedure
10545         (Gprmake): Call Build_Global_Archive before linking
10546         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
10547         throughout.
10548         (Scan_Arg): Display the Copyright notice when -v is used
10549
10550         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
10551         for gnatls.
10552
10553         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
10554         COMPILE.
10555         Add new GNAT LIST qualifier /FILES=
10556         Added qualifier /DIRECTORY= to GNAT METRIC
10557         Added qualifier /FILES= to GNAT METRIC
10558         Added qualifier /FILES to GNAT PRETTY
10559
10560         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
10561         to take into account both versions of the switch.
10562
10563         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
10564         always be the last switch to the gcc driver. Disable switch storing so
10565         that switches automatically added by the gcc driver are not put in the
10566         ALI file.
10567
10568         * prj.adb (Project_Empty): Take into account changes in components of
10569         Project_Data.
10570
10571         * prj.ads (Languages_Processed): New enumaration value All_Languages.
10572
10573         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
10574         used. Split Boolean component Ada_Sources_Present in two Boolean
10575         components Ada_Sources_Present and Other_Sources_Present.
10576         Minor reformatting
10577
10578         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
10579         instead of Sources_Present.
10580         (Set_Ada_Paths.Add.Recursive_Add): Ditto
10581
10582         * prj-nmsc.adb: Minor reformatting
10583         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
10584         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
10585         Check_Ada_Naming_Scheme.
10586         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
10587         throughout.
10588
10589         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
10590         In_Limited.
10591         Make sure that all cycles where there is at least one "limited with"
10592         are detected.
10593         (Parse_Single_Project): New Boolean parameter In_Limited
10594
10595         * prj-proc.adb (Recursive_Check): When Process_Languages is
10596         All_Languages, call first Prj.Nmsc.Ada_Check, then
10597         Prj.Nmsc.Other_Languages_Check.
10598
10599         * prj-proc.adb (Process): Use Ada_Sources_Present or
10600         Other_Sources_Present (instead of Sources_Present) depending on
10601         Process_Languages.
10602
10603         * lang-specs.h: Keep -g and -m switches in the same order, and as the
10604         last switches.
10605
10606         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
10607         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
10608         False.
10609         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
10610         False.
10611
10612         * lib.ads (Disable_Switch_Storing): New procedure.
10613
10614         * make.adb: Modifications to reduce nesting level of this package.
10615         (Check_Standard_Library): New procedure
10616         (Gnatmake.Check_Mains): New procedure
10617         (Gnatmake.Create_Binder_Mapping_File): New procedure
10618         (Compile_Sources.Compile): Add switch -gnatez as the last option
10619         (Display): Never display -gnatez
10620
10621         * Makefile.generic:
10622         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
10623
10624         * gnatcmd.adb (Check_Project): New function
10625         (Process_Link): New procedure to reduce nesting depth
10626         (Check_Files): New procedure to reduce the nesting depth.
10627         For GNAT METRIC, include the inherited sources in extending projects.
10628         (GNATCmd): When GNAT LS is invoked with a project file and no files,
10629         add the list of files from the sources of the project file. If this list
10630         is too long, put it in a temp text files and use switch -files=
10631         (Delete_Temp_Config_Files): Delete the temp text file that contains
10632         a list of source for gnatpp or gnatmetric, if one has been created.
10633         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
10634         in the project file is too large, create a temporary text file that
10635         list them and pass it to the tool with "-files=<temp text file>".
10636         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
10637
10638         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
10639         generated file is in not in Ada.
10640
10641         * gnatls.adb: Remove all parameters And_Save that are no longer used.
10642         (Scan_Ls_Arg): Add processing for -files=
10643         (Usage): Add line for -files=
10644
10645         * g-os_lib.adb (On_Windows): New global constant Boolean flag
10646         (Normalize_Pathname): When on Windows and the path starts with a
10647         directory separator, make sure that the resulting path will start with
10648         a drive letter.
10649
10650         * clean.adb (Clean_Archive): New procedure
10651         (Clean_Project): When there is non-Ada code, delete the global archive,
10652         the archive dependency files, the object files and their dependency
10653         files, if they exist.
10654         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
10655
10656 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
10657
10658         * sinfo.ads: Fix typo in comment.
10659
10660         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
10661         the TSS for remote access-to-subprogram types, since these TSS are
10662         always present once the type has been analyzed.
10663         (RAS_E_Dereference): Same.
10664
10665         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
10666         reference raises Bad_Attribute, mark the reference as analyzed so the
10667         node (and any children resulting from rewrites that could have occurred
10668         during the analysis that ultimately failed) is not analyzed again.
10669
10670         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
10671
10672         * exp_dist.adb: Minor comment fix.
10673
10674         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
10675         type is an anonymous access type, no unchecked deallocation of the
10676         allocated object can occur. If the object is controlled, attach it with
10677         a count of 1. This allows attachment to the Global_Final_List, if
10678         no other relevant list is available.
10679         (Get_Allocator_Final_List): For an anonymous access type that is
10680         the type of a discriminant or record component, the corresponding
10681         finalisation list is the one of the scope of the type.
10682
10683 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
10684
10685         * sem_ch3.adb (Replace_Type): When computing the signature of an
10686         inherited subprogram, use the first subtype if the derived type
10687         declaration has no constraint.
10688
10689         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
10690         before applying previous optimization. Minor code cleanup.
10691
10692         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
10693         placed at the beginning of an unpacked record without explicit
10694         alignment, a slice of it will be aligned and does not need a copy when
10695         used as an actual.
10696
10697 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
10698
10699         PR ada/15591
10700         PR ada/15592
10701         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
10702         reference is written with expressions mimicking parameters.
10703
10704 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
10705
10706         PR ada/15589
10707         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
10708         STEP 2a. The constraints of a full type declaration of a derived record
10709         type are checked for conformance with those declared in the
10710         corresponding private extension declaration. The message
10711         "not conformant with previous declaration" is emitted if an error is
10712         detected.
10713
10714 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
10715
10716         * g-traceb.ads: Document the need for -E binder switch in the spec.
10717
10718         * g-trasym.ads: Document the need for -E binder switch in the spec.
10719
10720 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
10721
10722         * sem_prag.adb: Add handling of pragma Detect_Blocking.
10723
10724         * snames.h, snames.ads, snames.adb: Add entry for pragma
10725         Detect_Blocking.
10726
10727         * s-rident.ads: Change reference to pragma Detect_Blocking.
10728
10729         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
10730         system.ads.
10731
10732         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
10733         to indicate whether pragma Detect_Blocking is active.
10734
10735         * par-prag.adb: Add entry for pragma Detect_Blocking.
10736
10737         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
10738         of not handling WITH.
10739         Note that this replaces the previous update which was incorrect.
10740
10741 2004-06-25  Javier Miranda  <miranda@gnat.com>
10742
10743         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
10744         use-clauses to have a clean environment.
10745
10746         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
10747         the installation of the use-clauses to stablish a clean environment in
10748         case of compilation of a separate unit; otherwise the call to
10749         use_one_package is protected by the barrier Applicable_Use.
10750
10751         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
10752         the installation of the use-clauses to stablish a clean environment in
10753         case of compilation of a separate unit.
10754         (End_Use_Clauses): Minor comment cleanup.
10755
10756 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
10757
10758         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
10759
10760 2004-06-23  Richard Henderson  <rth@redhat.com>
10761
10762         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
10763
10764 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10765
10766         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
10767         now bool instead of int.
10768         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
10769         * trans.c (gnu_switch_label_stack): New function.
10770         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
10771         elaboration of renamed entity returns.
10772         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
10773         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
10774         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
10775         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
10776         DECL_SIZE_UNIT and simplify variable-sized case.
10777         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
10778         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
10779         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
10780         (build_unit_elab): Disable for now.
10781         * utils.c (mark_visited): New function.
10782         (pushdecl): Walk tree to call it for global decl.
10783         (update_pointer_to): Update all variants of pointer and ref types.
10784         Add arg to COMPONENT_REF.
10785         (convert): Likewise.
10786         Move check for converting between variants lower down.
10787         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
10788         (build_allocator): Don't force type of MODIFY_EXPR.
10789         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
10790         put_var_into_stack.
10791
10792 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10793
10794         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
10795         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
10796         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
10797         subprograms.
10798         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
10799         all callers changed.
10800         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
10801         the way that EXIT_STMT finds the loop label.
10802         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
10803         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
10804         (add_stmt): Use annotate_with_locus insted of setting directly.
10805         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
10806         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
10807         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
10808         (build_vms_descriptor): Add extra args to ARRAY_REF.
10809         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
10810         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
10811         New cases.
10812         (build_binary_op): Don't make explicit CONVERT_EXPR.
10813         Add extra rgs to ARRAY_REF.
10814
10815 2004-06-14  Pascal Obry  <obry@gnat.com>
10816
10817         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
10818         Windows.  Fix minor typo.
10819
10820         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
10821         which is now supported on Windows. With this implementation using the
10822         Library Project feature is no different on Windows than on UNIX.
10823
10824 2004-06-14  Vincent Celier  <celier@gnat.com>
10825
10826         * makegpr.adb (Compile_Sources): Nothing to do when there are no
10827         non-Ada sources.
10828
10829         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
10830
10831         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
10832         found, show the project name and the path of the previously parsed
10833         project file.
10834
10835 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
10836
10837         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
10838         array, avoid copying the actual before the call.
10839
10840 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
10841
10842         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
10843         Instead, allocate memory on worst-case alignment assumptions, and then
10844         return an aligned address within the allocated zone.
10845
10846 2004-06-14  Robert Dewar  <dewar@gnat.com>
10847
10848         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
10849         elab entities in predefined units in No_Run_Time_Mode.
10850         (Gen_Adainit_C): Same fix
10851         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
10852         units in No_Run_Time_Mode
10853         (Gen_Elab_Calls_C): Same fix
10854
10855         * symbols-vms-alpha.adb: Minor reformatting
10856
10857         * g-debpoo.ads: Minor reformatting
10858
10859         * lib.adb (In_Same_Extended_Unit): Version working on node id's
10860
10861         * lib.ads (In_Same_Extended_Unit): Version working on node id's
10862
10863         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
10864         working on nodes.
10865
10866         * make.adb: Minor reformatting
10867
10868         * par-ch12.adb: Minor reformatting
10869
10870         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
10871
10872         * prj-strt.adb: Minor reformatting
10873
10874         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
10875         be more general.
10876
10877         * sem_attr.adb: Minor reformatting
10878
10879         * sem_ch7.adb: Minor reformatting
10880
10881         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
10882         for type in the same unit as the object declaration.
10883
10884         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
10885         static string expressions and not just string literals.
10886         Minor reformatting
10887         (Set_Warning): Reset restriction warning flag for restriction pragma
10888         Implement pragma Profile_Warnings
10889         Implement pragma Profile (Restricted)
10890         Give obolescent messages for old restrictions and pragmas
10891
10892         * snames.h, snames.ads, snames.adb: Add new entry for pragma
10893         Profile_Warnings.
10894
10895         * s-rident.ads: Add declarations for restrictions required by profile
10896         Restricted and profile Ravenscar.
10897
10898         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
10899
10900         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
10901         configuration pragmas.
10902
10903 2004-06-11  Vincent Celier  <celier@gnat.com>
10904
10905         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
10906         gnatsym, when symbol policy is Restricted.
10907
10908         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
10909         gnatsym, when symbol policy is Restricted.
10910
10911         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
10912         read the symbol file.
10913         (Finalize): Fail in symbol policy Restricted if a symbol in the original
10914         symbol file is not in the object files. Do not create a new symbol file
10915         when symbol policy is Restricted.
10916
10917         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
10918         in Scng.
10919
10920         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
10921         Restricted.
10922         (Usage): Line for new switch -R
10923
10924         * make.adb (Initialize): When the platform is not VMS, add the
10925         directory where gnatmake is invoked in the front of the path, if
10926         gnatmake is invoked with directory information.  Change the Scan_Args
10927         while loop to a for loop.
10928         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
10929         if Depth is equal or greater than the proposed depth, there is nothing
10930         to do.
10931         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
10932         instead of 0.
10933
10934         * prj.ads: Add new symbol policy Restricted.
10935
10936         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
10937         with the new parameters Check_All_Labels and Case_Location.
10938
10939         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
10940         (Library_Symbol_File needs to be defined).
10941
10942         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
10943         and Case_Location If Check_All_Labels is True, check that all values of
10944         the string type are used, and output warning(s) if they are not.
10945
10946         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
10947         and Case_Location.
10948
10949         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
10950
10951         * gnat_ugn.texi: Update documentation about the library directory in
10952         Library Projects.
10953
10954         * makegpr.adb (Display_Command): In verbose mode, also display the
10955         value of the CPATH env var, when the compiler is gcc.
10956         (Initialize): Change the Scan_Args while loop to a for loop
10957         (Compile_Individual_Sources): Change directory to object directory
10958         before compilations.
10959
10960         * symbols.ads: New symbol policy Restricted.
10961
10962 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
10963
10964         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
10965         is now taken care of internally in the Exception_Propagation package
10966         and does not require clients assistance any more.
10967
10968         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
10969         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
10970         functions. Helpers to maintain a predicate required in the handling of
10971         occurrence transfer between tasks.
10972         This is now handled internally and does not require clients assistance
10973         for the setup/propagate separation anymore.
10974         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
10975         allocation strategy, handle the Setup_And_Not_Propagated predicate and
10976         document.
10977
10978         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
10979         raise_after_setup, now that everything is handled internally within the
10980         setup/propagation engine.
10981
10982 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
10983
10984         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
10985         Add additional conditions for the case of an actual being a simple
10986         name or literal. Improve inlining by preventing the generation
10987         of temporaries with a short lifetime (one use).
10988
10989 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
10990
10991         PR ada/15587
10992
10993         * einfo.ads: Minor comment updates for Has_Completion and
10994         E_Constant list of flags.
10995
10996         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
10997         and constant redeclarations now set the Has_Completion flag of their
10998         defining identifiers.
10999
11000         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
11001         Inspect_Deferred_Constant_Completion.
11002         Used to detect private deferred constants that have not been completed
11003         either by a constant redeclaration or pragma Import. Emits error message
11004         "constant declaration requires initialization expression".
11005
11006         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
11007         completes a deferred constant.
11008
11009 2004-06-11  Geert Bosch  <bosch@gnat.com>
11010
11011         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
11012
11013         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
11014         calculating exponent for scaling denormal numbers.
11015         (Leading_Part): Properly raise Constraint_Error for zero or negative
11016         Adjustment.
11017         (Remainder): Properly raise Constraint_Error for zero divisor.
11018
11019 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
11020
11021         * sem_util.adb: Minor reformatting.
11022
11023         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
11024         dereference when accessing the entry parameter record.
11025         (Check_Array_Type): Always check for possible implicit dereference.
11026         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11027         Abort if a pointer is still present (denoting that an implicit
11028         dereference was left in the tree by the front-end).
11029
11030         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
11031         dereference when accessing the entry parameter record.
11032         (Check_Array_Type): Always check for possible implicit dereference.
11033         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11034         Abort if a pointer is still present (denoting that an implicit
11035         dereference was left in the tree by the front-end).
11036
11037 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
11038
11039         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
11040         message, like the compiler itself does. Easier to parse the output.
11041
11042         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
11043
11044         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
11045         be base names, and not includes directories.
11046
11047 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
11048
11049         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
11050         so that dependencies are properly taken into account by make.
11051
11052 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
11053
11054         PR ada/15622
11055         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
11056         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
11057
11058 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
11059
11060         * Makefile.in (install-gnatlib): install target-specific run-time files.
11061
11062         * Make-lang.in: Remove obsolete targets.
11063
11064 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
11065
11066         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
11067         specification, to catch misuses of program unit names.
11068
11069         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
11070         superfluous conversions in an instance.
11071
11072 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
11073
11074         PR ada/15403
11075
11076         * sem_ch12.adb (Save_References): If operator node has been folded to
11077         enumeration literal, associated_node must be discarded.
11078
11079 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
11080
11081         * s-stchop-vxworks.adb: Add required pragma Convention to
11082         Task_Descriptor because it is updated by a C function.
11083
11084 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
11085
11086         PR ada/15568
11087
11088         * Makefile.in: Remove target specific SO_OPT on IRIX
11089
11090 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11091
11092         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
11093         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
11094         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
11095         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
11096         (STMT_STMT, USE_STMT): New statement codes.
11097         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
11098         * ada-tree.h: Reflect above changes.
11099         (struct tree_loop_id): Deleted.
11100         (union lang_tree_node, struct lang_decl, struct lang_type):
11101         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
11102         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
11103         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
11104         (IS_ADA_STMT): New macro.
11105         * decl.c (annotate_decl_with_node): New function.
11106         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
11107         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
11108         Call add_stmt_with_node to do needed assignments.
11109         Add call to update setjmp buffer directly, not via EXPR_STMT.
11110         (maybe_variable): Argment GNAT_NODE deleted.
11111         * gigi.h (maybe_variable): Likewise.
11112         (make_transform, add_stmt_with_node, set_block_for_group): New.
11113         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
11114         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
11115         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
11116         (set_lineno, set_lineno_from_sloc): Likewise.
11117         (record_code_position, insert_code_for): Likewise.
11118         (gnat_poplevel): Now returns void.
11119         (end_subprog_body): Now takes argument.
11120         * misc.c (cgraph.h, tree-inline.h): New includes.
11121         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
11122         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
11123         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
11124         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
11125         (gnat_parse_file): Don't set immediate_size_expand.
11126         Call cgraph functions.
11127         (gnat_expand_expr): Remove most cases.
11128         (record_code_position, insert_code_for): Remove from here.
11129         * trans.c (toplev.h, tree-gimple.h): Now included.
11130         (discard_file_names): Deleted.
11131         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
11132         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
11133         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
11134         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
11135         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
11136         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
11137         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
11138         (set_block_for_group, add_stmt_list): Likewise.
11139         (start_stmt_group): Renamed from start_block_stmt.
11140         (end_stmt_group): Likewise, from end_block_stmt.
11141         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
11142         (gigi): Don't set discard_file_names or call set_lineno.
11143         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
11144         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
11145         Numerous changes throughout to reflect new names and complete
11146         function-at-a-time implementation.
11147         (gnat_expand_stmt): Delete or comment out all cases.
11148         (process_inlined_subprograms): Use add_stmt.
11149         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
11150         call set_lineno; also remove unneeded block handling.
11151         (process_type): Remove unneeded block handling.
11152         (build_unit_elab): Remove calls to deleted functions.
11153         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
11154         (tree-dump.h): Likewise.
11155         (struct ada_binding_level): Add field jmpbuf_decl.
11156         (gnat_define_builtin, gnat_install_builtins): New.
11157         (gnat_gimplify_function, gnat_finalize): Likewise.
11158         (gnat_poplevel): No longer return BLOCK, set it instead.
11159         Remove code dealing with nested functions.
11160         (gnat_init_decl_processing): Also set size_type_node.
11161         Call gnat_install_builtins.
11162         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
11163         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
11164         Remove special-case for "main".
11165         (end_subprog_body): Add arg and rework for tree-ssa.
11166         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
11167         Add case for BOOLEAN_TYPE.
11168         * utils2.c (rtl.h): Now include.
11169         (build_call_raise): Test Debug_Flag_NN directly.
11170         (build_call_alloc_dealloc): Don't use local stack allocation for now.
11171         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
11172         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
11173
11174 2004-06-07  Robert Dewar  <dewar@gnat.com>
11175
11176         * a-direct.ads, einfo.ads: Minor comment updates
11177
11178         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11179         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
11180         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
11181         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
11182         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
11183
11184         * s-interr-sigaction.adb: Remove unreferenced variable
11185         (Attached_Interrupts).  Minor reformatting.
11186         Avoid use of variable I (replace by J).
11187
11188         * par-ch10.adb: Fix text of one error message
11189
11190         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
11191         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
11192         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
11193         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
11194         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
11195         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
11196         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
11197         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
11198         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
11199         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
11200         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
11201         2005 support.
11202
11203 2004-06-07  Doug Rupp  <rupp@gnat.com>
11204
11205         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
11206
11207         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
11208
11209         * mlib-tgt-vms-ia64.adb: New file.
11210
11211         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
11212         Add mlib-tgt-vms-ia64.adb
11213         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
11214         Move to alpha specific ifeq section.
11215         Add VMS specific versions of symbols.adb
11216         Renaming of 5q vms files.
11217
11218         * 5qsystem.ads renamed to system-vms_64.ads.
11219
11220 2004-06-07  Vincent Celier  <celier@gnat.com>
11221
11222         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
11223         explain that when a time of day corresponding to the non existing hour
11224         on the day switching to DST is specified, Split may return a different
11225         value for Seconds.
11226
11227         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
11228         to GNAT PRETTY.
11229
11230         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
11231         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
11232
11233         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
11234         to False.
11235         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
11236         the linking options.
11237         (Build_Library.Check_Libs): On VMS, if there is a dependency on
11238         g-trasym.ads, set Gtrasymobj_Needed to True.
11239
11240         * prj-attr.adb: Add new package Metrics for gnatmetric
11241
11242         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
11243         canonical case to take into account files with upper case characters on
11244         Windows.
11245         (Ada_Check): Load the reference symbol file name in the name buffer to
11246         check it, not the symbol file name.
11247
11248         * snames.ads, snames.adb: Add standard name Metrics (name of project
11249         file package for gnatmetric).
11250
11251         * vms_conv.ads: Add Metric to Comment_Type
11252
11253         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
11254
11255         * vms_data.ads: Add qualifiers for GNAT METRIC
11256
11257         * makegpr.adb (Link_Executables): Take into account the switches
11258         specified in package Linker of the main project.
11259
11260 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
11261
11262         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
11263         the index of the last element is Units.Last, not Units.Table'Last
11264         (which is usually not a valid index within the actually allocated
11265         storage for the table).
11266
11267         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
11268         determines whether to generate a call to a checked storage pool
11269         Dereference action.
11270         Generate such a call only for a dereference that either comes from
11271         source, or is the result of rewriting a dereference that comes from
11272         source.
11273
11274 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
11275
11276         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
11277
11278 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
11279
11280         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
11281         file level, elaborate the stride for inner dimensions in alignment
11282         units, not bytes.
11283
11284         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
11285         in a comment.
11286
11287 2004-06-07  Javier Miranda  <miranda@gnat.com>
11288
11289         * exp_ch6.adb: Correct wrong modification in previous patch
11290
11291 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
11292
11293         * g-trasym.ads: Corrected comment to properly reflect level of support
11294         on VMS.
11295
11296 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
11297
11298         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
11299         includes case of a variable referenced on the left hand side of an
11300         assignment, therefore remove redundant code. Variables and prefixes of
11301         indexed or selected components are now marked as referenced on left
11302         hand side. Warnings are now properly emitted when variables or prefixes
11303         are assigned but not read.
11304
11305         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
11306         left hand side referenced variables. Private access types do not
11307         produce the warning "variable ... is assigned but never read".
11308         Add also additional checks to left hand side referenced variables.
11309         Aliased, renamed objects and access types do not produce the warning
11310         "variable ... is assigned but never read" since other entities may read
11311         the memory location.
11312
11313 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
11314
11315         * Makefile.in: In the powerpc/vxworks-specific section, restore
11316         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
11317         by mistake).
11318
11319 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
11320
11321         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
11322         predefined operators.
11323         Removes spurious type errors from g-trasym-vms.adb.
11324
11325         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
11326         distinct from the operator appearing in the source, call appropriate
11327         routine to insert conversions when needed, and complete resolution of
11328         node.
11329         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
11330         interpretations for rewritten right operand.
11331         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
11332         the other operand is overloaded and the context is a type conversion.
11333
11334 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11335
11336         * ada-tree.def (BLOCK_STMT): Now has two operands.
11337         (BREAK_STMT): New.
11338
11339         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
11340
11341         * gigi.h: (gnat_poplevel): Now returns a tree.
11342
11343         * trans.c (end_block_stmt): Add arg; all callers changed.
11344         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
11345         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
11346         (add_stmt): Set TREE_TYPE.
11347         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
11348         (gnat_expand_stmt, case BREAK_STMT): New case.
11349
11350         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
11351
11352 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
11353
11354         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
11355         procedure Set_Stack_Size that is not needed.
11356
11357 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
11358
11359         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
11360         used for gnatpp input file and for the files upon which it depends
11361
11362 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
11363
11364         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
11365
11366 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
11367
11368         * gnatvsn.ads: Bump version numbers appropriately.
11369         Add new build type.
11370
11371 2004-06-07  Pascal Obry  <obry@gnat.com>
11372
11373         * gnat_ugn.texi: Improve comments about imported names and link names
11374         on Windows. Add a note about the requirement to use -k gnatdll's option
11375         when working with a DLL which has stripped stdcall symbols (no @nn
11376         suffix).
11377
11378 2004-05-27  Vincent Celier  <celier@gnat.com>
11379
11380         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
11381         COMMENTS_LAYOUT=UNTOUCHED
11382
11383         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
11384         symbols-vms-alpha.adb
11385
11386 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
11387
11388         * sem.ads: Clarify documentation on checks suppression.
11389
11390         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
11391
11392 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
11393
11394         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
11395         the case of multiple derivations.
11396         (Is_Object_Reference): For a selected component, verify that the prefix
11397         is itself an object and not a value.
11398
11399         * sem_ch12.adb (Same_Instantiated_Constant): New name for
11400         Same_Instantiated_Entity.
11401         (Same_Instantiated_Variable): Subsidiary to
11402         Check_Formal_Package_Instance, to recognize actuals for in-out generic
11403         formals that are obtained from a previous formal package.
11404         (Instantiate_Subprogram_Body): Emit proper error when
11405         generating code and the proper body of a stub is missing.
11406
11407         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
11408         has a universal interpretation, do the disambiguation here.
11409
11410         * exp_ch4.adb (Expand_N_Type_Conversion,
11411         Expand_N_Unchecked_Type_Conversion): Special handling when target type
11412         is Address, to avoid typing anomalies when Address is a visible integer
11413         type.
11414
11415         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
11416         to determine whether a subprogram should not be marked Pure, even when
11417         declared in a pure package.
11418
11419 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
11420
11421         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
11422
11423         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
11424         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
11425         Update the documentation about the Ravenscar profile, following the
11426         definition found in AI-249.
11427
11428         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
11429         setting the Profile (Ravenscar). This must be done in addition to
11430         setting the required restrictions.
11431
11432         * rtsfind.ads: Add the set of operations defined in package
11433         Ada.Interrupts.
11434
11435         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
11436         restriction.
11437
11438 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
11439
11440         lang-specs.h: Always require -c or -S and always redirect to /dev/null
11441         if -gnatc or -gnats is passed.
11442
11443 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
11444
11445         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
11446         a significant reference. Warnings are now properly emitted when a
11447         discriminated type is not referenced.
11448
11449         * lib-xref.adb (Generate_Reference): A deferred constant completion,
11450         record representation clause or record type discriminant does not
11451         produce a reference to its corresponding entity. Warnings are now
11452         properly emitted when deferred constants and record types are not
11453         referenced.
11454
11455 2004-05-27  Geert Bosch  <bosch@gnat.com>
11456
11457         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
11458         Fixes ACATS Annex G tests.
11459
11460 2004-05-27  Robert Dewar  <dewar@gnat.com>
11461
11462         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
11463         handling WITH
11464
11465 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
11466
11467         * s-interr.adb (Server_Task): Take into account case of early return
11468         from sigwait under e.g. linux.
11469
11470 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
11471
11472         * gnat_ugn.texi: Add description for the new gnatpp options:
11473          -rnb - replace the original source without creating its backup copy
11474          -c0 - do not format comments
11475
11476 2004-05-24  Geert Bosch  <bosch@gnat.com>
11477
11478         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
11479         with 192 bits of precision, sufficient to reduce a double-extended
11480         arguments X with a maximum relative error of T'Machine_Epsilon, for X
11481         in -2.0**32 .. 2.0**32.
11482         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
11483         reduction by the processor, which only uses a 68-bit approximation of
11484         Pi.
11485         (Tan): Always reduce arguments and compute function either using
11486         the processor's fptan instruction, or by dividing sin and cos as needed.
11487
11488 2004-05-24  Doug Rupp  <rupp@gnat.com>
11489
11490         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
11491         gcc error on 32/64 bit VMS.
11492
11493 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
11494
11495         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
11496         since this is what we get for stack overflows although not documented
11497         as such.
11498         Document the issues which may require adjustments to our signal
11499         handlers.
11500
11501 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
11502
11503         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
11504         enclosing dynamic scope if the instantiation is within a generic unit.
11505
11506 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
11507
11508         * exp_dbug.ads: Fix typo.
11509
11510         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
11511         Rename it to its proper name: system-linux-ia64.ads
11512         (stamp-gnatlib1): Remove extra target specific run time files when
11513         setting up the rts directory.
11514
11515 2004-05-24  Javier Miranda  <miranda@gnat.com>
11516
11517         * einfo.ads, einfo.adb (Limited_Views): Removed.
11518         (Limited_View): New attribute that replaces the previous one. It is
11519         now a bona fide package with the limited-view list through the
11520         first_entity and first_private attributes.
11521
11522         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
11523         limited-private-with clause.
11524         (Install_Limited_Withed_Unit): Install the private declarations of a
11525         limited-private-withed package. Update the installation of the shadow
11526         entities according to the new structure (see Build_Limited_Views)
11527         (Build_Limited_Views): Replace the previous implementation of the
11528         limited view by a package entity that references the first shadow
11529         entity plus the first shadow private entity (required for limited-
11530         private-with clause)
11531         (New_Internal_Shadow_Entity): Code cleanup.
11532         (Remove_Limited_With_Clause): Update the implementation to undo the
11533         new work carried out by Build_Limited_Views.
11534         (Build_Chain): Complete documentation.
11535         Replace Ada0Y by Ada 0Y in comments
11536         Minor reformating
11537
11538         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
11539         types the level of accessibility depends on the enclosing type
11540         declaration.
11541
11542         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
11543         entities. Complete documentation of previous change.
11544
11545 2004-05-24  Robert Dewar  <dewar@gnat.com>
11546
11547         * namet.adb: Minor reformatting
11548         Avoid use of name I (replace by J)
11549         Minor code restructuring
11550
11551         * sem_ch6.adb: Minor reformatting
11552
11553         * lib-writ.adb: Do not set restriction as active if this is a
11554         Restriction_Warning case.
11555
11556         * sem_prag.adb: Reset restriction warning flag if real pragma
11557         restriction encountered.
11558
11559         * s-htable.adb: Minor reformatting
11560         Change rotate count to 3 in Hash (improves hash for small strings)
11561
11562         * 5qsystem.ads: Add comments for type Address (no literals allowed).
11563
11564         * gnat_ugn.texi: Add new section of documentation "Code Generation
11565         Control", which describes the use of -m switches.
11566
11567 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
11568
11569         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
11570         through the DECL_INITIAL for renamed variables.
11571
11572 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
11573
11574         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
11575
11576 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
11577
11578         * exp_dbug.ads: Correct comments concerning handling of overloading,
11579         since we no longer use $ anymore.
11580
11581 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
11582
11583         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
11584         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
11585         with illegal subunits.
11586
11587 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
11588
11589         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
11590         body with front-end inlining enabled, check whether an inline pragma
11591         appears immediately after the body and applies to it.
11592
11593         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
11594         enabled and the pragma appears after the body of the subprogram.
11595
11596 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11597
11598         Part of function-at-a-time conversion
11599
11600         * misc.c (adjust_decl_rtl): Deleted.
11601         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
11602         Define.
11603
11604         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
11605         (add_decl_stmt, add_stmt, block_has_vars): New functions.
11606         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
11607
11608         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
11609         when making a decl.
11610         (gnat_to_gnu_entity): Likewise.
11611         Use add_stmt to update setjmp buffer.
11612         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
11613         flush_addressof.
11614         No longer call adjust_decl_rtl.
11615         (DECL_INIT_BY_ASSIGN_P): New macro.
11616         (DECL_STMT_VAR): Likewise.
11617
11618         * trans.c (gigi): Call start_block_stmt to make the outermost
11619         BLOCK_STMT.
11620         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
11621         Call start_block_stmt and end_block_stmt temporarily.
11622         Use gnat_expand_stmt instead of expand_expr_stmt.
11623         (add_decl_stmt): New function.
11624         (tree_transform): Call it.
11625         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
11626         (end_block_stmt): Set type and NULL_STMT.
11627         (gnat_expand_stmt): Make recursize call instead of calling
11628         expand_expr_stmt.
11629         (gnat_expand_stmt, case DECL_STMT): New case.
11630         (set_lineno_from_sloc): Do nothing if global.
11631         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
11632         (start_block_stmt, add_stmt, end_block_stmt): New functions.
11633         (build_block_stmt): Call them.
11634         (gnat_to_code): Don't expand NULL_STMT.
11635         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
11636         args.
11637         (tree_transform): Likewise.
11638         (tree_transform, case N_Null_Statement): Return NULL_STMT.
11639         (gnat_expand_stmt, case NULL_STMT): New case.
11640         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
11641         IF_STMT_TRUE.
11642
11643         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
11644         TREE_ADDRESSABLE.
11645
11646         * utils.c (create_var_decl): Do not call expand_decl or
11647         expand_decl_init.
11648         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
11649         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
11650         here.
11651         (struct e_stack): Add chain_next to GTY.
11652         (struct binding_level): Deleted.
11653         (struct ada_binding_level): New struct.
11654         (free_block_chain): New.
11655         (global_binding_level, clear_binding_level): Deleted.
11656         (global_bindings_p): Rework to see if no chain.
11657         (kept_level_p, set_block): Deleted.
11658         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
11659         new data structure and work directly on BLOCK node.
11660         (gnat_poplevel): Similarly.
11661         (get_decls): Look at BLOCK_VARS.
11662         (insert_block): Work directly on BLOCK node.
11663         (block_has_var): New function.
11664         (pushdecl): Rework for new binding structures.
11665         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
11666         poplevel.
11667         (build_subprog_body): Likewise.
11668         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
11669
11670         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
11671
11672         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
11673         (DECL_STMT_VAR): Likewise.
11674
11675 2004-05-17  Robert Dewar  <dewar@gnat.com>
11676
11677         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
11678         procedure
11679
11680         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
11681         of restriction synonyums by using
11682         Restrict.Process_Restriction_Synonyms.
11683
11684         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
11685
11686         * s-restri.ads (Tasking_Allowed): Correct missing comment
11687
11688         * s-rident.ads: Add entries for restriction synonyms
11689
11690         * ali.adb: Fix some problems with badly formatted ALI files that can
11691         result in infinite loops.
11692
11693         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
11694         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
11695         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
11696         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
11697         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
11698         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
11699         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
11700         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
11701         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
11702         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
11703         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
11704         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
11705         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
11706         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
11707         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11708         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11709         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
11710         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
11711         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
11712         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
11713         to Task_Id (minor cleanup).
11714
11715 2004-05-17  Vincent Celier  <celier@gnat.com>
11716
11717         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
11718         directory separator.
11719
11720         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
11721         project being extended, if Languages is not declared in extending
11722         project.
11723
11724 2004-05-17  Javier Miranda  <miranda@gnat.com>
11725
11726         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
11727         limited view of a visible sibling.
11728
11729 2004-05-14  Robert Dewar  <dewar@gnat.com>
11730
11731         * gnat_ugn.texi: Minor change to -gnatS documentation
11732
11733         * sprint.adb: Remove some instances of Assert (False) and for this
11734         purpose replace them by output of a ??? string.
11735
11736         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
11737         Assert (False).
11738
11739         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
11740         flag processing. This was suppressing required dependencies in
11741         No_Run_Time mode and is not needed since the binder does not generate
11742         references for things in libgnat anyway.
11743
11744         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
11745         warning.
11746
11747 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
11748
11749         * gnat_ugn.texi: Document AIX-specific issue with initialization of
11750         resolver library.
11751
11752         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
11753         action for the case of an actual parameter in an init proc call.
11754
11755 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
11756
11757         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
11758         subtype, check visible entities in base type.
11759
11760         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
11761         actions if the object is a renaming.
11762
11763         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
11764         Check_Formal_Package_Instance, to determine more precisely when the
11765         formal and the actual denote the same entity.
11766
11767 2004-05-14  Javier Miranda  <miranda@gnat.com>
11768
11769         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
11770
11771         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
11772         corresponding to a private_with must be removed from visibility; it
11773         will be made visible later, just before we analyze the private part of
11774         the package.
11775         (Check_Private_Child_Unit): Allow private_with clauses in public
11776         siblings.
11777         (Install_Siblings): Make visible the private entities of private-withed
11778         siblings.
11779         (Install_Withed_Unit): Do not install the private withed unit if we
11780         are compiling a package declaration and the Private_With_OK flag was
11781         not set by the caller. These declarations will be installed later,
11782         just before we analyze the private part of the package.
11783
11784         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
11785         during the evaluation of the expression that initializes the object,
11786         decorate it with the expected type to avoid cascade errors.
11787         Code cleanup.
11788
11789         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
11790         subprogram we have to install the private_with clauses after its
11791         specification has been analyzed (as documented in AI-262.TXT).
11792
11793         * sem_ch8.adb (Has_Private_With): New function. Determines if the
11794         current compilation unit has a private with on a given entity.
11795         (Find_Direct_Name): Detect the Beaujolais problem described in
11796         AI-262.TXT
11797
11798         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
11799         provides the functionality of the function Is_Ancestor that was
11800         previously available in sem_ch10. It has been renamed to avoid
11801         overloading.
11802
11803         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
11804
11805 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11806
11807         * utils.c (build_vms_descriptor): Use SImode pointers.
11808
11809 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
11810
11811         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
11812
11813 2004-05-14  GNAT Script  <nobody@gnat.com>
11814
11815         * Make-lang.in: Makefile automatically updated
11816
11817 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
11818
11819         Renaming of target specific files for clarity
11820
11821         * Makefile.in: Rename GNAT target specific files.
11822
11823         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
11824         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
11825         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
11826         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
11827         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
11828         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
11829         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
11830         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
11831         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
11832         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
11833         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
11834         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
11835         51osinte.adb, 51osinte.ads, 51system.ads,
11836         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
11837         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
11838         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
11839         56tpopsp.adb, 57system.ads, 58system.ads,
11840         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
11841         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
11842         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
11843         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
11844         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
11845         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
11846         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
11847         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
11848         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
11849         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
11850         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
11851         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
11852         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
11853         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
11854         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
11855         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
11856         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
11857         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
11858         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
11859         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
11860         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
11861         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
11862         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
11863         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
11864         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
11865         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
11866         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
11867         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
11868         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
11869         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
11870         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
11871         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
11872         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
11873         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
11874         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
11875         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
11876         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
11877         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
11878         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
11879         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
11880
11881         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
11882         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
11883         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
11884         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
11885         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
11886         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
11887         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
11888         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
11889         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
11890         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
11891         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
11892         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
11893         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
11894         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
11895         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
11896         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
11897         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
11898         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
11899         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
11900         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
11901         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
11902         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
11903         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
11904         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
11905         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
11906         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
11907         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
11908         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
11909         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
11910         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
11911         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
11912         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
11913         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
11914         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
11915         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
11916         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
11917         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
11918         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
11919         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
11920         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
11921         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
11922         s-osinte-vms.ads, s-osinte-vxworks.adb,
11923         s-osinte-vxworks.ads, s-osprim-mingw.adb,
11924         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
11925         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
11926         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
11927         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
11928         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
11929         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
11930         s-stchop-vxworks.adb, s-taprop-dummy.adb,
11931         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
11932         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
11933         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
11934         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
11935         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
11936         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
11937         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
11938         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
11939         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
11940         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
11941         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
11942         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
11943         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
11944         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
11945         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
11946         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
11947         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
11948         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
11949         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
11950         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
11951         system-irix-o32.ads, system-linux-x86_64.ads,
11952         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
11953         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
11954         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
11955         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
11956         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
11957         system-vxworks-mips.ads, system-vxworks-ppc.ads,
11958         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
11959         above.
11960
11961 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
11962
11963         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
11964
11965 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
11966
11967         Merge from tree-ssa-20020619-branch.
11968
11969         * config-lang.in (boot_language, build_by_default): Set
11970         to no.
11971         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
11972         (max_size): Add static chain op for call_expr.
11973
11974 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
11975
11976         PR target/15331
11977         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
11978
11979 2004-05-11  Roger Sayle  <roger@eyesopen.com>
11980
11981         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
11982         COND_EXPR.
11983
11984 2004-05-10  Doug Rupp  <rupp@gnat.com>
11985
11986         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
11987         system.aux_dec.
11988
11989         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
11990
11991         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
11992
11993         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
11994         Fixes undefined symbols in IA64 gnatlib.
11995
11996         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
11997
11998         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
11999         Short_Address). This will be moved to system.auxdec.
12000
12001 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
12002
12003         * sem_util.adb: Replace test for presence of a node that is always
12004         present with a call to Discard_Node.
12005
12006         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
12007         Analyze on the library unit node after generation of distribution stub
12008         constructs.  The call was a no-op because Unit_Node has already been
12009         Analyzed, and the tree fragments for the distribution stubs are
12010         analyzed as they are inserted in Exp_Dist.
12011         Update comment regarding to distribution stubs to reflect that we
12012         do not generate stub in separate files anymore.
12013
12014         * einfo.ads: Clarify the fact that a tagged private type has the
12015         E_Record_Type_With_Private Ekind.
12016
12017         * erroutc.adb: Minor reformatting
12018
12019         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
12020         values if line length is increased using -gnatyM (noticed during code
12021         reading).
12022
12023         * eval_fat.adb: Minor reformatting
12024         Put spaces around exponentiation operator
12025
12026 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
12027
12028         PR ada/15005
12029         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
12030         has been rewritten as an explicit dereference, retrieve type of
12031         original node to check for possibly unconstrained record type.
12032
12033 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
12034
12035         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
12036         overriding, use the operation of the parent unconditionally.
12037
12038         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
12039         operation when either operand is a literal, to avoid further
12040         ambiguities.
12041
12042         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
12043         overridden by a previous explicit declaration, mark the previous entity
12044         as overriding.
12045
12046         * sem_disp.adb (Check_Dispatching_Operation): New predicate
12047         Is_Visibly_Controlled, to determine whether a declaration of a
12048         primitive control operation for a derived type overrides an inherited
12049         one. Add warning if the explicit declaration does not override.
12050
12051 2004-05-10  Vincent Celier  <celier@gnat.com>
12052
12053         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
12054         some cases when the sources are no longer present.
12055
12056         * make.adb (Collect_Arguments): Fail if an external source, not part
12057         of any project need to be compiled, when switch -x has not been
12058         specified.
12059
12060         * makeusg.adb: Document new switch -x
12061
12062         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
12063         defaulted to False.
12064
12065         * switch-m.adb (Scan_Make_Switches): New switch -x
12066
12067         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
12068         gnatmake switch -x.
12069
12070         * gnat_ugn.texi: Document new gnatmake switch -x
12071
12072 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
12073
12074         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
12075
12076         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
12077         (process_attributes): Likewise.
12078
12079 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
12080
12081         * s-inmaop.ads: Fix spelling mistake in one of the comments.
12082
12083 2004-05-10  Robert Dewar  <dewar@gnat.com>
12084
12085         * gnat_ugn.texi: Document that for config pragma files, the maximum
12086         line length is always 32767.
12087
12088         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
12089         literals is now allowed.
12090
12091         * gnat-style.texi: Remove statement about splitting long lines before
12092         an operator rather than after, since we do not follow this rule at all.
12093         Clarify rule (really lack of rule) for spaces around exponentiation
12094
12095         * sem_elim.adb: Allow concatenation of string literals as well as a
12096         single string literal for pragma arguments.
12097
12098         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
12099
12100         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
12101         written for append case.
12102
12103         * frontend.adb: Changes to avoid checking max line length in config
12104         pragma files.
12105
12106         * g-os_lib.ads: Minor reformatting
12107
12108         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
12109         wrong in any case. Instead use standard value. Noticed during code
12110         reading.
12111
12112         * opt.ads (Max_Line_Length): New field, used to implement removal of
12113         limitation on length of lines when scanning config pragma files.
12114
12115         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
12116         makeutl.ads, makeutl.adb: Minor reformatting
12117
12118         * scn.adb: Do not check line length while scanning config pragma files
12119         Do not check line length while scanning out license information
12120
12121         * scng.adb: Changes to avoid line length checks while parsing config
12122         pragma files.
12123
12124 2004-05-10  GNAT Script  <nobody@gnat.com>
12125
12126         * Make-lang.in: Makefile automatically updated
12127
12128 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
12129
12130         * osint.adb (Find_Program_Name): Fix handling of VMS version
12131         number.
12132
12133 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
12134
12135         * g-os_lib.ads (Invalid_Time): New constant
12136
12137         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
12138         return OS_Time instead of time_t to match what is imported by Ada.
12139         Now return -1 if the file doesn't exist, instead of a random value
12140
12141 2004-05-05  Robert Dewar  <dewar@gnat.com>
12142
12143         * usage.adb: Add line for -gnatR?s switch
12144
12145         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
12146
12147         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
12148         and for Match (Data_First, Data_last)
12149
12150         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
12151         written when we are dealing with multi-unit files.
12152
12153 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
12154
12155         * Makefile.in: Remove unused targets and variables.
12156
12157 2004-05-05  Vincent Celier  <celier@gnat.com>
12158
12159         * switch-m.adb: New gnatmake switch -eI
12160
12161         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
12162         of new gnatmake switch -eInnn.
12163
12164         * makegpr.adb: Take into account new parameters Index and Src_Index in
12165         Prj.Util.
12166
12167         * clean.adb: Implement support for multi-unit sources, including new
12168         switch -i.
12169
12170         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
12171         Src_Index.
12172
12173         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
12174         (Extract_From_Q): New out parameter Index
12175         (Mark, Is_Marked): Subprograms moved to Makeutl
12176         (Switches_Of): New parameter Source_Index
12177         (Add_Switch): New parameter Index
12178         (Check): New parameter Source_Index
12179         (Collect_Arguments): New parameter Source_Index
12180         (Collect_Arguments_And_Compile): New parameter Source_Index
12181         (Compile): New parameter Source_Index
12182         Put subprograms in alphabetical order
12183         Add support for multi-source sources, including in project files.
12184
12185         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
12186         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
12187         Make.
12188
12189         * makeusg.adb: New gnatmake switch -eInnn
12190
12191         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
12192         Prj.Util.Value_Of.
12193
12194         * opt.ads (Main_Index): New variable, defaulted to 0.
12195
12196         * osint.ads, osinte.adb (Add_File): New parameter Index
12197         (Current_Source_Index): New function
12198
12199         * prj.adb: Take into account new components Index and Src_Index
12200
12201         * prj.ads (String_Element): New component Index
12202         (Variable_Value): New component Index
12203         (Array_Element): New component Src_Index
12204
12205         * prj-attr.adb: Indicate that optional index may be specified for
12206         attributes Main, Executable, Spec, Body and some of Switches.
12207
12208         * prj-attr.ads (Attribute_Kind): New values for optional indexes
12209         (Attribute_Record): New component Optional_Index
12210
12211         * prj-com.ads (File_Name_Data): New component Index
12212
12213         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
12214
12215         * prj-env.adb (Put): Output optional index
12216
12217         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
12218         attributes Spec and Body.
12219
12220         * prj-nmsc.adb: Process optional indexes
12221
12222         * prj-pp.adb: Ouput "at" for optional indexes
12223
12224         * prj-proc.adb: Take into account optional indexes
12225
12226         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
12227         Optional_Index. For string literal,
12228         process optional index when Optional_Index is True.
12229         (Parse_Expresion): New Boolean parameter Optional_Index
12230
12231         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
12232         (Set_Source_Index_Of): New procedure
12233
12234         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
12235         index.
12236
12237         * prj-util.ads (Executable_Of): New parameter Index
12238         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
12239         New parameter Src_Index, defaulted to 0.
12240
12241 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
12242
12243         PR ada/15257
12244         * sem_ch3.adb (Access_Definition): If this is an access parameter
12245         whose designated type is imported through a limited_with clause, do
12246         not add the enclosing subprogram to the list of private dependents of
12247         the type.
12248
12249 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
12250
12251         PR ada/15258
12252         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
12253         a limited_with clause, and the other is its non-limited view.
12254
12255 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
12256
12257         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
12258
12259         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
12260         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
12261         Stand.Boolean_Literals to produce references to entities
12262         Standard_False and Standard_True from compile-time computed boolean
12263         values.
12264
12265         * stand.ads (Boolean_Literals): New variable, provides the entity
12266         values for False and True, for use by the expander.
12267
12268 2004-05-05  Doug Rupp  <rupp@gnat.com>
12269
12270         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
12271         5vinmaop.adb: Unchecked convert Short_Address vice Address
12272
12273         * adaint.c, raise.c: Caste CRTL function return value
12274         to avoid gcc error on 32/64 bit IVMS.
12275
12276         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
12277         target = IA64/VMS.
12278
12279         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
12280
12281         * 5qsystem.ads (Address): Declare as Long_Integer
12282         (Short_Address): Declare as 32 bit subtype of Address
12283         Declare  abstract address operations to avoid gratuitous ambiguities.
12284
12285 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
12286
12287         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
12288         instead of the old Boolean_Entry_Barriers.
12289         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
12290
12291 2004-05-05  GNAT Script  <nobody@gnat.com>
12292
12293         * Make-lang.in: Makefile automatically updated
12294
12295 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
12296
12297         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
12298
12299 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
12300
12301         PR ada/15152
12302
12303         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
12304         alone. Replacing object references by literals is inappropriate in a
12305         so low level context.
12306
12307 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
12308
12309         * a-exexpr.adb: Add comments
12310
12311 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
12312
12313         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
12314         declare the Ancestor_Tags array in Type_Specific_Data with a small size
12315         without risking a bounds check error when accessing one of its
12316         components.
12317         (Type_Specific_Data): Define Ancestor_Tags as a small array.
12318         This prevents us from hitting a limitation during the debug info
12319         generation when using stabs.
12320
12321         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
12322         small array.
12323         This prevents us from hitting a limitation during the debug info
12324         generation when using stabs.
12325
12326 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
12327
12328         lang-specs.h: Remove -gnatz* from specs.
12329
12330 2004-05-03  Vincent Celier  <celier@gnat.com>
12331
12332         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
12333
12334         * Make-lang.in, Makefile.in: Add gprmake
12335
12336 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
12337
12338         * sem_aggr.adb: Fix typo in comment.
12339
12340 2004-05-03  Robert Dewar  <dewar@gnat.com>
12341
12342         * make.adb: Minor reformatting
12343
12344         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
12345
12346         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
12347         so that it works when address is not a private type.
12348
12349         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
12350         properly with rewritten unchecked conversions. This prevents
12351         order-of-elaboration issues that can otherwise arise.
12352         (Minimum_Size): Don't check size of access types under VMS
12353
12354         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
12355         interpretations of integer literals as type System.Address.
12356
12357         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
12358         (Is_Descendent_Of): New function
12359
12360 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
12361
12362         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
12363         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
12364         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
12365
12366         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
12367         of the old Max_Entry_Queue_Depth.
12368
12369         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
12370         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
12371         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
12372
12373         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
12374         New entry for proper handling of Max_Entry_Queue_Depth.
12375         New entry for proper handling of No_Dynamic_Interrupts.
12376
12377         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
12378         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
12379         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
12380         the GNAT specific restriction Max_Entry_Queue_Depth.
12381         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
12382         the GNAT specific restriction No_Dynamic_Interrupts.
12383
12384         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
12385         instead of the old Boolean_Entry_Barriers.
12386         Use the new restriction No_Dynamic_Attachment instead of the old
12387         No_Dynamic_Interrupts.
12388
12389         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
12390         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
12391
12392         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
12393         of the old Max_Entry_Queue_Depth.
12394
12395 2004-05-03  GNAT Script  <nobody@gnat.com>
12396
12397         * Make-lang.in: Makefile automatically updated
12398
12399 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
12400
12401         * checks.adb (Enable_Range_Check): If the prefix of an index component
12402         is an access to an unconstrained array, perform check unconditionally.
12403
12404 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12405
12406         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
12407         Component_Clause.
12408
12409 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
12410
12411         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
12412         alternate stack setting. There was no support for the tasking cases
12413         and the changes eventually caused a number of side-effect failures in
12414         the non-tasking case too.
12415
12416 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
12417
12418         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
12419         -gnats is passed.
12420
12421 2004-04-29  Vincent Celier  <celier@gnat.com>
12422
12423         * make.adb (Gnatmake): Increase max size of argument array for
12424         gnatbind for the potential addition of -F.
12425         If there are Stand-Alone Library projects, invoke gnatbind with -F to
12426         be sure that elaboration flags will be checked.
12427
12428         * switch-c.adb: Correct call to Scan_Pos for -gnateI
12429
12430 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
12431
12432         * sem_warn.adb (Check_References): Move '<access-variable> may be
12433         null' warning out of under Warn_On_No_Value_Assigned.
12434
12435 2004-04-29  Ed Falis  <falis@gnat.com>
12436
12437         * gnat_ugn.texi: Fixed texi error
12438
12439 2004-04-29  Robert Dewar  <dewar@gnat.com>
12440
12441         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
12442         abstract operations if they come from predefined files.
12443
12444         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
12445         Dynamic, not RM).
12446
12447         * s-addope.adb: Correct obvious error in mod function
12448
12449 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
12450
12451         * Makefile.in: Add target pairs for powerpc darwin*
12452         tasking support.
12453
12454         * a-intnam-darwin.ads, s-osinte-darwin.adb,
12455         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
12456
12457 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
12458
12459         * Makefile.in: Add target macro definitions for s390*-linux*.
12460         * system-linux-s390.ads: New file.
12461         * system-linux-s390x.ads: New file.
12462
12463 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
12464
12465         * gnat_ugn.texi: Correct argument to @setfilename.
12466
12467 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
12468
12469         * a-exexpr.adb (Unwind_Word): New data type.
12470         (Unwind_Exception): Use it as type of Private1 and Private2.
12471
12472         * raise.c (db_action_for): Fix debug printf.
12473
12474 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
12475
12476         * a-wtmoio.ads: Formal type must be a modular type, not a signed
12477         integer type.
12478
12479 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12480
12481         * decl.c (gnat_to_gnu_entity, case object): Call
12482         __builtin_update_setjmp_buf.
12483
12484         * gigi.h (update_setjmp_buf): Deleted.
12485         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
12486
12487         * misc.c: (update_setjmp_buf): Deleted.
12488
12489         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
12490         around block of RTL.
12491
12492         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
12493
12494 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
12495
12496         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
12497         subprogram for which no pragma All_Calls_Remote applies, store the
12498         address of the real subprogram in the underlying record type, so local
12499         dereferences do not go through the PCS.
12500
12501 2004-04-26  Robert Dewar  <dewar@gnat.com>
12502
12503         * i-c.ads: Add some type qualifications to avoid ambiguities when
12504         compiling with s-auxdec.ads and a non-private address type.
12505
12506 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
12507
12508         * Makefile.rtl: Fix error in previous check-in:
12509         Add s-addope.o to non tasking object list (rather than tasking object
12510         list).
12511
12512 2004-04-26  Javier Miranda  <miranda@gnat.com>
12513
12514         * sem_aggr.adb: Fix typo in comments
12515         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
12516         Required to check the null-exclusion attribute.
12517
12518         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
12519         case of anonymous access types in record and array components. For a
12520         component definition the level is the same of the enclosing composite
12521         type.
12522
12523         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
12524         that are anonymous access types the level of accessibility depends on
12525         the enclosing type declaration. In order to have this information, set
12526         the scope of the anonymous access type to the enclosing record type
12527         declaration.
12528         (Array_Type_Declaration): In case of components that are anonymous
12529         access types the level of accessibility depends on the enclosing type
12530         declaration. In order to have this information, set the scope of the
12531         anonymous access type to the enclosing array type declaration.
12532
12533         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
12534         access type.
12535
12536         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
12537         renaming of anonymous access-to-constant types allowed if and only if
12538         the renamed object is access-to-constant.
12539
12540         * sem_util.adb (Type_Access_Level): In case of anonymous access types
12541         that are component_definition or discriminants of a nonlimited type,
12542         the level is the same as that of the enclosing component type.
12543
12544 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
12545
12546         * sem_elim.adb: Some minor code reorganization from code reading. Fix
12547         misprint in the function name (File_Name_Match).
12548
12549 2004-04-23  Laurent GUERBY <laurent@guerby.net>
12550
12551         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
12552         install.
12553
12554 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12555
12556         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
12557
12558 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
12559
12560         * adaint.c (__gnat_try_lock): No longer requires that the parent
12561         directory be writable, the directory itself is enough.
12562         (gnat_is_absolute_path): Change profile, so that the call from
12563         GNAT.OS_Lib can be made more efficient.
12564
12565         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
12566         from GNAT.OS_Lib can be made more efficient.
12567
12568         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
12569         one copy of the file name. Found by code reading.
12570
12571 2004-04-23  Vincent Celier  <celier@gnat.com>
12572
12573         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
12574         Correct documentation on gnatmake switches transmitted to the compiler
12575
12576         * ali.ads: Minor comment fix
12577
12578 2004-04-23  Javier Miranda  <miranda@gnat.com>
12579
12580         * sem_ch6.adb: (Confirming Types): Code cleanup
12581
12582         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
12583         subprogram types: E_Anonymous_Access_Subprogram_Type and
12584         E_Anonymous_Access_Protected_Subprogram_Type.
12585
12586 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
12587
12588         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
12589         whether a pragma All_Calls_Remote applies to the subprogram on which
12590         'Access is taken.
12591         No functional change is introduced by this revision; the new parameter
12592         will be used to allow calls to local RCI subprograms to be optimized
12593         to not use the PCS in the case where no pragma All_Calls_Remote applies,
12594         as is already done in the PolyORB implementation of the DSA.
12595
12596         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
12597         whether a pragma All_Calls_Remote applies to the subprogram on which
12598         'Access is taken.
12599         No functional change is introduced by this revision; the new parameter
12600         will be used to allow calls to local RCI subprograms to be optimized
12601         to not use the PCS in the case where no pragma All_Calls_Remote applies,
12602         as is already done in the PolyORB implementation of the DSA.
12603
12604 2004-04-23  Robert Dewar  <dewar@gnat.com>
12605
12606         * Makefile.rtl: Add entry for s-addope.o in run time library list
12607         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
12608         * s-addope.ads, s-addope.adb: New files.
12609
12610         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
12611         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12612         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
12613         System.Address to be non-private and signed.
12614
12615         * sem_elim.adb: Minor reformatting (fairly extensive)
12616         Some minor code reorganization from code reading
12617         Add a couple of ??? comments
12618
12619 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12620
12621         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
12622         (tree_transform, case N_If_Statement): Remove non-determinism.
12623
12624         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
12625
12626 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
12627
12628         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
12629         Eliminate' section.
12630
12631         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
12632         no longer used as a parameter name for Eliminate pragma).
12633
12634 2004-04-22  Laurent GUERBY <laurent@guerby.net>
12635
12636         PR optimization/14984
12637         PR optimization/14985
12638         * trans.c (gigi): Fix non determinism leading to bootstrap
12639         comparison failures.
12640
12641 2004-04-21  Pascal Obry  <obry@gnat.com>
12642
12643         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
12644         passed to spawnvp() to properly handle program pathname with spaces on
12645         Win32.
12646
12647 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
12648
12649         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
12650         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
12651         unlocked in case of exceptions.
12652
12653 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
12654
12655         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
12656         This function does not exist anymore.
12657
12658 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
12659
12660         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
12661
12662         * link.c: Move variables to the __gnat name space.
12663
12664         * Makefile.in: list link.o explicitly when needed.
12665
12666         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
12667
12668 2004-04-21  Javier Miranda  <miranda@gnat.com>
12669
12670         * einfo.adb (Original_Access_Type): New subprogram
12671         (Set_Original_Access_Type): New subprogram
12672         (Write_Field21_Name): Write the name of the new field
12673
12674         * einfo.ads (Original_Access_Type): New field present in access to
12675         subprogram types.
12676         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
12677         E_Anonymous_Access_Protected_Subprogram_Type.
12678
12679         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
12680         subprogram types.
12681
12682         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
12683         to anonymous access to subprogram types.
12684
12685         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
12686         to subprogram types.
12687
12688         * sem_ch3.adb (Access_Definition): Complete decoration of entities
12689         corresponding to anonymous access to subprogram types.
12690         (Analyze_Component_Declaration): Add new actual to the call to
12691         subprogram replace_anonymous_access_to_protected_subprogram.
12692         (Array_Type_Declaration): Add new actual to the call to subprogram
12693         replace_anonymous_access_to_protected_subprogram.
12694         (Process_Discriminants): Add new actual to the call to subprogram
12695         replace_anonymous_access_to_protected_subprogram.
12696         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
12697
12698         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
12699         formal.
12700
12701         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
12702         access to subprogram types.
12703
12704         * sem_util.adb (Has_Declarations): Addition of package_specification
12705         nodes.
12706
12707 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
12708
12709         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
12710         inlined flags to renamed entity only if in current unit.
12711
12712 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
12713
12714         * s-parint.ads: Add DSA implementation marker.
12715
12716         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
12717         value of System.Partition_Interface.DSA_Implementation to determine
12718         what version of the distributed systems annex is available (no
12719         implementation, GLADE, or PolyORB).
12720
12721 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
12722
12723         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
12724
12725 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12726
12727         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
12728         with new type if alias sets differ.
12729         Fixes ACATS c41103b.
12730
12731 2004-04-21  Vincent Celier  <celier@gnat.com>
12732
12733         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
12734         Add array Lang_Args for the language specific compiling argument
12735         switches.
12736
12737         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
12738
12739 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
12740
12741         * gnat_rm.texi: Update the descripton of the Eliminate pragma
12742         according to the recent changes in the format of the parameters of the
12743         pragma (replacing Homonym_Number with Source_Location).
12744
12745 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
12746
12747         * 5isystem.ads: Removed, unused.
12748
12749         * gnat_rm.texi: Redo 1.13 change.
12750
12751 2004-04-19  Robert Dewar  <dewar@gnat.com>
12752
12753         * s-stoele.ads: Clean up definition of Storage_Offset (the new
12754         definition is cleaner, avoids the kludge of explicit Standard operator
12755         references, and also is consistent with a visible System.Address with
12756         no visible operations.
12757
12758         * s-geveop.adb: Add declarations to avoid assumption of visible
12759         operations on type System.Address (since these might not be available
12760         if Address is a non-private type for which the operations
12761         are made abstract).
12762
12763         * sem_eval.adb: Minor reformatting
12764
12765         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
12766         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
12767         reformatting (new function spec format).
12768
12769         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12770         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
12771         s-caun64.adb: Add declarations to avoid assumption of visible
12772         operations on type System.Address (since these might not be available
12773         if Address is a non-private type for which the operations are made
12774         abstract).
12775
12776         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
12777
12778         * exp_intr.adb: Minor comment update
12779
12780         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
12781
12782         * 5omastop.adb: Add declarations to avoid assumption of visible
12783         operations on type System.Address (since these might not be available
12784         if Address is a non-private type for which the operations
12785         are made abstract).
12786
12787 2004-04-19  Vincent Celier  <celier@gnat.com>
12788
12789         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
12790
12791         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
12792         defaulted to Ada.
12793
12794         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
12795         defaulted to Ada.
12796         Call Check with Process_Languages.
12797         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
12798         with Process_Languages.
12799         (Recursive_Check): New Boolean parameter Process_Languages. Call
12800         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
12801         Process_Languages.
12802
12803         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
12804
12805         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
12806         parameter Ada_Main, defaulted to True.
12807         Check for Ada specific characteristics only when Ada_Main is True.
12808
12809         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
12810
12811         * prj.adb: (Project_Empty): Add new Project_Data components.
12812
12813         * prj.ads: New types and tables for non Ada languages.
12814         (Project_Data): New components Languages, Impl_Suffixes,
12815         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
12816         Include_Path, Include_Data_Set.
12817
12818         * prj-env.ads, prj-env.adb: Minor reformatting
12819
12820         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
12821         Put subprograms in alphabetical order
12822
12823         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
12824         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
12825         Opt.Follow_Links.
12826
12827         * mlib-prj.adb: Back out modification in last version, as they are
12828         incorrect.
12829         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
12830
12831         * make.adb: (Mains): Moved to package Makeutl
12832         (Linker_Opts): Moved to package Makeutl
12833         (Is_External_Assignment): Moved to package Makeutl
12834         (Test_If_Relative_Path): Moved to package Makeutl
12835         (Gnatmake): Move sorting of linker options to function
12836         Makeutl.Linker_Options_Switches.
12837
12838         * makeutl.ads, makeutl.adb: New files.
12839
12840         * Makefile.in: Add makeutl.o to the object files for gnatmake
12841
12842         * makeusg.adb: Add line for new switch -eL.
12843
12844         * gnatls.adb (Image): New function.
12845         (Output_Unit): If in verbose mode, output the list of restrictions
12846         specified by pragmas Restrictions.
12847
12848         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
12849         Text_IO.
12850
12851         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
12852         needed, to put it in the range 1970 (included) - 2026 (excluded).
12853         (Time_Of): Do not shift Unix_Min_Year (1970).
12854         Shift the date by multiple of 56 years, if needed, to put it in the
12855         range 1970 (included) - 2026 (excluded).
12856
12857         * adaint.h, adaint.c (__gnat_set_executable): New function.
12858
12859 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12860
12861         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
12862         and pop GC context.
12863         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
12864         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
12865         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
12866         (tree_transform, case N_Code_Statement): Likewise.
12867         (gnat_expand_stmt, case LABEL_STMT): Don't look at
12868         LABEL_STMT_FIRST_IN_EH.
12869         (gnat_expand_stmt, case ASM_STMT): New case.
12870
12871         * utils2.c (build_unary_op): Properly set TREE_READONLY of
12872         UNCONSTRAINED_ARRAY_REF.
12873
12874         * utils.c (poplevel): Temporarily push/pop GC context around inline
12875         function expansion.
12876
12877         * decl.c (maybe_variable): Properly set TREE_READONLY of
12878         UNCONSTRAINED_ARRAY_REF.
12879         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
12880
12881         * ada-tree.def: (ASM_STMT): New.
12882
12883         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
12884         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
12885         ASM_STMT_INPUT): New.
12886         (ASM_STMT_CLOBBER): Likewise.
12887
12888 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
12889
12890         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
12891         general rcheck mechanism to raise Program_Error for E.4(18), instead
12892         of a custom raiser in System.Partition_Interface.
12893         Part of general cleanup work before PolyORB integration.
12894
12895         * snames.ads, snames.adb: Add new runtime library entities and names
12896         for PolyORB DSA.
12897
12898         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
12899         exp_dist.
12900         (Build_Subprogram_Id): New subprogram provided by exp_dist
12901         Code reorganisation in preparation for PolyORB integration.
12902
12903         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
12904         exp_dist.
12905         (Build_Subprogram_Id): New subprogram provided by exp_dist
12906
12907         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
12908         actual parameter types for call to dereference of an
12909         access-to-subprogram type.
12910
12911         * rtsfind.ads: Add new runtime library entities and names for PolyORB
12912         DSA.
12913
12914         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
12915         instead, which has the same behaviour here since we never pass it a
12916         NULL pointer.
12917
12918         * link.c (run_path_option, Solaris case): Use -Wl, as for other
12919         platforms.
12920
12921         * Makefile.in: adjust object file lists for gnatlink and gnatmake
12922         to account for new dependency upon Interfaces.C.Strings + link.o
12923         For x86 FreeBSD, use 86numaux.
12924
12925         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
12926         from Mlib.Tgt to Mlib.
12927
12928         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
12929         target-independent.
12930
12931         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
12932         target-specific versions of this subprogram, now implemented as a
12933         target-independent function in Mlib.
12934
12935         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
12936         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
12937         (Linker_Library_Path_Option): Remove target-specific versions of this
12938         subprogram, now implemented as a target-independent function in Mlib.
12939
12940         * atree.adb: (Allocate_Initialize_Node): New subprogram.
12941         Factors out node table slots allocation.
12942         (Fix_Parents): New subprogram.
12943         Encapsulate the pattern of fixing up parent pointers for syntactic
12944         children of a rewritten node.
12945         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
12946         (Rewrite): Use New_Copy when creating saved copy of original node.
12947         (Replace): Use Copy_Node to copy nodes.
12948
12949 2004-04-19  Javier Miranda  <miranda@gnat.com>
12950
12951         * sprint.adb (Sprint_Node_Actual): Give support to the new
12952         Access_To_Subprogram node available in Access_Definition nodes. In
12953         addition, give support to the AI-231 node fields: null-exclusion,
12954         all-present, constant-present.
12955
12956         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
12957
12958         * sinfo.ads, sinfo.adb:
12959         New field Access_To_Subprogram_Definition in Access_Definition nodes
12960
12961         * sem_ch6.adb (Process_Formals): Move here the code that creates and
12962         decorates internal subtype declaration corresponding to the
12963         null-excluding formal. This code was previously in Set_Actual_Subtypes.
12964         In addition, carry out some code cleanup on this code. In case of
12965         access to protected subprogram call
12966         Replace_Anonymous_Access_To_Protected_Subprogram.
12967         (Set_Actual_Subtypes): Code cleanup.
12968
12969         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
12970         Find_Type in case of anonymous access renamings. Add warning in case of
12971         null-excluding attribute used in anonymous access renaming.
12972
12973         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
12974         subprogram
12975
12976         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
12977         subprogram.
12978         (Access_Definition): In case of anonymous access to subprograms call
12979         the corresponding semantic routine to decorate the node.
12980         (Access_Subprogram_Declaration): Addition of some comments indicating
12981         some code that probably should be added here. Detected by comparison
12982         with the access_definition subprogram.
12983         (Analyze_Component_Declaration): In case of access to protected
12984         subprogram call Replace_Anonymous_Access_To_Protected.
12985         (Array_Type_Declaration): In case of access to protected subprogram call
12986         Replace_Anonymous_Access_To_Protected_Subprogram.
12987         (Process_Discriminants): In case of access to protected subprogram call
12988         Replace_Anonymous_Access_To_Protected_Subprogram.
12989
12990         * par.adb (P_Access_Definition): New formal that indicates if the
12991         null-exclusion part was present.
12992         (P_Access_Type_Definition): New formal that indicates if the caller has
12993         already parsed the null-excluding part.
12994
12995         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
12996         (P_Identifier_Declarations): Code cleanup and give support to renamings
12997         of anonymous access to subprogram types.
12998         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
12999         (P_Array_Type_Definition): Give support to AI-254.
13000         (P_Component_Items): Give support to AI-254.
13001         (P_Access_Definition): New formal that indicates if the header was
13002         already parsed by the caller.
13003         (P_Access_Type_Definition): New formal that indicates if the caller has
13004         already parsed the null-excluding part.
13005
13006         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
13007         call to P_Access_Definition.
13008
13009 2004-04-19  Geert Bosch  <bosch@gnat.com>
13010
13011         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
13012         the delicate semantics of floating-point to integer conversion.
13013         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
13014
13015         * eval_fat.adb (Machine_Mantissa): Moved to spec.
13016         (Machine_Radix): New function.
13017
13018         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
13019         conversion checks.
13020         (Machine_Radix): New function also for use in conversion checks.
13021
13022 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
13023
13024         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
13025
13026         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
13027         to decorate the access-to-protected subprogram and the equivalent type.
13028
13029         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
13030         to anonymous access to subprogram types.
13031
13032         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
13033         constant-folding, for legality checks in contexts that require an RM
13034         static expression.
13035
13036         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
13037         temporary but stack checking is not enabled, increment serial number
13038         to so that symbol generation is consistent with and without stack
13039         checking.
13040
13041         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
13042         independent on whether stack checking is enabled, caller must check
13043         the corresponding flag.
13044
13045         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
13046         range checks.
13047         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
13048         parent if it has discriminants.
13049         (Build_Derived_Private_Type): Constructed full view does
13050         not come from source.
13051         (Process_Discriminants): Default discriminants on a tagged type are
13052         legal if this is the internal completion of a private untagged
13053         derivation.
13054
13055         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
13056         no constraint checks, because it corresponds to an existing object.
13057
13058         * sem_prag.adb (Process_Convention): Pragma applies
13059         only to subprograms in the same declarative part, i.e. the same unit,
13060         not the same scope.
13061
13062         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
13063         ignore type mismatch on a numeric conversion if expression comes from
13064         expansion.
13065
13066 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
13067
13068         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
13069         Homonym_Number parameter, add processing for Source_Location parameter
13070         corresponding.
13071         (Check_Eliminated): Remove the check for homonym numbers, add the check
13072         for source location traces.
13073
13074         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
13075         with Arg_Source_Location corresponding to the changes in the format of
13076         the pragma.
13077
13078         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
13079         Eliminate pragma corresponding to the changes in the format of the
13080         pragma: Homonym_Number is replaced with Source_Location, two ways of
13081         distinguishing homonyms are mutially-exclusive.
13082
13083 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
13084
13085         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
13086
13087         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
13088         No_Dollar_In_Label, no longer necessary, as it is always True.
13089         (Strip_Suffixes): Likewise.
13090
13091 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
13092
13093         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
13094         modulus for compatibility with size clause on targets with 16-bit
13095         Integer.
13096
13097         * layout.adb (Discrimify): In the case of private types, set Vtyp to
13098         full type to fix type mismatches on calls to size functions for
13099         discriminant-dependent array components.
13100
13101 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
13102
13103         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
13104         lib.
13105
13106 2004-04-19  Pascal Obry  <obry@gnat.com>
13107
13108         * mdll-utl.adb (Locate): New version is idempotent.
13109
13110 2004-04-17  Laurent Guerby <laurent@guerby.net>
13111
13112         PR ada/14988 (partial)
13113         * impunit.adb: Fix typo.
13114
13115 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
13116
13117         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
13118         and install-rts-cert targets.  Remove all gnatlib and gnattools
13119         targets and all other rts-* targets (moved to libada).  Remove (now)
13120         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
13121         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
13122
13123 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13124
13125         * trans.c (tree_transform): Shortcut returning error_mark_node for
13126         statements in annotate_only_mode.
13127         (tree_transform, case N_Label, case N_Return_Statement,
13128         N_Goto_Statement): Make statement tree instead of generating code.
13129         (tree_transform, case N_Assignment_Statement): No longer check
13130         type_annotate_only.
13131         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
13132         RETURN_STMT): New.
13133         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
13134         New fcns.
13135         (gnat_to_gnu): Collect any RTL generated and deal with it.
13136         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
13137         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
13138         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
13139
13140         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
13141
13142         * ada-tree.def (EXPR_STMT): Fix typo in name.
13143         (BLOCK_STMT, IF_STMT): New nodes.
13144
13145         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
13146         LABEL_STMT_FIRST_IN_EH): New macros.
13147         (RETURN_STMT_EXPR): Likewise.
13148
13149         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
13150         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
13151
13152 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
13153
13154         * atree.ads: Correct documentation on extended nodes.
13155
13156         * link.c: Set run_path_option for FreeBSD.
13157
13158 2004-04-08  Vincent Celier  <celier@gnat.com>
13159
13160         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
13161         one of the ALI file, do not link with DEC lib.
13162
13163         * par.adb Remove the last two characters ("%s" or "%b") when checking
13164         if a language defined unit may be recompiled.
13165
13166 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
13167
13168         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
13169         removal of abstract operation leaves no possible interpretation for
13170         expression.
13171
13172         * sem_eval.adb (Eval_Qualified_Expression): Use
13173         Set_Raises_Constraint_Error on node when needed, so that it does not
13174         get optimized away by subsequent optimizations.
13175
13176         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
13177         operands even when they are not wrapped in a type conversion.
13178
13179 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
13180
13181         * sem_prag.adb (Set_Exported): Warn about making static as result of
13182         export only when the export is coming from source. This may be not
13183         be true e.g. on VMS where we expand export pragmas for exception codes
13184         together with imported or exported exceptions, and we don't want the
13185         user to be warned about something he didn't write.
13186
13187 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
13188
13189         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
13190         duplication between normal entities and those declared as renamings.
13191         No functional change.
13192
13193         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
13194         inline functions returning an unconstrained result.
13195
13196 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
13197
13198         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
13199         conform to what other front-ends do.
13200
13201 2004-04-08  Doug Rupp  <rupp@gnat.com>
13202
13203         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
13204         libraries.
13205
13206 2004-04-06  Pascal Obry  <obry@gnat.com>
13207
13208         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
13209
13210         * osint.adb (Program_Name): Do not look past a directory separator.
13211
13212 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
13213
13214         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
13215
13216         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
13217         requirement for preserving a copy of the original assignment node.
13218
13219         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
13220
13221 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
13222
13223         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
13224         when supported.
13225
13226 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
13227
13228         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
13229         operator calls in functional notation, and apply
13230         Universal_Interpretation to operands, not to their type.
13231
13232 2004-04-06  Robert Dewar  <dewar@gnat.com>
13233
13234         * 5wdirval.adb: Minor reformatting
13235
13236 2004-04-06  Ed Falis  <falis@gnat.com>
13237
13238         * gnat_rm.texi: Improve a reference to the GCC manual
13239
13240 2004-04-05  Vincent Celier  <celier@gnat.com>
13241
13242         * adaint.h, adaint.c: Add function __gnat_named_file_length
13243
13244         * impunit.adb: Add Ada.Directories to the list
13245
13246         * Makefile.in: Add VMS and Windows versions of
13247         Ada.Directories.Validity package body.
13248
13249         * Makefile.rtl: Add a-direct and a-dirval
13250
13251         * mlib-tgt.ads: Minor comment update.
13252
13253         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
13254         a-direct.ads, a-direct.adb: New files.
13255
13256 2004-04-05  Vincent Celier  <celier@gnat.com>
13257
13258         PR ada/13620
13259         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
13260         just to the compiler.
13261
13262 2004-04-05  Robert Dewar  <dewar@gnat.com>
13263
13264         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
13265         returned string is 1.
13266
13267         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
13268
13269         * eval_fat.ads: Minor reformatting
13270
13271         * g-curexc.ads: Document that lower bound of returned string values
13272         is always one.
13273
13274         * gnatlink.adb: Add ??? comment for previous change
13275         (need to document why this is VMS specific)
13276
13277         * s-stoele.ads: Minor reformatting
13278
13279         * tbuild.ads: Minor reformatting throughout (new function specs)
13280
13281         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
13282         after WITH.
13283
13284         * scng.adb: Minor reformatting
13285
13286 2004-04-05  Geert Bosch  <bosch@gnat.com>
13287
13288         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
13289         (Leading_Part): Still perform truncation to machine number if the
13290         specified radix_digits is greater or equal to machine_mantissa.
13291
13292 2004-04-05  Javier Miranda  <miranda@gnat.com>
13293
13294         * par-ch3.adb: Complete documentation of previous change
13295         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
13296         (aliased must appear before constant).
13297
13298         * par-ch4.adb: Complete documentation of previous change.
13299
13300         * par-ch6.adb: Complete documentation of previous change.
13301
13302         * sinfo.ads: Fix typo in commment.
13303
13304 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
13305
13306         * sem_ch3.adb (Inherit_Components): If derived type is private and has
13307         stored discriminants, use its discriminants to constrain parent type,
13308         as is done for non-private derived record types.
13309
13310         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
13311         Ada 2005 AI-310: an abstract non-dispatching operation is not a
13312         candidate interpretation in an overloaded call.
13313
13314         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
13315         expression is Null and target type is not an access type (e.g. a
13316         non-private address type).
13317
13318 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
13319
13320         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
13321         statement whose right-hand side is an inlined call, save a copy of the
13322         original assignment subtree to preserve enough consistency for
13323         Analyze_Assignment to proceed.
13324
13325         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
13326         complete assignment subtree which is now unnecessary, as the expansion
13327         of inlined call has been improved to preserve a consistent assignment
13328         tree.  Note_Possible_Modification must be called only
13329         after checks have been applied, or else unnecessary checks will
13330         be generated.
13331
13332         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
13333         of explicit dereferences that do not Come_From_Source:
13334          - be selective on cases where we must go back to the dereferenced
13335            pointer (an assignment to an implicit dereference must not be
13336            recorded as modifying the pointer);
13337          - do not rely on Original_Node being present (Analyze_Assignment
13338            calls Note_Possible_Modification on a copied tree).
13339
13340         * sem_warn.adb (Check_References): When an unset reference to a pointer
13341         that is never assigned is encountered, prefer '<pointer> may be null'
13342         warning over '<pointer> is never assigned a value'.
13343
13344 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
13345
13346         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
13347         the ABI.
13348
13349 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
13350
13351         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
13352         libexc. We currently don't reference anything in this library and
13353         linking it in triggers linker warnings we don't want to see.
13354
13355         * init.c: Update comments.
13356
13357 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13358
13359         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
13360         * utils.c (create_field_decl): Likewise.
13361         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
13362
13363 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
13364
13365         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
13366         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
13367         Add info directory entry and category.
13368
13369 2004-04-02  Jan Hubicka  <jh@suse.cz>
13370
13371         * utils.c: Include function.h
13372         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
13373
13374 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
13375
13376         PR ada/14150
13377         * Make-lang.in: Clean up generation of documentation
13378
13379         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
13380
13381         * xgnatug.adb: Removed, replaced by xgnatugn.adb
13382
13383         * xgnatugn.adb: Replaces xgnatug.adb
13384
13385         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
13386
13387         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
13388
13389         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13390         gnat_ug_wnt.texi: Removed.
13391
13392 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
13393
13394         * utils2.c: Update copyright notice.
13395
13396 2004-04-01  Robert Dewar  <dewar@gnat.com>
13397
13398         * checks.adb: Minor reformatting throughout
13399         Note that prev checkin added RM reference to alignment warning
13400
13401 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
13402
13403         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
13404         non-static when building aggregate for bit-packed array.
13405
13406         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
13407         function call that is itself the actual in a procedure call, build
13408         temporary for it.
13409
13410         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
13411         a string literal, create a temporary for it, constant folding only
13412         handles scalars here.
13413
13414 2004-04-01  Vincent Celier  <celier@gnat.com>
13415
13416         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
13417         Error_Msg_SP): New empty procedures to instantiate the Scanner.
13418         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
13419         tokens.
13420         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
13421         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
13422         and get the checksum.
13423
13424         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
13425         already in the Q.
13426         Increase the Marking_Label at the end of the Multiple_Main_Loop,
13427         instead of at the beginning.
13428
13429         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
13430         directly.
13431         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
13432         on VMS.
13433
13434         * osint.ads (Multi_Unit_Index_Character): New Character global variable
13435
13436         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
13437         not '~' directly.
13438
13439         * par.adb: Remove test on file name to detect language defined units.
13440         Add test on unit name, after parsing, to detect language defined units
13441         that are not compiled with -gnatg (except System.RPC and its children)
13442
13443         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
13444         following units without style checking.
13445
13446         * switch-c.adb: Change -gnatC to -gnateI
13447
13448         * usage.adb: Document new switch -gnateInnn
13449
13450         * scng.adb (Accumulate_Token_Checksum): New procedure
13451         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
13452         word or literal number.
13453         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
13454         numbers.
13455
13456 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
13457
13458         * a-tasatt.adb,
13459         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
13460         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
13461         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
13462         5vtpopde.adb: Add missing 'constant' keywords.
13463
13464 2004-04-01  Javier Miranda  <miranda@gnat.com>
13465
13466         * par-ch4.adb: (P_Allocator): Code cleanup
13467
13468         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
13469         attribute.
13470
13471         * sinfo.ads: Complete documentation of previous change
13472
13473 2004-04-01  Pascal Obry  <obry@gnat.com>
13474
13475         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
13476         only on VMS.  This special handling was done because an old GNU/ld bug
13477         on Windows which has been fixed.
13478
13479 2004-04-01  GNAT Script  <nobody@gnat.com>
13480
13481         * Make-lang.in: Makefile automatically updated
13482
13483 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13484
13485         * decl.c (gnat_to_gnu_entity, make_type_from_size):
13486         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
13487         * trans.c (tree_transform, convert_with_check): Likewise.
13488         * utils.c (gnat_signed_or_unsigned_type): Likewise.
13489         (build_vms_descriptor, unchecked_convert): Likewise.
13490         * utils2.c (nonbinary_modular_operation): Likewise.
13491
13492 2004-03-29  Javier Miranda  <miranda@gnat.com>
13493
13494         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
13495         (Install_Null_Excluding_Check): Local subprogram that determines whether
13496         an access node requires a runtime access check and if so inserts the
13497         appropriate run-time check.
13498         (Apply_Access_Check): Call Install_Null_Excluding check if required
13499         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
13500
13501         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
13502
13503         * einfo.ads: Fix typo in comment
13504
13505         * exp_ch3.adb (Build_Assignment): Generate conversion to the
13506         null-excluding type to force the corresponding run-time check.
13507         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
13508         type to force the corresponding run-time check.
13509
13510         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
13511         the null-excluding type to force the corresponding run-time check.
13512
13513         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
13514         case of access types unless they have the null-excluding attribute.
13515
13516         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
13517         part.
13518
13519         * exp_util.ads: Fix typo in comment
13520
13521         * par.adb (P_Null_Exclusion): New subprogram
13522         (P_Subtype_Indication): New formal that indicates if the null-excluding
13523         part has been scanned-out and it was present
13524
13525         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
13526
13527         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
13528         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
13529         type to force the corresponding run-time check
13530         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
13531         components
13532         (Resolve_Array_Aggregate): Carry out some static checks
13533         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
13534
13535         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
13536         attribute must be set only if specified by means of the null-excluding
13537         part. In addition, we must also propagate the access-constant attribute
13538         if present.
13539         (Access_Subprogram_Declaration, Access_Type_Declaration,
13540         Analyze_Component_Declaration, Analyze_Object_Declaration,
13541         Array_Type_Declaration, Process_Discriminants,
13542         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
13543         and carry out some static checks.
13544         (Build_Derived_Access_Type): Set the null-excluding attribute
13545         (Derived_Type_Declaration, Process_Subtype): Carry out some static
13546         checks.
13547
13548         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
13549
13550         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
13551
13552         * sem_ch6.adb (Process_Formals): Carry out some static checks.
13553         (Set_Actual_Subtypes): Generate null-excluding subtype if the
13554         null-excluding part was present; it is not required to be done here in
13555         case of anonymous access types.
13556         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
13557         value.
13558
13559         * sem_res.adb (Resolve_Actuals): Carry out some static check
13560         (Resolve_Null): Allow null in anonymous access
13561
13562         * sinfo.adb: New subprogram Null_Exclusion_Present
13563         All_Present and Constant_Present available on access_definition nodes
13564
13565         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
13566         object_declaration, derived_type_definition, component_definition,
13567         discriminant_specification, access_to_object_definition,
13568         access_function_definition, allocator, access_procedure_definition,
13569         access_definition, parameter_specification, All_Present and
13570         Constant_Present flags available on access_definition nodes.
13571
13572 2004-03-29  Robert Dewar  <dewar@gnat.com>
13573
13574         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
13575         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
13576         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
13577         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
13578         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
13579         sem_prag.adb: Updates to handle multiple units/file
13580
13581         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
13582
13583         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
13584         sem_util.adb: Minor reformatting
13585
13586         * sem_ch12.adb: Add comment for previous change
13587
13588 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
13589
13590         * osint.adb (Executable_Prefix): Set Exec_Name to the current
13591         executable name when not initialized. Otherwise, use its current value.
13592
13593         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
13594         initialize it to another executable name than the current one. This
13595         allows to configure paths for an executable name (gnatmake) different
13596         from the current one (gnatdist).
13597
13598 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
13599
13600         * exp_ch6.adb (Expand_Call): A call to a function declared in the
13601         current unit cannot be inlined if it appears in the body of a withed
13602         unit, to avoid order of elaboration problems in gigi.
13603
13604         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
13605         information for protected (wrapper) operation as well, to simplify gdb
13606         use.
13607
13608         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
13609         protected body, indicate that the entity for the generated spec comes
13610         from source, to ensure that references are properly generated for it.
13611         (Build_Body_To_Inline): Do not inline a function that returns a
13612         controlled type.
13613
13614         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
13615         apply convention to homonyms that are declared explicitly.
13616
13617         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
13618         that renames an equality operator and the operands are overloaded,
13619         resolve them with the declared formal types, before rewriting as an
13620         operator.
13621
13622 2004-03-29  GNAT Script  <nobody@gnat.com>
13623
13624         * Make-lang.in: Makefile automatically updated
13625
13626 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
13627
13628         * memtrack.adb: Log realloc calls, which are treated as free followed
13629         by alloc.
13630
13631 2004-03-25  Vincent Celier  <celier@gnat.com>
13632
13633         * prj-makr.adb (Process_Directories): Detect when a file contains
13634         several units. Do not include such files in the config pragmas or
13635         in the naming scheme.
13636
13637         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
13638         Resolve links only when not in Trusted_Mode.
13639         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
13640         Do not resolve links for the display names.
13641
13642         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
13643         resolve links when computing the display names.
13644
13645 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
13646
13647         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
13648         attribute reference does not denote a subtype, it can be any
13649         expression that has a classwide type, potentially after an implicit
13650         dereference.  In particular, the prefix can be a view conversion for
13651         a classwide type (for which Is_Object_Reference holds), but it can
13652         also be a value conversion for an access-to-classwide type. In the
13653         latter case, there is an implicit dereference, and the original node
13654         for the prefix does not verify Is_Object_Reference.
13655
13656         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
13657         conversion of a discriminant-dependent component of a mutable object
13658         is one itself.
13659
13660 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
13661
13662         * freeze.adb (Freeze_Entity): When an inherited subprogram is
13663         inherited, has convention C, and has unconstrained array parameters,
13664         place the corresponding warning on the derived type declaration rather
13665         than the original subprogram.
13666
13667         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
13668         indication on renaming declaration, if formal has a box and actual
13669         is absent.
13670
13671         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
13672         determine whether to generate an implicit or explicit reference to
13673         the renamed entity.
13674
13675         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
13676         subprogram renaming comes from a defaulted formal subprogram in an
13677         instance.
13678
13679 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
13680
13681         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
13682         value expressions to ensure that calls within a component definition
13683         will be checked (since those are evaluated during the record type's
13684         elaboration).
13685
13686 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
13687
13688         * s-tpobop.adb: Code clean up:
13689         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
13690         code.
13691         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
13692
13693 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
13694
13695         * Makefile.in: Clean up in the ravenscar run time.
13696
13697 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13698
13699         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
13700         of No_Strict_Aliasing to build_pointer_type_for_mode.
13701         * utils.c (update_pointer_to): Walk pointer and ref chains.
13702
13703 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
13704
13705         * ali.ads: Fix Comment about Dynamic_Elab.
13706
13707         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
13708         Has_RACW, Is_Generic, etc.)
13709         (Output_Object, Gnatls): Take into account ALI files not attached to
13710         an object.
13711
13712 2004-03-22  Vincent Celier  <celier@gnat.com>
13713
13714         * gprep.adb: Change all String_Access to Name_Id
13715         (Is_ASCII_Letter): new function
13716         (Double_File_Name_Buffer): New procedure
13717         (Preprocess_Infile_Name): New procedure
13718         (Process_Files): New procedure
13719         (Gnatprep): Check if output and input are existing directories.
13720         Call Process_Files to do the real job.
13721
13722 2004-03-22  Robert Dewar  <dewar@gnat.com>
13723
13724         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
13725         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
13726
13727 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
13728
13729         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
13730         case when the source contains only comments.
13731
13732 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
13733
13734         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
13735         declaration for a child subprogram body that acts as a spec, indicate
13736         that the entity in the declaration needs debugging information.
13737
13738         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
13739         full view if the subtype is created for a constrained record component;
13740         gigi has enough information to construct the record, and there is no
13741         place in the tree for the declaration.
13742
13743         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
13744         serial number for the dummy body that is built for analysis, to avoid
13745         inconsistencies in the generation of internal names when compiling
13746         with -gnatN.
13747
13748 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
13749
13750         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
13751         object.
13752
13753 2004-03-22  GNAT Script  <nobody@gnat.com>
13754
13755         * Make-lang.in: Makefile automatically updated
13756
13757 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13758
13759         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
13760         * trans.c (tree_transform, emit_index_check): Likewise.
13761         * utils.c (build_template): Likewise.
13762         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
13763         (maybe_unconstrained_array, unchecked_convert): Likewise.
13764         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
13765         (build_unary_op): Likewise.
13766         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
13767         (fill_vms_descriptor): Likewise.
13768         (build_call_alloc_dealloc): Likewise.
13769         ALIGN is unsigned.
13770         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
13771
13772 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
13773
13774         PR other/14630
13775         * gnat_ug.texi: Add info directory category and entry.
13776         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13777         gnat_ug_wnt.texi: Regenerate.
13778
13779 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
13780
13781         * ada-tree.h: Update copyright notice.
13782         Minor reformatting.
13783
13784 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
13785
13786         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
13787         as regular exception objects and not as mere integers representing the
13788         condition code.  The latter approach required some dynamics to mask off
13789         severity bits, which did not fit well into the GCC table based model.
13790         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
13791         exception data objects. We don't it and it would conflict with the other
13792         external symbol we have to generate for such exceptions.
13793
13794         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
13795         the special code for VMS exceptions, since these are now represented
13796         as regular exceptions objects.
13797
13798 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13799
13800         * decl.c (debug_no_type_hash): Remove.
13801         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
13802         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
13803
13804 2004-03-19  Laurent Guerby <laurent@guerby.net>
13805
13806         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
13807         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
13808
13809 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13810
13811         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
13812         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
13813         (TYPE_RM_SIZE_INT): Directly use type.values.
13814         (TREE_LOOP_ID): Clean up check.
13815         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
13816         TYPE_VALUES, not TYPE_FIELDS.
13817         * trans.c (convert_with_check): Delay access of bounds of basetype
13818         until sure is numeric.
13819
13820 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
13821
13822         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
13823
13824         Code clean up:
13825         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
13826         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
13827         Specific.Set instead of direct call to e.g pthread_setspecific.
13828
13829 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
13830
13831         * adaint.c: Update comments.
13832
13833         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
13834         GNATLIB_SHARED for FreeBSD.
13835
13836 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
13837
13838         * init.c [VxWorks]: Do not fix the stack size for the environment task.
13839         When needed (stack checking) the stack size is retrieved
13840         from the VxWorks kernel.
13841
13842         * Makefile.in: Flag -nostdinc is required when building the run time
13843         for avoiding looking for files in the base compiler.
13844         Add the VxWorks specific version of the package body for
13845         System.Stack_checking.Operations (5zstchop.adb).
13846
13847         * Make-lang.in: Add the object file for
13848         System.Stack_Checking.Operations.
13849
13850         * Makefile.rtl: Add object file for the package
13851         System.Stack_Checking.Operations.
13852
13853         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
13854
13855         * s-stache.ads, s-stache.adb: Move the operations related to stack
13856         checking from this package to package System.Stack_Checking.Operations.
13857         This way, stack checking operations are only linked in the final
13858         executable when using the -fstack-check flag.
13859
13860 2004-03-18  Doug Rupp  <rupp@gnat.com>
13861
13862         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
13863         Reorganize ifeq's.
13864
13865         * 5qsystem.ads, 5xcrtl.ads: New files.
13866
13867 2004-03-18  Vincent Celier  <celier@gnat.com>
13868
13869         * prj.adb (Reset): Reset hash table Files_Htable
13870
13871         * prj-env.adb (Source_Paths, Object_Paths): New tables.
13872         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
13873         the procedures Add_To_Path_File.
13874         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
13875         making sure that each directory is present only once and, for object
13876         dirs, when a directory already present is added, the duplicate is
13877         removed and the directory is always put as the last in the table.
13878         Write the path files at the end of these accumulations.
13879
13880         * prj-nmsc.adb (Record_Source): Add source file name in hash table
13881         Files_Htable for all sources.
13882
13883         * prj-proc.adb (Process): Remove restrictions between not directly
13884         related extending projects.
13885
13886 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
13887
13888         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
13889         (Find_Sources): Minor speed optimization.
13890
13891         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
13892         parameter Trusted_Mode.
13893
13894 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
13895
13896         * scn.adb (Determine_License): Take into account a degenerated case
13897         when the source contains only comments.
13898
13899 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
13900
13901         * sem_warn.adb (Check_References): For a warning on a selected
13902         component that does not come from source, locate an uninitialized
13903         component of the record type to produce a more precise error message.
13904
13905 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
13906
13907         * 3zsoccon.ads: Fix multicast options.
13908
13909         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
13910         in the spec.
13911
13912 2004-03-15  Robert Dewar  <dewar@gnat.com>
13913
13914         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
13915         pragma used for a private type.
13916
13917         * lib-xref.adb (Generate_Reference): Do not generate warning if
13918         reference is in a different unit from the pragma Unreferenced.
13919
13920         * 5vtpopde.adb: Minor reformatting
13921         Fix casing of To_Task_ID
13922
13923         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
13924         flag if we have an unchecked conversion to an access type in the same
13925         unit.
13926
13927 2004-03-15  Geert Bosch  <bosch@gnat.com>
13928
13929         * a-ngcoty.adb (Modulus): In alternate formula for large real or
13930         imaginary parts, use Double precision throughout.
13931
13932         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
13933         we want to be able to compile run-time with -gnata for testing, but
13934         this may also be instantiated in user code that is compiled with -gnata.
13935
13936 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
13937
13938         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
13939         codes. Having a separate type for this is useful to enforce consistency
13940         throughout the various run-time units.
13941         (Exception_Data): Use Exception_Code for Import_Code.
13942
13943         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
13944         Natural and Integer in various places.
13945         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
13946         with the severity bits masked off.
13947         (Register_VMS_Exception): Handle the additional exception data pointer
13948         argument.
13949
13950         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
13951         component, now reflected by an exported accessor.
13952         (is_handled_by): New routine to compute whether the propagated
13953         occurrence matches some handler choice specification. Extracted out of
13954         get_action_description_for, and expanded to take care of the VMS
13955         specifities.
13956         (get_action_description_for): Use is_handled_by instead of an explicit
13957         complex condition to decide if the current choice at hand catches the
13958         propagated occurrence.
13959
13960         * raise.h (Exception_Code): New type for C.
13961
13962         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
13963         System.Standard_Library.Exception_Code, to allow references from the
13964         pragma import/export expander.
13965
13966         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
13967         New accessors to allow easy access to GNAT exception data
13968         characteristics.
13969         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
13970         redundant Handled_By_Others component, helper for the personality
13971         routine which will now be able to call the appropriate exception data
13972         accessor instead.
13973
13974         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
13975         component of Standard_Exception_Type to be the closest possible to
13976         Exception_Code in System.Standard_Library, that we cannot get at this
13977         point. Expand a ??? comment to notify that this type node should
13978         probably be rewritten later on.
13979
13980         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
13981         registration call to include a pointer to the exception object in the
13982         arguments.
13983
13984         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
13985         instead of int and explicit bitmasks.
13986
13987 2004-03-15  Vincent Celier  <celier@gnat.com>
13988
13989         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
13990         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
13991
13992         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
13993         longer needed now that it is in the spec of
13994         System.Tasking.Task_Attributes.
13995
13996         * adaint.h, adaint.c: (__gnat_create_output_file): New function
13997
13998         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
13999
14000         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
14001
14002         * make.adb (Gnatmake): Do not check the executable suffix; it is being
14003         taken care of in Scan_Make_Arg.
14004         (Scan_Make_Arg): Add the executable suffix only if the argument
14005         following -o, in canonical case, does not end with the executable
14006         suffix.  When in verbose mode and executable file name does not end
14007         with executable suffix, output the executable name, in canonical case.
14008
14009         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
14010         to avoid warnings when instantiating Ada.Task_Attributes.
14011         Minor reformating.
14012
14013         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
14014         in the correct order.
14015
14016         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
14017         redirect standard output and error to a file for the invocation of the
14018         compiler, then read the file.
14019
14020         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
14021         directory, instead of the Value.
14022         (Find_Source_Dirs): Remove useless code & comments.
14023
14024 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
14025
14026         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
14027         tagged type is inherited, and the parent operation is not frozen yet,
14028         force generation of a freeze node for the inherited operation, so the
14029         corresponding dispatch entry is properly initialized.
14030         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
14031         when looking for user-defined equality operation.
14032
14033         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
14034         boolean when locating primitive equality of tagged component.
14035
14036         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
14037         bit-aligned field and the right-hand side a string literal, introduce
14038         a temporary before expanding assignment into a loop.
14039
14040         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
14041         priority in full, to ensure that any expanded subepxressions of it are
14042         elaborated in the scope of the init_proc.
14043
14044         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
14045         after object declaration, skipping over code that may have been
14046         generated for validity checks.
14047
14048         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
14049         discriminants, ignore the known discriminants of its full view, if
14050         any, to check legality.
14051
14052         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
14053         component if type has unknown discriminants.
14054         (Analyze_Private_Extension_Declaration): Discriminant constraint is
14055         null if type has unknown discriminants.
14056
14057         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
14058         for end label when present.
14059
14060         * s-fileio.adb (Open): When called with a C_Stream, use given name for
14061         temporary file, rather than an empty string.
14062
14063 2004-03-15  Ed Falis  <falis@gnat.com>
14064
14065         * s-thread.adb: Removed, no longer used.
14066
14067 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14068
14069         * decl.c (target.h): Now include.
14070         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
14071         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
14072         (validate_size): For POINTER_TYPE, get smallest size permitted on
14073         machine.
14074
14075         * fe.h: Sort Einfo decls and add Set_Mechanism.
14076
14077         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
14078         (ada/decl.o): Depends on target.h.
14079
14080         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
14081         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
14082
14083 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
14084
14085         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
14086
14087         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
14088         Insert_Dereference_Action when rewriting an implicit dereference into
14089         an explicit one, this will be taken care of during expansion of the
14090         explicit dereference.
14091         (Expand_N_Slice): Same. Always do the rewriting, even for the case
14092         of non-packed slices, since the dereference action generated by
14093         expansion of the explicit dereference is needed in any case.
14094         (Expand_N_Selected_Component): When rewriting an implicit dereference,
14095         analyze and resolve the rewritten explicit dereference so it is seen
14096         by the expander.
14097         (Insert_Dereference_Action): This procedure is now called only for the
14098         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
14099         dereferences that do not come from source (including explicit
14100         dereferences resulting from rewriting implicit ones), but do not
14101         recursively insert a check for the dereference nodes contained within
14102         the check.
14103         (Insert_Dereference_Action): Clarify and correct comment.
14104
14105 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
14106
14107         PR ada/14131
14108         Move language detection to the top level.
14109         * config-lang.in: Build by default.
14110
14111 2004-03-05  Robert Dewar  <dewar@gnat.com>
14112
14113         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
14114
14115         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
14116         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
14117         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
14118         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
14119         unchecked conversion to spec to avoid warnings.
14120
14121         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
14122         to Task_ID
14123
14124         * 7stpopsp.adb: Correct casing in To_Task_ID call
14125
14126         * a-strsea.ads, a-strsea.adb: Minor reformatting
14127
14128         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
14129
14130         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
14131         Adjust Max_Msg_Length to be clearly large enough.
14132
14133         * fe.h: Define In_Same_Source_Unit
14134
14135         * osint.adb: Add pragma Warnings Off to suppress warnings
14136         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
14137         aliasing warnings.
14138
14139         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
14140
14141         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
14142
14143         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
14144
14145         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
14146
14147         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
14148
14149         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
14150         node. We now do generate them for gcc back end.
14151
14152         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
14153         warning.
14154
14155         * sinput-c.adb: Fix bad name in header.
14156         Add pragma Warnings Off to suppress aliasing warning.
14157
14158         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
14159
14160         * snames.h, snames.ads, snames.adb: Add entry for pragma
14161         No_Strict_Aliasing.
14162
14163 2004-03-05  Vincent Celier  <celier@gnat.com>
14164
14165         * prj-com.ads: Add hash table Files_Htable to check when a file name
14166         is already a source of another project.
14167
14168         * prj-nmsc.adb (Record_Source): Before recording a new source, check
14169         if its file name is not already a source of another project. Report an
14170         error if it is.
14171
14172         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
14173         source file name, call gnatpp with all the sources of the main project.
14174
14175         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
14176         of file names.
14177
14178         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
14179         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
14180         /RUNTIME_SYSTEM=, converted to --RTS=
14181         /NOTABS, converted to -notabs
14182
14183 2004-03-05  Pascal Obry  <obry@gnat.com>
14184
14185         * make.adb: Minor reformatting.
14186
14187 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
14188
14189         Part of implemention of AI-262.
14190         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
14191
14192         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
14193         procedure.
14194
14195         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
14196         when component type is a partially constrained class-wide subtype.
14197         (Constrain_Discriminated_Type): If parent type has unknown
14198         discriminants, a constraint is illegal, even if full view has
14199         discriminants.
14200         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
14201         with unknown discriminants whose full view is a discriminated record.
14202
14203         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
14204         flag, to handle properly derivations of tagged types with unknown
14205         discriminants.
14206         (Analyze_Package_Spec, Analyze_Package_Body): Install
14207         Private_With_Clauses before analyzing private part or body.
14208
14209         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
14210         Has_Discriminants can be true for a given type (documentation).
14211
14212 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
14213
14214         * s-restri.ads: Fix license (GPL->GMGPL).
14215
14216         * s-tassta.adb: Minor reformatting.
14217
14218         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14219         by calls to Exit_One_ATC_Level, since additional clean up is performed
14220         by this function.
14221
14222         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14223         by calls to Exit_One_ATC_Level, since additional clean up is performed
14224         by this function.
14225
14226 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14227
14228         * trans.c: Reflect GCC changes to fix bootstrap problem.
14229         Add warning for suspicious aliasing unchecked conversion.
14230
14231 2004-03-05  GNAT Script  <nobody@gnat.com>
14232
14233         * Make-lang.in: Makefile automatically updated
14234
14235 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
14236
14237         * ali.adb (Read_Instantiation_Instance): Do not modify the
14238         current_file_num when reading information about instantiations, since
14239         this corrupts files in later references.
14240
14241 2004-03-02  Vincent Celier  <celier@gnat.com>
14242
14243         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
14244         before checking if it is read-only.
14245
14246         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
14247         of SRC_DIRS and eliminate duplicates.
14248
14249         * gprcmd.adb: Replace command "path" with command "path_sep" to return
14250         the path separator.
14251         (Usage): Document path_sep
14252
14253         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
14254         C++ compiler. No need for a script.
14255         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
14256         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
14257         subst.
14258
14259         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
14260         where there are Ada sources.
14261         (Set_Ada_Paths): Only add to the include path the source dirs of project
14262         with Ada sources.
14263         (Add_To_Path): Add the Display_Values of the directories, not their
14264         Values.
14265
14266         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
14267         data.
14268
14269         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
14270         is not No_Name.
14271         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
14272         Value is canonicalized.
14273         (Language_Independent_Check): Do not copy Value to Display_Value when
14274         canonicalizing Value.
14275
14276         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
14277         path to find limited with cycles.
14278         (Parse_Single_Project): Use canonical cased path to find the end of a
14279         with cycle.
14280
14281 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
14282
14283         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
14284         and not a child unit.
14285
14286         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
14287         appear in a with_clause.
14288
14289         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
14290         only happen in type_annotate mode, do not try to elaborate it.
14291
14292         * exp_util.adb (Force_Evaluation): If expression is a selected
14293         component on the left of an assignment, use a renaming rather than a
14294         temporary to remove side effects.
14295
14296         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
14297         inlined instance body, which is analyzed before the end of the
14298         enclosing scope.
14299
14300 2004-03-02  Robert Dewar  <dewar@gnat.com>
14301
14302         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
14303         sem_ch4.adb: Use new feature for substitution of keywords in VMS
14304
14305         * errout.ads, errout.adb: Implement new circuit for substitution of
14306         keywords in VMS.
14307
14308         * sem_case.adb (Analyze_Choices): Place message properly when case is
14309         a subtype reference rather than an explicit range.
14310
14311         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
14312
14313 2004-03-02  Doug Rupp  <rupp@gnat.com>
14314
14315         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
14316
14317 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
14318
14319         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
14320
14321 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14322
14323         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
14324         BLKmode bitfield.
14325
14326 2004-02-25  Robert Dewar  <dewar@gnat.com>
14327
14328         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
14329         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
14330         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
14331         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
14332         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
14333         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
14334         the defining instance of the type to avoid aliasing problems.
14335         Fix copyright header.  Fix bad comments in package header.
14336
14337         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
14338
14339 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
14340
14341         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
14342         rewritten as references when aliased through an address clause.
14343
14344         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
14345         whether call can be interpreted as an indirect call to the result of a
14346         parameterless function call returning an access subprogram.
14347
14348 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
14349
14350         Code clean up:
14351         * exp_ch7.adb (Make_Clean): Remove generation of calls to
14352         Unlock[_Entries], since this is now done by Service_Entries directly.
14353
14354         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
14355
14356         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
14357         Requeue_Call for better code readability. Change spec and update calls:
14358         PO_Service_Entries now unlock the PO on exit.
14359         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
14360         PO_Service_Entries.
14361
14362         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
14363
14364         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
14365
14366 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
14367
14368         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
14369         protected subprogram call and analyzing the result of such expanding
14370         in case when the called protected subprogram is eliminated.
14371
14372         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
14373         names.
14374
14375 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
14376
14377         * Makefile.in: Clean ups.
14378
14379 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
14380
14381         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
14382         protected operations if original subprogram is flagged as eliminated.
14383         (Expand_N_Subprogram_Body): For a protected operation, create
14384         discriminals for next operation before checking whether the operation
14385         is eliminated.
14386
14387         * exp_ch9.adb (Expand_N_Protected_Body,
14388         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
14389         for internal protected operations if the original subprogram is
14390         eliminated.
14391
14392         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
14393         declared in a single protected object.
14394
14395 2004-02-23  Vincent Celier  <celier@gnat.com>
14396
14397         * prj-attr.adb: Make attribute Builder'Executable an associative array,
14398         case insensitive if file names are case insensitive, instead of a
14399         standard associative array.
14400
14401         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
14402         them as case insensitive on platforms where the file names are case
14403         sensitive.
14404
14405         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
14406         project file has already been parsed that canonical path are compared.
14407
14408 2004-02-23  Robert Dewar  <dewar@gnat.com>
14409
14410         * sinput-c.ads: Correct bad unit title in header
14411
14412         * freeze.adb: Minor reformatting
14413
14414 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14415
14416         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
14417         nonaddressable COMPONENT_REF that is removing padding that we are
14418         taking the address of, take the address of the padded record instead
14419         if item is variable size.
14420
14421 2004-02-20  Robert Dewar  <dewar@gnat.com>
14422
14423         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
14424
14425 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
14426
14427         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
14428         itype references for the constrained designated type of a component
14429         whose base type is already frozen.
14430
14431 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
14432
14433         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
14434         avoid GCC warnings.
14435
14436 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
14437
14438         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
14439         identifier for a phantom package that rewrites the formal package
14440         declaration with a box. The Add semantic decorations for the defining
14441         identifier from the original node (that represents the formal package).
14442
14443 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
14444
14445         * Make-lang.in (ada/stamp-sdefault): Use the top level
14446         move-if-change.
14447
14448 2004-02-19  Richard Henderson  <rth@redhat.com>
14449
14450         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
14451
14452 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
14453
14454         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
14455         Scan_ALI can be used for multiple ALI files without reinitializing
14456         between calls.
14457
14458 2004-02-18  Robert Dewar  <dewar@gnat.com>
14459
14460         * debug.adb: Minor reformatting.
14461
14462 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14463
14464         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
14465         to zero if there is an address clause.
14466
14467 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
14468
14469         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
14470
14471 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
14472
14473         * layout.adb (Layout_Component_List): Revise generation of call to
14474         discriminant-checking function to pass selections of all of the type's
14475         discriminants rather than just the variant-controlling discriminant.
14476
14477 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
14478
14479         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
14480         fail in the current setup and triggers spurious system error messages.
14481         Pretend it occurred and failed instead.
14482
14483 2004-02-18  Vincent Celier  <celier@gnat.com>
14484
14485         * bld.adb: Mark FLDFLAGS as saved
14486         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
14487         it is not the root project.  Put each directory to be
14488         extended between double quotes to prevent it to be expanded on Windows.
14489         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
14490         the project file. Set them back to their initial values if they have not
14491         been set in the project file.
14492
14493         * gprcmd.adb: (Gprdebug, Debug): New global variables
14494         (Display_Command): New procedure
14495         (Usage): Document new command "linkopts"
14496         Call Display_Command when env var GPRDEBUG has the value "TRUE"
14497         Implement new command "linkopts"
14498         Remove quotes that may be around arguments for "extend"
14499         Always call Normalize_Pathname with arguments formatted for the platform
14500
14501         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
14502         Change @echo to @$(display) in target clean to be able to clean silently
14503
14504         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
14505
14506         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
14507         canonical case.
14508
14509         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
14510         = Extending_All when current project is an extending all project.
14511
14512         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
14513         set to True only for LINK command, after Unix switch -o.
14514         (Process_Arguments): Set Output_File_Expected to True for LINK command
14515         after Unix switch -o. When Output_File_Expected is True, never add an
14516         extension to a file name.
14517
14518         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
14519         option file name, only to the --for-linker= switch.
14520         (Option_File_Name): If option file name do not end with ".opt", append
14521         "/OPTIONS".
14522
14523 2004-02-18  GNAT Script  <nobody@gnat.com>
14524
14525         * Make-lang.in: Makefile automatically updated
14526
14527 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
14528
14529         * Make-lang.in (stamp-sdefault): Do not depend on
14530         move-if-change.
14531
14532 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
14533
14534         * config-lang.in: Disable Ada by default until probe logic for
14535         a bootstrap Ada compiler can be moved to the top level configure
14536         script.
14537
14538 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
14539
14540         * decl.c (components_to_record): Don't claim that the internal fields
14541         we make to hold the variant parts are semantically addressable, because
14542         they are not.
14543
14544         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
14545         adjust the comment describing the modular type form when we can use it.
14546         (Install_PAT): Account for the Esiz renaming.
14547
14548         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
14549         sc_onstack context indication before raising the exception to which
14550         the signal is mapped. Allows better handling of later signals possibly
14551         triggered by the resumed user code if the exception is handled.
14552
14553 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
14554
14555         * 5zinit.adb: Removed, no longer used.
14556
14557 2004-02-12  Robert Dewar  <dewar@gnat.com>
14558
14559         * ali.adb: Remove separating space between parameters on R line. Makes
14560         format consistent with format used by the binder for Set_Globals call.
14561
14562         * atree.ads, atree.adb: Minor reformatting (new function header format)
14563
14564         * bindgen.adb: Add Run-Time Globals documentation section containing
14565         detailed documentation of the globals passed from the binder file to
14566         the run time.
14567
14568         * gnatls.adb: Minor reformatting
14569
14570         * init.c (__gnat_set_globals): Add note pointing to documentation in
14571         bindgen.
14572
14573         * lib-writ.ads, lib-writ.adb: Remove separating space between
14574         parameters on R line.
14575         Makes format consistent with format used by the binder for Set_Globals
14576         call.
14577
14578         * osint.ads: Add 2004 to copyright notice
14579         Minor reformatting
14580
14581         * snames.ads: Correct capitalization of FIFO_Within_Priorities
14582         Noticed during code reading, documentation issue only
14583
14584         * usage.adb: Remove junk line for obsolete C switch
14585         Noticed during code reading
14586
14587 2004-02-12  Vincent Celier  <celier@gnat.com>
14588
14589         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
14590         extend for each directory, so that multiple /** directories are
14591         extended individually.
14592         (Recursive_Process): Set the default for LANGUAGES to ada
14593
14594         * gprcmd.adb: Define new command "ignore", to do nothing.
14595         Implement new comment "path".
14596
14597         * Makefile.generic: Suppress output when SILENT is set
14598         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
14599         used, so that the correct compiler is invoked.
14600         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
14601         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
14602
14603 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
14604
14605         * Makefile.in: Clean ups and remove obsolete targets.
14606
14607 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
14608
14609         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
14610         predicate declared in exp_util.
14611
14612         * exp_util.adb: Add comments.
14613
14614         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
14615         visibility before compiling context of the subunit.
14616
14617         * sem_res.adb (Check_Parameterless_Call): If the context expects a
14618         value but the name is a procedure, do not attempt to analyze as a call,
14619         in order to obtain more telling diagnostics.
14620
14621         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
14622         'Access on parameterless function calls.
14623         (Normalize_Actuals): For a parameterless function call with missing
14624         actuals, defer diagnostic until resolution of enclosing call.
14625
14626         * sem_util.adb (Wrong_Type): If the context type is an access to
14627         subprogram and the expression is a procedure name, suggest a missing
14628         'attribute.
14629
14630 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
14631             Nathanael Nerode  <neroden@gcc.gnu.org>
14632
14633         PR ada/6637, PR ada/5911
14634         Merge with libada-branch:
14635         * config-lang.in: Build libada only when ada is built.
14636
14637 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
14638
14639         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
14640         for a tagged type, verify that both formals have the same type.
14641
14642         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
14643         temporary when the formal is an in-parameter and the actual a possibly
14644         unaligned slice.
14645
14646         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
14647         when expansion is disabled, to ensure proper name capture with
14648         overloaded literals.  Condition can be of any boolean type, resolve
14649         accordingly.
14650
14651         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
14652         renaming is for a formal subprogram with a default operator name, and
14653         there is a usable operator that is visible at the point of
14654         instantiation.
14655
14656 2004-02-09  Robert Dewar  <dewar@gnat.com>
14657
14658         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
14659         rewrite to ignore errors in ali files, intended to allow tools downward
14660         compatibility with new versions of ali files.
14661
14662         * ali.ads: Add new parameter Ignore_Errors
14663
14664         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
14665         duplicating the error message giving the file with restrictions.
14666
14667         * debug.adb: Add debug flag I for gnatbind
14668
14669         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
14670         operators for the case where the operator is a defining operator.
14671
14672         * exp_ch3.adb: Minor reformatting (new function spec format).
14673
14674         * exp_ch4.adb: Add comment for previous change, and make minor
14675         adjustment to loop to always check for improper loop termination.
14676         Minor reformatting throughout (new function spec format).
14677
14678         * gnatbind.adb: Implement -di debug flag for gnatbind
14679
14680         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
14681
14682         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
14683
14684         * lib-load.adb: Fix bad assertion.
14685         Found by testing and code reading.
14686         Minor reformatting.
14687
14688         * lib-load.ads: Minor reformatting.
14689
14690         * lib-writ.adb: There is only one R line now.
14691
14692         * lib-writ.ads: Add documentation on making downward compatible changes
14693         to ali files so old tools work with new ali files.
14694         There is only one R line now.
14695         Add documentation on format incompatibilities (with special GPS note)
14696
14697         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
14698
14699         * par-load.adb: Minor reformatting
14700
14701         * sem_ch8.adb: Fix to error message from last update
14702         Minor reformatting and restructuring of code from last update
14703
14704         * par-prag.adb, snames.adb, snames.ads, snames.h,
14705         sem_prag.adb: Implement pragma Profile.
14706
14707         * stylesw.adb: Implement -gnatyN switch to turn off all style check
14708         options.
14709
14710         * usage.adb: Add line for -gnatyN switch
14711
14712         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
14713
14714 2004-02-09  Albert Lee  <lee@gnat.com>
14715
14716         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
14717
14718 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
14719
14720         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
14721         slices.
14722
14723         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
14724         is nested in an instance that is not frozen yet, to avoid
14725         order-of-elaboration problems in gigi.
14726
14727         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
14728         body the attribute is legal.
14729
14730 2004-02-09  Robert Dewar  <dewar@gnat.com>
14731
14732         * s-rident.ads: Minor comment correction
14733
14734         * targparm.adb: Remove dependence on uintp completely. There was
14735         always a bug in Make in that it called Targparm before initializing
14736         the Uint package. The old code appeared to get away with this, but
14737         the new code did not! This caused an assertion error in gnatmake.
14738
14739         * targparm.ads: Fix bad comment, restriction pragmas with parameters
14740         are indeed fully supported.
14741
14742 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
14743
14744         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
14745
14746 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
14747
14748         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
14749         with targetm.calls.promote_prototypes.
14750
14751 2004-02-04  Robert Dewar  <dewar@gnat.com>
14752
14753         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
14754         ali.ads, gprcmd.adb: Minor reformatting
14755
14756         * bindgen.adb: Output restrictions string for new style restrictions
14757         handling
14758
14759         * impunit.adb: Add s-rident.ads (System.Rident) and
14760         s-restri (System.Restrictions)
14761
14762         * lib-writ.adb: Fix bug in writing restrictions string (last few
14763         entries wrong)
14764
14765         * s-restri.ads, s-restri.adb: Change name Restrictions to
14766         Run_Time_Restrictions to avoid conflict with package name.
14767         Add circuit to read and acquire run time restrictions.
14768
14769 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
14770
14771         * restrict.ads, restrict.adb: Use the new restriction
14772         No_Task_Attributes_Package instead of the old No_Task_Attributes.
14773
14774         * sem_prag.adb: No_Task_Attributes is a synonym of
14775         No_Task_Attributes_Package.
14776
14777         * snames.ads, snames.adb: New entry for proper handling of
14778         No_Task_Attributes.
14779
14780         * s-rident.ads: Adding restriction No_Task_Attributes_Package
14781         (AI-00249) that supersedes the GNAT specific restriction
14782         No_Task_Attributes.
14783
14784 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
14785
14786         * sem_prag.adb:
14787         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
14788          body, an identifier may be wrapped in an unchecked conversion.
14789
14790 2004-02-04  Vincent Celier  <celier@gnat.com>
14791
14792         * lib-writ.ads: Comment update for the W lines
14793
14794         * bld.adb: (Expression): An empty string list is static
14795
14796         * fname-uf.adb: Minor comment update
14797
14798         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
14799
14800         * gnatbind.adb: Initialize Cumulative_Restrictions with the
14801         restrictions on the target.
14802
14803 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
14804
14805         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
14806         gen_rtx.
14807
14808 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
14809
14810         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
14811
14812 2004-02-02  Vincent Celier  <celier@gnat.com>
14813
14814         * gprcmd.adb (Check_Args): If condition is false, print the invoked
14815         comment before the usage.
14816         Gprcmd: Fail when command is not recognized.
14817         (Usage): Document command "prefix"
14818
14819         * g-md5.adb (Digest): Process last block.
14820         (Update): Do not process last block. Store remaining characters and
14821         length in Context.
14822
14823         * g-md5.ads (Update): Document that several call to update are
14824         equivalent to one call with the concatenated string.
14825         (Context): Add fields to allow new Update behaviour.
14826
14827         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
14828         defaulted to False.
14829         When May_Fail is True and no existing file can be found, return No_File.
14830
14831         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
14832         functions.
14833
14834         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
14835         spec file name instead on the W line.
14836
14837 2004-02-02  Robert Dewar  <dewar@gnat.com>
14838
14839         * ali.adb: Read and acquire info from new format restrictions lines
14840
14841         * bcheck.adb: Add circuits for checking restrictions with parameters
14842
14843         * bindgen.adb: Output dummy restrictions data
14844         To be changed later
14845
14846         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
14847         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
14848         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
14849         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
14850         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
14851
14852         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
14853         the warning message on access to possibly uninitialized variable S)
14854         Minor changes for new restrictions handling.
14855
14856         * gnatbind.adb: Minor reformatting
14857         Minor changes for new restrictions handling
14858         Move circuit for -r processing here from bcheck (cleaner)
14859
14860         * gnatcmd.adb, gnatlink.adb: Minor reformatting
14861
14862         * lib-writ.adb: Output new format restrictions lines
14863
14864         * lib-writ.ads: Document new R format lines for new restrictions
14865         handling.
14866
14867         * s-restri.ads/adb: New files
14868
14869         * Makefile.rtl: Add entry for s-restri.ads/adb
14870
14871         * par-ch3.adb: Fix bad error messages starting with upper case letter
14872         Minor reformatting
14873
14874         * restrict.adb: Major rewrite throughout for new restrictions handling
14875         Major point is to handle restrictions with parameters
14876
14877         * restrict.ads: Major changes in interface to handle restrictions with
14878         parameters. Also generally simplifies setting of restrictions.
14879
14880         * snames.ads/adb: New entry for proper handling of No_Requeue
14881
14882         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
14883         restriction counting.
14884         Other minor changes for new restrictions handling
14885
14886         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
14887         Restriction_Warnings now allows full parameter notation
14888         Major rewrite of Restrictions for new restrictions handling
14889
14890 2004-02-02  Javier Miranda  <miranda@gnat.com>
14891
14892         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
14893         syntax rule for object renaming declarations.
14894         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
14895         component definitions.
14896
14897         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
14898         components.
14899         (Array_Type_Declaration): Give support to access components. In addition
14900         it was also modified to reflect the name of the object in anonymous
14901         array types. The old code did not take into account that it is possible
14902         to have an unconstrained anonymous array with an initial value.
14903         (Check_Or_Process_Discriminants): Allow access discriminant in
14904         non-limited types.
14905         (Process_Discriminants): Allow access discriminant in non-limited types
14906         Initialize the new Access_Definition field in N_Object_Renaming_Decl
14907         node.  Change Ada0Y to Ada 0Y in comments
14908
14909         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
14910         equality operators.
14911         Change Ada0Y to Ada 0Y in comments
14912
14913         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
14914         renamings Change Ada0Y to Ada 0Y in comments
14915
14916         * sem_type.adb (Find_Unique_Type): Give support to the equality
14917         operators for universal access types
14918         Change Ada0Y to Ada 0Y in comments
14919
14920         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
14921
14922         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
14923         field.
14924         (N_Object_Renaming_Declaration): Addition of Access_Definition field
14925         Change Ada0Y to Ada 0Y in comments
14926
14927         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
14928         component definition and object renaming nodes
14929         Change Ada0Y to Ada 0Y in comments
14930
14931 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
14932
14933         * restrict.adb: Use the new restriction identifier
14934         No_Requeue_Statements instead of the old No_Requeue for defining the
14935         restricted profile.
14936
14937         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
14938         No_Requeue_Statements.
14939
14940         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
14941         that supersedes the GNAT specific restriction No_Requeue. The later is
14942         kept for backward compatibility.
14943
14944 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
14945
14946         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
14947         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
14948         pragma and fix incorrect ones.
14949
14950         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
14951         warning if the pragma is redundant.
14952
14953 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
14954
14955         * 5staprop.adb: Add missing 'constant' keywords.
14956
14957         * Makefile.in: use consistent value for SYMLIB on
14958         platforms where libaddr2line is supported.
14959
14960 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14961
14962         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
14963         annotating types.
14964
14965 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
14966
14967         * init.c (__gnat_install_handler): Setup an alternate stack for signal
14968         handlers in the environment thread. This allows proper propagation of
14969         an exception on stack overflows in this thread even when the builtin
14970         ABI stack-checking scheme is used without support for a stack reserve
14971         region.
14972
14973         * utils.c (create_field_decl): Augment the head comment about bitfield
14974         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
14975         here, because the former is not accurate enough at this point.
14976         Let finish_record_type decide instead.
14977         Don't make a bitfield if the field is to be addressable.
14978         Always set a size for the field if the record is packed, to ensure the
14979         checks for bitfield creation are triggered.
14980         (finish_record_type): During last pass over the fields, clear
14981         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
14982         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
14983         from DECL_BIT_FIELD.
14984
14985 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
14986
14987         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
14988         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
14989         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
14990
14991 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14992
14993         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
14994
14995         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
14996         (ZCX_By_Default): Likewise.
14997         (Front_End_ZCX_Support): Likewise.
14998
14999         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
15000         (Initialize_Lock): Mark Level unreferenced.
15001         (Sleep): Mark Reason unreferenced.
15002         (Timed_Sleep): Likewise.
15003         (Wakeup): Likewise.
15004         (Exit_Task): Use Result.
15005         (Check_No_Locks): Mark Self_ID unreferenced.
15006
15007         * 5gtasinf.adb (New_Sproc): Make Attr constant.
15008         (Bound_Thread_Attributes): Make Sproc constant.
15009         (New_Bound_Thread_Attributes): Likewise.
15010
15011 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
15012
15013         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
15014         one-dimensional array an slice assignments, when component type is
15015         controlled.
15016
15017         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
15018         component type is controlled, and control_actions are in effect, use
15019         TSS procedure rather than generating inline code.
15020
15021         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
15022         arrays with controlled components.
15023
15024 2004-01-26  Vincent Celier  <celier@gnat.com>
15025
15026         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
15027         command line for the non VMS case.
15028
15029         * gnatlink.adb (Process_Binder_File): When building object file, if
15030         GNU linker is used, put all object paths between quotes, to prevent ld
15031         error when there are unusual characters (such as '!') in the paths.
15032
15033         * Makefile.generic: When there are sources in Ada and the main is in
15034         C/C++, invoke gnatmake with -B, instead of -z.
15035
15036         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
15037         from VMS_Conversion.
15038         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
15039         specification of argument file on the command line.
15040
15041 2004-01-26  Bernard Banner  <banner@gnat.com>
15042
15043         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
15044
15045 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
15046
15047         * snames.adb: Update copyright notice.
15048         Add info on slice assignment for controlled arrays.
15049
15050 2004-01-23  Robert Dewar  <dewar@gnat.com>
15051
15052         * exp_aggr.adb: Minor reformatting
15053
15054         * exp_ch9.adb: Minor code clean up
15055         Minor reformatting
15056         Fix bad character in comment
15057
15058         PR ada/13471
15059         * targparm.adb (Get_Target_Parameters): Give clean abort error on
15060         unexpected end of file, along with more detailed message.
15061
15062 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15063
15064         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
15065         PAT.
15066
15067         * decl.c (copy_alias_set): New function.
15068         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
15069
15070 2004-01-23  Doug Rupp  <rupp@gnat.com>
15071
15072         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
15073         lib$${file} in case subsequent character is not a separator.
15074
15075 2004-01-23  Vincent Celier  <celier@gnat.com>
15076
15077         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
15078         when the GCC version is at least 3.
15079
15080         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
15081         Remove all "Opt.", to prepare for opt split
15082
15083         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
15084         Extends_All. Set to True when the project parsed is an extending all
15085         project. Fails for importing an extending all project only when the
15086         imported project is an extending all project.
15087         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
15088         depending on the value of Extends_All returned.
15089
15090         * prj-proc.adb (Process): Check that no project shares its object
15091         directory with a project that extends it, directly or indirectly,
15092         including a virtual project.
15093         Check that no project extended by another project shares its object
15094         directory with another also extended project.
15095
15096         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
15097         Kind = N_With_Clause
15098
15099         * prj-tree.ads: Minor reformatting
15100         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
15101
15102 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
15103
15104         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
15105         applies to a type with an incomplete view, use full view in Name of
15106         clause, for consistency with uses of Get_Attribute_Definition_Clause.
15107
15108 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
15109
15110         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
15111         SCHED_RR, since other values are not supported by this policy.
15112         (Initialize): Move initialization of mutex attribute to package
15113         elaboration, to prevent early access to this variable.
15114
15115         * Makefile.in: Remove mention of Makefile.adalib, unused.
15116
15117         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
15118         1ssecsta.ads: Removed, unused.
15119
15120 2004-01-21  Javier Miranda  <miranda@gnat.com>
15121
15122         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
15123         entity if already built in the current scope.
15124
15125         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
15126         reminder in internal scopes. Required for nested limited aggregates.
15127
15128 2004-01-21  Doug Rupp  <rupp@gnat.com>
15129
15130         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
15131         VMS. Replace all occurences of libgnat- and libgnarl- with
15132         libgnat$(hyphen) and libgnarl$(hyphen).
15133         Fixed shared library build problem on VMS.
15134
15135 2004-01-21  Robert Dewar  <dewar@gnat.com>
15136
15137         * mlib-prj.adb: Minor reformatting
15138
15139 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
15140
15141         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
15142         'constant' keywords for declaration of pointers that are not modified.
15143
15144         * exp_pakd.adb: Fix English in comment.
15145
15146 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
15147
15148         PR ada/10889
15149         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
15150         copy all attributes of the parent, including the foreign language
15151         convention.
15152
15153 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
15154
15155         PR ada/10565
15156         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
15157         for 'delay until' statement.
15158
15159 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
15160
15161         * Make-lang.in: Replace $(docdir) with doc.
15162         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
15163         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
15164         to use consistent MAKEINFO rule.
15165         (ada.man, ada.srcman): Dummy entry.
15166         (ADA_INFOFILES): Define.
15167         (ada.info, ada.srcinfo): New rules.
15168
15169 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
15170
15171         * utils.c: Update copyright notice, missed in previous change.
15172
15173 2004-01-19  Vincent Celier  <celier@gnat.com>
15174
15175         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
15176         args if Bind is True. Set First_ALI, if not already done.
15177         (Build_Library): For Stand Alone Libraries, extract from one ALI file
15178         an eventual --RTS switch, for gnatbind, and all backend switches +
15179         --RTS, for linking.
15180
15181 2004-01-19  Robert Dewar  <dewar@gnat.com>
15182
15183         * sem_attr.adb, memtrack.adb: Minor reformatting
15184
15185 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
15186
15187         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
15188         that rename enumeration literals. This is properly done in sem_eval.
15189
15190         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
15191         to functions that rename enumeration literals.
15192
15193         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
15194         functions that rename enumeration literals.
15195
15196 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
15197
15198         * Make-lang.in (utils.o): Depend on target.h.
15199         * utils.c: Include target.h.
15200         (process_attributes): Use targetm.have_named_sections instead
15201         of ASM_OUTPUT_SECTION_NAME.
15202
15203 2004-01-16  Andreas Jaeger  <aj@suse.de>
15204
15205         * Makefile.in: Add $(DESTDIR).
15206
15207 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
15208
15209         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
15210         also when not defining if a Size clause applies. That information is
15211         not to be ignored.
15212
15213 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
15214
15215         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
15216         symbolic links for the shared gnat run time when needed.
15217
15218 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
15219
15220         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
15221         for writing, and terminate with an error message if not.
15222
15223 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
15224
15225         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
15226         warning on an access to subprogram in an instance, when the target
15227         type is declared in the same generic unit.
15228         (Eval_Attribute): If 'access is known to fail accessibility check,
15229         rewrite as a raise statement.
15230
15231 2004-01-15  GNAT Script  <nobody@gnat.com>
15232
15233         * Make-lang.in: Makefile automatically updated
15234
15235 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
15236
15237         * Make-lang.in (ada.srcextra): Dummy entry.
15238
15239 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
15240
15241         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
15242
15243 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
15244
15245         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
15246         components that are initialized with aggregates.
15247
15248 2004-01-13  Vincent Celier  <celier@gnat.com>
15249
15250         * gnatlink.adb (Process_Binder_File): To find directory of shared
15251         libgcc, if "gcc-lib" is not a subdirectory, look for the last
15252         subdirectory "lib" in the path of the shared libgnat or libgnarl.
15253
15254         * make.adb (Gnatmake): If GCC version is at least 3, link with
15255         -shared-libgcc, when there is at least one shared library project.
15256
15257         * opt.ads (GCC_Version): New integer constant.
15258
15259         * adaint.c (get_gcc_version): New function.
15260
15261 2004-01-13  Robert Dewar  <dewar@gnat.com>
15262
15263         * sem_dist.adb, sem_res.adb, sem_util.adb,
15264         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
15265         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
15266
15267 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
15268
15269         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
15270         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
15271         declarations.
15272
15273 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
15274
15275         * misc.c: Remove trailing spaces.
15276         Update copyright notice missed in previous change.
15277
15278         PR ada/13572
15279         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
15280         prefix/share/make
15281
15282         * Makefile.generic: Update copyright.
15283         Add license notice.
15284
15285         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
15286         of prefix/share/make.
15287
15288         * Makefile.prolog: Update copyright.
15289         Add license notice.
15290
15291 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
15292
15293         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
15294         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
15295         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
15296         instead of String.
15297
15298         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
15299         signature.
15300
15301 2004-01-12  Javier Miranda  <miranda@gnat.com>
15302
15303         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
15304         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
15305         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
15306         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
15307         Component_Definition node.
15308
15309 2004-01-12  Ed Falis  <falis@gnat.com>
15310
15311         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
15312
15313 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
15314
15315         * link.c: Change default libgnat kind to STATIC for FreeBSD.
15316
15317 2004-01-12  Bernard Banner  <banner@gnat.com>
15318
15319         * Makefile.in: map 86numaux to a-numaux for x86_64
15320
15321 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
15322
15323         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
15324         generated to rename a generic actual, go to the actual itself, the
15325         subtype is not a user-visible entity.
15326
15327         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
15328         part is a private subtype, reset the visibility of its full view, if
15329         any, to be consistent.
15330
15331         PR ada/13417
15332         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
15333         to use a generic package G as a formal package for another generic
15334         declared within G.
15335
15336 2004-01-12  Robert Dewar  <dewar@gnat.com>
15337
15338         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
15339
15340         * usage.adb: Remove mention of obsolete -gnatwb switch
15341         Noticed during code reading
15342
15343 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
15344
15345         * 1ssecsta.adb: Minor changes for -gnatwa warnings
15346
15347 2004-01-12  GNAT Script  <nobody@gnat.com>
15348
15349         * Make-lang.in: Makefile automatically updated
15350
15351 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
15352
15353         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
15354
15355 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15356
15357         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
15358
15359 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
15360
15361         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
15362         Update comment and copyright date.
15363         * stamp-xgnatug: Delete.
15364
15365 2004-01-05  Robert Dewar  <dewar@gnat.com>
15366
15367         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
15368         be modified by the binder generated main program if the -D switch is
15369         used.
15370
15371         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
15372         imported functions (since now we expect this to be done for imported
15373         functions)
15374
15375         * 5vtaprop.adb: Add several ??? for sections requiring more comments
15376         Minor reformatting throughout
15377
15378         * 5zinit.adb: Minor reformatting
15379         Add 2004 to copyright date
15380         Minor changes to avoid -gnatwa warnings
15381         Correct some instances of using OR instead of OR ELSE (noted while
15382         doing reformatting)
15383
15384         * sprint.adb: Minor updates to avoid -gnatwa warnings
15385
15386         * s-secsta.ads, s-secsta.adb:
15387         (SS_Get_Max): New function to obtain high water mark for ss stack
15388         Default_Secondary_Stack is not a constant since it may be modified by
15389         the binder generated main program if the -D switch is used.
15390
15391         * switch-b.adb: New -Dnnn switch for binder
15392
15393         * switch-c.adb:
15394         Make -gnatg imply all warnings currently in -gnatwa
15395
15396         * vms_conv.adb: Minor reformatting
15397         Add 2004 to copyright notice
15398         Add 2004 to printed copyright notice
15399
15400         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
15401         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
15402         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
15403         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
15404         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
15405         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
15406         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
15407         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
15408         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
15409         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
15410         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
15411         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
15412         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
15413         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
15414         checks.adb, clean.adb, cstand.adb, einfo.ads,
15415         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
15416         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
15417         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
15418         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
15419         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
15420         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
15421         Minor reformatting and code clean ups.
15422         Minor changes to prevent -gnatwa warnings
15423
15424         * ali.adb: Minor reformatting and cleanup of code
15425         Acquire new SS indication of secondary stack use from ali files
15426
15427         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
15428         (since now we expect this to be done for imported functions)
15429
15430         * bindgen.adb: Generate call to modify default secondary stack size if
15431         -Dnnn switch given
15432
15433         * bindusg.adb: Add line for new -D switch
15434
15435         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
15436         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
15437         Add circuitry for both records and arrays to avoid gigi
15438         processing if the type involved has non-bit-aligned components
15439
15440         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
15441         N_String_Literal node always references an E_String_Literal_Subtype
15442         entity. This may not be true in the future.
15443         (Possible_Bit_Aligned_Component): Move processing of
15444         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
15445
15446         * exp_ch6.adb (Expand_Thread_Body): Pick up
15447         Default_Secondary_Stack_Size as variable so that we get value modified
15448         by possible -Dnnn binder parameter.
15449
15450         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
15451         (Type_May_Have_Bit_Aligned_Components): New function.
15452
15453         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
15454         (Type_May_Have_Bit_Aligned_Components): New function.
15455
15456         * fe.h: (Set_Identifier_Casing): Fix prototype.
15457         Add declaration for Sem_Elim.Eliminate_Error_Msg.
15458         Minor reformatting.
15459
15460         * freeze.adb (Freeze_Entity): Add RM reference to error message about
15461         importing constant atomic/volatile objects.
15462         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
15463         unless explicit Pure_Function pragma given, to avoid insidious bug of
15464         call to non-pure imported function getting eliminated.
15465
15466         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
15467         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
15468         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
15469         Add 2004 to printed copyright notice
15470
15471         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
15472         stack used.
15473
15474         * Makefile.rtl: Add entry for g-sestin.o
15475         g-sestin.ads: New file.
15476
15477         * mdll.adb: Minor changes to avoid -gnatwa warnings
15478
15479         * mlib-tgt.adb: Minor reformatting
15480
15481         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
15482         New switch Sec_Stack_Used (GNAT, GNATBIND)
15483         Make Default_Secondary_Stack_Size a variable instead of a constant,
15484         so that it can be modified by the new -Dnnn bind switch.
15485
15486         * rtsfind.adb (Load_Fail): Give full error message in configurable
15487         run-time mode if all_errors mode is set. This was not done in the case
15488         of a file not found, which was an oversight.
15489         Note if secondary stack unit is used by compiler.
15490
15491         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
15492         ineffective elaborate all pragmas on non-visible packages (this
15493         happened when a renamed subprogram was called). Now the elaborate all
15494         always goes on the package containing the renaming rather than the one
15495         containing the renamed subprogram.
15496
15497         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
15498         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
15499
15500         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
15501         has an Etype that references an E_String_Literal.
15502         (Eval_String_Literal): Avoid assumption that N_String_Literal node
15503         always references an E_String_Literal_Subtype entity. This may not
15504         be true in the future.
15505
15506         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
15507         pragma location.
15508
15509         * sem_res.adb (Resolve): Specialize msg for function name used in proc
15510         call.
15511
15512 2004-01-05  Ed Falis  <falis@gnat.com>
15513
15514         * g-debuti.adb: Replaced direct boolean operator with short-circuit
15515         form.
15516
15517 2004-01-05  Vincent Celier  <celier@gnat.com>
15518
15519         * bld.adb: Minor comment updates
15520         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
15521         of Item_Name).
15522
15523         * make.adb (Gnatmake): Special process for files to compile/check when
15524         -B is specified. Fail when there are only foreign mains in attribute
15525         Main of the project file and -B is not specified. Do not skip bind/link
15526         steps when -B is specified.
15527
15528         * makeusg.adb: Document new switch -B
15529
15530         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
15531
15532         * switch-m.adb: (Scan_Make_Switches): Process -B switch
15533
15534         * vms_data.ads: Add new GNAT PRETTY qualifier
15535         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
15536
15537 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15538
15539         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
15540         case.
15541
15542         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
15543         Set_Identifier_Casing.
15544
15545         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
15546         has size that overflows.
15547
15548 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
15549
15550         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
15551         -gnatwa warning on static condition.
15552
15553 2004-01-05  Doug Rupp  <rupp@gnat.com>
15554
15555         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
15556
15557 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
15558
15559         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
15560         all attributes, including read-only attribute.
15561
15562 2004-01-05  Pascal Obry  <obry@gnat.com>
15563
15564         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
15565         library naming scheme.
15566
15567         * mlib-prj.adb (Build_Library): Generate different names for the static
15568         or dynamic version of the GNAT runtime. This is needed to support the
15569         new shared library naming scheme.
15570         (Process_Binder_File): Add detection of shared library in binder file
15571         based on the new naming scheme.
15572
15573         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
15574         scheme for the shared runtime libraries.
15575
15576         * Makefile.in:
15577         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
15578         scheme.
15579         (install-gnatlib): Do not create symlinks for shared libraries.
15580         (gnatlib-shared-default): Idem.
15581         (gnatlib-shared-dual-win32): New target. Not used for now as the
15582         auto-import feature does not support arrays/records.
15583         (gnatlib-shared-win32): Do not create copy for the shared libraries.
15584         (gnatlib-shared-vms): Fix shared runtime libraries names.
15585
15586         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
15587         dependent runtime shared library name.
15588
15589 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
15590
15591         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
15592         than the object.
15593
15594 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
15595
15596         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
15597         protected objects when allocator has a subtype indication, not a
15598         qualified expression. Note that qualified expressions may have to be
15599         checked when limited aggregates are implemented.
15600
15601         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
15602         pure, emit warning.
15603         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
15604         subprogram is imported, remove warning.
15605
15606 2004-01-05  Geert Bosch  <bosch@gnat.com>
15607
15608         * s-poosiz.adb: Update copyright notice.
15609         (Allocate): Use Task_Lock to protect against concurrent access.
15610         (Deallocate): Likewise.
15611
15612 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
15613
15614         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
15615         comment.
15616
15617 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
15618
15619         * gnat_ug.texi: Force a CVS commit by updating copyright.
15620         * gnat_ug_vxw.texi: Regenerate.
15621         * gnat_ug_wnt.texi: Regenerate.
15622         * gnat_ug_vms.texi: Regenerate.
15623         * gnat_ug_unx.texi: Regenerate.
15624
15625 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
15626
15627         * trans.c: Remove uses of "register" specifier in
15628         declarations of local variables.
15629
15630 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
15631
15632         * stamp-xgnatug: New stamp file.
15633         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
15634         (ada/doctools/xgnatug): Add $(build_exeext).
15635         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
15636         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
15637
15638 2003-12-17  Ed Falis  <falis@gnat.com>
15639
15640         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
15641         eliminate warning.
15642
15643         * a-exextr.adb: Add context clause for
15644         Ada.Exceptions.Last_Chance_Handler.
15645
15646 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
15647
15648         * cstand.adb (Create_Standard): Change the way how the declaration of
15649         the Duration type is created (making it the same way as it is for all
15650         the other standard types).
15651
15652 2003-12-17  Robert Dewar  <dewar@gnat.com>
15653
15654         * s-crtl.ads: Fix header format
15655         Change Pure to Preelaborate
15656
15657 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
15658
15659         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
15660         the expression type only if it is declared in the current unit.
15661
15662         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
15663         are universal and already analyzed, as can occur in constrained
15664         subcomponents that depend on discriminants, when one constraint is a
15665         subtype mark.
15666
15667         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
15668         type Any_Fixed is legal as the argument of a conversion, if only one
15669         fixed-point type is in context.
15670
15671 2003-12-17  GNAT Script  <nobody@gnat.com>
15672
15673         * Make-lang.in: Makefile automatically updated
15674
15675 2003-12-15  Robert Dewar  <dewar@gnat.com>
15676
15677         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
15678         sec stack size.
15679
15680 2003-12-15  Vincent Celier  <celier@gnat.com>
15681
15682         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
15683         (Gnatchop): Do not set failure status when reporting the number of
15684         warnings.
15685
15686 2003-12-15  Doug Rupp  <rupp@gnat.com>
15687
15688         * s-ctrl.ads: New file.
15689
15690         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
15691
15692         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
15693         (GNATBIND_OBJS): Add ada/s-crtl.o.
15694
15695         * Makefile.in [VMS]: Clean up ifeq rules.
15696
15697         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
15698         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
15699         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
15700         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
15701         s-tasdeb.adb: Update copyright.
15702         Import System.CRTL.
15703         Make minor modifications to use System.CRTL declared functions instead
15704         of importing locally.
15705
15706 2003-12-15  GNAT Script  <nobody@gnat.com>
15707
15708         * Make-lang.in: Makefile automatically updated
15709
15710 2003-12-11  Ed Falis  <falis@gnat.com>
15711
15712         * 5zinit.adb: Clean up.
15713
15714         * 5zintman.adb (Notify_Exception): replaced case statement with a call
15715         to __gnat_map_signal, imported from init.c to support
15716         signal -> exception mappings that depend on the vxWorks version.
15717
15718         * init.c:
15719         Created and exported __gnat_map_signal to support signal -> exception
15720         mapping that is dependent on the VxWorks version.
15721         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
15722
15723 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
15724
15725         * 5wosinte.ads: Link with -mthreads switch.
15726
15727 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
15728
15729         * init.c (__gnat_install_handler [NetBSD]): Set
15730         __gnat_handler_installed, as done on all other platforms.
15731         Remove duplicated code.
15732
15733 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
15734
15735         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
15736
15737 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
15738
15739         * sinfo.ads: Fix inconsistent example code in comment.
15740
15741 2003-12-11  Robert Dewar  <dewar@gnat.com>
15742
15743         * a-tiinau.adb: Add a couple of comments
15744
15745         * sem_ch3.adb: Minor reformatting
15746
15747         * sem_prag.adb:
15748         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
15749         Minor reformatting throughout
15750
15751 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
15752
15753         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
15754         bounds of a loop, create a separate block in order to generate proper
15755         cleanup actions to prevent memory leaks.
15756
15757         * sem_res.adb (Resolve_Call): After a call to
15758         Establish_Transient_Scope, the call may be rewritten and relocated, in
15759         which case no further processing is needed.
15760
15761         * sem_util.adb: (Wrong_Type): Refine previous fix.
15762          Fixes ACATS regressions.
15763
15764         PR ada/13353
15765
15766         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
15767         be inlined.
15768
15769 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
15770
15771         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
15772         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
15773         obsolete files.
15774
15775         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
15776         (rts-zfp): Ditto.
15777
15778 2003-12-08  Robert Dewar  <dewar@gnat.com>
15779
15780         * 7sintman.adb: Minor reformatting
15781
15782         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
15783         standard linker options to get standard libraries linked. We now plan
15784         to provide dummy versions of these libraries to match the appropriate
15785         configurable run-time (e.g. if a library is not needed at all, provide
15786         a dummy empty library).
15787
15788         * targparm.ads: Configurable_Run_Time mode no longer affects linker
15789         options (-L parameters and standard libraries). What we plan to do is
15790         to provide dummy libraries where the libraries are not required.
15791
15792         * gnatbind.adb: Minor comment improvement
15793
15794 2003-12-08  Javier Miranda  <miranda@gnat.com>
15795
15796         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
15797         aggregate in the parent. Otherwise constants with limited aggregates
15798         are not supported. Add new formal to pass the component type (Ctype).
15799         It is required to call the corresponding IP subprogram in case of
15800         default initialized components.
15801         (Gen_Assign): In case of default-initialized component, generate a
15802         call to the IP subprogram associated with the component.
15803         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
15804         of aggregate with default initialized components.
15805         (Has_Default_Init_Comps): Improve implementation to recursively check
15806         all the present expressions.
15807
15808         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
15809         to indicate that the initialization call corresponds to a
15810         default-initialized component of an aggregate.
15811         In case of default initialized aggregate with tasks this parameter is
15812         used to generate a null string (this is just a workaround that must be
15813         improved later). In case of discriminants, this parameter is used to
15814         generate a selected component node that gives access to the discriminant
15815         value.
15816
15817         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
15818         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
15819         allocated aggregates with default-initialized components.
15820
15821         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
15822         the box notation is used in positional aggregates.
15823
15824 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
15825
15826         * lib.ads: Fix typo in comment
15827
15828 2003-12-08  Vincent Celier  <celier@gnat.com>
15829
15830         * prj.adb (Project_Empty): New component Unkept_Comments
15831         (Scan): Remove procedure; moved to Prj.Err.
15832
15833         * prj.ads (Project_Data): New Boolean component Unkept_Comments
15834         (Scan): Remove procedure; moved to Prj.Err.
15835
15836         * prj-dect.adb: Manage comments for the different declarations.
15837
15838         * prj-part.adb (With_Record): New component Node
15839         (Parse): New Boolean parameter Store_Comments, defaulted to False.
15840         Set the scanner to return ends of line and comments as tokens, if
15841         Store_Comments is True.
15842         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
15843         comments are associated with these nodes. Store the node IDs in the
15844         With_Records.
15845         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
15846         With_Records.
15847         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
15848         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
15849         current project. Call Tree.Restore afterwards. Set the various nodes
15850         for comment storage (Next_End, End_Of_Line, Previous_Line,
15851         Previous_End).
15852
15853         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
15854         defaulted to False.
15855
15856         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
15857         to False. When Truncated is True, truncate the string, never go to the
15858         next line.
15859         (Write_End_Of_Line_Comment): New procedure
15860         (Print): Process comments for nodes N_With_Clause,
15861         N_Package_Declaration, N_String_Type_Declaration,
15862         N_Attribute_Declaration, N_Typed_Variable_Declaration,
15863         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
15864         Process nodes N_Comment.
15865
15866         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
15867         without comments and there are some comments, set the flag
15868         Unkept_Comments to True.
15869         (Scan): If there are comments, set the flag Unkept_Comments to True and
15870         clear the comments.
15871         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
15872         (Next_End_Nodes: New table
15873         (Comment_Zones_Of): New function
15874         (Scan): New procedure; moved from Prj. Accumulate comments in the
15875         Comments table and set end of line comments, comments after, after end
15876         and before end.
15877         (Add_Comments): New procedure
15878         (Save, Restore, Seset_State): New procedures
15879         (There_Are_Unkept_Comments): New function
15880         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
15881         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
15882         procedures.
15883         (First_Comment_After, First_Comment_After_End): New functions
15884         (First_Comment_Before, First_Comment_Before_End): New functions
15885         (Next_Comment): New function
15886         (End_Of_Line_Comment, Follows_Empty_Line,
15887         Is_Followed_By_Empty_Line): New functions
15888         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
15889         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
15890         (Set_Next_Comment): New procedure
15891         (Default_Project_Node): Associate comment before if the node can store
15892         comments.
15893
15894         * scans.ads (Token_Type): New enumeration value Tok_Comment
15895         (Comment_Id): New global variable
15896
15897         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
15898         defaulted to False.
15899         (Scan): Store position of start of comment. If comments are tokens, set
15900         Comment_Id and set Token to Tok_Comment when scanning a comment.
15901         (Set_Comment_As_Token): New procedure
15902
15903         * sinput-p.adb: Update Copyright notice
15904         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
15905         that no longer exists.
15906
15907 2003-12-08  Javier Miranda  <miranda@gnat.com>
15908
15909         * sem_aggr.adb: Add dependence on Exp_Tss package
15910         Correct typo in comment
15911         (Resolve_Aggregate): In case of array aggregates set the estimated
15912         type of the aggregate before calling resolve. This is needed to know
15913         the name of the corresponding IP in case of limited array aggregates.
15914         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
15915         in case of default initialized array components.
15916
15917         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
15918         types. Required to give support to limited aggregates in generic
15919         formals.
15920
15921 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
15922
15923         * sem_ch3.adb (Check_Initialization): For legality purposes, an
15924         inlined body functions like an instantiation.
15925         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
15926         until bounds are analyzed, to diagnose premature use of type.
15927
15928         * sem_util.adb (Wrong_Type): Improve error message when the type of
15929         the expression is used prematurely.
15930
15931 2003-12-08  GNAT Script  <nobody@gnat.com>
15932
15933         * Make-lang.in: Makefile automatically updated
15934
15935 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
15936
15937         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
15938         they are automatically generated by Make-lang.in and cause nothing but
15939         maintenance troubles.
15940
15941 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
15942
15943         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
15944         version of this unit).
15945
15946 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
15947
15948         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
15949         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
15950         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
15951         the body of System.Interrupt_Management common to several targets.
15952         Update copyright notice when appropriate.
15953
15954         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
15955         constant.
15956
15957         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
15958         to ensure that the kernel fills in the interrupted context structure
15959         before calling a signal handler, which is necessary to be able to
15960         unwind past it. Update the copyright notice.
15961
15962 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
15963
15964         * a-elchha.ads: New file.
15965
15966         * a-elchha.adb: New default last chance handler. Contents taken from
15967         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
15968
15969         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
15970         is moved to a-elchha.adb to provide a target-independent default last
15971         chance handler.
15972
15973         * Makefile.rtl: Add a-elchha.o
15974
15975         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
15976
15977 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
15978
15979         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
15980         declared in an instance, do not inline the call if the instance is not
15981         frozen yet, to prevent order of elaboration problems.
15982
15983         * sem_prag.adb: Add comments for previous fix.
15984
15985 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
15986
15987         * g-table.adb: Use the right variable in Set_Item.
15988         Update copyright notice.
15989
15990 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
15991
15992         * Makefile.in: Remove unused rules.
15993
15994 2003-12-05  Vincent Celier  <celier@gnat.com>
15995
15996         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
15997         -nostdlib. Not needed here after all.
15998
15999 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
16000
16001         PR ada/11724
16002
16003         * adaint.h, adaint.c, g-os_lib.ads:
16004         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
16005         on some platforms (including FreeBSD), it is a 64 bit value.
16006         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
16007
16008 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
16009
16010         * gnatvsn.ads (Library_Version): Now contain only the relevant
16011         version info.
16012         (Verbose_Library_Version): New constant.
16013
16014         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
16015         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
16016         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
16017
16018         * gnatlbr.adb: Clean up: replace Library_Version by
16019         Verbose_Library_Version.
16020
16021         * make.adb, lib-writ.adb, exp_attr.adb:
16022         Clean up: replace Library_Version by Verbose_Library_Version.
16023
16024         * 5lintman.adb: Removed.
16025
16026         * Makefile.in:
16027         Update and simplify computation of LIBRARY_VERSION.
16028         Fix computation of GSMATCH_VERSION.
16029         5lintman.adb is no longer used: replaced by 7sintman.adb.
16030
16031 2003-12-03  Robert Dewar  <dewar@gnat.com>
16032
16033         * exp_ch5.adb:
16034         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
16035         name. Modified to consider small non-bit-packed arrays as troublesome
16036         and in need of component-by-component assigment expansion.
16037
16038 2003-12-03  Vincent Celier  <celier@gnat.com>
16039
16040         * lang-specs.h: Process nostdlib as nostdinc
16041
16042         * back_end.adb: Update Copyright notice
16043         (Scan_Compiler_Arguments): Process -nostdlib directly.
16044
16045 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
16046
16047         * Makefile.in:
16048         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
16049         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
16050         included in HIE_NONE_TARGET_PAIRS.
16051
16052 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
16053
16054         * sem_attr.adb:
16055         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
16056         is legal in an instance, because legality is cheched in the template.
16057
16058         * sem_prag.adb:
16059         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
16060         appplied to an unchecked conversion of a formal parameter.
16061
16062         * sem_warn.adb:
16063         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
16064         variables.
16065
16066 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
16067
16068         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
16069         routines. The second one is new functionality to deal with backtracing
16070         through signal handlers.
16071         (unwind): Split into the two separate subroutines above.
16072         Update the documentation, and deal properly with sizeof (REG) different
16073         from sizeof (void*).
16074
16075 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
16076
16077         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
16078         so that the debugger can reliably access the value of the parameter,
16079         and therefore is able to display the exception name when an exception
16080         breakpoint is reached.
16081
16082 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
16083
16084         * fmap.adb: Fix typo in warning message.
16085
16086         * g-socket.ads, g-socket.adb: Make Free a visible instance of
16087         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
16088
16089 2003-12-01  Vincent Celier  <celier@gnat.com>
16090
16091         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
16092         ther is no Afile.
16093         (Build_Library): Get the switches only if Default_Switches is declared
16094         in package Binder.
16095
16096 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
16097
16098         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
16099         actuals that are indexed components, reanalyze actual to ensure that
16100         packed array references are properly expanded.
16101
16102         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
16103         attempted assignment to a discriminant.
16104
16105 2003-12-01  Robert Dewar  <dewar@gnat.com>
16106
16107         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
16108         reformatting.
16109
16110         * switch-c.adb: Minor reformatting of comments
16111
16112 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
16113
16114         * Makefile.in: Clean ups.
16115
16116 2003-12-01  GNAT Script  <nobody@gnat.com>
16117
16118         * Make-lang.in: Makefile automatically updated
16119
16120 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
16121
16122         * 5wsystem.ads: Disable zero cost exception, not ready yet.
16123
16124 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
16125
16126         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
16127         to force serialization.
16128
16129 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
16130
16131         * g-socket.ads, g-socket.adb:
16132         Clarify documentation of function Stream. Introduce a Free procedure
16133         to release the returned Stream once it becomes unused.
16134
16135         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
16136
16137 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
16138
16139         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
16140         since NT 4 cannot handle timeout values that are too large,
16141         e.g. DWORD'Last - 1.
16142
16143 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
16144
16145         * exp_ch4.adb:
16146         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
16147         in procedure calls and whose expansion must be deferred.
16148
16149         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
16150         is in exp_ch4.
16151
16152         * sem_ch3.adb:
16153         (Build_Derived_Array_Type): Create operator for unconstrained type
16154         if ancestor is unconstrained.
16155
16156 2003-11-26  Vincent Celier  <celier@gnat.com>
16157
16158         * make.adb (Project_Object_Directory): New global variable
16159         (Change_To_Object_Directory): New procedure
16160         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
16161         of Change_Dir directly. Do not change working directory to object
16162         directory of main project after each compilation.
16163         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
16164         directly.
16165         Change to object directory of main project before binding step.
16166         (Initialize): Initialize Project_Object_Directory to No_Project
16167
16168         * mlib-prj.adb:
16169         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
16170         binding a Stand-Alone Library.
16171
16172         * output.adb: Update Copyright notice
16173         (Write_Char): Output buffer when full
16174
16175 2003-11-26  Robert Dewar  <dewar@gnat.com>
16176
16177         * sem_ch13.adb: (Check_Size): Reset size if size is too small
16178
16179         * sem_ch13.ads:
16180         (Check_Size): Fix documentation to include bit-packed array case
16181
16182         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
16183
16184         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
16185
16186         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
16187
16188 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
16189
16190         PR ada/13142
16191         * utils.c (init_gigi_decls): Change name of built-in setjmp to
16192         __builtin_setjmp, since this is apparently needed by recent
16193         non Ada changes.
16194
16195 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16196
16197         * adadecode.c: Only include ctype.h if not IN_GCC.
16198         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
16199
16200 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
16201
16202         * Makefile.in:
16203         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
16204         signals and interrupts.
16205
16206         * 5zintman.ads: New File.
16207
16208         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
16209         add exception signals to the set of unmasked signals.
16210
16211         * 5ztaprop.adb:
16212         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
16213         between signals and interrupts.
16214         Add to Unblocked_Signal_Mask the set of signals that are in
16215         Keep_Unmasked.
16216
16217         * 7sinmaop.adb:
16218         Adding a check to see whether the Interrupt_ID we want to unmask is in
16219         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
16220         reason is that the index type of the Keep_Unmasked array is not always
16221         Interrupt_ID; it may be a subtype of Interrupt_ID.
16222
16223 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
16224
16225         * exp_util.adb:
16226         (Remove_Side_Effects): Condition constantness of object created for a
16227          an unchecked type conversion on the constantness of the expression
16228          to ensure the correct value for 'Constrained when passing components
16229          of view-converted class-wide objects.
16230
16231 2003-11-24  Robert Dewar  <dewar@gnat.com>
16232
16233         * par-load.adb (Load): Improve handling of misspelled and missing units
16234         Removes several cases of compilation abandoned messages
16235
16236         * lib.adb: (Remove_Unit): New procedure
16237
16238         * lib.ads: (Remove_Unit): New procedure
16239
16240         * lib-load.adb: Minor reformatting
16241
16242 2003-11-24  Vincent Celier  <celier@gnat.com>
16243
16244         * make.adb:
16245         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
16246         (Marking_Label): Label to mark processed source files. Incremented for
16247         each executable.
16248         (Gnatmake): Increase Marking_Labet for each executable
16249         (Is_Marked): Compare against marking label
16250         (Mark): Mark with marking label
16251
16252 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
16253
16254         * s-thread.ads:
16255         Move the declaration of the TSD for System.Threads to System.Soft_Links.
16256         Add some comments.
16257
16258         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
16259         (rts-cert): build a single relocatable object for the run-time lib.
16260         Fix perms.
16261
16262 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
16263
16264         * Make-lang.in:
16265         Use gnatls rather than gcc to obtain the location of GNAT RTL for
16266         crosstools build.
16267
16268 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
16269
16270         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
16271         can not use it as before (that is, as a variable) when dumping it into
16272         the tree file. Add a local variable to store the result of this
16273         function and to be used as the string to be written into the tree.
16274
16275         * scn.adb (Initialize_Scanner): Add comments explaining the recent
16276         changes.
16277
16278         * sinput.adb (Source_First, Source_Last): In case of
16279         Internal_Source_File, replace returning attributes of
16280         Internal_Source_Ptr (which is wrong) with returning attributes of
16281         Internal_Source.
16282
16283 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
16284
16285         * sem_ch3.adb:
16286         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
16287         used for implicit concatenation operators.
16288         Code cleanup.
16289
16290         * sem_elab.adb:
16291         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
16292         task bodies that are in the scope of a Suppress pragma.
16293         (Check_A Call): Use the flag to prevent spurious elaboration checks.
16294
16295         * sinfo.ads, sinfo.adb:
16296         New flag No_Elaboration_Check on function/procedure calls, to properly
16297         suppress checks on calls in task bodies that are within a local suppress
16298         pragma.
16299
16300         * exp_ch4.adb:
16301         (Expand_Concatenate_Other): Use the proper integer type for the
16302         expression for the upper bound, to avoid universal_integer computations
16303         when possible.
16304
16305 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
16306
16307         * .cvsignore: Delete.
16308
16309 2003-11-21  Andreas Schwab  <schwab@suse.de>
16310
16311         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
16312
16313 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
16314
16315         * 5wsystem.ads: Enable zero cost exception.
16316
16317 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
16318
16319         * 5ztiitho.adb: Remove an unreferenced variable.
16320
16321 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
16322
16323         * adaint.c: For FreeBSD, use mkstemp.
16324
16325 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
16326
16327         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
16328
16329 2003-11-21  Robert Dewar  <dewar@gnat.com>
16330
16331         * bld.adb: Remove useless USE of gnatvsn
16332
16333         * gnatchop.adb: Minor reformatting
16334         Clean up version handling to be more consistent
16335
16336         * gnatxref.adb: Minor reformatting
16337
16338         * gprcmd.adb: Minor reformatting
16339         Fix output of copyright to be more consistent with other tools
16340
16341 2003-11-21  Vincent Celier  <celier@gnat.com>
16342
16343         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
16344
16345 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
16346
16347         * atree.adb (Initialize): Add initializations for global variables
16348         used in New_Copy_Tree.
16349
16350         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
16351         Internal_Source_File as the actual).
16352         Put the set of statements creating Any_Character before the set of
16353         statements creating Any_Array to have Any_Character fully initialized
16354         when it is used in creating Any_Array.
16355
16356         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
16357         not call Scan in case if the actual is Internal_Source_File
16358         Add 2003 to copyright note.
16359
16360         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
16361         processing Internal_Source_File.
16362
16363         * types.ads: Add the constant Internal_Source_File representing the
16364         source buffer for artificial source-code-like strings created within
16365         the compiler (the definition of Source_File_Index is changed).
16366
16367 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
16368
16369         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
16370         56system.ads: New file, FreeBSD version.
16371
16372 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
16373
16374         * Make-lang.in (ada.extraclean): Delete.
16375
16376 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
16377
16378         * gnatmem.adb: Clean up verbose output.
16379
16380         * gprcmd.adb: Change copyright to FSF.
16381
16382 2003-11-19  Vincent Celier  <celier@gnat.com>
16383
16384         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
16385         and Version (ignored).
16386
16387         * symbols.ads: (Policy): New type
16388         (Initialize): New parameter Reference, Symbol_Policy and
16389         Library_Version.
16390         Remove parameter Force.
16391         Minor reformatting.
16392
16393         * snames.ads, snames.adbadb: New standard names
16394         Library_Reference_Symbol_File and Library_Symbol_Policy
16395
16396         * mlib-prj.adb:
16397         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
16398         project.
16399
16400         * mlib-tgt.adb:
16401         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
16402
16403         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
16404
16405         * prj.adb: (Project_Empty): New component Symbol_Data
16406
16407         * prj.ads: (Policy, Symbol_Record): New types
16408         (Project_Data): New component Symbol_Data
16409
16410         * prj-attr.adb:
16411         New attributes Library_Symbol_File, Library_Symbol_Policy and
16412         Library_Reference_Symbol_File.
16413
16414         * prj-nmsc.adb:
16415         (Ada_Check): When project is a Stand-Alone library project, process
16416         attribute Library_Symbol_File, Library_Symbol_Policy and
16417         Library_Reference_Symbol_File.
16418
16419         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
16420         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
16421         5sml-tgt.adb (Build_Dynamic_Library): New parameter
16422         Symbol_Data (ignored).
16423
16424         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
16425         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
16426         functions Option_File_Name and Version_String. Set new options of
16427         gnatsym related to symbol file, symbol policy and reference symbol
16428         file.
16429
16430         * 5vsymbol.adb:
16431         Extensive modifications to take into account the reference symbol file,
16432         the symbol policy, the library version and to put in the symbol file the
16433         minor and major IDs.
16434
16435         * bld.adb (Process_Declarative_Items): Put second argument of
16436         gprcmd to_absolute between single quotes, to avoid problems with
16437         Windows.
16438
16439         * bld-io.adb: Update Copyright notice.
16440         (Flush): Remove last character of a line, if it is a back slash, to
16441         avoid make problems.
16442
16443         * gnatsym.adb:
16444         Implement new scheme with reference symbol file and symbol policy.
16445
16446         * g-os_lib.ads: (Is_Directory): Clarify comment
16447
16448 2003-11-19  Robert Dewar  <dewar@gnat.com>
16449
16450         * atree.adb: Move New_Copy_Tree global variables to head of package
16451
16452         * errout.adb: Minor reformatting
16453
16454 2003-11-19  Javier Miranda  <miranda@gnat.com>
16455
16456         * sem_ch4.adb: (Diagnose_Call): Improve error message.
16457         Add reference to Ada0Y (AI-50217)
16458
16459         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
16460         sem_util.adb: Add reference to AI-50217
16461
16462         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
16463
16464         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
16465
16466         * sem_aggr.adb: Complete documentation of AI-287 changes
16467
16468         * par-ch4.adb: Document previous changes.
16469
16470         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
16471         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
16472         Ada0Y (AI-50217)
16473
16474         * exp_aggr.adb: Add references to AI-287 in previous changes
16475
16476 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
16477
16478         * exp_ch6.adb:
16479         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
16480         in the rewriting is the result of an inlined call.
16481
16482         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
16483         parameter is a type conversion, use original node to construct the
16484         post-call assignment, because expression may have been rewritten, e.g.
16485         if it is a packed array.
16486
16487         * sem_attr.adb:
16488         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
16489         body, just as it is in an instance.
16490         Categorization routines
16491
16492         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
16493         Instantiate_Object): Set proper sloc reference for message on missing
16494         actual.
16495
16496 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
16497
16498         * Makefile.in: Add FreeBSD libgnat pairs.
16499
16500         * usage.adb: Fix typo in usage message.
16501
16502 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
16503
16504         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
16505         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
16506         pragma Thread_Body.
16507         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
16508
16509         * s-thread.adb: This file is now a dummy implementation of
16510         System.Thread.
16511
16512 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
16513
16514         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
16515
16516 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
16517
16518         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
16519         instanciation references in the parent type description.
16520
16521 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16522
16523         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
16524
16525         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
16526         TYPE_PRECISION directly from esize.
16527
16528 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
16529
16530         * cstreams.c:
16531         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
16532
16533         * init.c: Initialization routines for FreeBSD
16534
16535         * link.c: Link info for FreeBSD
16536
16537         * sysdep.c: Add the case of FreeBSD
16538
16539 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
16540
16541         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
16542         already called in System.Threads.
16543
16544         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
16545         environment task, as it has been moved to System.Threads.Initialization.
16546
16547 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
16548
16549         * adaint.c (__gnatlib_install_locks): Only reference
16550         __gnat_install_locks on VMS, since other platforms can avoid using
16551         --enable-threads=gnat
16552
16553 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16554
16555         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
16556
16557         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
16558         TYPE_PACKED_ARRAY_TYPE_P.
16559         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
16560
16561         Part of PR ada/12806
16562         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
16563         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
16564
16565 2003-11-17  Vincent Celier  <celier@gnat.com>
16566
16567         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
16568         to False.
16569         Do not set exit status to Failure when Warning is True.
16570         (Gnatchop): Make errors "no compilation units found" and
16571         "no source files written" warnings only.
16572
16573         * make.adb (Gnatmake): When using a project file, set
16574         Look_In_Primary_Dir to False.
16575         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
16576         and Local_Configuration_Pragmas in the project where they are declared
16577         not an extending project which might have inherited them.
16578
16579         * osint.adb (Locate_File): If Name is already an absolute path, do not
16580         look for a directory.
16581
16582         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
16583         -gnats (Check_Syntax) is used, issue only a warning, not an error.
16584
16585         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
16586         in objects of type Variable_Value.
16587
16588         * prj.ads: (Variable_Value): New component Project
16589
16590         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
16591         is in a project extended by Project.
16592
16593         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
16594         Project of Variable_Values to this new parameter value.
16595         (Expression): Set component Project of Variable_Values.
16596         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
16597         Set the component Project in array elements.
16598
16599 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
16600
16601         * errout.adb: (Initialize): Add initialization for error nodes.
16602
16603         * sem_ch12.adb (Initialize): Add missing initializations for
16604         Exchanged_Views and Hidden_Entities.
16605
16606 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
16607
16608         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
16609         already instantiated tree for use in subsequent inlining.
16610         (Analyze_Associations, Instantiate_Formal_Subprogram,
16611         Instantiate_Object): improve error message for mismatch in
16612         instantiations.
16613
16614         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
16615         instantiations of subprograms declared in instances.
16616
16617 2003-11-17  Javier Miranda  <miranda@gnat.com>
16618
16619         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
16620         executed only under the Extensions_Allowed flag.
16621
16622 2003-11-17  Robert Dewar  <dewar@gnat.com>
16623
16624         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
16625         zeroes suppressed.
16626         (Address_Image): Fix bug of returning 0x instead of 0x0
16627         Minor reformatting (function specs).
16628
16629         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
16630         (missed case of 33-63)
16631
16632         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
16633
16634         * s-thread.adb: Add comments for pragma Restriction
16635
16636         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
16637         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
16638
16639 2003-11-17  Ed Falis  <falis@gnat.com>
16640
16641         * s-thread.adb: Added No_Tasking restriction for this implementation.
16642
16643 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
16644
16645         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
16646         instanciation references in the parent type description.
16647
16648 2003-11-17  GNAT Script  <nobody@gnat.com>
16649
16650         * Make-lang.in: Makefile automatically updated
16651
16652 2003-11-16  Jason Merrill  <jason@redhat.com>
16653
16654         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
16655         and TAGS files that include them for each front end.
16656
16657 2003-11-14  Andreas Jaeger  <aj@suse.de>
16658
16659         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
16660         is the canonical version.
16661         * misc.c (gnat_handle_option): Likewise.
16662
16663         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
16664
16665         * 5nsystem.ads: New file for x86_64-linux-gnu.
16666
16667 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
16668
16669         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
16670
16671         * comperr.adb: Fix logic in previous change.
16672
16673 2003-11-13  Vincent Celier  <celier@gnat.com>
16674
16675         * 5bml-tgt.adb (Build_Dynamic_Library): Use
16676         Osint.Include_Dir_Default_Prefix instead of
16677         Sdefault.Include_Dir_Default_Name.
16678
16679         * gnatlbr.adb: Update Copyright notice
16680         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
16681         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
16682         instead of Sdefault.Object_Dir_Default_Name
16683
16684         * gnatlink.adb:
16685         (Process_Binder_File): Never suppress the option following -Xlinker
16686
16687         * mdll-utl.adb:
16688         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
16689         Sdefault.Object_Dir_Default_Name.
16690
16691         * osint.ads, osint.adb:
16692         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
16693         Minor reformatting.
16694
16695         * vms_conv.ads: Minor reformating
16696         Remove GNAT STANDARD and GNAT PSTA
16697
16698         * vms_conv.adb:
16699         Allow GNAT MAKE to have several files on the command line.
16700         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
16701         Sdefault.Object_Dir_Default_Name.
16702         Minor Reformating
16703         Remove data for GNAT STANDARD
16704
16705         * vms_data.ads:
16706         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
16707         Remove data for GNAT STANDARD
16708         Remove options and documentation for -gnatwb/-gnatwB: these warning
16709         options no longer exist.
16710
16711 2003-11-13  Ed Falis  <falis@gnat.com>
16712
16713         * 5zthrini.adb: (Init_RTS): Made visible
16714
16715         * 5zthrini.adb:
16716         (Register): Removed unnecessary call to taskVarGet that checked whether
16717          an ATSD was already set as a task var for the argument thread.
16718
16719         * s-thread.adb:
16720         Updated comment to reflect that this is a VxWorks version
16721         Added context clause for System.Threads.Initialization
16722         Added call to System.Threads.Initialization.Init_RTS
16723
16724 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
16725
16726         * 5zthrini.adb:
16727         (Init_RTS): New procedure, for the initialization of the run-time lib.
16728
16729         * s-thread.adb:
16730         Remove dependancy on System.Init, so that this file can be used in the
16731         AE653 sequential run-time lib.
16732
16733 2003-11-13  Robert Dewar  <dewar@gnat.com>
16734
16735         * bindgen.adb: Minor reformatting
16736
16737 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
16738
16739         * checks.adb:
16740         (Apply_Discriminant_Check): Do no apply check if target type is derived
16741         from source type with no applicable constraint.
16742
16743         * lib-writ.adb:
16744         (Ensure_System_Dependency): Do not apply the style checks that may have
16745         been specified for the main unit.
16746
16747         * sem_ch8.adb:
16748         (Find_Selected_Component): Further improvement in error message, with
16749         RM reference.
16750
16751         * sem_res.adb:
16752         (Resolve): Handle properly the case of an illegal overloaded protected
16753         procedure.
16754
16755 2003-11-13  Javier Miranda  <miranda@gnat.com>
16756
16757         * exp_aggr.adb:
16758         (Has_Default_Init_Comps): New function to check the presence of
16759         default initialization in an aggregate.
16760         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
16761         extension aggregate of a limited record. In addition, a new formal
16762         was added to do not initialize the record controller (if any) during
16763         this recursive expansion of ancestors.
16764         (Init_Controller): Add support for limited record components.
16765         (Expand_Record_Aggregate): In case of default initialized components
16766         convert the aggregate into a set of assignments.
16767
16768         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
16769         describing the new syntax.
16770         Nothing else needed to be done because this subprogram delegates part of
16771         its work to P_Precord_Or_Array_Component_Association.
16772         (P_Record_Or_Array_Component_Association): Give support to the new
16773         syntax for default initialization of components.
16774
16775         * sem_aggr.adb:
16776         (Resolve_Aggregate): Relax the strictness of the frontend in case of
16777         limited aggregates.
16778         (Resolve_Record_Aggregate): Give support to default initialized
16779         components.
16780         (Get_Value): In case of default initialized components, duplicate
16781         the corresponding default expression (from the record type
16782         declaration). In case of default initialization in the *others*
16783         choice, do not check that all components have the same type.
16784         (Resolve_Extension_Aggregate): Give support to limited extension
16785         aggregates.
16786
16787         * sem_ch3.adb:
16788         (Check_Initialization): Relax the strictness of the front-end in case
16789         of aggregate and extension aggregates. This test is now done in
16790         Get_Value in a per-component manner.
16791
16792         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
16793         expression corresponds to a limited aggregate. This test is now done
16794         in Get_Value.
16795
16796         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
16797         Box_Present flag.
16798
16799         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
16800         present in an N_Component_Association node
16801
16802 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
16803
16804         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
16805         type-conformant entry only if they are homographs.
16806
16807 2003-11-13  GNAT Script  <nobody@gnat.com>
16808
16809         * Make-lang.in: Makefile automatically updated
16810
16811 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16812
16813         * adadecode.c: Use <> form of include for ctype.h.
16814         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
16815
16816 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16817
16818         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
16819         Works around PR middle-end/6552.
16820
16821 2003-11-10  Ed Falis  <falis@gnat.com>
16822
16823         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
16824
16825         * 5zinit.adb: (Install_Handler): Moved back to spec
16826         (Install_Signal_Handlers): Deleted
16827
16828         * 5zthrini.adb: Added context clause for System.Storage_Elements
16829         (Register): Only handles creation of taskVar; initialization moved to
16830         Thread_Body_Enter.
16831         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
16832         Added declaration of environment task secondary stack and
16833         initialization.
16834
16835         * s-thread.adb: Implement bodies for thread body processing
16836
16837         * s-thread.ads:
16838         Added comment identifying supported targets for pragma Thread_Body.
16839
16840 2003-11-10  Pascal Obry  <obry@gnat.com>
16841
16842         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
16843         GNAT_MAX_PATH_LEN.
16844
16845         * s-fileio.adb:
16846         (Open): Properly check for string length before copying into the buffer.
16847         Raises Name_Error if buffer is too small. Note that this was a potential
16848         buffer overflow.
16849
16850 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
16851
16852         * bindgen.adb, comperr.adb: Code clean ups.
16853         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
16854
16855 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
16856
16857         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
16858
16859 2003-11-10  Vincent Celier  <celier@gnat.com>
16860
16861         * gprcmd.adb:
16862         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
16863         installation.
16864
16865         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
16866
16867         * prj.adb: (Project_Empty): Add new boolean component Virtual
16868
16869         * prj.ads: (Virtual_Prefix): New constant string
16870         (Project_Data): New boolean component Virtual
16871
16872         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
16873         a library project is extended by a virtual extending project.
16874
16875         * prj-part.adb:
16876         Modifications throughout to implement extending-all project, including:
16877         (Virtual_Hash, Processed_Hash): New hash tables
16878         (Create_Virtual_Extending_Project): New procedure
16879         (Look_For_Virtual_Projects_For): New procedure
16880
16881         * prj-proc.adb:
16882         (Process): After checking the projects, if main project is an
16883         extending-all project, set the object directory of all virtual extending
16884         project to the object directory of the main project.
16885         Adjust error message when a virtual extending project has the same
16886         object directory as an project being extended.
16887         (Recursive_Process): If name starts with the virtual prefix, set Virtual
16888         to True in the project data.
16889
16890         * prj-tree.adb:
16891         (Default_Project_Node): Add new boolean component Extending_All
16892         (Is_Extending_All): New function
16893         (Set_Is_Extending_All): New procedure
16894
16895         * prj-tree.ads: (Is_Extending_All): New function
16896         (Set_Is_Extending_All): New procedure
16897         (Project_Node_Record): New boolean component Extending_All
16898
16899         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
16900
16901         * vms_data.ads:
16902         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
16903
16904         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
16905         "gprcmd prefix" to define it.
16906
16907 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
16908
16909         * einfo.ads: Fix a typo and remove an extraneous word in comments.
16910
16911         * lib-load.adb:
16912         (Create_Dummy_Package_Unit): Set the scope of the entity for the
16913         created dummy package to Standard_Standard, not to itself, to
16914         defend other parts of the front-end against encoutering a cycle in
16915         the scope chain.
16916
16917         * sem_ch10.adb:
16918         (Analyze_With_Clause): When setting the entities for the successive
16919         N_Expanded_Names that constitute the name of a child unit, do not
16920         attempt to go further than Standard_Standard in the chain of scopes.
16921         This case arises from the placeholder units created by
16922         Create_Dummy_Package_Unit in the case of a with_clause for a
16923         nonexistent child unit.
16924
16925 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
16926
16927         * exp_ch6.adb:
16928         (Expand_Thread_Body): Place subprogram on scope stack, so that new
16929         declarations are given the proper scope.
16930
16931         * sem_ch13.adb:
16932         (Check_Expr_Constants): Reject an expression that contains a constant
16933         created during expansion, and that appears after the object to which
16934         the address clause applies.
16935
16936         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
16937         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
16938         that uses 'Range of a function call with controlled components, so
16939         that the function result can be finalized before starting the loop.
16940
16941         * sem_ch8.adb:
16942         (Find_Selected_Component): Improve error message when prefix is
16943         an implicit dereference of an incomplete type.
16944
16945 2003-11-10  Robert Dewar  <dewar@gnat.com>
16946
16947         * opt.ads: New Print_Standard flag for -gnatS switch
16948
16949         * sem_ch13.adb: Remove some additional checks for unaligned arrays
16950
16951         * cstand.adb (Create_Standard): Print out package standard if -gnatS
16952         switch set
16953
16954         * debug.adb: Update doc for -gnatds to discuss relationship with new
16955         -gnatS flag
16956
16957         * sinfo.adb: Add new field Entity_Or_Associated_Node
16958
16959         * sinfo.ads: Add new field Entity_Or_Associated_Node
16960         Update documentation for Associated_Node and Entity fields to clarify
16961         relationship and usage.
16962
16963         * sprint.adb:
16964         (Write_Id): Properly process Associated_Node field in generic template
16965
16966         * switch-c.adb:
16967         Recognize new -gnatS switch for printing package Standard
16968         This replaces gnatpsta
16969
16970         * usage.adb:
16971         Add line for  new -gnatS switch for printing package Standard
16972         This replaces gnatpsta
16973
16974 2003-11-10  Andreas Jaeger  <aj@suse.de>
16975
16976         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
16977         integer.
16978
16979 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
16980
16981         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
16982         by gnat1.
16983
16984 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
16985
16986         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
16987         no longer needed.
16988
16989         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
16990
16991         * sysdep.c: Add handling of cygwin.
16992
16993 2003-11-10  GNAT Script  <nobody@gnat.com>
16994
16995         * Make-lang.in: Makefile automatically updated
16996
16997 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
16998
16999         PR 12950
17000         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
17001         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
17002         Replace GNAT_ROOT by GCC_ROOT.
17003
17004         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
17005
17006 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
17007
17008         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
17009         and update for changed meaning of GET_MODE_BITSIZE.
17010
17011 2003-11-04  Doug Rupp  <rupp@gnat.com>
17012
17013         * sysdep.c: Problem discovered during IA64 VMS port.
17014         [VMS] #include <unixio.h> to get proper prototypes.
17015
17016         * adaint.c:
17017         Issues discovered/problems fixed during IA64 VMS port.
17018         [VMS] #define _POSIX_EXIT for proper semantics.
17019         [VMS] #include <unixio.h> for proper prototypes.
17020         [VMS] (fork): #define IA64 version.
17021         (__gnat_os_exit): Remove unnecessary VMS specific code.
17022
17023 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17024
17025         Part of PR ada/12806
17026
17027         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
17028         tree, not integer.
17029
17030         * decl.c:
17031         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
17032         not integer.
17033
17034         * targtyps.c, decl.c, misc.c,
17035         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
17036         routines to work around change in FP sizing semantics in GCC.
17037
17038         * utils.c:
17039         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
17040
17041         * gigi.h: (enumerate_modes): New function.
17042
17043         * Make-lang.in: (ada/misc.o): Add real.h.
17044
17045         * misc.c: (enumerate_modes): New function.
17046
17047 2003-11-04  Robert Dewar  <dewar@gnat.com>
17048
17049         * 3vtrasym.adb: Minor reformatting
17050         Use terminology encoded/decoded name, rather than C++ specific notion
17051         of mangling (this is the terminology used throughout GNAT).
17052
17053         * einfo.h: Regenerated
17054
17055         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
17056
17057         * exp_ch6.adb:
17058         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
17059
17060         * par-prag.adb: Add dummy entry for Thread_Body pragma
17061
17062         * rtsfind.ads:
17063         Add entries for System.Threads entities for thread body processing
17064
17065         * sem_attr.adb:
17066         (Analyze_Pragma, Access attributes): Check these are not applied to a
17067         thread body, since this is not permitted
17068
17069         * sem_prag.adb: Add processing for Thread_Body pragma.
17070         Minor comment fix.
17071
17072         * sem_res.adb:
17073         (Resolve_Call): Check for incorrect attempt to call a thread body
17074          procedure with a direct call.
17075
17076         * snames.ads, snames.adb: Add entry for Thread_Body pragma
17077         Add names associated with thread body expansion
17078
17079         * snames.h: Add entry for Thread_Body pragma
17080
17081         * s-thread.adb: Add entries for thread body processing
17082         These are dummy bodies so far
17083
17084         * s-thread.ads: Add documentation on thread body handling.
17085         Add entries for thread body processing.
17086
17087 2003-11-04  Javier Miranda  <miranda@gnat.com>
17088
17089         * sem_ch10.adb:
17090         (Build_Limited_Views): Return after posting an error in case of limited
17091         with_clause on subprograms, generics, instances or generic renamings
17092         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
17093         on subprograms, generics, instances or generic renamings
17094
17095 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
17096
17097         * raise.c (setup_to_install): Correct mistake in last revision; two
17098         arguments out of order.
17099
17100         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
17101         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
17102         notice, missed in previous change.
17103         Remove trailing blanks and other style errors introduced in previous
17104         change.
17105
17106 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
17107
17108         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
17109         rid of the wrapper for a LJM type, ensuring we don't do that if the
17110         field is addressable.  This avoids potential low level type view
17111         mismatches later on, for instance in a by-reference argument passing
17112         process.
17113
17114 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17115
17116         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
17117         aligned at byte boundary.
17118
17119 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
17120
17121         * decl.c (components_to_record): Do not delete the empty variants from
17122         the end of the union type.
17123
17124 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
17125
17126         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
17127         operation for a derived type, an explicit declaration may use a local
17128         subtype of Boolean.
17129
17130 2003-11-04  Vincent Celier  <celier@gnat.com>
17131
17132         * make.adb (Gnatmake): Allow main sources on the command line with a
17133         library project when it is only for compilation (no binding or
17134         linking).
17135
17136 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17137
17138         * Makefile.in: Remove many duplicate variables.
17139
17140 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
17141
17142         * Make-lang.in (dvi): Move targets to $(docobjdir).
17143         (gnat_ug_vms.dvi): Simplify rule and adjust target.
17144         (gnat_ug_wnt.dvi): Likewise.
17145         (gnat_ug_unx.dvi): Likewise.
17146         (gnat_ug_vxw.dvi): Likewise.
17147         (gnat_rm.dvi): Likewise.
17148         (gnat-style.dvi): Likewise.
17149
17150 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
17151
17152         * gigi.h: Missed commit from update for C90.
17153
17154 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
17155
17156         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
17157
17158 2003-10-31  Andreas Schwab  <schwab@suse.de>
17159
17160         * raise.c (get_action_description_for): Fix typo in last change.
17161
17162 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
17163
17164         PR ada/12761
17165         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
17166         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
17167
17168 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
17169
17170         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
17171         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
17172         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
17173         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
17174         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
17175
17176 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
17177
17178         * 3vtrasym.adb:
17179         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
17180         numbers when symbol name is too long.
17181
17182 2003-10-30  Ed Falis  <falis@gnat.com>
17183
17184         * g-signal.ads, g-signal.adb: New files
17185
17186         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
17187
17188         * Makefile.rtl: Introduce GNAT.Signals
17189
17190 2003-10-30  Robert Dewar  <dewar@gnat.com>
17191
17192         * freeze.adb: Minor reformatting
17193
17194         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
17195
17196         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
17197         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
17198         New handling of Id_Check parameter to improve recognition of keywords
17199         used as identifiers.
17200         Update copyright notice to include 2003
17201
17202 2003-10-29  Robert Dewar  <dewar@gnat.com>
17203
17204         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
17205         sem_ch10.adb: Minor reformatting
17206
17207         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
17208         (Expand_Assign_Record): Test right hand side for bit unaligned as well
17209
17210 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
17211
17212         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
17213         Support for TBK$SYMBOLIZE-based symbolic traceback.
17214
17215 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
17216
17217         * exp_disp.adb:
17218         Revert previous change, that did not work well when pragma No_Run_Time
17219         was used in conjunction with a run-time other than ZFP.
17220
17221 2003-10-29  Vincent Celier  <celier@gnat.com>
17222
17223         * make.adb:
17224         (Gnatmake): When there are no Ada mains in attribute Main, disable the
17225          bind and link steps only is switch -z is not used.
17226
17227 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
17228
17229         * Makefile.generic: Remove duplicated setting of CC.
17230
17231         * Makefile.prolog: Set CC to gcc by default, to override make's
17232         default (cc).
17233
17234         * einfo.h: Regenerated.
17235
17236 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
17237
17238         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
17239         current body, after compiling subunit.
17240
17241         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
17242         when in deleted code, because gigi needs properly ordered freeze
17243         actions to annotate types.
17244
17245         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
17246         prevent the premature freezing of record type that contains
17247         subcomponents with a private type that does not yet have a completion.
17248
17249 2003-10-29  Javier Miranda  <miranda@gnat.com>
17250
17251         * sem_ch12.adb:
17252         (Analyze_Package_Instantiation): Check that instances can not be used in
17253         limited with_clauses.
17254
17255         * sem_ch8.adb:
17256         (Analyze_Package_Renaming): Check that limited withed packages cannot
17257         be renamed. Improve text on error messages related to limited
17258         with_clauses.
17259
17260         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
17261
17262         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
17263         Update copyright notice.
17264
17265         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
17266         (Install_Limited_Context_Clauses): New subprogram that isolates all the
17267         checks required for limited context_clauses and installs the limited
17268         view.
17269         (Install_Limited_Withed_Unit): Complete its documentation.
17270         (Analyze_Context): Check that limited with_clauses are only allowed in
17271         package specs.
17272         (Install_Context): Call Install_Limited_Context_Clauses after the
17273         parents have been installed.
17274         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
17275         package as 'From_With_Type'; this mark indicates that the limited view
17276         is installed. Used to check bad usages of limited with_clauses.
17277         (Build_Limited_Views): Do not add shadow entities to the scope's list
17278         of entities. Do not add real entities to the Non_Limited_Views chain.
17279         Improve error notification.
17280         (Remove_Context_Clauses): Remove context clauses in two phases:
17281         limited views first and regular views later (to maintain the
17282         stack model).
17283         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
17284         its visible entities.
17285
17286 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
17287
17288         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
17289         with any type that Is_Fixed_Point_Type.
17290
17291         * sinfo.ads: Fix documentation for Associated_Node attribute.
17292
17293 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
17294
17295         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
17296         both '-gnatc' and '-gnatt' are specified.
17297
17298         * atree.adb (Initialize): Add initialization for Node_Count (set to
17299         zero).
17300
17301 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17302
17303         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
17304         do not consider as Pure.
17305
17306         Part of implementation of function-at-a-time:
17307
17308         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
17309         (tree_transform): Add new argument to build_component_ref.
17310         (tree_transform, case N_Assignment_Statement): Make and return an
17311         EXPR_STMT.
17312         (tree_transform): If result IS_STMT, set flags and return it.
17313         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
17314
17315         * utils2.c (build_simple_component_ref, build_component_ref): Add new
17316         arg, NO_FOLD_P.
17317         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
17318         (build_allocator): Likewise.
17319
17320         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
17321         Add new arg to build_component_ref.
17322         (maybe_unconstrained_array, unchecked_convert): Likewise.
17323
17324         * ada-tree.def (EXPR_STMT): New code.
17325
17326         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
17327
17328         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
17329         build_component_ref calls.
17330
17331         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
17332
17333         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
17334         (build_component_ref): Add new argument, NO_FOLD_P.
17335
17336 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
17337
17338         * Makefile.generic: Add missing substitution on object_deps handling.
17339
17340         PR ada/5909:
17341         * Make-lang.in (check-ada): Enable ACATS test suite.
17342
17343 2003-10-27  Robert Dewar  <dewar@gnat.com>
17344
17345         * exp_ch3.adb:
17346         (Freeze_Array_Type): We do not need an initialization routine for types
17347         derived from String or Wide_String. They should be treated the same
17348         as String and Wide_String themselves. This caused problems with the
17349         use of Initialize_Scalars.
17350
17351         * exp_ch5.adb:
17352         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
17353         composites. This allows use of component clauses that are not byte
17354         aligned.
17355
17356         * sem_prag.adb:
17357         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
17358         is an attempt to pack an array of atomic objects.
17359
17360         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
17361
17362 2003-10-27  Pascal Obry  <obry@gnat.com>
17363
17364         * g-dirope.adb:
17365         (Basename): Check for drive letters in a pathname only on DOS based OS.
17366
17367 2003-10-27  Vincent Celier  <celier@gnat.com>
17368
17369         * make.adb:
17370         (Gnatmake): When unable to change dir to the object dir, display the
17371         content of the parent dir of the obj dir, to try to understand why this
17372         happens.
17373
17374 2003-10-27  GNAT Script  <nobody@gnat.com>
17375
17376         * Make-lang.in: Makefile automatically updated
17377
17378 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
17379
17380         * sem_ch12.adb:
17381         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
17382         should not be done in Save/Restore_Scope_Stack, because it is performed
17383         locally.
17384
17385         * sem_ch8.adb:
17386         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
17387         whether use clauses should be removed/restored.
17388
17389         * sem_ch8.ads:
17390         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
17391         whether use clauses should be removed/restored.
17392
17393 2003-10-26  Andreas Jaeger  <aj@suse.de>
17394
17395         * Makefile.in: Remove duplicated lines.
17396
17397 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
17398
17399         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
17400         minimize the differences with ACT tree.
17401
17402         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
17403         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
17404         Gnatvsn.Gnat_Static_Version_String to reduce differences between
17405         ACT and FSF trees.
17406
17407 2003-10-24  Pascal Obry  <obry@gnat.com>
17408
17409         * adadecode.c (ostrcpy): New function.
17410         (__gnat_decode): Use ostrcpy of strcpy.
17411         (has_prefix): Set first parameter a const.
17412         (has_suffix): Set first parameter a const.
17413         Update copyright notice. Fix source name in header.
17414         Removes a trailing space.
17415         PR ada/12014.
17416
17417 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
17418
17419         * exp_disp.adb:
17420         Remove the test against being in No_Run_Time_Mode before generating a
17421         call to Register_Tag. It is redundant with the test against the
17422         availability of the function Register_Tag.
17423
17424 2003-10-24  Vincent Celier  <celier@gnat.com>
17425
17426         * g-catiio.adb: (Month_Name): Correct spelling of February
17427
17428         * make.adb: (Mains): New package
17429         (Initialize): Call Mains.Delete
17430         (Gnatmake): Check that each main on the command line is a source of a
17431         project file and, if there are several mains, each of them is a source
17432         of the same project file.
17433         (Gnatmake): When a foreign language is specified in attribute Languages,
17434         no main is specified on the command line and attribute Mains is not
17435         empty, only build the Ada main. If there is no Ada main, just compile
17436         the Ada sources and their closure.
17437         (Gnatmake): If a main is specified on the command line with directory
17438         information, check that the source exists and, if it does, that the path
17439         is the actual path of a source of a project.
17440
17441         * prj-env.adb:
17442         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
17443         Full_Path is True, return the full path instead of the simple file name.
17444         (Project_Of): New function
17445
17446         * prj-env.ads:
17447         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
17448         defaulted to False.
17449         (Project_Of): New function
17450
17451 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
17452
17453         * Makefile.generic:
17454         Ensure objects of main project are always checked and rebuilt if needed.
17455         Set CC to gcc by default.
17456         Prepare new handling of link by creating a global archive (not activated
17457         yet).
17458
17459         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
17460         stringt.h: Update copyright notice. Remove trailing blanks.
17461         Fix source name in header.
17462
17463 2003-10-24  Robert Dewar  <dewar@gnat.com>
17464
17465         * sem_ch12.adb: Minor reformatting
17466
17467         * sem_ch3.adb:
17468         Minor reformatting (including new function return style throughout)
17469
17470         * sem_ch3.ads:
17471         Minor reformatting (including new function return style throughout)
17472
17473 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
17474
17475         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
17476         stringt.h: Update copyright notice. Remove trailing blanks.
17477         Fix source name in header.
17478
17479 2003-10-24  GNAT Script  <nobody@gnat.com>
17480
17481         * Make-lang.in: Makefile automatically updated
17482
17483 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
17484
17485         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
17486         stringt.h: Convert to ISO C90 declarations and definitions.
17487
17488 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
17489
17490         PR ada/11978:
17491         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
17492         External_Tag attribute definition clauses.
17493
17494 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
17495
17496         PR ada/7613:
17497         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
17498         child unit, generate a fully qualified name to avoid spurious errors
17499         when the context contains renamings of different child units with
17500         the same simple name.
17501
17502         * exp_dbug.ads: Add documentation on name qualification for renamings
17503         of child units.
17504
17505 2003-10-23  Robert Dewar  <dewar@gnat.com>
17506
17507         * g-regpat.ads, g-regpat.adb: Minor reformatting
17508
17509 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
17510
17511         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
17512
17513 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17514
17515         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
17516         Machine call.
17517
17518         * urealp.h: (Machine): Update to proper definition.
17519
17520 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
17521
17522         * init.c, adaint.c: Minor reformatting.
17523
17524 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
17525
17526         * adaint.c (w32_epoch_offset): Define static const at file level.
17527         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
17528         rather than t_create, t_access in call to GetFileTime. Use union
17529         to convert between FILETIME and  unsigned long long.
17530         (__gnat_file_time_name): Test for invalid file handle.
17531         (__gnat_set_filetime_name): Support win32 targets using
17532         w32api SetFileTime.
17533
17534 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
17535
17536         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
17537
17538         * ctrl_c.c (__gnat_int_handler): Remove declaration.
17539
17540         * decl.c (creat_concat_name):  Const-ify prefix.
17541
17542         * adaint.c: Include ctype.h if __MINGW32__.
17543         (__gnat_readlink): Mark arguments as possibly unused.
17544         (__gnat_symlink): Likewise.
17545         (__gnat_is_symbolic_link): Likewise.
17546         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
17547         declaration
17548         (__gnat_file_time_name): Don't declare struct stat statbuf when
17549         not needed.
17550         (__gnat_is_absolute_path): Add parenthesis around condition of
17551         'if' statement to avoid warning.
17552         (__gnat_plist_init): Specify void as parameter.
17553         (plist_enter): Likewise.
17554         (plist_leave): Likewise.
17555         (remove_handle): Make static. Initialize prev.
17556
17557 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
17558
17559         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
17560         * cstreams.c (__gnat_full_name): Minor improvements and clean up
17561         of previous change.
17562
17563 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17564
17565         * tracebak.c (MAX): Avoid redefinition warning.
17566
17567         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
17568         Change msg to const char *.
17569         (__gnat_install_handler): Remove ss, unused.
17570         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
17571         to const char *.
17572         * cstreams.c (__gnat_full_name): Declare p only when used.
17573         (__gnat_full_name) [sgi] Return buffer.
17574
17575 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
17576
17577         * mingw32.h: New file.
17578         * gnat_wrapper.adb: New file.
17579
17580 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
17581
17582         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
17583         string match a pre compiled regular expression (the corresponding
17584         version of the function working on a raw regular expression)
17585         Fix typos in various comments
17586         Update copyright notice in spec
17587
17588 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
17589
17590         * exp_ch3.adb:
17591         (Component_Needs_Simple_Initialization): Return False when the type is a
17592         packed bit array. Revise spec comments to document this case.
17593
17594         * exp_prag.adb:
17595         (Expand_Pragma_Import): Set any expression on the imported object to
17596         empty to avoid initializing imported objects (in particular this
17597         covers the case of zero-initialization of bit arrays).
17598         Update copyright notice.
17599
17600 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
17601
17602         * sem_ch12.adb:
17603         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
17604         a subunit is missing.
17605         (Instantiate_Subprogram_Body): If body of function is missing, set type
17606         of return expression explicitly in dummy body, to prevent cascaded
17607         errors when a subunit is missing.
17608         Fixes PR 5677.
17609
17610         * sem_ch3.adb:
17611         (Access_Subprogram_Declaration): Verify that return type is valid.
17612         Fixes PR 8693.
17613
17614         * sem_elab.adb:
17615         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
17616         generic.
17617         Fixes PR 12318.
17618
17619         * sem_util.adb:
17620         (Corresponding_Discriminant): If the scope of the discriminant is a
17621         private type without discriminant, use its full view.
17622         Fixes PR 8247.
17623
17624 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
17625
17626         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
17627         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
17628         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
17629         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
17630         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
17631         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
17632         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
17633         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
17634         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
17635         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
17636         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
17637         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
17638         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
17639         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
17640         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
17641         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
17642         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
17643         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
17644         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
17645         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
17646         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
17647         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
17648         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
17649         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
17650         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
17651         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
17652         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
17653         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
17654         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
17655         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
17656         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
17657         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
17658         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
17659         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
17660         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
17661         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
17662         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
17663         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
17664         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
17665         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
17666         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
17667         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
17668         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
17669         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
17670         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
17671         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
17672         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
17673         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
17674         vms_conv.ads, vms_conv.adb, vms_data.ads,
17675         vxaddr2line.adb: Files added. Merge with ACT tree.
17676
17677         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
17678         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
17679         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
17680         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
17681         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
17682         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
17683         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
17684         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
17685         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
17686         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
17687
17688         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
17689         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
17690         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
17691         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
17692         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
17693         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
17694         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
17695         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
17696         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
17697         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
17698         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
17699         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
17700         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
17701         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
17702         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
17703         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
17704         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
17705         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
17706         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
17707         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
17708         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
17709         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
17710         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
17711         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
17712         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
17713         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
17714         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
17715         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
17716         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
17717         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
17718         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
17719         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
17720         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
17721         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
17722         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
17723         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
17724         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
17725         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
17726         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
17727         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
17728         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
17729         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
17730         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
17731         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
17732         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
17733         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
17734         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
17735         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
17736         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
17737         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
17738         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
17739         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
17740         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
17741         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
17742         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
17743         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
17744         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
17745         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
17746         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
17747         checks.adb, checks.ads, cio.c, comperr.adb,
17748         comperr.ads, csets.adb, cstand.adb, cstreams.c,
17749         debug_a.adb, debug_a.ads, debug.adb, decl.c,
17750         einfo.adb, einfo.ads, errout.adb, errout.ads,
17751         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
17752         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
17753         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
17754         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
17755         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
17756         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
17757         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
17758         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
17759         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
17760         fe.h, fmap.adb, fmap.ads, fname.adb,
17761         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
17762         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
17763         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
17764         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
17765         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
17766         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
17767         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
17768         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
17769         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
17770         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
17771         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
17772         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
17773         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
17774         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
17775         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
17776         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
17777         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
17778         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
17779         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
17780         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
17781         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
17782         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
17783         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
17784         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
17785         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
17786         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
17787         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
17788         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
17789         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
17790         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
17791         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
17792         layout.adb, lib.adb, lib.ads, lib-list.adb,
17793         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
17794         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
17795         link.c, live.adb, make.adb, make.ads,
17796         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
17797         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
17798         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
17799         misc.c, mkdir.c, mlib.adb, mlib.ads,
17800         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
17801         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
17802         namet.adb, namet.ads, namet.h, nlists.ads,
17803         nlists.h, nmake.adt, opt.adb, opt.ads,
17804         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
17805         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
17806         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
17807         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
17808         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
17809         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
17810         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
17811         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
17812         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
17813         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
17814         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
17815         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
17816         prj-util.adb, prj-util.ads, raise.c, raise.h,
17817         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
17818         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
17819         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
17820         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
17821         scans.ads, scn.adb, scn.ads, s-crc32.adb,
17822         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
17823         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
17824         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
17825         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
17826         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
17827         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
17828         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
17829         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
17830         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
17831         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
17832         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
17833         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
17834         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
17835         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
17836         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
17837         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
17838         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
17839         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
17840         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
17841         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
17842         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
17843         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
17844         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
17845         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
17846         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
17847         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
17848         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
17849         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
17850         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
17851         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
17852         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
17853         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
17854         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
17855         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
17856         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
17857         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
17858         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
17859         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
17860         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17861         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
17862         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
17863         stringt.adb, stringt.ads, stringt.h, style.ads,
17864         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
17865         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
17866         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
17867         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
17868         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
17869         table.adb, table.ads, targparm.adb, targparm.ads,
17870         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
17871         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
17872         ttypes.ads, types.ads, types.h, uintp.adb,
17873         uintp.ads, uintp.h, uname.adb, urealp.adb,
17874         urealp.ads, urealp.h, usage.adb, utils2.c,
17875         utils.c, validsw.adb, validsw.ads, widechar.adb,
17876         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
17877         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
17878         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
17879         gnatvsn.ads: Merge with ACT tree.
17880
17881         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
17882
17883 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
17884
17885         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
17886         (gnat_ug_vmx.info): Likewise.
17887         (gnat_ug_vxw.info): Likewise.
17888         (gnat_ug_wnt.info): Likewise.
17889         (gnat_rm.info): Likewise.
17890         (gnat-style.info): Likewise.
17891
17892         * Make-lang.in (ada.install-info): Remove target.
17893         (info): New target.
17894         (install-info): Likewise.
17895         (gnat_ug_unx.info): Simplify rule.
17896         (gnat_ug_vmx.info): Likewise.
17897         (gnat_ug_vxw.info): Likewise.
17898         (gnat_ug_wnt.info): Likewise.
17899         (gnat_rm.info): Likewise.
17900         (gnat-style.info): Likewise.
17901
17902 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
17903
17904         * Make-lang.in: Replace uses of $(target_alias) with
17905         $(target_noncanonical).
17906         * ada/Makefile.in: Remove unused mention of $(target_alias).
17907
17908 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
17909
17910         * Make-lang.in (ada.info): Replace with ...
17911         (info): ... this.
17912         (ada.dvi): Replace with ...
17913         (dvi): ... this.
17914
17915 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
17916
17917         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
17918         initialize dconstp5 and dconstmp5.
17919
17920 2003-09-28  Richard Henderson  <rth@redhat.com>
17921
17922         * trans.c (tree_transform): Update call to expand_asm_operands.
17923
17924 2003-09-21  Richard Henderson  <rth@redhat.com>
17925
17926         * trans.c, utils.c: Revert.
17927
17928 2003-09-21  Richard Henderson  <rth@redhat.com>
17929
17930         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
17931         change to const.
17932
17933 2003-09-04  Michael Matz  <matz@suse.de>
17934
17935         * misc.c: Include "target.h".
17936         * Make-lang.in (misc.o): Add dependency on target.h.
17937
17938 2003-09-03  DJ Delorie  <dj@redhat.com>
17939
17940         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
17941         hook.
17942
17943 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
17944
17945         * Makefile.in: Update substitutions to match changes to
17946         configure.  Use include directives instead of @-insertions
17947         to read in host and target fragments.  Add a rule to
17948         regenerate ada/Makefile.
17949
17950 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
17951
17952         * lang-options.h: Remove.
17953         * lang.opt: Add help text.
17954
17955 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
17956
17957         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
17958         calls.
17959
17960 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
17961
17962         * misc.c (gnat_handle_option): Don't handle filenames.
17963
17964 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
17965
17966         * Make-lang.in: Replace PWD with PWD_COMMAND.
17967         * Makefile.adalib: Likewise.
17968         * Makefile.in: Likewise.
17969
17970 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
17971
17972         * misc.c (gnat_argv): Revert last change.
17973         (gnat_handle_option, gnat_init_options): Copy arguments.
17974
17975 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
17976
17977         * misc.c (gnat_argv): Make const.
17978
17979 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
17980
17981         * misc.c (save_argc, save_argv): Keep non-static!
17982
17983 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
17984
17985         * misc.c (save_argc, save_argv): Make static.
17986         (gnat_init_options): New prototype.
17987         (gnat_init_options): Update.
17988
17989 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
17990
17991         * gnat_ug.texi: Remove unlikely characters from @vars.
17992         * gnat_ug_vms.texi: Regenerate.
17993
17994 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
17995
17996         * misc.c (record_code_position): Adjust emit_note call.
17997
17998 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
17999
18000         * misc.c (gnat_handle_option): Don't check for missing arguments.
18001
18002 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
18003
18004         * utils.c (end_subprog_body): Adjust expand_function_end call.
18005
18006 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
18007
18008         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
18009         Bind_Main_Program.
18010
18011 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
18012
18013         * lang.opt: Declare Ada.
18014         * misc.c (gnat_init_options): Update.
18015
18016 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
18017
18018         * utils.c (begin_subprog_body): Adjust init_function_start call.
18019
18020 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
18021
18022         * Make-lang.in: Update to use options.c and options.h.
18023         * misc.c: Include options.h not aoptions.h.
18024         (gnat_handle_option): Abort on unrecognized switch.
18025         (gnat_init_options): Request Ada switches.
18026
18027 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
18028
18029         * lang.opt: Add -Wall.
18030         * misc.c (gnat_handle_option): Handle it.
18031
18032 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
18033
18034         * misc.c (gnat_handle_option): Fix warnings.
18035
18036 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
18037
18038         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
18039
18040 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
18041
18042         * Make-lang.in: Update to handle command-line options.
18043         * lang.opt: New file.
18044         * misc.c: Include aoptions.h.
18045         (cl_options_count, cl_options): Remove.
18046         (gnat_handle_option): New.
18047         (gnat_decode_option): Remove.
18048         (LANG_HOOKS_DECODE_OPTION): Remove.
18049         (LANG_HOOKS_HANDLE_OPTION): Override.
18050
18051 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
18052
18053         * init.c, misc.c, trans.c, utils.c: Remove dead code.
18054
18055 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
18056
18057         * Makefile.in: Replace "host_canonical" with "host" for autoconf
18058         substitution.
18059
18060 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
18061
18062         * Make-lang.in: Update.
18063         * misc.c: Include opts.h. Define cl_options_count and cl_options.
18064
18065 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
18066
18067         * misc.c (gnat_init_options): Update.
18068
18069 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
18070
18071         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
18072         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
18073         __attribute__ ((__unused__)).
18074
18075 2003-06-05  Jan Hubicka  <jh@suse.cz>
18076
18077         * Make-lang.in:  Add support for stageprofile and stagefeedback
18078
18079 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
18080
18081         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
18082         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
18083
18084 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
18085
18086         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
18087         Remove non-VMS directive.
18088         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
18089         alternatives.
18090         (Examples of gnatls Usage): Remove VMS alternative.
18091
18092 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
18093
18094         PR ada/9953:
18095         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
18096         and turn ZCX_By_Default back to False since the underlying support
18097         is not quite there yet.
18098
18099 2003-06-01  Andreas Jaeger  <aj@suse.de>
18100
18101         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
18102         and ROUND_TYPE_SIZE_UNIT.
18103
18104 2003-05-22   Geert Bosch <bosch@gnat.com>
18105
18106         * gnat_rm.texi : Remove reference to Ada Core Technologies.
18107
18108 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
18109
18110         * trans.c (tree_transform): Use location_t and input_location
18111         directly.
18112         (build_unit_elab): Likewise.
18113         * utils.c (create_label_decl): Likewise.
18114
18115 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
18116
18117         * trans.c (tree_transform, build_unit_elab,
18118         set_lineno): Rename lineno to input_line.
18119         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
18120         end_subprog_body): Likewise.
18121         * utils2.c (build_call_raise): Likewise.
18122
18123 2003-05-01  Laurent Guerby <guerby@acm.org>
18124
18125         PR ada/10546
18126         * 5iosinte.ads: Increase pthread_cond_t size to match recent
18127         LinuxThread and NPTL version, merge from ACT.
18128
18129 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
18130
18131         * utils.c (convert): No need to clear TREE_CST_RTL.
18132
18133 2003-04-23   Geert Bosch <bosch@gnat.com>
18134
18135         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
18136         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
18137         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
18138         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
18139         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
18140         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
18141         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
18142         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
18143         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
18144         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
18145         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
18146         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
18147         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
18148         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
18149         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
18150         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
18151         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
18152         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
18153         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
18154         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
18155         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
18156         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
18157         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
18158         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
18159         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
18160         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
18161         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
18162         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
18163         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
18164         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
18165         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
18166         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
18167         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
18168         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
18169         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
18170         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
18171         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
18172         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
18173         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
18174         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
18175         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
18176         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
18177         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
18178         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
18179         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
18180         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
18181         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
18182         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
18183         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
18184         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
18185         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18186         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18187         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
18188         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
18189         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
18190         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
18191         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
18192         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
18193         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
18194         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
18195         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
18196         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
18197         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
18198         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
18199         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
18200         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
18201         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
18202         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
18203         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
18204         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
18205         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
18206         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
18207         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18208         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
18209         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
18210         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
18211         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
18212         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
18213         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
18214         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
18215         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
18216         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
18217         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
18218         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
18219         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18220         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
18221         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
18222         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18223         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
18224         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
18225         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
18226         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
18227         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
18228         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
18229         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
18230         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
18231         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
18232         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
18233         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
18234         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
18235         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
18236         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
18237         ali.adb, ali.ads, alloc.ads, argv.c,
18238         atree.adb, atree.ads, atree.h, aux-io.c,
18239         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
18240         binde.adb, binde.ads, binderr.adb, binderr.ads,
18241         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
18242         butil.adb, butil.ads, cal.c, calendar.ads,
18243         casing.adb, casing.ads, ceinfo.adb, checks.adb,
18244         checks.ads, cio.c, comperr.adb, comperr.ads,
18245         config-lang.in, csets.adb, csets.ads, csinfo.adb,
18246         cstand.adb, cstand.ads, cuintp.c, debug.adb,
18247         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
18248         dec-io.ads, dec.ads, deftarg.c, directio.ads,
18249         einfo.adb, einfo.ads, elists.adb, elists.ads,
18250         elists.h, errno.c, errout.adb, errout.ads,
18251         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
18252         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
18253         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
18254         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
18255         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
18256         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
18257         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
18258         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
18259         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
18260         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
18261         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
18262         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
18263         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
18264         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
18265         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
18266         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
18267         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
18268         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
18269         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
18270         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
18271         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
18272         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
18273         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
18274         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
18275         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
18276         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
18277         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
18278         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
18279         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
18280         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
18281         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
18282         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
18283         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
18284         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
18285         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
18286         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
18287         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
18288         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
18289         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
18290         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
18291         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
18292         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
18293         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
18294         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
18295         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
18296         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
18297         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
18298         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
18299         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
18300         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
18301         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
18302         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
18303         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
18304         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
18305         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
18306         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
18307         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
18308         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
18309         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
18310         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
18311         lib.adb, lib.ads, live.adb, live.ads,
18312         machcode.ads, make.adb, make.ads, makeusg.adb,
18313         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
18314         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
18315         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
18316         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
18317         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
18318         mlib.ads, namet.adb, namet.ads, nlists.adb,
18319         nlists.ads, opt.adb, opt.ads, osint-b.adb,
18320         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
18321         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
18322         osint.ads, output.adb, output.ads, par-ch10.adb,
18323         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
18324         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
18325         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
18326         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
18327         par-tchk.adb, par-util.adb, par.adb, par.ads,
18328         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
18329         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
18330         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
18331         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
18332         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
18333         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
18334         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
18335         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
18336         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
18337         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
18338         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
18339         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
18340         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
18341         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
18342         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
18343         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
18344         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
18345         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
18346         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
18347         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
18348         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
18349         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
18350         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
18351         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
18352         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
18353         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
18354         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
18355         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
18356         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
18357         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
18358         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
18359         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
18360         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
18361         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
18362         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
18363         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
18364         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
18365         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
18366         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
18367         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
18368         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18369         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
18370         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
18371         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
18372         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
18373         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18374         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
18375         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
18376         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
18377         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
18378         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18379         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
18380         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
18381         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
18382         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
18383         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18384         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
18385         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
18386         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
18387         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
18388         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18389         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
18390         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
18391         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
18392         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
18393         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
18394         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
18395         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
18396         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
18397         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
18398         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
18399         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
18400         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
18401         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
18402         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
18403         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
18404         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
18405         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
18406         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
18407         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
18408         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
18409         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
18410         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
18411         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
18412         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
18413         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
18414         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
18415         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
18416         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
18417         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
18418         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
18419         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
18420         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
18421         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
18422         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
18423         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
18424         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
18425         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
18426         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
18427         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
18428         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18429         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
18430         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
18431         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
18432         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
18433         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
18434         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
18435         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
18436         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
18437         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
18438         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
18439         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
18440         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
18441         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
18442         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
18443         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18444         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
18445         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
18446         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
18447         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
18448         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
18449         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
18450         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
18451         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
18452         snames.ads, sprint.adb, sprint.ads, stand.adb,
18453         stand.ads, stringt.adb, stringt.ads, style.adb,
18454         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
18455         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
18456         switch-m.ads, switch.adb, switch.ads, system.ads,
18457         table.adb, table.ads, targparm.adb, targparm.ads,
18458         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
18459         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
18460         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
18461         ttypef.ads, ttypes.ads, types.adb, types.ads,
18462         uintp.adb, uintp.ads, uname.adb, uname.ads,
18463         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
18464         usage.adb, usage.ads, validsw.adb, validsw.ads,
18465         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
18466         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
18467         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
18468         formatting and other trivial changes from ACT.
18469
18470 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
18471
18472         * gigi.h, utils2.c (build_constructor):
18473         Rename gnat_build_constructor. Use build_constructor.
18474         * decl.c (gnat_to_gnu_entity)
18475         * trans.c (tree_transform, pos_to_constructor, extract_values)
18476         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
18477         (unchecked_convert)
18478         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
18479         (fill_vms_descriptor):
18480         Update to match.
18481
18482 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
18483
18484         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
18485         * misc.c (gnat_tree_size): New function.
18486         (LANG_HOOKS_TREE_SIZE): Override.
18487
18488 2003-04-03  Jason Merrill  <jason@redhat.com>
18489
18490         * misc.c (gnat_adjust_rli): #if 0.
18491
18492 2003-03-31   Geert Bosch <bosch@gnat.com>
18493
18494         PR ada/10020
18495         * link.c : Fix misspelled "const" keyword
18496
18497 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
18498
18499         PR c++/7086
18500         * utils2.c: Adjust calls to put_var_into_stack.
18501
18502 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
18503
18504         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
18505
18506 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
18507
18508         * misc.c (gnat_init): Update for new prototype.
18509
18510 2003-03-05  Olivier Hainque  <hainque@gnat.com>
18511
18512         ada/9961
18513         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
18514         warning, and fix return type for the IN_RTS && !SJLJ case.
18515
18516 2003-03-04  Tom Tromey  <tromey@redhat.com>
18517
18518         * Make-lang.in (ada.tags): New target.
18519
18520 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
18521
18522         ada/9911
18523         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
18524         wrapper, which name remains constant whatever underlying GCC
18525         scheme.
18526
18527         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
18528         the stable interface needed for a-except.
18529
18530 2003-03-02  Andreas Jaeger  <aj@suse.de>
18531
18532         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18533         gnat_ug_wnt.texi: Regenerate.
18534
18535 2003-03-02  Laurent Guerby <guerby@acm.org>
18536
18537         * Makefile.in (install-gnatlib): Match previous change there
18538         so it works.
18539
18540 2003-02-28  Andreas Schwab  <schwab@suse.de>
18541
18542         * Make-lang.in (install-gnatlib): Change to ada directory before
18543         running make instead of using ada/Makefile directly.
18544
18545 2003-02-18  Ben Elliston  <bje@redhat.com>
18546
18547         Part of fix for PR ada/9406
18548         * gnat_ug.texi (Binder output file): Grammar fix.
18549
18550 2003-02-18  Ben Elliston  <bje@redhat.com>
18551
18552         PR other/7350
18553         * 5qtaprop.adb (Sleep): Fix typo in comment.
18554
18555 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
18556
18557         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
18558         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18559         gnat_ug_wnt.texi: Regenerate.
18560
18561 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
18562
18563         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
18564         be created if necessary.
18565         (ada.install-common): Let $(DESTDIR)$(bindir) be created
18566         if necessary.  Remove erroneous and redundant gnatchop
18567         installation commands.  Test for gnatdll before attempting
18568         to install it.
18569         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
18570         and gnatdll from all plausible locations.
18571
18572 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
18573
18574         * utils2.c (build_unary_op): Don't check flag_volatile.
18575         * gnat_ug.texi: Remove -fvolatile from example.
18576         * gnat_ug_vxw.texi: Likewise.
18577
18578 2003-01-29  Laurent Guerby <guerby@acm.org>
18579
18580         PR ada/8344
18581         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
18582         * Makefile.in: match previous change.
18583         * Make-lang.in: match previous change.
18584
18585 2003-01-29      Joel Sherrill <joel@OARcorp.com>
18586
18587         * 5rosinte.ads: Add SIGXCPU.
18588         * 5rtpopsp.adb: New file.
18589         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
18590         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
18591         specific file 5rtpopsp.adb.
18592         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
18593         is likely needed for all newlib targets.
18594         * init.c: Add RTEMS specific version of __gnat_initialize().
18595
18596 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18597
18598         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
18599
18600 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18601
18602         * init.c (__gnat_error_handler): Make msg const.
18603
18604         * gmem.c (convert_addresses): Move declaration ...
18605         * adaint.h: ... here.
18606         * adaint.c (convert_addresses): Adapt addrs type to match
18607         prototype.
18608
18609         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
18610
18611 2003-01-24  Andreas Schwab  <schwab@suse.de>
18612
18613         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
18614         size_t to avoid warning.
18615
18616 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
18617
18618         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
18619
18620 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
18621
18622         * gnat_rm.texi: Remove RCS version number.
18623
18624         * ada-tree.h (union lang_tree_node): Add chain_next option.
18625
18626 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
18627
18628         * Make-lang.in (ada.install-info, ada.install-common,
18629         ada.uninstall): Prepend $(DESTDIR) to the destination
18630         directory in all (un)installation commands.
18631         * Makefile.in (install-gnatlib, install-rts): Ditto.
18632
18633 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
18634
18635         * gnat_rm.texi, gnat_ug.texi: Use @copying.
18636         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18637         gnat_ug_wnt.texi: Regenerate.
18638
18639 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
18640
18641         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
18642         only.
18643         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
18644         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
18645         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
18646         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
18647         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
18648         $(srcdir)/doc/include/gcc-common.texi.
18649
18650 2002-12-15   Geert Bosch <bosch@gnat.com>
18651
18652         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
18653
18654 2002-12-14   Geert Bosch <bosch@gnat.com>
18655
18656         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
18657         case of a body created for a Renaming_As_Body, on which
18658         conformance checks are not performed. Fixes PR ada/5690.
18659
18660 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
18661
18662         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
18663         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
18664         not already included.
18665         * Make-lang.in: Update dependencies.
18666
18667 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
18668         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
18669         solution to buffer overflow bug on GNU/Linux.
18670
18671 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
18672         Closes PR ada/5856 and PR ada/6919 !
18673         * bindgen.adb: Remove all references to Public_Version.
18674         * comperr.adb: Remove all references to Public_Version and
18675         GNATPRO_Version; correct bug reporting instructions.
18676         * comperr.ads: Change to match bug box.
18677         * gnatvsn.ads: Remove all references to Public version and
18678         GNATPRO version.
18679
18680 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
18681         PR ada/6919
18682         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
18683         GNU/Linux.
18684
18685         PR ada/6558
18686         * config-lang.in: Remove diff_excludes.
18687
18688 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
18689         PR ada/8358
18690         * trans.c (gnu_pending_elaboration_lists): New GC root.
18691         (build_unit_elab): Use..
18692
18693 2002-10-30   Geert Bosch <bosch@gnat.com>
18694         PR ada/6558
18695         * misc.c : Include optabs.h
18696
18697         * Make-lang.in (misc.o): Add dependency on optabs.h
18698
18699 2002-10-29   Geert Bosch <bosch@gnat.com>
18700         PR ada/6558
18701         * Make-lang.in (gnatbind): Depend on CONFIG_H
18702
18703 2002-10-29  Geert bosch  <bosch@gnat.com>
18704         PR ada/6558
18705         * misc.c: Unrevert misc.c (1.13)
18706
18707 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
18708
18709         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
18710         maintainership comments.
18711
18712 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
18713         PR ada/5904
18714         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
18715         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
18716         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
18717         7staprop.adb: Correct statements in comments about
18718         maintainership of GNAT.
18719
18720         PR ada/5904
18721         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
18722         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
18723         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
18724         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
18725         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
18726         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
18727         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
18728         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
18729         comments about maintainership of GNAT.
18730
18731         PR ada/6919 (forward port of patch for PR ada/5904)
18732         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
18733         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
18734         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
18735         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
18736         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
18737         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
18738         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
18739         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
18740         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
18741         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
18742         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
18743         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
18744         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
18745         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
18746         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
18747         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
18748         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
18749         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
18750         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
18751         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
18752         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
18753         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
18754         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
18755         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
18756         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
18757         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
18758         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
18759         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
18760         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
18761         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
18762         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
18763         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
18764         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
18765         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
18766         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
18767         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
18768         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
18769         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
18770         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
18771         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
18772         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
18773         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
18774         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
18775         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
18776         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
18777         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
18778         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
18779         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
18780         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
18781         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
18782         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
18783         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
18784         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
18785         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
18786         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
18787         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
18788         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
18789         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
18790         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
18791         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
18792         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
18793         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
18794         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
18795         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
18796         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
18797         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
18798         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
18799         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
18800         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
18801         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
18802         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
18803         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
18804         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
18805         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
18806         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
18807         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
18808         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
18809         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
18810         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
18811         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
18812         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
18813         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
18814         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
18815         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
18816         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
18817         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
18818         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
18819         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
18820         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
18821         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
18822         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
18823         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
18824         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
18825         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
18826         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
18827         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
18828         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
18829         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
18830         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
18831         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
18832         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
18833         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
18834         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
18835         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
18836         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
18837         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
18838         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
18839         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
18840         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
18841         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
18842         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
18843         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
18844         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
18845         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
18846         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
18847         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
18848         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
18849         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
18850         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
18851         par-endh.adb par-labl.adb par-load.adb par-prag.adb
18852         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
18853         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
18854         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
18855         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
18856         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
18857         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
18858         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
18859         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
18860         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
18861         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
18862         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
18863         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
18864         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
18865         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
18866         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
18867         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
18868         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
18869         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
18870         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
18871         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
18872         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
18873         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
18874         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
18875         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
18876         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
18877         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
18878         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
18879         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
18880         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
18881         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
18882         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
18883         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
18884         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
18885         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
18886         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
18887         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
18888         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
18889         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
18890         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
18891         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
18892         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
18893         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
18894         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
18895         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
18896         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
18897         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
18898         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
18899         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
18900         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
18901         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
18902         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
18903         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
18904         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
18905         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
18906         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
18907         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
18908         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
18909         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
18910         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
18911         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
18912         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
18913         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
18914         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
18915         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
18916         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
18917         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
18918         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
18919         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
18920         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
18921         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
18922         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
18923         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
18924         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
18925         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
18926         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
18927         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
18928         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
18929         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
18930         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
18931         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
18932         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
18933         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
18934         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
18935         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
18936         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
18937         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
18938         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
18939         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
18940         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
18941         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
18942         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
18943         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
18944         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
18945         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
18946         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
18947         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
18948         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
18949         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
18950         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
18951         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
18952         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
18953         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
18954         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
18955         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
18956         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
18957         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
18958         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
18959         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
18960         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
18961         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
18962         stringt.ads stringt.h style.adb style.ads stylesw.adb
18963         stylesw.ads switch.adb switch.ads sysdep.c system.ads
18964         table.adb table.ads targparm.adb targparm.ads targtyps.c
18965         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
18966         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
18967         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
18968         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
18969         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
18970         usage.ads utils.c utils2.c validsw.adb validsw.ads
18971         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
18972         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
18973         xtreeprs.adb: Correct statements in comments about maintainership
18974         of GNAT.
18975
18976 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
18977
18978         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
18979         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
18980         * gnatvsn.ads: Gnat_Version_String is now a function.
18981         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
18982         copy the C version_string into a String and return it.
18983         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
18984         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
18985         Remove pragma Ident (Gnat_Version_String).  If this was the
18986         sole use of package Gnatvsn, remove the with statement too.
18987         * gnat1drv.adb: Tweak -gnatv output.
18988
18989 2002-09-17  Richard Henderson  <rth@redhat.com>
18990
18991         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
18992         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
18993         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
18994         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
18995         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
18996         and real_2expN instead of a loop.
18997         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
18998         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
18999
19000 2002-08-25  Andre Leis <a.leis@gmx.net>
19001             David Billinghurst (David.Billinghurst@riotinto.com>
19002
19003         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
19004
19005 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19006
19007         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
19008         Remove $(CONFIG_H) dependency.
19009
19010 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
19011
19012         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
19013
19014 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19015
19016         * adadecode.c (ada_demangle): Use xstrdup in lieu of
19017         xmalloc/strcpy.
19018         * misc.c (gnat_decode_option): Likewise.
19019
19020 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
19021
19022         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
19023         function approach did not work well because of a side effect (the
19024         function call could reallocate the table which was being indexed
19025         using its result). Fixes ada/4851. [RESURRECTED]
19026
19027 2002-07-01  Roger Sayle  <roger@eyesopen.com>
19028
19029         * ada/utils.c (builtin_function): Accept an additional parameter.
19030
19031 2002-06-28  Andreas Jaeger  <aj@suse.de>
19032
19033         PR ada/7144
19034         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
19035         <adi@thur.de>.
19036
19037 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19038
19039         * Makefile.in (SHELL): Set to @SHELL@.
19040
19041 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19042
19043         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
19044         array size calculation.
19045
19046 2002-06-04  Andreas Jaeger  <aj@suse.de>
19047
19048         * Make-lang.in (gnatbind): Readd rule that has been lost in last
19049         patch.
19050
19051 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
19052
19053         Merge from pch-branch:
19054
19055         * config-lang.in (gtfiles): Add ada-tree.h.
19056         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
19057         (SET_TYPE_MODULUS): New.
19058         (SET_TYPE_INDEX): New.
19059         (SET_TYPE_DIGITS_VALUE): New.
19060         (SET_TYPE_RM_SIZE): New.
19061         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
19062         (SET_TYPE_ADA_SIZE): New.
19063         (SET_TYPE_ACTUAL_BOUNDS): New.
19064         (SET_DECL_CONST_CORRESPONDING_VAR): New.
19065         (SET_DECL_ORIGINAL_FIELD): New.
19066         (TREE_LOOP_ID): Correct typo.
19067         * decl.c: Use new macros.
19068         * utils.c: Include debug.h, use new macros.
19069         * utils2.c: Use new macros.
19070
19071         * ada-tree.h: Update all macros for new tree description.
19072         (struct tree_loop_id): New.
19073         (union lang_tree_node): New.
19074         (struct lang_decl): New.
19075         (struct lang_type): New.
19076         * misc.c (gnat_mark_tree): Delete.
19077         (LANG_HOOKS_MARK_TREE): Delete.
19078         * trans.c (tree_transform): No longer any need to cast
19079         for TREE_LOOP_ID.
19080
19081         * utils.c (struct language_function): New dummy structure.
19082
19083         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
19084         (misc.o): Likewise.
19085         (utils.o): Likewise; also gtype-ada.h.
19086         * Make-lang.in (gnat1): Add dependency on s-gtype.
19087         (gnatbind): Add dependency on $(CONFIG_H).
19088         * utils.c: Correct last #include.
19089         (stuct e_stack): Remove unnecessary 'static'.
19090         (mark_e_stack): Remove unused prototype.
19091
19092         * scn-nlit.adb: Remove whitespace after version number to
19093         keep lines under 80 chars.
19094         * snames.adb: Likewise.
19095         * treepr.ads: Likewise.
19096
19097         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
19098         (misc.o): Likewise.
19099         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
19100         * config-lang.in (gtfiles): New.
19101         * decl.c: Use gengtype for roots.
19102         * gigi.h: Use gengtype for roots.
19103         * trans.c: Use gengtype for roots.
19104         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
19105
19106 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
19107
19108         * misc.c (gnat_init): Adjust setting of internal_error_function.
19109
19110 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
19111
19112         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
19113         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19114         gnat_ug_wnt.texi: Regenerate.
19115
19116 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
19117
19118         * 5ntaprop.adb (with System.OS_Primitives): Remove.
19119
19120         * cstreams.c (max_path_len): Move from here ...
19121         * adaint.c (__gnat_max_path_len): ... to here.
19122         * adaint.c (__gnat_max_path_len): Declare.
19123         * g-dirope.adb (Max_Path): Adjust.
19124         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
19125         * i-cstrea.ads (max_path_len): Adjust.
19126         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
19127         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
19128
19129         * Makefile.in, Make-lang.in: Documentation is now built in
19130         Make-lang.in.  Store Info and generated Texinfo files in the
19131         source directory.
19132         * gnat_ug.texi: Remove CVS keywords, correct version number.
19133         Set file name correctly.
19134
19135         * gnat_ug_*.texi: Add.
19136         * .cvsignore: Ignore generated Texinfo files.
19137
19138 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
19139
19140         * ada.h: Add MI guard macro.
19141         (SUBTYPE): Define constants with an anonymous enum, not static
19142         const variables.
19143         (IN): Cast constants to appropriate type before use.
19144
19145 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
19146
19147         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
19148         (experimental)".
19149
19150 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19151
19152         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
19153         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
19154         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
19155         (ALL_ADA_CFLAGS): Likewise.
19156         (ADA_INCLUDES): Likewise.
19157         Adapt for new working dir.
19158         (GNATBIND): Use Makefile.in version.
19159         (.SUFFIXES): Copy from Makefile.in.
19160         (ada-warn): Define.
19161         (.adb.o, .ads.o): Copy from Makefile.in.
19162         Added $(OUTPUT_OPTION).
19163         (GNAT1_C_OBJS): Moved from Makefile.in.
19164         Prefix with ada subdir.
19165         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
19166         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
19167         Adapt for new working dir.
19168         (EXTRA_GNATBIND_OBJS): Likewise.
19169         (ADA_BACKEND): Moved from Makefile.in.
19170         Renamed to avoid conflict with global BACKEND.
19171         Use that one.
19172         (TARGET_ADA_SRCS): Moved from Makefile.in.
19173         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
19174         Use ADA_BACKEND.
19175         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
19176         (ada_extra_files): Moved from Makefile.in.
19177         Prefix with ada subdir.
19178         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
19179         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
19180         (ada/nmake.ads): Likewise.
19181         (update-sources): Moved from Makefile.in.
19182         Prefix with ada subdir.
19183         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
19184         (ADA_TREE_H): Likewise.
19185         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
19186         (ada/memtrack.o): Likewise.
19187         (ada/adadecode.o): Likewise.
19188         Update dependencies.
19189         (ada/adaint.o): New.
19190         (ada/argv.o): Moved from Makefile.in.
19191         Prefix with ada subdir.
19192         Update dependencies.
19193         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
19194         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
19195         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
19196         Prefix with ada subdir.
19197         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
19198         (GNAT DEPENDENCIES): Regenerate.
19199         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
19200         toplevel Makefile.in.
19201         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
19202         (TARGET_ADA_SRCS): Removed.
19203         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
19204         (GNATBIND_OBJS): Likewise.
19205         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
19206         (BACKEND): Removed.
19207         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
19208         (TREE_H): Likewise.
19209         (ada_extra_files): Likewise.
19210         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
19211         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
19212         (update-sources): Likewise.
19213         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
19214         (ADA_TREE_H): Likewise.
19215         (adadecoce.o): Likewise.
19216         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
19217         (GNAT DEPENDENCIES): Likewise.
19218
19219 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19220
19221         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
19222         * Makefile.in: Likewise.
19223
19224 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19225
19226         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
19227         Restore $(CONFIG_H) and prefix.o dependencies.
19228         (ada.stage[1-4]): Depend on stage?-start.
19229
19230         * Makefile.in (b_gnatb.c): Depend on interfac.o.
19231
19232 2002-05-02  Jim Wilson  <wilson@redhat.com>
19233
19234         * utils.c (finish_record_type): Change record_size to record_type.
19235
19236 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19237
19238         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
19239         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
19240         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
19241
19242 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
19243
19244         * misc.c (gnat_parse_file): Update.
19245
19246 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19247
19248         * misc.c (gnat_init): Don't set lang_attribute_common.
19249
19250 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19251
19252         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
19253
19254 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
19255
19256         * gnat_ug.texi: New file.
19257
19258         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
19259         instead of gfdl.texi
19260
19261         * xgnatug.adb, ug_words: New files.
19262
19263         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
19264         gnat_rm and gnat-style manuals.
19265
19266 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
19267
19268         * gigi.h (incomplete_type_error): Remove.
19269         * utils.c (incomplete_type_error): Remove.
19270
19271 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
19272
19273         * trans.c (tree_transform): Add has_scope argument to
19274         expand_start_stmt_expr.
19275
19276 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
19277
19278         * gigi.h (truthvalue_conversion): Rename.
19279         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
19280         * trans.c (tree_transform): Update.
19281         * utils2.c (truthvalue_conversion): Rename, update.
19282         (build_binary_op, build_unary_op): Update.
19283
19284 2002-04-04  Laurent Guerby  <guerby@acm.org>
19285
19286         * make.adb: Implement -margs, remove restriction about file name placement.
19287         * makeusg.adb: Documentation update.
19288         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
19289         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
19290
19291 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
19292
19293         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
19294         (builtin_function): Similarly.
19295
19296 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19297
19298         * decl.c (gnat_to_gnu_entity): Update.
19299         * gigi.h (mark_addressable): Rename.
19300         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19301         * trans.c (tree_transform): Update.
19302         * utils.c (create_var_decl): Update.
19303         * util2.c (build_binary_op, build_unary_op,
19304         fill_vms_descriptor): Update.
19305         (mark_addressable): Rename, update.
19306
19307 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19308
19309         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
19310         Rename.
19311         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19312         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19313         * trans.c (tree_transform, convert_with_check): Update.
19314         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
19315         Rename.
19316
19317 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
19318
19319         * gigi.h (finish_incomplete_decl): Rename.
19320         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
19321         * utils.c (gnat_init_decl_processing): Don't set hook.
19322         (finish_incomplete_decl): Rename.
19323
19324 2002-03-29  Andreas Schwab  <schwab@suse.de>
19325
19326         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
19327         directory.
19328
19329 2001-03-28  Robert Dewar <dewar@gnat.com>
19330
19331         * checks.ads:
19332         (Remove_Checks): New procedure
19333
19334         * checks.adb:
19335         (Remove_Checks): New procedure
19336
19337         * exp_util.adb:
19338         Use new Duplicate_Subexpr functions
19339         (Duplicate_Subexpr_No_Checks): New procedure
19340         (Duplicate_Subexpr_No_Checks_Orig): New procedure
19341         (Duplicate_Subexpr): Restore original form (checks duplicated)
19342         (Duplicate_Subexpr): Call Remove_Checks
19343
19344         * exp_util.ads:
19345         (Duplicate_Subexpr_No_Checks): New procedure
19346         (Duplicate_Subexpr_No_Checks_Orig): New procedure
19347         Add 2002 to copyright notice
19348
19349         * sem_util.adb: Use new Duplicate_Subexpr functions
19350
19351         * sem_eval.adb:
19352         (Eval_Indexed_Component): This is the place to call
19353         Constant_Array_Ref and to replace the value. We simply merge
19354         the code of this function in here, since it is now no longer
19355         used elsewhere. This fixes the problem of the back end not
19356         realizing we were clever enough to see that this was
19357         constant.
19358         (Expr_Val): Remove call to Constant_Array_Ref
19359         (Expr_Rep_Val): Remove call to Constant_Array_Ref
19360         Minor reformatting
19361         (Constant_Array_Ref): Deal with string literals (patch
19362         suggested by Zack Weinberg on the gcc list)
19363
19364 2001-03-28  Ed Schonberg <schonber@gnat.com>
19365
19366         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
19367         Duplicate_Subexpr_Move_Checks.
19368
19369         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
19370         Duplicate_Subexpr_Move_Checks.
19371
19372         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
19373         value of array exists before retrieving it (it may a private
19374         protected component in a function).
19375
19376 2002-03-28   Geert Bosch <bosch@gnat.com>
19377
19378         * prj-pp.adb : New file.
19379
19380         * prj-pp.ads : New file.
19381
19382 2002-03-28  Andreas Jaeger  <aj@suse.de>
19383
19384         * Makefile.in (stamp-sdefault): Fix path for Makefile.
19385
19386 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
19387
19388         * misc.c (gnat_expand_expr): Move prototype.
19389
19390 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19391
19392         * misc.c (insert_default_attributes): Remove.
19393
19394 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19395
19396         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19397         (gnat_init): Don't set hook.
19398         (gnat_expand_expr): Fix prototype.
19399
19400 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19401
19402         * misc.c (ggc_p): Remove.
19403
19404 2002-03-27  Geert Bosch  <bosch@gnat.com>
19405
19406         * prj-makr.ads, prj-makr.adb : New files.
19407
19408 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
19409
19410         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
19411         (lang_mark_tree): Make static, rename.
19412
19413 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
19414
19415         * misc.c (maybe_build_cleanup): Remove.
19416
19417 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19418
19419         * gigi.h (yyparse): Remove.
19420
19421 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
19422
19423         * gnat_rm.texi: Sync with ACT version.
19424           (From Ben Brosgol <brosgol@gnat.com>)
19425
19426 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
19427
19428         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
19429         (gnat_init): Remove old hook.
19430
19431 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
19432
19433         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
19434         (yyparse): Rename gnat_parse_file.
19435
19436 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
19437
19438         Delete all lines containing "$Revision:".
19439         * xeinfo.adb: Don't look for revision numbers.
19440         * xnmake.adb: Likewise.
19441         * xsinfo.adb: Likewise.
19442         * xsnames.adb: Likewise.
19443         * xtreeprs.adb: Likewise.
19444
19445 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19446
19447         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
19448         gnat_tree_code_name): Delete.
19449         (tree_code_type, tree_code_length, tree_code_name): Define.
19450         (gnat_init): Don't try to copy into the various tree_code
19451         arrays.
19452
19453 2002-03-11  Richard Henderson  <rth@redhat.com>
19454
19455         * Makefile.in (.NOTPARALLEL): Add fake tag.
19456
19457 2002-03-07  Geert Bosch  <bosch@gnat.com>
19458
19459         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
19460         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
19461         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
19462         switch-m.adb, switch-m.ads : New files.
19463
19464 2002-03-07  Geert Bosch  <bosch@gnat.com>
19465
19466         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
19467         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
19468         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
19469         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
19470         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
19471         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
19472         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
19473         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
19474         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
19475         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
19476         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
19477         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
19478         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
19479         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
19480         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
19481         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
19482         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
19483         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
19484         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
19485         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
19486         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
19487         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
19488         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
19489         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
19490         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
19491         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
19492         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
19493         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
19494         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
19495         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
19496         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
19497         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
19498         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
19499         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
19500         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
19501         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
19502         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
19503         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
19504         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
19505         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
19506         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
19507         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
19508         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
19509         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
19510         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
19511         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
19512         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
19513         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
19514         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
19515         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
19516         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
19517         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
19518         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
19519         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
19520         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
19521         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
19522         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
19523         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
19524         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
19525         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
19526         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
19527         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
19528         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
19529         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
19530         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
19531         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
19532         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
19533         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
19534         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
19535         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
19536         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
19537         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
19538         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
19539         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
19540         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
19541         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
19542         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
19543         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
19544         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
19545         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
19546         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
19547         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
19548         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
19549         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
19550         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
19551         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
19552         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
19553         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
19554         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
19555         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
19556         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
19557         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
19558         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
19559         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
19560         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
19561         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
19562         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
19563
19564         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
19565         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
19566         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
19567         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
19568
19569         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
19570         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
19571
19572         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
19573         to mdll-fil.ad[bs] and mdll-util.ad[bs]
19574
19575         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
19576         from mdllfile.ad[bs] and mdlltool.ad[bs]
19577
19578 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19579
19580         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
19581         lieu of explicit sizeof/sizeof.
19582
19583 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
19584
19585         * misc.c (copy_lang_decl): Remove.
19586
19587 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
19588
19589         * misc.c: Delete traditional-mode-related code copied from the
19590         C front end but not used, or used only to permit the compiler
19591         to link.
19592
19593 2002-02-07  Richard Henderson  <rth@redhat.com>
19594
19595         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
19596         * adaint.h (__gnat_to_gm_time): Update prototype.
19597
19598 2002-01-30  Richard Henderson  <rth@redhat.com>
19599
19600         * trans.c (tree_transform) [N_Loop_Statement]: Use
19601         expand_exit_loop_top_cond.
19602
19603 2001-12-23  Richard Henderson  <rth@redhat.com>
19604
19605         * utils.c (end_subprog_body): Push GC context around
19606         rest_of_compilation for nested functions.
19607
19608 2001-12-23  Richard Henderson  <rth@redhat.com>
19609
19610         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
19611
19612 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
19613
19614         * gnat-style.texi (Declarations and Types): Remove ancient style
19615         rule which was mandated by code generation issues.
19616
19617         * gnat-style.texi (header): Add @dircategory, @direntry.
19618         (title page): Remove date.
19619         (general) Add @./@: where approriate, and two spaces after the
19620         full stop at the end of a sentence.  Use @samp markup when
19621         referring concrete lexical entities (keywords, attribute names
19622         etc.), and @syntax for ARM grammar elements. Use @r for English
19623         text in comments.  Use @emph for emphasis.  Change "if-statements"
19624         etc. to "if statements" (without @samp). Break long lines.  Make
19625         casing of section names consistent.
19626         (Identifiers): Use @samp markup for variable names.
19627         (Comments): Use @samp markup for comment characters. Line-end
19628         comments may follow any Ada code, not just statements.  Fix
19629         misspelling of "Integer" as "integer".
19630         (Loop statements): Do not use variable name "I", use "J".
19631         (Subprogram Declarations): Document alignment.
19632         (Subprogram Bodies, Block statements): Document empty line before
19633         "begin".
19634
19635 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
19636
19637         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
19638         function approach did not work well because of a side effect (the
19639         function call could reallocate the table which was being indexed
19640         using its result). Fixes ada/4851.
19641
19642 2001-12-19  Robert Dewar <dewar@gnat.com>
19643
19644         * bindgen.adb: Minor reformatting
19645
19646         * cstand.adb: Minor reformatting
19647
19648         * fmap.adb: Minor reformatting
19649         Change name from Add for Add_To_File_Map (Add is much too generic)
19650         Change Path_Name_Of to Mapped_Path_Name
19651         Change File_Name_Of to Mapped_File_Name
19652         Fix copyright dates in header
19653
19654         * fmap.ads:
19655         Change name from Add for Add_To_File_Map (Add is much too generic)
19656         Change Path_Name_Of to Mapped_Path_Name
19657         Change File_Name_Of to Mapped_File_Name
19658         Fix copyright dates in header
19659
19660         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
19661         Add use clause for Fmap.
19662
19663         * make.adb: Minor reformatting
19664
19665         * osint.adb: Minor reformatting.  Change of names in Fmap.
19666         Add use clause for Fmap.
19667
19668         * prj-env.adb: Minor reformatting
19669
19670         * prj-env.ads: Minor reformatting
19671
19672         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
19673         error found (there were odd exceptions to this general rule in
19674         -gnatec/-gnatem processing)
19675
19676 2001-12-19  Olivier Hainque <hainque@gnat.com>
19677
19678         * raise.c (__gnat_eh_personality): Exception handling personality
19679         routine for Ada.  Still in rough state, inspired from the C++ version
19680         and still containing a bunch of debugging artifacts.
19681         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
19682         inspired from the C++ library.
19683
19684         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
19685         exception handling integration.
19686
19687 2001-12-19  Arnaud Charlet <charlet@gnat.com>
19688
19689         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
19690         (HIE_SOURCES): Add s-secsta.ad{s,b}.
19691         (HIE_OBJS): Add s-fat*.o
19692         (RAVEN_SOURCES): Remove files that are no longer required. Add
19693         interrupt handling files.
19694         (RAVEN_MOD): Removed, no longer needed.
19695
19696 2001-12-19  Robert Dewar <dewar@gnat.com>
19697
19698         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
19699         Add 2001 to copyright date
19700
19701         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
19702         need to force universal inlining for these cases.
19703
19704 2001-12-19  Arnaud Charlet <charlet@gnat.com>
19705
19706         * s-taprob.adb: Minor clean ups so that this unit can be used in
19707         Ravenscar HI.
19708
19709         * exp_ch7.adb: Allow use of secondary stack in HI mode.
19710         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
19711
19712 2001-12-19  Vincent Celier <celier@gnat.com>
19713
19714         * prj-tree.ads (Project_Node_Record): Add comments for components
19715         Pkg_Id and Case_Insensitive.
19716
19717 2001-12-19  Pascal Obry <obry@gnat.com>
19718
19719         * g-socket.adb: Minor reformatting. Found while reading code.
19720
19721 2001-12-19  Robert Dewar <dewar@gnat.com>
19722
19723         * prj-tree.ads: Minor reformatting
19724
19725 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
19726
19727         * config-lang.in (diff_excludes): Remove.
19728
19729 2001-12-17  Ed Schonberg <schonber@gnat.com>
19730
19731         * sem_res.adb (Resolve_Selected_Component): do not generate a
19732         discriminant check if the selected component is a component of
19733         the argument of an initialization procedure.
19734
19735         * trans.c (tree_transform, case of arithmetic operators): If result
19736         type is private, the gnu_type is the base type of the full view,
19737         given that the full view itself may be a subtype.
19738
19739 2001-12-17  Robert Dewar <dewar@gnat.com>
19740
19741         * sem_res.adb: Minor reformatting
19742
19743         * trans.c (tree_transform, case N_Real_Literal): Add missing third
19744         parameter in call to Machine (unknown horrible effects from this
19745         omission).
19746
19747         * urealp.h: Add definition of Round_Even for call to Machine
19748         Add third parameter for Machine
19749
19750 2001-12-17  Ed Schonberg <schonber@gnat.com>
19751
19752         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
19753         predefined units in No_Run_Time mode.
19754
19755 2001-12-17  Richard Kenner <kenner@gnat.com>
19756
19757         * misc.c (insn-codes.h): Now include.
19758
19759 2001-12-17  Olivier Hainque <hainque@gnat.com>
19760
19761         * a-except.adb: Preparation work for future integration of the GCC 3
19762         exception handling mechanism
19763         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
19764         to factorize previous code sequences and make them externally callable,
19765         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
19766         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
19767         Use the new notification routines.
19768
19769 2001-12-17  Emmanuel Briot <briot@gnat.com>
19770
19771         * prj-tree.ads (First_Choice_Of): Document the when others case
19772
19773 2001-12-17  Arnaud Charlet <charlet@gnat.com>
19774
19775         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
19776         HI-E mode, in order to support Ravenscar profile properly.
19777
19778         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
19779         mode on 32 bits targets.
19780
19781 2001-12-17  Vincent Celier <celier@gnat.com>
19782
19783         * fmap.adb: Initial version.
19784
19785         * fmap.ads: Initial version.
19786
19787         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
19788         If search is successfully done, add to mapping.
19789
19790         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
19791
19792         * make.adb:
19793         (Gnatmake): Add new local variable Mapping_File_Name.
19794          Create mapping file when using project file(s).
19795          Delete mapping file before exiting.
19796
19797         * opt.ads (Mapping_File_Name): New variable
19798
19799         * osint.adb (Find_File): Use path name found in mapping, if any.
19800
19801         * prj-env.adb (Create_Mapping_File): New procedure
19802
19803         * prj-env.ads (Create_Mapping_File): New procedure.
19804
19805         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
19806         (Mapping_File)
19807
19808         * usage.adb: Add entry for new switch -gnatem.
19809
19810         * Makefile.in: Add dependencies for fmap.o.
19811
19812 2001-12-17  Ed Schonberg <schonber@gnat.com>
19813
19814         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
19815         is a package instantiation rewritten as a package body.
19816         (Install_Withed_Unit): Undo previous change, now redundant.
19817
19818 2001-12-17  Gary Dismukes <dismukes@gnat.com>
19819
19820         * layout.adb:
19821         (Compute_Length): Move conversion to Unsigned to callers.
19822         (Get_Max_Size): Convert Len expression to Unsigned after calls to
19823         Compute_Length and Determine_Range.
19824         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
19825         Compute_Length and Determine_Range.
19826         Above changes fix problem with length computation for supernull arrays
19827         where Max (Len, 0) wasn't getting applied due to the Unsigned
19828         conversion used by Compute_Length.
19829
19830 2001-12-17  Arnaud Charlet <charlet@gnat.com>
19831
19832         * rtsfind.ads:
19833         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
19834          System.Secondary_Stack.
19835         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
19836          in HI-E mode.
19837         Remove unused entity RE_Exception_Data.
19838
19839         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
19840
19841         * rident.ads (No_Secondary_Stack): New restriction.
19842
19843 2001-12-17  Joel Brobecker <brobecke@gnat.com>
19844
19845         * gnat_rm.texi: Fix minor typos. Found while reading the section
19846         regarding "Bit_Order Clauses" that was sent to a customer.
19847         Very interesting documentation!
19848
19849 2001-12-17  Robert Dewar <dewar@gnat.com>
19850
19851         * sem_case.adb (Choice_Image): Avoid creating improper character
19852         literal names by using the routine Set_Character_Literal_Name. This
19853         fixes bombs in certain error message cases.
19854
19855 2001-12-17  Arnaud Charlet <charlet@gnat.com>
19856
19857         * a-reatim.adb: Minor reformatting.
19858
19859 2001-12-17  Ed Schonberg <schonber@gnat.com>
19860
19861         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
19862         case where the formal is an extension of another formal in the current
19863         unit or in a parent generic unit.
19864
19865 2001-12-17  Arnaud Charlet <charlet@gnat.com>
19866
19867         * s-tposen.adb: Update comments.  Minor reformatting.
19868         Minor code clean up.
19869
19870         * s-tarest.adb: Update comments.  Minor code reorganization.
19871
19872 2001-12-17  Gary Dismukes <dismukes@gnat.com>
19873
19874         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
19875         when Java_VM.
19876
19877 2001-12-17  Robert Dewar <dewar@gnat.com>
19878
19879         * exp_attr.adb: Minor reformatting
19880
19881 2001-12-17  Ed Schonberg <schonber@gnat.com>
19882
19883         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
19884         derivations nested within a child unit: verify that the parent
19885         type is declared in an outer scope.
19886
19887 2001-12-17  Robert Dewar <dewar@gnat.com>
19888
19889         * sem_ch12.adb: Minor reformatting
19890
19891 2001-12-17  Ed Schonberg <schonber@gnat.com>
19892
19893         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
19894         warning if current unit is a predefined one, from which bodies may
19895         have been deleted.
19896
19897 2001-12-17  Robert Dewar <dewar@gnat.com>
19898
19899         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
19900         Fix header format. Add 2001 to copyright date.
19901
19902         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
19903         which caused CE during compilation if checks were enabled.
19904
19905 2001-12-17  Vincent Celier <celier@gnat.com>
19906
19907         * make.adb:
19908         (Switches_Of): New function
19909         (Test_If_Relative_Path): New procedure
19910         (Add_Switches): Use new function Switches_Of
19911         (Collect_Arguments_And_Compile): Use new function Switches_Of.
19912         When using a project file, test if there are any relative
19913         search path. Fail if there are any.
19914         (Gnatmake): Only add switches for the primary directory when not using
19915         a project file. When using a project file, change directory to the
19916         object directory of the main project file. When using a project file,
19917         test if there are any relative search path. Fail if there are any.
19918         When using a project file, fail if specified executable is relative
19919         path with directory information, and prepend executable, if not
19920         specified as an absolute path, with the exec directory.  Make sure
19921         that only one -o switch is transmitted to the linker.
19922
19923         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
19924
19925         * prj-nmsc.adb:
19926         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
19927         when using a non standard naming scheme.
19928         (Check_Ada_Naming_Scheme): Make sure that error messages
19929         do not raise exceptions.
19930         (Is_Illegal_Append): Return True if there is no dot in the suffix.
19931         (Language_Independent_Check): Check the exec directory.
19932
19933         * prj.adb (Project_Empty): Add new component Exec_Directory
19934
19935         * prj.ads:
19936         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
19937         (Project_Data): Add component Exec_Directory
19938
19939         * snames.adb: Updated to match snames.ads revision 1.215
19940
19941         * snames.ads: Added Exec_Dir
19942
19943 2001-12-17  Robert Dewar <dewar@gnat.com>
19944
19945         * make.adb: Minor reformatting
19946
19947         * prj-nmsc.adb: Minor reformatting
19948
19949         * snames.adb: Updated to match snames.ads
19950
19951         * snames.ads: Alphebetize entries for project file
19952
19953 2001-12-17  Ed Schonberg <schonber@gnat.com>
19954
19955         * trans.c (process_freeze_entity): Do nothing if the entity is a
19956         subprogram that was already elaborated.
19957
19958 2001-12-17  Richard Kenner <kenner@gnat.com>
19959
19960         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
19961         and Esize if object is referenced via pointer.
19962
19963 2001-12-17  Ed Schonberg <schonber@gnat.com>
19964
19965         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
19966         is discrete before analyzing choices.
19967
19968 2001-12-17  Joel Brobecker <brobecke@gnat.com>
19969
19970         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
19971         containing the name of the Ada Main Program. This string is mainly
19972         intended for the debugger.
19973         (Gen_Output_File_C): Do the equivalent change when generating a C file.
19974
19975 2001-12-17  Robert Dewar <dewar@gnat.com>
19976
19977         * ali.adb: Set new Dummy_Entry field in dependency entry
19978
19979         * ali.ads: Add Dummy_Entry field to source dependency table
19980
19981         * bcheck.adb (Check_Consistency): Ignore dummy D lines
19982
19983         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
19984
19985         * lib-writ.ads: Document dummy D lines for missing files.
19986
19987         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
19988
19989 2001-12-17  Robert Dewar <dewar@gnat.com>
19990
19991         * ali.adb: Type reference does not reset current file.
19992
19993         * ali.adb: Recognize and scan renaming reference
19994
19995         * ali.ads: Add spec for storing renaming references.
19996
19997         * lib-xref.ads: Add documentation for handling of renaming references
19998
19999         * lib-xref.adb: Implement output of renaming reference.
20000
20001         * checks.adb:
20002         (Determine_Range): Document local variables
20003         (Determine_Range): Make sure Hbound is initialized. It looks as though
20004          there could be a real problem here with an uninitialized reference
20005          to Hbound, but no actual example of failure has been found.
20006
20007 2001-12-17  Laurent Pautet <pautet@gnat.com>
20008
20009         * g-socket.ads:
20010         Fix comment of Shutdown_Socket and Close_Socket. These functions
20011         should not fail silently because if they are called twice, this
20012         probably means that there is a race condition in the user program.
20013         Anyway, this behaviour is consistent with the rest of this unit.
20014         When an error occurs, an exception is raised with the error message
20015         as exception message.
20016
20017 2001-12-17  Robert Dewar <dewar@gnat.com>
20018
20019         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
20020         that it happens before modification of Sloc values for -gnatD.
20021
20022         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
20023         so that it happens before modification of Sloc values for -gnatD.
20024
20025         * switch.adb: Minor reformatting
20026
20027 2001-12-15  Richard Henderson  <rth@redhat.com>
20028
20029         * sem_ch7.adb: Wrap comment.
20030
20031 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
20032
20033         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
20034         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
20035         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
20036         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
20037         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
20038         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
20039         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
20040         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
20041         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
20042         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
20043         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
20044         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
20045         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
20046         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
20047         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
20048         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
20049         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
20050         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
20051         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
20052         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
20053         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
20054         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
20055         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
20056         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
20057         spelling errors.
20058
20059 2001-12-14  Vincent Celier <celier@gnat.com>
20060
20061         * osint.adb(Create_Debug_File): When an object file is specified,
20062         put the .dg file in the same directory as the object file.
20063
20064 2001-12-14  Robert Dewar <dewar@gnat.com>
20065
20066         * osint.adb: Minor reformatting
20067
20068         * lib-xref.adb (Output_Instantiation): New procedure to generate
20069         instantiation references.
20070
20071         * lib-xref.ads: Add documentation of handling of generic references.
20072
20073         * ali.adb (Read_Instantiation_Ref): New procedure to read
20074         instantiation references
20075
20076         * ali.ads: Add spec for storing instantiation references
20077
20078         * bindusg.adb: Minor reformatting
20079
20080         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20081
20082         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20083
20084         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20085
20086         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20087
20088         * csets.ads:
20089         Fix header format
20090         Add 2001 to copyright date
20091         Add entry for Latin-5 (Cyrillic ISO-8859-5)
20092
20093 2001-12-14  Matt Gingell <gingell@gnat.com>
20094
20095         * adaint.c: mktemp is a macro on Lynx and can not be used as an
20096         expression.
20097
20098 2001-12-14  Richard Kenner <kenner@gnat.com>
20099
20100         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
20101         if operand is CONSTRUCTOR.
20102
20103 2001-12-14  Ed Schonberg <schonber@gnat.com>
20104
20105         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
20106         before emiting check on right-hand side, so that exception information
20107         is correct.
20108
20109 2001-12-14  Richard Kenner <kenner@gnat.com>
20110
20111         * utils.c (create_var_decl): Throw away initializing expression
20112         if just annotating types and non-constant.
20113
20114 2001-12-14  Vincent Celier <celier@gnat.com>
20115
20116         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
20117         Default_Ada_...
20118
20119         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20120         Remove functions.
20121         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
20122
20123         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20124         Remove functions.
20125         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
20126
20127 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
20128
20129         * ChangeLog: Remove piece of diff output.
20130
20131 2001-12-14  Geert Bosch <bosch@gnat.com>
20132
20133         * config-lang.in: Update copyright notice
20134
20135         * layout.adb: Remove commented out code.
20136
20137         * mdllfile.ads: Update copyright notice. Fix header format.
20138
20139         * sem_case.ads: Likewise.
20140
20141         * sem_ch3.adb: Minor reformatting.
20142
20143 2001-12-12  Geert Bosch <bosch@gnat.com>
20144
20145         * freeze.ads: Update copyright date.
20146
20147         * g-comlin.ads: Minor reformatting.
20148
20149         * gnat-style.texi: Fix typo.
20150
20151 2001-12-12  Geert Bosch <bosch@gnat.com>
20152
20153         *  einfo.h: Regenerate.
20154
20155 2001-12-12  Ed Schonberg <schonber@gnat.com>
20156
20157         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
20158         on known node types, rather than untyped fields. Further cleanups.
20159
20160 2001-12-12  Robert Dewar <dewar@gnat.com>
20161
20162         * sem_ch12.adb:
20163         (Save_Entity_Descendant): Minor comment update.
20164         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
20165          of an N_Attribute_Reference node. As per note below, this does not
20166         eliminate need for Associated_Node in attribute ref nodes.
20167         (Associated_Node): Documentation explicitly mentions attribute
20168         reference nodes, since this field is used in such nodes.
20169
20170         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
20171
20172 2001-12-12  Robert Dewar <dewar@gnat.com>
20173
20174         * s-stalib.adb: Add more comments on with statements being needed
20175
20176         * par-ch12.adb: Minor reformatting
20177
20178         * prj-dect.ads: Fix copyright header
20179
20180         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
20181         inputs fit in 32 bits, but the result still overflows.
20182
20183         * s-fatgen.ads: Minor comment improvement
20184
20185 2001-12-12  Ed Schonberg <schonber@gnat.com>
20186
20187         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
20188         formal derived type, look for an inherited component from the full
20189         view of the parent, if any.
20190
20191 2001-12-12  Robert Dewar <dewar@gnat.com>
20192
20193         * checks.ads (Apply_Alignment_Check): New procedure.
20194
20195         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
20196         ensure that the alignment of objects with address clauses is
20197         appropriate, and raise PE if not.
20198
20199         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
20200         Exp_Pakd.Known_Aligned_Enough
20201
20202         * mdllfile.ads: Minor reformatting
20203
20204         * mlib-fil.ads: Minor reformatting
20205
20206 2001-12-12  Ed Schonberg <schonber@gnat.com>
20207
20208         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
20209         fix to any component reference if enclosing record has non-standard
20210         representation.
20211
20212 2001-12-12  Vincent Celier <celier@gnat.com>
20213
20214         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
20215         Iteration
20216
20217 2001-12-12  Ed Schonberg <schonber@gnat.com>
20218
20219         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
20220         sem_attr.
20221
20222 2001-12-12  Robert Dewar <dewar@gnat.com>
20223
20224         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
20225
20226 2001-12-12  Emmanuel Briot <briot@gnat.com>
20227
20228         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
20229         and it adds dependencies to system.io.
20230
20231 2001-12-12  Pascal Obry <obry@gnat.com>
20232
20233         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
20234         variable name.
20235
20236 2001-12-11  Ed Schonberg <schonber@gnat.com>
20237
20238         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
20239         that is the parent of other generics, the instance body replaces the
20240         instance node.  Retrieve the instance of the spec, which is the one
20241         that is visible in clients and within the body.
20242
20243 2001-12-11  Vincent Celier <celier@gnat.com>
20244
20245         * gnatmain.adb: Initial version.
20246
20247         * gnatmain.ads: Initial version.
20248
20249         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
20250
20251         * snames.adb: Updated to match snames.ads.
20252
20253         * snames.ads: Added Gnatstub.
20254
20255 2001-12-11  Vincent Celier <celier@gnat.com>
20256
20257         * prj-attr.adb (Initialization_Data): Change name from
20258         Initialisation_Data.
20259
20260 2001-12-11  Emmanuel Briot <briot@gnat.com>
20261
20262         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
20263         + and * applied to backslashed expressions like \r.
20264
20265 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
20266
20267         * g-os_lib.ads: String_List type added, Argument_List type is now
20268         subtype of String_List.
20269
20270 2001-12-11  Robert Dewar <dewar@gnat.com>
20271
20272         * g-os_lib.ads: Change copyright to FSF
20273         Add comments for String_List type
20274
20275 2001-12-11  Vincent Celier <celier@gnat.com>
20276
20277         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
20278         string to the buffer).
20279
20280 2001-12-11  Ed Schonberg <schonber@gnat.com>
20281
20282         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
20283         sem_attr.
20284
20285         * sem_attr.adb: Simplify previous fix for Address.
20286         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
20287         to avoid anomalies where the bound of the type appears to raise
20288         constraint error.
20289
20290 2001-12-11  Robert Dewar <dewar@gnat.com>
20291
20292         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
20293         handled.
20294
20295 2001-12-11  Ed Schonberg <schonber@gnat.com>
20296
20297         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
20298         renamed unit before checking for recursive instantiations.
20299
20300 2001-12-11  Emmanuel Briot <briot@gnat.com>
20301
20302         * prj.ads: Add comments for some of the fields.
20303
20304 2001-12-11  Robert Dewar <dewar@gnat.com>
20305
20306         * lib-xref.adb (Output_Refs): Don't output type references outside
20307         the main unit if they are not otherwise referenced.
20308
20309 2001-12-11  Ed Schonberg <schonber@gnat.com>
20310
20311         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
20312         code and diagnose additional illegal uses
20313
20314         * sem_util.adb (Is_Object_Reference): An indexed component is an
20315         object only if the prefix is.
20316
20317 2001-12-11  Vincent Celier <celier@gnat.com>
20318
20319         * g-diopit.adb: Initial version.
20320
20321         * g-diopit.ads: Initial version.
20322
20323         * g-dirope.adb:
20324         (Expand_Path): Avoid use of Unbounded_String
20325         (Find, Wildcard_Iterator): Moved to child package Iteration
20326
20327         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
20328
20329 2001-12-11  Robert Dewar <dewar@gnat.com>
20330
20331         * sem_attr.adb: Minor reformatting
20332
20333 2001-12-11  Ed Schonberg <schonber@gnat.com>
20334
20335         * sem_ch3.adb: Clarify some ???.
20336
20337 2001-12-11  Robert Dewar <dewar@gnat.com>
20338
20339         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
20340         Exp_Pakd.Known_Aligned_Enough
20341
20342         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
20343         version is moved to Exp_Ch13.
20344
20345 2001-12-11  Robert Dewar <dewar@gnat.com>
20346
20347         * einfo.ads: Minor reformatting
20348
20349         * exp_ch5.adb: Add comment for previous.change
20350
20351         * ali.adb: New interface for extended typeref stuff.
20352
20353         * ali.ads: New interface for typeref stuff.
20354
20355         * checks.adb (Apply_Alignment_Check): New procedure.
20356
20357         * debug.adb: Add -gnatdM for modified ALI output
20358
20359         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
20360
20361         * lib-xref.adb: Extend generation of <..> notation to cover
20362         subtype/object types. Note that this is a complete rewrite,
20363         getting rid of the very nasty quadratic algorithm previously
20364         used for derived type output.
20365
20366         * lib-xref.ads: Extend description of <..> notation to cover
20367         subtype/object types. Uses {..} for these other cases.
20368         Also use (..) for pointer types.
20369
20370         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
20371
20372         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
20373         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
20374
20375 2001-12-11  Vincent Celier <celier@gnat.com>
20376
20377         * gnatcmd.adb:
20378         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
20379         Changed /BIND_ONLY to /ACTIONS=BIND
20380         Changed /LINK_ONLY to /ACTIONS=LINK
20381
20382 2001-12-11  Ed Schonberg  <schonber@gnat.com>
20383
20384         * sem_ch8.adb (Find_Selected_Component): improved search for a
20385         candidate package in case of error.
20386
20387         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
20388         chain back on scope stack before reinstalling use clauses.
20389
20390         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
20391         is enabled, do not kill the code for the condition, to preserve
20392         warning.
20393
20394 2001-12-11  Robert Dewar <dewar@gnat.com>
20395
20396         * checks.adb (Insert_Valid_Check): Apply validity check to expression
20397         of conversion, not to result of conversion.
20398
20399 2001-12-11  Ed Schonberg <schonber@gnat.com>
20400
20401         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
20402         before freezing parent. If the declarations are mutually recursive,
20403         an access to the current record type may be frozen before the
20404         derivation is complete.
20405
20406 2001-12-05  Vincent Celier <celier@gnat.com>
20407
20408         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
20409         -c /COMPILE_ONLY, -l /LINK_ONLY
20410
20411         * opt.ads:
20412         (Bind_Only): New Flag
20413         (Link_Only): New flag
20414
20415         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
20416         and -l (Link_Only)
20417
20418         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
20419
20420         * make.adb:
20421         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
20422         (Gnatmake): Set the step flags. Only perform a step if the
20423         corresponding step flag is True.
20424         (Scan_Make_Arg): Reset the bind and link step flags when -u
20425         or -gnatc has been specified.
20426
20427 2001-12-05  Ed Schonberg <schonber@gnat.com>
20428
20429         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
20430         get bounds from right operand.
20431
20432         * sem_eval.adb: Minor reformatting
20433
20434         * exp_util.adb (Make_Literal_Range): use bound of literal rather
20435         than Index'First, its lower bound may be different from 1.
20436
20437         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
20438         and C48009J
20439
20440 2001-12-05  Vincent Celier <celier@gnat.com>
20441
20442         * prj-nmsc.adb Minor reformatting
20443
20444         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
20445         set and libraries are not supported.
20446
20447 2001-12-05  Ed Schonberg <schonber@gnat.com>
20448
20449         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
20450         private view explicitly, so the back-end can treat as a global
20451         when appropriate.
20452
20453 2001-12-05  Ed Schonberg <schonber@gnat.com>
20454
20455         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
20456          unit, always replace instance node with new body, for ASIS use.
20457
20458 2001-12-05  Vincent Celier <celier@gnat.com>
20459
20460         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
20461         libraries are not supported and both attributes Library_Name and
20462         Library_Dir are specified.
20463
20464         * prj-proc.adb (Expression): Set location of Result to location of
20465         first term.
20466
20467         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
20468         (prj-nmsc is now importing MLib.Tgt)
20469
20470         * prj-proc.adb: Put the change indicated above that was forgotten.
20471
20472 2001-12-05  Robert Dewar <dewar@gnat.com>
20473
20474         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
20475
20476 2001-12-05  Ed Schonberg <schonber@gnat.com>
20477
20478         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
20479         constraint, introduce explicit subtype declaration and derive from it.
20480
20481         * sem_ch3.adb: Minor reformatting
20482
20483 2001-12-05  Robert Dewar <dewar@gnat.com>
20484
20485         * checks.adb (Determine_Range): Increase cache size for checks.
20486         Minor reformatting
20487
20488         * exp_ch6.adb: Minor reformatting
20489         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
20490         a parameter whose root type is System.Address, since treating such
20491         subprograms as pure in the code generator is almost surely a mistake
20492         that will lead to unexpected results.
20493
20494         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
20495         change handling of conversions.
20496
20497         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
20498
20499 2001-12-05  Ed Schonberg <schonber@gnat.com>
20500
20501         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
20502         aggregate with static wrong size, attach generated Raise node to
20503         declaration.
20504
20505 2001-12-05  Robert Dewar <dewar@gnat.com>
20506
20507         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
20508         Fixes compilation abandoned bomb in B24009B.
20509
20510 2001-12-05  Ed Schonberg <schonber@gnat.com>
20511
20512         * sem_ch12.adb:
20513         Document use of Associated_Node on Selected_Components.
20514         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
20515         to clarify use of untyped descendant fields.
20516
20517 2001-12-05  Robert Dewar <dewar@gnat.com>
20518
20519         * prj-dect.ads: Add ??? comment
20520         Add 2001 to copyright notice (was not done in after all)
20521
20522         * prj-part.adb: Minor reformatting. Reword one awkward error message.
20523
20524         * prj.ads: Minor reformatting throughout, and add some ??? comments
20525
20526         * snames.ads: Minor reformatting
20527
20528 2001-12-05  Geert Bosch <bosch@gnat.com>
20529
20530         * snames.adb: Autoupdate
20531
20532 2001-12-05  Vincent Celier <celier@gnat.com>
20533
20534         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
20535
20536         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
20537
20538         * prj-env.adb: Minor comment changes (modifying -> extends).
20539
20540         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
20541
20542         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
20543         Tok_Extends.
20544
20545         * prj.adb (Initialize): Change Modifying to Extends.
20546
20547         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
20548
20549         * prj.ads: Minor comment change (Modifying -> extending).
20550
20551         * snames.ads: Change modifying to extends.
20552
20553 2001-12-05  Robert Dewar <dewar@gnat.com>
20554
20555         * sem_warn.adb: Remove stuff for conditionals, we are not going to
20556         do this after all.
20557
20558         * sem_warn.ads: Remove stuff for conditionals, we are not going to
20559         do this after all.  Add 2001 to copyright notice
20560
20561 2001-12-04  Geert Bosch <bosch@gnat.com>
20562
20563         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
20564
20565 2001-12-04  Robert Dewar <dewar@gnat.com>
20566
20567         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
20568         location if we already have errors. Stops some cases of cascaded
20569         errors.
20570
20571         * errout.adb: Improve comment.
20572
20573 2001-12-04  Robert Dewar <dewar@gnat.com>
20574
20575         * sem_ch12.adb:
20576         (Analyze_Formal_Type_Definition): Defend against Error.
20577         (Analyze_Formal_Subprogram): Defend against Error.
20578
20579         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
20580         remove following semicolon if present. Removes cascaded error.
20581
20582 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
20583
20584         * bindgen.adb:
20585         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
20586          exceptions equals 0.
20587         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
20588         Fixes PIWG E tests (which have to be run with -gnatL).
20589
20590 2001-12-04  Robert Dewar <dewar@gnat.com>
20591
20592         * einfo.ads: Minor reformatting
20593
20594 2001-12-04  Ed Schonberg <schonber@gnat.com>
20595
20596         * einfo.ads: Block_Node points to the identifier of the block, not to
20597         the block node itself, to preserve the link when the block is
20598         rewritten, e.g. within an if-statement with a static condition.
20599
20600         * inline.adb (Cleanup_Scopes): recover block statement from block
20601         entity using new meaning of Block_Node.
20602
20603         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
20604         identifier of block node, rather than to node itself.
20605
20606 2001-12-04  Gary Dismukes <dismukes@gnat.com>
20607
20608         * layout.adb:
20609         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
20610         (Discrimify): Go back to setting the Etypes of the selected component
20611         because the Vname component does not exist at this point and will
20612         fail name resolution. Also set Analyzed.
20613         Remove with and use of Sem_Res.
20614
20615 2001-12-04  Arnaud Charlet <charlet@gnat.com>
20616
20617         * Makefile.in: (HIE_SOURCES): add s-fat*.
20618
20619 2001-12-04  Robert Dewar <dewar@gnat.com>
20620
20621         * sem_attr.adb:
20622         (Compile_Time_Known_Attribute): New procedure.
20623         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
20624          proper range check.
20625
20626 2001-12-04  Ed Schonberg <schonber@gnat.com>
20627
20628         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
20629         processing discriminants to diagnose illegal default values.
20630
20631 2001-12-04  Ed Schonberg <schonber@gnat.com>
20632
20633         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
20634         access discriminant within a type extension that constrains its
20635         parent discriminants.
20636
20637 2001-12-04  Ed Schonberg <schonber@gnat.com>
20638
20639         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
20640         is malformed, use instance of Any_Id to allow analysis to proceed.
20641
20642         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
20643         type definition is illegal.
20644         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
20645         misplaced.
20646
20647 2001-12-04  Ed Schonberg <schonber@gnat.com>
20648
20649         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
20650         constants.
20651
20652 2001-12-04  Robert Dewar <dewar@gnat.com>
20653
20654         * errout.adb: Minor reformatting
20655
20656 2001-12-04  Robert Dewar <dewar@gnat.com>
20657
20658         * exp_util.adb: Minor reformatting from last change
20659
20660         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
20661         which is a rewriting of an expression, traverse the original
20662         expression to remove warnings that may have been posted on it.
20663
20664 2001-12-04  Ed Schonberg <schonber@gnat.com>
20665
20666         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
20667         record that has other packed components.
20668
20669 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
20670
20671         * adaint.c: Minor cleanups.
20672
20673 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
20674
20675         * adaint.c: Do not use utime.h on vxworks.
20676
20677 2001-12-04  Arnaud Charlet <charlet@gnat.com>
20678
20679         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
20680         more confusion than it solves.
20681
20682 2001-12-04  Geert bosch <bosch@gnat.com>
20683
20684         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
20685
20686 2001-12-04  Geert Bosch  <bosch@gnat.com>
20687
20688         * Makefile.in (update-sources): New target.
20689         For use by gcc_release script.
20690
20691 2001-12-04  Ed Schonberg <schonber@gnat.com>
20692
20693         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
20694         a configuration pragma, it is now legal wherever a pragma can appear.
20695
20696 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
20697
20698         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
20699         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
20700         is now @CROSS@ -DIN_GCC; update comment.
20701
20702 2001-12-04  Robert Dewar <dewar@gnat.com>
20703
20704         * einfo.adb (Has_Pragma_Pure_Function): New flag.
20705         Fix problem that stopped ceinfo from working
20706
20707         * einfo.ads (Has_Pragma_Pure_Function): New flag.
20708
20709         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
20710
20711 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
20712
20713         * gnatchop.adb:
20714         (File_Time_Stamp): New procedure.
20715         (Preserve_Mode): New boolean.
20716         (Write_Unit): Pass time stamp.
20717         Implement -p switch (preserve time stamps).
20718
20719         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
20720
20721         * gnatchop.adb: Do usage info for -p switch
20722
20723         * adaint.h (__gnat_set_file_time_name): New function
20724
20725         * adaint.c (__gnat_set_file_time_name): Implement
20726
20727         * adaint.h: Fix typo
20728
20729 2001-12-03  Robert Dewar <dewar@gnat.com>
20730
20731         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
20732         have Associated_Node.
20733
20734 2001-12-03  Robert Dewar <dewar@gnat.com>
20735
20736         * prj-proc.adb: Minor reformatting
20737
20738         * make.adb: Minor reformatting
20739
20740 2001-12-03  Geert Bosch <bosch@gnat.com>
20741
20742         * make.adb: Minor reformatting.
20743
20744 2001-12-03 Robert Dewar  <dewar@gnat.com>
20745
20746         * sem_ch12.adb: Minor reformatting
20747
20748 2001-12-03  Ed Schonberg <schonber@gnat.com>
20749
20750         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
20751         push Standard on the stack before analyzing the instance body,
20752         in order to have a clean visibility environment.
20753
20754         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
20755
20756 2001-12-03  Ed Schonberg <schonber@gnat.com>
20757
20758         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
20759         instantiation of a body that contains an inlined body.
20760
20761 2001-12-03  Ed Schonberg <schonber@gnat.com>
20762
20763         * sem_ch12.adb:
20764         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
20765         to prevent freezing within formal packages.
20766         (Freeze_Subprogram_Body): If body comes from another instance that
20767         appeared before its own body, place freeze node at end of current
20768         declarative part, to prevent a back-end crash.
20769         (Inline_Instance_Body): Handle properly a package instance within
20770         a subprogram instance that is a child unit.
20771
20772 2001-12-01  Graham Stott  <grahams@redhat.com>
20773
20774         * Makefile.in (misc.o): Add missing $(srcdir) prefix
20775         and add optabs.h dependency.
20776
20777         * misc.c: Include optabs.h
20778         (gnat_tree_code_type): Make static and const.
20779         (gnat_tree_code_length): Likewise.
20780         (gnat_tree_code_name): Likewise.
20781         (update_setjmp_buf): Obtain operands mode from insn_data.
20782
20783 2001-11-29  Richard Henderson  <rth@redhat.com>
20784
20785         * init.c: Remove obsolete dwarf2 frame.h section.
20786
20787 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
20788
20789         * Make-lang.in (ada.generated-manpages): New dummy target.
20790
20791 2001-11-29  Ed Schonberg <schonber@gnat.com>
20792
20793         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
20794         into Command, an array conversion is illegal here. Uncovered by
20795         ACATS B460005.
20796
20797 2001-11-28  Geert Bosch <bosch@gnat.com>
20798
20799         * init.c: Minor whitespace changes.
20800
20801 2001-11-28  Doug Rupp <rupp@gnat.com>
20802
20803         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
20804         signal stack.
20805
20806 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
20807
20808         * misc.c (gnat_expand_constant): Move declaration above
20809         definition of lang_hooks.
20810         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
20811         (gnat_init): lang_expand_constant no longer exists.
20812
20813         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
20814         always have vprintf.
20815         (gnat_init): Always call set_internal_error_function.
20816
20817 2001-11-27  Andreas Jaeger  <aj@suse.de>
20818
20819         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
20820
20821 2001-11-27  Laurent Guerby  <guerby@acm.org>
20822
20823         * Makefile.in: Regenerate Ada dependencies.
20824
20825 2001-11-26  Richard Henderson  <rth@redhat.com>
20826
20827         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
20828         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
20829         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
20830
20831 2001-11-25  Laurent Guerby  <guerby@acm.org>
20832
20833         * sysdep.c (rts_get_*): Fix style.
20834
20835 2001-11-19  Laurent Guerby  <guerby@acm.org>
20836
20837         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
20838         since it is of no apparent use and cause warnings.
20839
20840 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
20841
20842         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
20843         static too.
20844         (gnat_init): Don't return NULL.
20845         (finish_parse): Remove.
20846
20847 2001-11-17  Laurent Guerby  <guerby@acm.org>
20848
20849         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
20850         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
20851         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
20852         * lang-spec.h: Add missing struct field to silence warnings.
20853         * sysdep.c (rts_get_*): Provide K&R prototype.
20854         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
20855         * traceback.c (Unlock_Task, Lock_Task): Likewise.
20856         * tracebak.c (__gnat_backtrace): Remove unused variable.
20857         * utils.c (end_subprog_body): Move to K&R style.
20858
20859 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20860
20861         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
20862
20863 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
20864
20865         * misc.c (gnat_init): Change prototype.  Include the
20866         functionality of the old init_parse and init_decl_processing.
20867         (gnat_init_decl_processing): New prototype.
20868         (init_parse): Remove.
20869         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
20870
20871 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
20872
20873         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
20874         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
20875         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
20876         set_yydebug): Remove.
20877
20878 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
20879
20880         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
20881         (struct lang_hooks): Constify.
20882         (language_string, lang_identify): Remove.
20883         * utils.c (init_decl_processing): Update.
20884
20885 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
20886
20887         * misc.c: Include langhooks-def.h.
20888         * Makefile.in: Update.
20889
20890 2001-10-30  Robert Dewar <dewar@gnat.com>
20891
20892         * style.adb:
20893         (Check_Identifier): Rewrite circuit to be compatible with use of letters
20894         in the upper half of ASCII.
20895         (Check_Identifier): Minor reformatting
20896
20897 2001-10-30  Geert Bosch <bosch@gnat.com>
20898
20899         * (Associated_Node, Set_Associated_Node): Do not check for
20900         Freeze_Entity.
20901
20902 2001-10-30  Robert Dewar <dewar@gnat.com>
20903
20904         * a-reatim.ads: Minor reformatting
20905
20906 2001-10-30  Robert Dewar <dewar@gnat.com>
20907
20908         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
20909         undocumented declarations.
20910
20911 2001-10-30  Pascal Obry <obry@gnat.com>
20912
20913         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
20914         to the binder and linker.
20915         Minor style fix.
20916
20917         * mdll.ads: Fix layout.  Update copyright notice.
20918
20919         * mdll.adb: Fix layout.  Update copyright notice.
20920
20921 2001-10-30  Robert Dewar <dewar@gnat.com>
20922
20923         * usage.adb: Minor fix to output for -gnaty.
20924
20925 2001-10-30  Ed Schonberg <schonber@gnat.com>
20926
20927         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
20928         to accommodate all its possible values.
20929
20930         * a-reatim.adb (Split): Special-case handling of Time_Span_First
20931         and of small absolute values of T.
20932
20933 2001-10-30  Richard Kenner <kenner@gnat.com>
20934
20935         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
20936         set_mem_attributes since not needed and wrong if RESULT if a REG;
20937         fixes ACATS failures.
20938
20939 2001-10-30  Geert Bosch <bosch@gnat.com>
20940
20941         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
20942         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
20943
20944 2001-10-30  Robert Dewar <dewar@gnat.com>
20945
20946         * bindusg.adb: Undocument -f switch.
20947
20948         * gnatcmd.adb: Remove /FULL_ELABORATION.
20949
20950         * opt.ads (Force_RM_Elaboration_Order): Document that this is
20951         obsolescent.
20952
20953         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
20954
20955         * gnatbind.adb: Minor update of warning msg.
20956
20957 2001-10-30  Vincent Celier <celier@gnat.com>
20958
20959         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
20960         for project file switches (-P (/PROJECT_FILE=),
20961          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
20962         or MEDIUM or HIGH)
20963
20964 2001-10-30  Geert Bosch <bosch@gnat.com>
20965
20966         * decl.c: Minor whitespace fixes.
20967
20968 2001-10-30  Richard Kenner <kenner@gnat.com>
20969
20970         * utils2.c (build_allocator): Test for SIZE overflow in array case too
20971
20972 2001-10-30  Geert Bosch <bosch@gnat.com>
20973
20974         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
20975         Found due to GCC 3.0 warning of using uninitialized value.
20976
20977         * layout.adb:
20978         (Get_Max_Size): Use variant record for tracking value/expression.
20979          Makes logic clearer and prevents warnings for uninitialized variables.
20980         (Layout_Array_Type): Use variant record for tracking value/expression.
20981          Makes logic clearer and prevents warnings for uninitialized variables.
20982
20983 2001-10-30  Robert Dewar <dewar@gnat.com>
20984
20985         * lib.adb: Minor reformatting
20986
20987         * s-taprop.ads: Minor reformatting
20988
20989 2001-10-29  Laurent Guerby  <guerby@acm.org>
20990
20991         * init.c:
20992         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
20993         const.
20994         (_gnat_error_handler): Make MSG const.
20995
20996 2001-10-29  Richard Kenner <kenner@gnat.com>
20997
20998         * sysdep.c: Fix localtime_r problem on LynxOS.
20999         Also remove #elif to avoid warnings.
21000
21001         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
21002         used by this.
21003
21004         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
21005
21006 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
21007
21008         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
21009         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
21010         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
21011         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
21012         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
21013         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
21014         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
21015         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
21016         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
21017         types.ads, urealp.adb: Fix spelling errors.
21018
21019 2001-10-27  Laurent Guerby <guerby@acm.org>
21020
21021         * trans.c (gigi): Fix non determinism leading to bootstrap
21022         comparison failures for debugging information.
21023
21024 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
21025
21026         * gnat_rm.texi: Use @./@: where appropriate.
21027
21028 2001-10-26  Robert Dewar <dewar@gnat.com>
21029
21030         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
21031
21032 2001-10-26  Richard Kenner <kenner@gnat.com>
21033
21034         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
21035
21036 2001-10-26  Richard Kenner <kenner@gnat.com>
21037
21038         * decl.c (validate_size): Modify message for bad size to avoid
21039         implication that compiler is modifying the size.
21040
21041 2001-10-26  Robert Dewar <dewar@gnat.com>
21042
21043         * prj-util.adb: Minor reformatting. Fix bad header format.
21044
21045 2001-10-26  Robert Dewar <dewar@gnat.com>
21046
21047         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
21048
21049         * sinfo.ads: Clarify use of Associated_Node (documentation only).
21050
21051         * sem_ch12.adb: Change Node4 to Associated_Node. Change
21052         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
21053         much more narrowly in places where needed. These are cleanups.
21054
21055 2001-10-26  Joel Brobecker <brobecke@gnat.com>
21056
21057         * 5zosinte.ads (null_pthread): new constant.
21058
21059         * 5ztaprop.adb:
21060         (Initialize_TCB): Initialize thread ID to null, to be able to verify
21061          later that this field has been set.
21062         (Finalize_TCB): ditto.
21063         (Suspend_Task): Verify that the thread ID is not null before using it.
21064         (Resume_Task): ditto.
21065
21066         * s-tasdeb.adb:
21067         (Resume_All_Tasks): Lock the tasks list before using it.
21068         (Suspend_All_Tasks): ditto.
21069
21070 2001-10-26  Richard Kenner <kenner@gnat.com>
21071
21072         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
21073         Make constant variant of designated type for Is_Access_Constant.
21074         Call update_pointer_to with main variant.
21075
21076         * trans.c (process_freeze_entity, process_type):
21077         Call update_pointer_to on main variant.
21078
21079         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
21080         If main variant, update all other variants.
21081
21082         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
21083         TREE_STATIC.
21084
21085 2001-10-26  Robert Dewar <dewar@gnat.com>
21086
21087         * prj-util.adb: Minor reformatting
21088
21089 2001-10-26  Robert Dewar <dewar@gnat.com>
21090
21091         * prj-util.adb: Minor reformatting
21092
21093 2001-10-26  Robert Dewar <dewar@gnat.com>
21094
21095         * prj-attr.adb: Minor reformatting throughout
21096
21097 2001-10-26  Robert Dewar <dewar@gnat.com>
21098
21099         * prj-attr.ads: Minor reformatting
21100         Add ??? comment (this whole spec has almost no comments)
21101
21102 2001-10-26  Vincent Celier <celier@gnat.com>
21103
21104         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
21105         ("//") that precede the drive letter on Interix.
21106
21107 2001-10-26  Geert Bosch <bosch@gnat.com>
21108
21109         * gnat_rm.texi: Add GNAT Reference Manual.
21110
21111 2001-10-25  Robert Dewar <dewar@gnat.com>
21112
21113         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
21114         is Error. Similar change for other renaming cases.
21115
21116 2001-10-25  Robert Dewar <dewar@gnat.com>
21117
21118         * s-atacco.ads: Add pragma Inline_Always for functions.
21119         Fix header format. Add copyright 2001
21120
21121 2001-10-25  Ed Schonberg <schonber@gnat.com>
21122
21123         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
21124         return Error rather than Empty so that analysis can proceed.
21125
21126 2001-10-25  Ed Schonberg <schonber@gnat.com>
21127
21128         * sem_util.adb (Enter_Name): better handling of cascaded error
21129         messages when a unit appears in its own context.
21130
21131 2001-10-25  Ed Schonberg <schonber@gnat.com>
21132
21133         * sem_util.adb (Defining_Entity): in case of error, attach created
21134         entity to specification, so that semantic analysis can proceed.
21135
21136 2001-10-25  Robert Dewar <dewar@gnat.com>
21137
21138         * sem_util.adb
21139         (Defining_Entity): Deal with Error.
21140         (Process_End_Label): Deal with bad end label for.
21141
21142 2001-10-25  Ed Schonberg <schonber@gnat.com>
21143
21144         * sem_elab.adb (Check_A_Call): refine message when call is in an
21145         instance but callee is not declared in the generic unit.
21146
21147 2001-10-25  Ed Schonberg <schonber@gnat.com>
21148
21149         * sem_elab.adb (Check_A_Call): check for renaming before finding the
21150         enclosing unit, which may already be different from the calling unit.
21151
21152 2001-10-25  Geert Bosch <bosch@gnat.com>
21153
21154         * 4gintnam.ads: fix header format.
21155
21156 2001-10-25  Ed Schonberg <schonber@gnat.com>
21157
21158         * sem_res.adb (Resolve_Call): if the call is actually an indexing
21159         operation on the result of a parameterless call, perform elaboration
21160         check after the node has been properly rewritten.
21161
21162         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
21163         inlined within the generic tree, the defining identifier is not a
21164         compilation_unit.
21165
21166 2001-10-25  Ed Schonberg <schonber@gnat.com>
21167
21168         * sem_res.adb (Resolve): special-case resolution of Null in an
21169          instance or an inlined body to avoid view conflicts.
21170
21171         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
21172          compatibility by retrieving the access type of the generic copy.
21173
21174 2001-10-25  Robert Dewar <dewar@gnat.com>
21175
21176         * sem_ch3.adb:
21177         (Analyze_Number_Declaration): Handle error expression.
21178         (Signed_Integer_Type_Declaration): Handle error bound.
21179         (Analyze_Subtype_Indication): Handle error range.
21180
21181         * sem_util.adb (Get_Index_Bounds): Check for Error.
21182
21183 2001-10-25  Robert Dewar <dewar@gnat.com>
21184
21185         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
21186         in no run time mode.
21187
21188 2001-10-25  Pascal Obry <obry@gnat.com>
21189
21190         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
21191         mode case for ALLOC case.
21192
21193         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
21194         all platforms. Improvement of last change.
21195
21196 2001-10-25  Robert Dewar <dewar@gnat.com>
21197
21198         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
21199
21200 2001-10-25  Geert Bosch  <bosch@gnat.com>
21201
21202         * osint.adb (Is_Relative): Remove duplicate.
21203
21204 2001-10-25  Pascal Obry <obry@gnat.com>
21205
21206         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
21207         pathnames in UNIX and DOS style with drive letter.
21208         (Is_Relative): new routine.
21209
21210         * osint.adb: Minor reformatting
21211
21212         * osint.adb (Is_Relative): implementation using
21213         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
21214
21215 2001-10-25  Pascal Obry <obry@gnat.com>
21216
21217         * g-dirope.adb (Basename): correctly compute offset between the
21218         original Path and the translated one.
21219
21220         * g-dirope.adb: (Base_Name): add some comments.
21221
21222 2001-10-25  Robert Dewar <dewar@gnat.com>
21223
21224         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
21225         in HIE mode, avoids compilation abandoned message
21226
21227         * exp_imgv.adb: Correct typo in previous change
21228
21229         * exp_imgv.adb: Correct typo in previous change (not my day!)
21230
21231 2001-10-25  Robert Dewar <dewar@gnat.com>
21232
21233         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
21234
21235 2001-10-25  Pascal Obry <obry@gnat.com>
21236
21237         * g-awk.ads: Move all pragma inlines next to the routine
21238          declarations. This is more uniform with other GNAT spec.
21239
21240 2001-10-22  Geert Bosch  <bosch@gnat.com>
21241
21242         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
21243
21244 2001-10-19  Geert Bosch  <bosch@gnat.com>
21245
21246         * Makefile.in (tools, gnattools): Remove gnatmem.
21247
21248 2001-10-17  Richard Henderson  <rth@redhat.com>
21249
21250         * Makefile.in (misc.o): Depend on langhooks.h.
21251         * misc.c: Include it.
21252         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
21253         (LANG_HOOKS_DECODE_OPTION): New.
21254         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
21255
21256 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
21257
21258         * trans.c (tree_transform): Adjust to recent change in
21259         expand_asm_operands to implement named asm operands.
21260
21261 2001-10-11  Ed Schonberg  <schonber@gnat.com>
21262
21263         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
21264         renaming of discriminant for mutable record type.
21265
21266 2001-10-11  Robert Dewar  <dewar@gnat.com>
21267
21268         * validsw.adb: Properly save -gnatVn status.
21269
21270 2001-10-11  Robert Dewar <dewar@gnat.com>
21271
21272         * usage.adb: Add lines for V switch.
21273
21274         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
21275         (/VALIDITY_CHECKING).
21276
21277 2001-10-11  Ed Schonberg <schonber@gnat.com>
21278
21279         * sem_type.adb (Add_One_Interp): an operator for a type declared in
21280         an extension of System is known to be visible.
21281
21282 2001-10-11  Ed Schonberg <schonber@gnat.com>
21283
21284         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
21285         properly. Fixes regression on ACATS C34005G.
21286
21287 2001-10-11  Robert Dewar <dewar@gnat.com>
21288
21289         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
21290         loop in generic instance, since this is likely not very useful.
21291
21292 2001-10-11  Robert Dewar <dewar@gnat.com>
21293
21294         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
21295         the error message for high integrity mode.
21296
21297         * rtsfind.adb (RTE): Give message if we try to find an entity that
21298         is not available in high integrity mode.
21299
21300         * rtsfind.ads:
21301         (OK_To_Use_In_HIE_Mode): New array.
21302         (RTE): May return Empty in high integrity mode.
21303
21304         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
21305         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
21306
21307         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
21308         unit if not inlined always and in no runtime mode. Fixes problem
21309         caused by new Rtsfind changes.
21310
21311         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
21312         body is deleted.
21313
21314         * rtsfind.adb (RTE): Make sure we do not try to load unit after
21315         giving message for entity not available in high integrity mode.
21316
21317 2001-10-11  Pascal Obry <obry@gnat.com>
21318
21319         * impunit.adb: Add GNAT.CRC32.
21320
21321 2001-10-11  Ed Schonberg <schonber@gnat.com>
21322
21323         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
21324         properly the case where one universal operand in a non-static
21325         exponentiation of a real literal.
21326
21327 2001-10-11  Ed Schonberg <schonber@gnat.com>
21328
21329         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
21330         clause, return the gobal finalization list, for lack of anthing else.
21331
21332 2001-10-11  Ed Schonberg <schonber@gnat.com>
21333
21334         * exp_ch7.adb (Make_Transient_Block): if statement is within
21335         exception handler, always use new transient scope to place Clean
21336         procedure.
21337
21338 2001-10-11  Pascal Obry <obry@gnat.com>
21339
21340         * Makefile.in:
21341         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
21342         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
21343         (GNATLS_RTL_OBJS): add g-crc32.o
21344         (GNATMAKE_RTL_OBJS): add g-crc32.o
21345
21346         * ali-util.adb:
21347         (CRC_Match): new function.
21348         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
21349         instead of the previous simple checksum algorithm.
21350         (Time_Stamp_Mismatch): use CRC_Match for comparison.
21351         (Set_Source_Table): idem.
21352
21353         * ali-util.ads:
21354         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
21355         instead of simple checksum.
21356         (CRC_Match): new function.
21357         (CRC_Error): new constant.
21358
21359         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
21360         a CRC now and not a simple checksum. A CRC uses lower-case hex
21361         letters, fixes ambiguity in parsing.
21362
21363         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
21364         is what this variable will store.
21365
21366         * bcheck.adb: Change reference to chechsum in comments by CRC.
21367         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
21368         rename All_Checksum_Match to All_CRC_Match. Change due to API
21369         renaming since now GNAT does not use a simple checksum but a
21370         CRC using GNAT.CRC32.
21371
21372         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
21373         now and not anymore a simple checksum.
21374
21375         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
21376         places.
21377
21378         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
21379
21380         * scans.adb:
21381         (Restore_Scan_State): rename Checksum to CRC.
21382         (Save_Scan_State): idem.
21383
21384         * scans.ads:
21385         With GNAT.CRC32.
21386         (Checksum): rename to CRC.
21387         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
21388
21389         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
21390         GNAT.CRC32).  Update copyright notice.
21391
21392         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
21393         GNAT.CRC32).  Update copyright notice.
21394
21395         * scn.adb:
21396         (Accumulate_Checksum): removed.
21397         (Update): new procedure. Add a wide-character into the CRC.
21398
21399         * sinput-l.adb:
21400         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
21401         (Load_File): fix initialization of S (change Source_Checksum to
21402         Source_CRC)
21403
21404         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
21405         Source_CRC in S initialization.
21406
21407         * sinput.adb (Source_Checksum): renamed to Source_CRC.
21408
21409         * sinput.ads (Source_Checksum): renamed to Source_CRC.
21410         Update comments for the CRC.
21411
21412         * types.adb (Hex): Use lowercase for the letter part.
21413
21414         * types.ads (Get_Hex_String): Returns the hexadecimal representation
21415         for a word. This is currently used only for CRC. In previous version,
21416         the checksum was using a representation with all letter being
21417         upper-case. With the new implementation (using CRC) we do not remove
21418         the 32th bit of the CRC, so we can have an upper-case starting letter
21419         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
21420         It is ambigous since the CRC was optional and could be followed by
21421         options like EB, EE. So now this routines uses lower-case letter for
21422         the hexadecimal representation. Strange enough only lower case letters
21423         where checked in Scan_ALI (even if this was not a possible case).
21424
21425         * gnatvsn.ads (Library_Version): changed to 3.15a.
21426
21427         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
21428         for the compiler.
21429
21430         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
21431         for the compiler.
21432
21433         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
21434         Add 2001 to copyright notice
21435         (Accumulate_Checksum): Modify to use System.CRC32.
21436
21437         * ali-util.ads: Redo changes of previous revision to continue to use
21438         the word Checksum. Add 2001 to copyright notice.
21439
21440         * ali.adb: Undo some of previous changes, not needed.
21441         Keep the change for lower case letters in the checksum.
21442
21443         * ali.ads: Undo previous change not needed.
21444
21445         * bcheck.adb: Undo most of previous change, not needed.
21446         But do use Checksums_Match for checksum comparison.
21447
21448         * gnatls.adb: Undo most of previous change, not needed.
21449         But do use Checksums_Match for comparing checksums.
21450
21451         * lib-load.adb: Undo previous change, not needed.
21452
21453         * lib-writ.adb: Undo previous change, not needed.
21454
21455         * lib-writ.ads: Document that checksums use lower case,
21456         not upper case letters.
21457
21458         * scans.adb: Undo previous change, not needed
21459
21460         * scans.ads: Undo previous change, not needed.
21461
21462         * scn-nlit.adb: Undo previous changes, not needed.
21463
21464         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
21465
21466         * scn.adb:
21467         (Accumulate_Checksum): Use System.CRC32.
21468         (Initialize_Checksum): New procedure.
21469         Remove other changes of previous revision.
21470
21471         * sinput-p.adb: Undo previous change, not needed.
21472
21473         * sinput.adb: Undo previous change, not needed.
21474
21475         * sinput-l.adb: Undo previous change, not needed.
21476
21477         * sinput.ads: Undo previous change, not needed.  Keep only comment
21478         on new checksum algorithm
21479
21480         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
21481         Also remove a-tags and a-stream from GNAT sources.
21482
21483         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
21484
21485         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
21486
21487 2001-10-11  Geert Bosch  <bosch@gnat.com>
21488
21489         * einfo.h: Regenerate.
21490
21491         * nmake.ads: Regenerate.
21492
21493         * nmake.adb: Regenerate.
21494
21495         * sinfo.h: Regenerate.
21496
21497         * treeprs.adb: Regenerate.
21498
21499 2001-10-10  Geert Bosch  <bosch@gnat.com>
21500
21501         * gnat-style.texi: New file describing coding guidelines for Ada.
21502
21503 2001-10-10  Ed Schonberg <schonber@gnat.com>
21504
21505         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
21506         is Flag174.
21507
21508 2001-10-10  Geert Bosch  <bosch@gnat.com>
21509
21510         * snames.ads: Add new names for project facility.
21511
21512         * snames.adb: Update to reflect snames.ads changes.
21513
21514         * snames.h: Update to reflect snames.ads changes.
21515
21516 2001-10-10  Vincent Celier <celier@gnat.com>
21517
21518         * make.adb:
21519         (Add_Switches): reflect the changes for the switches attributes
21520         Default_Switches indexed by the programming language,
21521         Switches indexed by the file name.
21522         (Collect_Arguments_And_Compile): Idem.
21523         Reflect the attribute name changes.
21524
21525         * prj-attr.adb:
21526         (Initialisation_Data): Change the names of some packages and
21527         attributes.
21528         (Initialize): process case insensitive associative arrays.
21529
21530         * prj-attr.ads:
21531         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
21532
21533         * prj-dect.adb:
21534         (Parse_Attribute_Declaration): For case insensitive associative
21535          arrays, set the index string to lower case.
21536
21537         * prj-env.adb:
21538         Reflect the changes of the project attributes.
21539
21540         * prj-nmsc.adb:
21541         Replace Check_Naming_Scheme by Ada_Check and
21542         Language_Independent_Check.
21543
21544         * prj-nmsc.ads:
21545         Replaced Check_Naming_Scheme by 2 procedures:
21546         Ada_Check and Language_Independent_Check.
21547
21548         * prj-proc.adb:
21549         (Process_Declarative_Items): For case-insensitive associative
21550         arrays, set the index string to lower case.
21551         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
21552         Prj.Nmsc.Check_Naming_Scheme.
21553
21554         * prj-tree.adb:
21555         (Case_Insensitive): New function
21556         (Set_Case_Insensitive): New procedure
21557
21558         * prj-tree.ads:
21559         (Case_Insensitive): New function
21560         (Set_Case_Insensitive): New procedure
21561         (Project_Node_Record): New flag Case_Insensitive.
21562
21563         * prj-util.adb:
21564         (Value_Of): new function to get the string value of a single
21565         string variable or attribute.
21566
21567         * prj-util.ads:
21568         (Value_Of): new function to get the string value of a single
21569         string variable or attribute.
21570
21571         * prj.adb:
21572         (Ada_Default_Spec_Suffix): New function
21573         (Ada_Default_Impl_Suffix): New function
21574         Change definitions of several constants to reflect
21575         new components of record types.
21576
21577         * prj.ads:
21578         (Naming_Data): Change several components to reflect new
21579         elements of naming schemes.
21580         (Project_Data): New flags Sources_Present and
21581         Language_Independent_Checked.
21582         (Ada_Default_Spec_Suffix): New function.
21583         (Ada_Default_Impl_Suffix): New function.
21584
21585         * snames.ads:
21586         Modification of predefined names for project manager: added
21587         Implementation, Specification_Exceptions, Implementation_Exceptions,
21588         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
21589         Default_Switches, _Languages, Builder, Cross_Reference,
21590         Finder. Removed Body_Part, Specification_Append, Body_Append,
21591         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
21592         Gnatlink.
21593
21594         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
21595         Add comments.
21596
21597         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
21598         not that it is Nil_Variable_Value.
21599
21600         * prj.ads: Add ??? for uncommented declarations
21601
21602 2001-10-10  Ed Schonberg <schonber@gnat.com>
21603
21604         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
21605         constant, do not indicate possible modification, so that gigi can
21606         treat it as a bona fide constant.
21607
21608 2001-10-10  Robert Dewar <dewar@gnat.com>
21609
21610         * sem_prag.adb: Add processing for pragma External.
21611
21612         * snames.ads: Add entry for pragma External.
21613
21614         * par-prag.adb: Add pragma External.
21615
21616         * snames.adb: Updated to match snames.ads.
21617
21618 2001-10-10  Ed Schonberg <schonber@gnat.com>
21619
21620         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
21621         a dynamic task if the allocator appears in an indexed assignment
21622         or selected component assignment.
21623
21624         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
21625         For a dynamic task in an assignment statement, use target of
21626         assignment to generate meaningful name.
21627
21628 2001-10-10  Ed Schonberg <schonber@gnat.com>
21629
21630         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
21631         a generic package.
21632
21633         * einfo.ads: Body_Entity is also defined for generic package.
21634         Documentation change only
21635
21636         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
21637         others_choice for a discriminated component initialization,
21638         convert discriminant references into the corresponding discriminals.
21639
21640         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
21641         only if original type is private and expression has to be wrapped
21642         in a conversion.
21643
21644         * checks.adb:
21645         (Apply_Constraint_Check): Do not perform length check
21646         if expression is an aggregate with only an others_choice.
21647         (Length_N_Cond): two references to the same in_parameter
21648         (typically the discriminal in an init_proc) denote the same value.
21649         Two useful optimization uncovered by bugfixes above.
21650
21651 2001-10-10  Robert Dewar <dewar@gnat.com>
21652
21653         * xeinfo.adb: Change int to char in translation of enumeration types.
21654         This fixes a problem in the C representation of component alignment.
21655         Add 2001 to copyright notice
21656
21657 2001-10-10  Richard Kenner <kenner@gnat.com>
21658
21659         * decl.c: (validate_size): Do check size of object of integral type
21660         if it is a packed array type.
21661
21662 2001-10-10  Richard Kenner <kenner@gnat.com>
21663
21664         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
21665         VAR_DECL for constant if not Is_Public but -O0.
21666
21667 2001-10-10  Richard Kenner  <kenner@gnat.com>
21668
21669         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
21670
21671 2001-10-10  Geert Bosch  <bosch@gnat.com>
21672
21673         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
21674         use '/' as switch character, allowing for absolute file names.
21675
21676 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
21677
21678         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
21679         FSF address.
21680
21681 2001-10-08  Geert Bosch  <bosch@gnat.com>
21682
21683         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
21684         Automatically build utilities when files need to be regenerated.
21685
21686 2001-10-08  Geert Bosch  <bosch@gnat.com>
21687
21688         * xsnames.adb: New utility for updating snames.ads and snames.adb
21689
21690 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
21691
21692         * Make-lang.in (ADAFLAGS): Add -W -Wall.
21693         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
21694         (gnat1): Also depend on attribs.o.
21695         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
21696         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
21697         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
21698         (ADAFLAGS): Add -W -Wall.
21699         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
21700         take out CFLAGS.
21701
21702         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
21703         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
21704         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
21705         Use $(ADAC), not $(CC), as compilation command.
21706
21707         (gnattools): Depend directly on tools to build, don't use
21708         recursive make.
21709         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
21710
21711         * einfo.h, sinfo.h: New files (autogenerated).
21712
21713 2001-10-08  Richard Henderson  <rth@redhat.com>
21714
21715         * comperr.adb (Abort_In_Progress): New.
21716         (Compiler_Abort): Use it to prevent recursion.
21717
21718 2001-10-08  Robert Dewar <dewar@gnat.com>
21719
21720         * atree.adb: Set Error_Posted in Error node, helps error recovery.
21721
21722         * par-endh.adb (Output_End_Expected): We should also not test
21723         Error_Posted on the Error node, since now it is always set.
21724
21725         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
21726         to help error recovery. Part of general work on 9407-004.
21727
21728         * par.adb: Add ??? for misuse of error
21729
21730         * sem_res.adb:
21731         (Resolve): Defend against Error, fixes 9407-003.
21732         (Resolve_Discrete_Subtype_Indication): Defend against Error.
21733
21734         * sinfo.ads (N_Error): Now has Etype field (which will be set
21735         to Any_Type to help error recovery).
21736
21737 2001-10-08  Richard Kenner (kenner@gnat.com)
21738
21739         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
21740         Consistently set MEM attributes from expression; fixes
21741         bootstrap failure on x86.
21742
21743 2001-10-08  Geert Bosch  (bosch@gnat.com)
21744
21745         * 5oosinte.adb: Add 2001 to copyright notice.
21746
21747 2001-10-08  Geert Bosch  (bosch@gnat.com)
21748
21749         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
21750
21751         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
21752
21753 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
21754
21755         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
21756
21757 2001-10-05  Geert Bosch  (bosch@gnat.com)
21758
21759         * adaint.h: Small formatting fix.
21760
21761 2001-10-04  Geert Bosch  <bosch@gnat.com>
21762
21763         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
21764         Arg is int, not FILE *, in dummy version of functions.
21765
21766         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
21767         Arg is int, not FILE *.
21768
21769 2001-10-04  Geert Bosch  <bosch@gnat.com>
21770
21771         * 3lsoccon.ads: Added file, missed with initial check ins.
21772
21773         * 4lintnam.ads: Fix header format.
21774         Change Linux to GNU/Linux.
21775
21776         * 5iosinte.adb: Change Linux to GNU/Linux.
21777
21778         * 5iosinte.ads: Change Linux to GNU/Linux.
21779
21780         * 5itaprop.adb: Change Linux to GNU/Linux.
21781
21782         * 5itaspri.ads: Change Linux to GNU/Linux.
21783         Update copyright notice.
21784
21785         * 5lintman.adb: Change Linux to GNU/Linux.
21786
21787         * 5lml-tgt.adb: Change Linux to GNU/Linux.
21788
21789         * 5losinte.ads: Change Linux to GNU/Linux.
21790
21791         * 5lsystem.ads: Change Linux to GNU/Linux.
21792
21793         * 5qosinte.adb: Change Linux to GNU/Linux.
21794
21795         * 5qosinte.ads: Change Linux to GNU/Linux.
21796
21797         * 5qparame.ads: Change Linux to GNU/Linux.
21798
21799         * 5qtaprop.adb: Change Linux to GNU/Linux.
21800
21801         * 5qtaspri.ads: Change Linux to GNU/Linux.
21802         Add 2001 to copyright notice.
21803
21804         * 5vintman.ads: Change Linux to GNU/Linux.
21805         Fix header format.  Add 2001 to copyright notice.
21806
21807         * g-soccon.ads: Change Linux to GNU/Linux.
21808
21809         * g-trasym.ads: Change Linux to GNU/Linux.
21810         Add 2001 to copyright notice.
21811
21812         * memtrack.adb: Change Linux to GNU/Linux.
21813
21814         * s-intman.ads: Change Linux to GNU/Linux.
21815         Add 2001 to copyright notice.  Fix header format.
21816
21817         * s-stache.adb: Change Linux to GNU/Linux.
21818
21819         * adaint.c: Change Linux to GNU/Linux.
21820
21821         * cio.c: Change Linux to GNU/Linux.
21822
21823         * cstreams.c: Change Linux to GNU/Linux.
21824
21825         * init.c: Change Linux to GNU/Linux.
21826
21827         * gmem.c: Change Linux to GNU/Linux.
21828
21829         * tracebak.c: Change Linux to GNU/Linux.
21830
21831
21832 2001-10-02  Geert Bosch  <bosch@gnat.com>
21833
21834         * misc.c (insert_default_attributes): Add dummy version.