Merge from mainline
[official-gcc.git] / gcc / ada / ChangeLog
blob6b66774385897edaa7ca284133ace41d4e0b31d3
1 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
3         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
5 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
7         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
8         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
9         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
10         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
11         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
12         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
13         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
14         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
15         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16         no longer used.
18 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
20         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
21         protection against race conditions is not needed.
22         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
23         fallback handler.
24         (Set_Specific_Handler): Add mutual exclusive access to the specific
25         handler.
26         (Specific_Handler): Add mutual exclusive access for retrieving the
27         specific handler.
29         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
30         back handler.
32         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
33         Fall_Back_Handler and Specific_Handler.
35         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
36         termination handlers.
37         Set two different owerflow depending on the maximal stack size.
39         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
40         protection against race conditions is not needed when executing the
41         task termination handler.
43 2006-02-13  Robert Dewar  <dewar@adacore.com>
45         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
46         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
47         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
48         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
49         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
50         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
51         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
52         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
53         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
54         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
55         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
56         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
57         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
58         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
59         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
60         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
61         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
62         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
63         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
64         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
65         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
66         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
67         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
68         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
69         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
70         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
71         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
72         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
73         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
74         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
75         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
76         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
77         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
78         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
79         reformatting.
81 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
83         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
84         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
85         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
86         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
87         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
88         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
89         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
90         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
91         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
93 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
95         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
96         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
97         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
98         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
99         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
100         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
101         replaced by anonymous access type.
102         (pthread_sigmask): Now take an access sigset_t
104         * s-osinte-hpux.ads:  Ditto.
105         (pthread_mutex_t, pthread_cond_t): Update definitions to support
106         properly 32 and 64 bit ABIs.
108 2006-02-13  Pascal Obry  <obry@adacore.com>
110         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
111         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
112         s-taprop-linux.adb, s-taprop-solaris.adb,
113         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
114         adjustement is already done when calling this routine.
116 2006-02-13  Pascal Obry  <obry@adacore.com>
118         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
119         table to take advantage of the 16 priority levels available on Windows
120         2000 and XP. On NT4 there are only 7 priority levels, this is properly
121         supported by this new mapping.
123 2006-02-13  Nicolas Setton  <setton@adacore.com>
125         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
126         (get_encoding): New subprogram. Extracts the encodings from an encoded
127         Ada name.
129 2006-02-13  Pascal Obry  <obry@adacore.com>
130             Nicolas Roche  <roche@adacore.com>
131             Arnaud Charlet  <charlet@adacore.com>
133         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
134         support.
135         (__gnat_try_lock): Add unicode support by using a specific section on
136         Windows.
137         (__gnat_get_current_dir): Idem.
138         (__gnat_open_read): Idem.
139         (__gnat_open_rw): Idem.
140         (__gnat_open_create): Idem.
141         (__gnat_create_output_file): Idem.
142         (__gnat_open_append): Idem.
143         (__gnat_open_new): Idem.
144         (__gnat_file_time_name): Idem.
145         (__gnat_set_file_time_name): Idem.
146         (__gnat_stat): Idem.
147         (win32_no_block_spawn): Idem.
148         (__gnat_locate_exec_on_path): Idem.
149         (__gnat_opendir): New routine.
150         (__gnat_closedir): Idem.
151         (__gnat_readdir): Add new parameter length (pointer to int). Update
152         implementation to use it and add specific Win32 code for Unicode
153         support.
154         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
155         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
156         (convert_addresses): Do not define this dummy routine on VMS.
158         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
159         runtime Unicode support will be activated.
160         (S2WS): String to Wide-String conversion. This version just copy a
161         string in non Unicode version.
162         (WS2S): Wide-String to String conversion. This version just copy a
163         string in non Unicode version.
165         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
166         (Open): Now import __gnat_opendir from adaint.c.
167         (Read): Change the implementation to support unicode characters. It is
168         not possible to use strlen() on Windows as this version supports only
169         standard ASCII characters. So the length of the directory entry is now
170         returned from the imported __gnat_readdir routine.
171         Update copyright notice.
173         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
174         (opendir): Moved to adaint.c.
176         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
177         (Get_Directory): Fix wrong indexing.
178         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
179         __gnat_getenv from env.c
180         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
181         from env.c
183         * env.h, env.c: New file.
185         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
186         adaint.c by __gnat_getenv from env.c
188         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
189         adaint.c by __gnat_getenv from env.c
191         * Make-lang.in: Add env.o in the list of C object needed by gnat1
192         and gnatbind.
193         Update dependencies.
195 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
196             Olivier Hainque  <hainque@adacore.com>
197             Eric Botcazou  <ebotcazou@adacore.com>
199         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
200         
201         * gigi.h (value_factor_p): Add prototype and description, now public.
203         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
204         promotion for field with rep clause if the associated size was proven
205         to be in error.
206         Expand comments describing attempts to use a packable type.
207         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
208         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
209         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
210         necessary since these are not different types and pointers may
211         actually designate any subtype in this hierarchy.
212         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
213         discriminants but put them into record only if not Unchecked_Union;
214         pass flag to components_to_record showing Unchecked_Union.
215         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
216         components before variants; don't set TYPE_UNCHECKED_UNION_P.
217         (components_to_record): New argument UNCHECKED_UNION.
218         Remove special case code for Unchecked_Union and instead use main code
219         with small changes.
221         PR ada/26096
222         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the
223         aligning variable with the expression being built, only its inner
224         field.
226         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
227         emit_sequence_entry_statements.
228         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
229         (establish_gnat_vms_condition_handler): Move before
230         Subprogram_Body_to_gnu.
231         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
232         for a subprogram if it has a foreign convention or is exported.
233         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
234         substituted for a CONST_DECL.
235         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
236         Etype to assoc_to_constructor.
237         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
238         discriminants of Unchecked_Union.
239         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
240         don't need cluttering preprocessor directives.
241         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
242         condition handler as current in the compiled function.
243         (body_with_handlers_p): New function. Tell whether a given sequence of
244         statements node is attached to a package or subprogram body and involves
245         exception handlers possibly nested within inner block statements.
246         (emit_sequence_entry_statements): New function, to emit special
247         statements on entry of sequences when necessary. Establish GNAT
248         condition handler in the proper cases for VMS.
249         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
250         emit_sequence_entry_statements.
252         * utils2.c (find_common_type): If both input types are BLKmode and
253         have a constant size, use the smaller one.
254         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
255         the same.
257         * utils.c (value_factor_p): Make public, to allow uses from other gigi
258         units.
259         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
260         (convert, case UNION_TYPE): Remove special treatment for unchecked
261         unions.
263         PR ada/18659
264         (update_pointer_to): Update variants of pointer types to
265         unconstrained arrays by attaching the list of fields of the main
266         variant.
268 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
269             Robert Dewar  <dewar@adacore.com>
271         * a-exexpr.adb, a-exexpr-gcc.adb
272         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
273         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
274         Remove code unused for exception propagation for the compiler itself
275         from a-except.adb and update to still share separate packages.
277         * a-except.ads, a-except.adb: Ditto.
278         Add comments that this version is now used only by the compiler and
279         other basic tools. The full version that includes the Ada 2005 stuff
280         is in separate files a-except-2005.ads/adb. The reason is that we do
281         not want to cause bootstrap problems with compilers not recognizing
282         Wide_Wide_String.
283         Add exception reason code PE_Implicit_Return
284         Add new exception reason code (Null Exception_Id)
286         * a-except-2005.adb, a-except-2005.ads: New files.
288         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
290         * s-wchcon.adb: New file.
292         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
293         (traceback.o deps): Likewise.
294         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
295         Activate build of GMEM instrumentation library on VMS targets.
296         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
297         Use a-except-2005.ads/adb for all run-time library builds unless
298         specified otherwise.
299         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
300         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
301         Use s-parame.adb on all native platforms.
302         Use s-parame-vxworks.adb on all vxworks platforms.
303         Add env.c env.h in LIBGNAT_SRCS
304         Add env.o in LIBGNAT_OBJS
305         (GNATMAKE_OBJS): Remove ctrl_c.o object.
306         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
307         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
308         supports VxWorks 6 RTPs.
309         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
310         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
312         * types.h, types.ads (Terminate_Program): New exception
313         Add comment on modifying multiple versions of a-except.adb when the
314         table of exception reasons is modified.
315         Add exception reason code PE_Implicit_Return
316         Add new exception reason code (Null Exception_Id)
318         * clean.adb (Initialize): Get the target parameters before checking
319         if target is OpenVMS. Move the OpenVMS specific code here from package
320         body elaboration code.
322 2006-02-13  Thomas Quinot  <quinot@adacore.com>
323             Vincent Celier  <celier@adacore.com>
324             Robert Dewar  <dewar@adacore.com>
326         * ali-util.adb (Get_File_Checksum): Update to account for change in
327         profile of Initialize_Scanner.
329         * gprep.adb (Gnatprep): Update to account for change in profile of
330         Initialize_Scanner.
331         (Process_One_File): Same.
333         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
334         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
335         that behaviour using the new Unit information recorded in the source
336         files table, rather than going through all units every time.
337         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
338         (Get_Source_Unit): Same.
340         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
341         change in profile of Initialize_Scanner.
342         (Prepare_To_Preprocess): Same.
344         * lib.ads: Fix typo in comment (templace -> template).
346         * prj-part.adb (Parse_Single_Project): Update to account for change in
347         profile of Initialize_Scanner.
349         * scn.adb (Initialize_Scanner): Account for change in profile of
350         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
351         Also record the association of the given Source_File_Index to the
352         corresponding Unit_Number_Type.
354         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
355         procedure.
356         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
357         Remove Unit formal for generic scanner: this formal
358         is only relevant to Scn (the scanner instance used to parse Ada source
359         files), not to other instances. Update comment accordingly.
360         (Scan): Use new function Snames.Is_Keyword_Name.
362         * sinfo-cn.adb: Fix typo in comment.
364         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
365         Unit.
367         * sinput.ads (Source_File_Record): New component Unit, used to capture
368         the unit identifier (if any) associated to a source file.
370         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
371         Unit in Source_File_Record.
373         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
374         in profile of Initialize_Scanner.
376         * scans.adb (Initialize_Ada_Keywords): New procedure
378         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
379         Ada keywords in the Namet table, without the need to call
380         Initialize_Scanner.
382         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
383         (Is_Keyword_Name): New function
385         * snames.ads: Add subtype Configuration_Pragma_Names
386         Add pragma Ada_2005 (synonym for Ada_05)
387         (Is_Keyword_Name): New function
389         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
391 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
393         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
394         index.
396         * a-stwima.adb (To_Set): Add extra check when N = 0.
398         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
400 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
402         * s-parame-mingw.adb, s-parame-linux.adb,
403         s-parame-solaris.adb: Removed, replaced by s-parame.adb
405         * s-parame-vxworks.ads: Fix typo.
407         * s-parame-vxworks.adb: New file.
409         * s-parame.adb: Version now used by all native platforms.
410         (Default_Stack_Size): Use 2 megs for default stack size and use
411         __gl_default_stack_size when available.
412         (Minimum_Stack_Size): Use 12K.
414         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
415         (Create_Task): Refine implementation taking advantage of the XP stack
416         size support. On XP, we now create the thread using the flag
417         STACK_SIZE_PARAM_IS_A_RESERVATION.
419         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
421         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
422         XP and 0 on older Windows versions.
424         * interfac-vms.ads: Removed, no longer used.
426 2006-02-13  Matthew Heaney  <heaney@adacore.com>
428         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
429         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
430         a-cohase.adb: All explicit raise statements now include an exception
431         message.
433         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
434         (Update_Element_Preserving_Key): renamed op to just Update_Element.
435         Explicit raise statements now include an exception message
437         * a-cihase.ads, a-cohase.ads: Removed comment.
439         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
440         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
441         a-szbzha.adb, a-szfzha.ads: New files.
443 2006-02-13  Matthew Heaney  <heaney@adacore.com>
445         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
446         quicksort.
448 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
450         * lang.opt: Wvariadic-macros: New option.
451         Wold-style-definition: Likewise.
452         Wmissing-format-attribute: Likewise.
454         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
455         -Wold-style-definition and -Wmissing-format-attribute.
457 2006-02-13  Robert Dewar  <dewar@adacore.com>
459         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
461         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
463 2006-02-13  Nicolas Roche  <roche@adacore.com>
465         * a-envvar.adb, a-envvar.ads: New files.
467 2006-02-13  Douglas Rupp  <rupp@adacore.com>
469         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
471         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
473 2006-02-13  Pat Rogers  <rogers@adacore.com>
475         * a-rttiev.adb, a-rttiev.ads: New files.
477 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
479         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
480         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
482         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
484 2006-02-13  Robert Dewar  <dewar@adacore.com>
486         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
487         sem_case.adb: Minor code reorganization (not Present should be No)
489 2006-02-13  Geert Bosch  <bosch@adacore.com>
490             Gary Dismukes  <dismukes@adacore.com>
492         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
493         0, since the lower bound of the actual string may be greater than one.
495         PR ada/20753
497         (Put): Fix condition to raise Layout_Error when invalid
498         layout is requested.
500 2006-02-13  Vincent Celier  <celier@adacore.com>
502         * back_end.adb (Scan_Compiler_Arguments): Check if
503         Search_Directory_Present is True and, if it is, add the argument in
504         the source search directory path.
506         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
507         Search_Directory_Present to True.
509 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
511         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
512         volatile, to tell the compiler to preserve this variable at any level
513         of optimization.
514         (Gen_Versions_Ada): Temporarily work around codegen bug.
516 2006-02-13  Vincent Celier  <celier@adacore.com>
518         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
519         gcc to link with option -shared-libgcc.
520         (Gnatlink): Remove duplicate switches -shared-libgcc
522 2006-02-13  Robert Dewar  <dewar@adacore.com>
524         * gnatvsn.ads (Current_Year): New constant, used to easily update
525         copyright on all GNAT tools.
527         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
528         copyright notice.
530 2006-02-13  Robert Dewar  <dewar@adacore.com>
532         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
533         after hyphen (small aesthetic change useful for a range of numbers
534         using ^-^.
535         Suppress range checks for a couple of assignments which otherwise
536         cause validity checks with validity checking turned on.
538         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
539         Improvement in error message for object.
540         (Rep_Item_Too_Late): Remove '!' in warning message.
542 2006-02-13  Robert Dewar  <dewar@adacore.com>
543             Eric Botcazou  <ebotcazou@adacore.com>
545         * err_vars.ads: Suppress range checks for a couple of assignments
546         which otherwise cause validity checks with validity checking turned on.
547         Update comments.
549         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
550         Make message unconditional if it is a warning.
551         (Error_Msg_NEL): Always output warning messages.
552         Suppress range checks for a couple of assignments which otherwise
553         cause validity checks with validity checking turned on.
555         * errout.ads (Message Insertion Characters): Document that '!' is
556         implied by '?' in error messages.
558         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
559         (Gnat1drv): Use a goto to end of main subprogram instead of
560         Exit_Program (E_Success) so that finalization can occur normally.
562 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
564         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
565         wrapped around.
567 2006-02-13  Vincent Celier  <celier@adacore.com>
569         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
570         Unchecked_Conversion functions.
571         (Modification_Time): Use direct conversion of OS_Time to Calendar time
572         when OpenVMS returns False.
574         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
575         a-dirval.adb (OpenVMS): New Boolean function
577 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
578             Thomas Quinot  <quinot@adacore.com>
580         * checks.adb (Build_Discriminant_Checks): If the expression being
581         checks is an aggregate retrieve the values of its discriminants to
582         generate the check, rather than creating a temporary and a reference
583         to it.
584         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
585         (Install_Null_Excluding_Check): Ditto
586         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
587         not for the renamed object, so that the actual itype is attached in the
588         proper context.
590 2006-02-13  Robert Dewar  <dewar@adacore.com>
591             Vincent Celier  <celier@adacore.com>
593         * debug.adb: Eliminate numeric switches for binder/gnatmake
595         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
596         switches for the compiler.
597         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
598         (Scan_Make_Switches): When failing with an illegal switch, output an
599         error message with the full switch.
600         Eliminate numeric switches for binder/gnatmake
602         * switch.ads, switch.adb (Bad_Switch): New procedure
604         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
605         Remove 0-9 as debug flag character possibilities
606         -d is now controlling the primary stack size when its value is a
607         positive. Also add checks against invalid values, and support for kb,
608         mb. Ditto for -D switch.
610 2006-02-13  Robert Dewar  <dewar@adacore.com>
611             Serguei Rybin  <rybin@adacore.com>
613         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
614         save/restore routines.
615         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
616         were not always properly handled previously.
617         Since we are changing the tree format anyway, also get rid of the
618         junk obsolete Immediate_Errors flag.
619         (Tree_Read): Change the way of reading Tree_Version_String - now we
620         read the version string from the tree even if its length is not the
621         same as the length of the version string computed from Gnatvsn.
622         (Search_Directory_Present): New Boolean flag for the compiler.
623         Define Tree_Version_String as a dynamic string.
624         (Default_Stack_Size): new variable, used to handle switch -d.
626         * par-prag.adb: 
627         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
628         only for main unit.
629         Add pragma Ada_2005 (synonym for Ada_05)
630         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
631         were not always properly handled previously.
633         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
634         explicit Ada_95 to Ada_2005.
636 2006-02-13  Javier Miranda  <miranda@adacore.com>
637             Robert Dewar  <dewar@adacore.com>
638             Ed Schonberg  <schonberg@adacore.com>
640         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
641         against errors in the source program: a private types for which the
642         corresponding full type declaration is missing and pragma CPP_Virtual
643         is used.
644         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
645         (Is_Known_Null): New flag
646         (Has_Pragma_Pure): New flag
647         (No_Return): Present in all entities, set only for procedures
648         (Is_Limited_Type): A type whose ancestor is an interface is limited if
649         explicitly declared limited.
650         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
651         entities. Only used for component marked Is_Tag. If present it stores
652         the Offset_To_Top function used to provide this value in tagged types
653         whose ancestor has discriminants.
655         * exp_ch2.adb: Update status of new Is_Known_Null flag
657         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
659         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
660         the categorization sense if Is_Pure was set by pragma Pure_Function.
662 2006-02-13  Quentin Ochem  <ochem@adacore.com>
663             Olivier Hainque  <hainque@adacore.com>
665         * bindusg.adb: Updated documentation for -d and -D switches.
667         * raise.h (__gnat_set_globals): added new parameter for
668         Default_Stack_Size.
670         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
671         (__gnat_handle_vms_condition): Adjust context before raise.
672         (__gnat_install_handler): Restore the global vector setup for GCC
673         versions before 3.4, as the frame based circtuitry is not available
674         in this case.
675         (__gnat_set_globals): added a parameter default_stack_size
676         (__gl_default_stack_size): new variable.
678 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
680         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
681         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
682         does not exist in the Ada RM.
683         (Compatible_Int_Bounds): Determine whether two integer range bounds
684         are of equal length and have the same start and end values.
685         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
686         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
687         aggregate when it is part of an object declaration.
688         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
689         constrains discriminants of its parent, add explicitly the discriminant
690         constraints of the ancestor by retrieving them from the
691         stored_constraint of the parent.
693 2006-02-13  Robert Dewar  <dewar@adacore.com>
695         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
696         attribute Mechanism_Code is applied to renamed subprogram, modify
697         prefix to point to base subprogram.
698         Max/Min attributes now violate Restriction No_Implicit_Conditionals
700         * sinfo.ads: Document that Mechanism_Code cannot be applied to
701         renamed subprograms so that the front-end must replace the prefix
702         appropriately.
704 2006-02-13  Javier Miranda  <miranda@adacore.com>
705             Gary Dismukes  <dismukes@adacore.com>
707         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
708         availability of RE_Interface_Tag.
709         (Build_Initialization_Call): Fix wrong access to the discriminant value.
710         (Freeze_Record_Type): Do not generate the tables associated with
711         timed and conditional dispatching calls through synchronized
712         interfaces if compiling under No_Dispatching_Calls restriction.
713         When compiling for Ada 2005, for a nonabstract
714         type with a null extension, call Make_Controlling_Function_Wrappers
715         and insert the wrapper function declarations and bodies (the latter
716         being appended as freeze actions).
717         (Predefined_Primitive_Bodies): Do not generate the bodies of the
718         predefined primitives associated with timed and conditional
719         dispatching calls through synchronized interfaces if we are
720         compiling under No_Dispatching_Calls.
721         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
722         service is available before generating a call.
723         (Make_Controlling_Function_Wrappers): New procedure.
724         (Expand_N_Full_Type_Declaration): Create a class-wide master for
725         access-to-limited-interfaces because they can be used to reference
726         tasks that implement such limited interface.
727         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
728         procedure spec and body of the Offset_To_Top function that is generated
729         when the parent of a type with discriminants has secondary dispatch
730         tables.
731         (Init_Secondary_Tags): Handle the case in which the parent of the type
732         containing secondary dispatch tables has discriminants to generate the
733         correct arguments to call Set_Offset_To_Top.
734         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
736         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
737         Add Wide_[Wide_]Expanded_Name.
738         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
739         the same functionality of Get_Prim_Op_Address but applied to predefined
740         primitive operations because the pointers to the predefined primitives
741         are now saved in a separate table.
742         (Parent_Size): Modified to get access to the separate table of primitive
743         operations or the parent type.
744         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
745         functionality of Set_Prim_Op_Address but applied to predefined primitive
746         operations.
747         (Set_Signature): New subprogram used to store the signature of a DT.
748         (Displace): If the Offset_To_Top value is not static then call the
749         function generated by the expander to get such value; otherwise use
750         the value stored in the table of interfaces.
751         (Offset_To_Top): The type of the actual has been changed to Address to
752         give the correct support to tagged types with discriminants. In this
753         case this value is stored just immediately after the tag field.
754         (Set_Offset_To_Top): Two new formals have been added to indicate if the
755         offset_to_top value is static and hence pass this value to the run-time
756         to store it in the table of interfaces, or else if this value is dynamic
757         and then pass to the run-time the address of a function that is
758         generated by the expander to provide this value for each object of the
759         type.
761         * rtsfind.ads (Default_Prin_Op_Count): Removed.
762         (Default_Prim_Op_Count): New entity
763         (Get_Predefined_Prim_Op_Address): New entity
764         (Set_Predefined_Prim_Op_Address): New entity
765         (RE_Set_Signature): New entity
767 2006-02-13  Thomas Quinot  <quinot@adacore.com>
768             Ed Schonberg  <schonberg@adacore.com>
770         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
771         Make_Adjust_Call done for a newly-allocated object.
773         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
774         in a subprogram are wrapped in a cleanup block, indicate that the
775         subprogram contains an inner block with an exception handler.
776         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
777         Adjust call is for a newly-allocated object. In that case we must not
778         assume that the finalization list chain pointers are correct (since they
779         come from a bit-for-bit copy of the original object's pointers) so if
780         the attach level would otherwise be zero (no change), we set it to 4
781         instead to cause the pointers to be reset to null.
783         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
784         reset chain pointers to null.
786 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
788         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
789         string, and the context requires a loop for the assignment (e.g.
790         because the left-hand side is packed), generate a unique name for the
791         temporary that holds the string, to prevent spurious name clashes.
793 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
794             Javier Miranda  <miranda@adacore.com>
795             Robert Dewar  <dewar@adacore.com>
796             Gary Dismukes  <dismukes@adacore.com>
798         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
799         return unconstrained arrays.
800         Update comments.
801         (Expand_Call):  An indirect call through an access parameter of a
802         protected operation is not a protected call.
803         Add circuit to raise CE in Ada 2005 mode following call
804         to Raise_Exception.
805         (Register_DT_Entry): Do nothing if
806         the run-time does not give support to abstract interfaces.
807         (Freeze_Subprogram): In case of dispatching operations, do not generate
808         code to register the operation in the dispatch table if the source
809         is compiled with No_Dispatching_Calls.
810         (Register_Predefined_DT_Entry): Generate code that calls the new
811         run-time subprogram Set_Predefined_Prim_Op_Address instead of
812         Set_Prim_Op_Address.
814         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
815         on array assignments if the right-hand side is a function call that has
816         been inlined. Check is performed on the assignment in the block.
817         (Process_Bounds): If bounds and range are overloaded, apply preference
818         rule for root operations to disambiguate, and diagnose true ambiguity.
819         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
820         a tag-indeterminate right-hand side even when Expander_Active is True.
821         Needed to ensure that dispatching calls to T'Input are allowed and
822         get the tag of the target class-wide object.
824         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
825         an inherited primitive operation that already overrides several
826         abstract interface primitives. For transitivity, the new entity must
827         also override all the abstract interface primitives covered by the
828         inherited overriden primitive.
829         Emit warning if new entity differs from homograph in same scope only in
830         that one has an access parameter and the other one has a parameter of
831         a general access type with the same designated type, at the same
832         position in the signature.
833         (Make_Inequality_Operator): Use source locations of parameters and
834         subtype marks from corresponding equality operator when creating the
835         tree structure for the implicit declaration of "/=". This does not
836         change anything in behaviour except that the decoration of the
837         components of the subtree created for "/=" allows ASIS to get the
838         string images of the corresponding identifiers.
839         (Analyze_Return_Statement): Remove '!' in warning message.
840         (Check_Statement_Sequence): Likewise.
841         (Analyze_Subprogram_Body): For an access parameter whose designated type
842         is an incomplete type imported through a limited_with clause, use the
843         type of the corresponding formal in the body.
844         (Check_Returns): Implicit return in No_Return procedure now raises
845         Program_Error with a compile time warning, instead of beging illegal.
846         (Has_Single_Return):  Function returning unconstrained type cannot be
847         inlined if expression in unique return statement is not an identifier.
848         (Build_Body_To_Inline): It is possible to inline a function call that
849         returns an unconstrained type if all return statements in the function
850         return the same local variable. Subsidiary procedure Has_Single_Return
851         verifies that the body conforms to this restriction.
853         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
854         same type, and  one of them is of an anonymous access type, convert
855         the other operand to it, so that this is a valid binary operation for
856         gigi.
857         (Resolve_Type_Conversion): Handle subtypes of protected types and
858         task types when accessing to the corresponding record type.
859         (Resolve_Allocator): Add '\' in 2-line warning message.
860         Remove '!' in warning message.
861         (Resolve_Call): Add '\' in 2-line warning message.
862         (Valid_Conversion): Likewise.
863         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
864         resulting type may be an access type with an implicit dereference.
865         Obtain the proper component from the designated type.
866         (Make_Call_Into_Operator): Handle properly a call to predefined equality
867         given by an expanded name with prefix Standard, when the operands are
868         of an anonymous access type.
869         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
870         Explicit_Dereference and Resolve_Selected_Component, to verify that the
871         prefix of the expression is not of an incomplete type. Allows full
872         diagnoses of all semantic errors.
873         (Resolve_Actuals): If the actual is an allocator whose directly
874         designated type is a class-wide interface we build an anonymous
875         access type to use it as the type of the allocator. Later, when
876         the subprogram call is expanded, if the interface has a secondary
877         dispatch table the expander will add a type conversion to force
878         the displacement of the pointer.
879         (Resolve_Call): If a function that returns an unconstrained type is
880         marked Inlined_Always and inlined, the call will be inlined and does
881         not require the creation of a transient scope.
882         (Check_Direct_Boolean_Op): Removed
883         (Resolve_Comparison_Op): Remove call to above
884         (Resolve_Equality_Op): Remove call to above
885         (Resolve_Logical_Op): Inline above, since this is only call.
886         (Valid_Conversion): Handle properly conversions between arrays of
887         convertible anonymous access types.
889         PR ada/25885
891         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
892         the literal in an unchecked conversion, because GCC 4.x needs a static
893         value for a string bound.
895 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
896             Hristian Kirtchev  <kirtchev@adacore.com>
898         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
899         components of the corresponding record, take into account component
900         definitions that are access definitions.
901         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
902         procedure is not considered a dispatching call and will be expanded
903         properly.
905 2006-02-13  Javier Miranda  <miranda@adacore.com>
907         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
908         controlling argument of the dispatching call is an abstract interface
909         class-wide type then we use it directly.
910         Check No_Dispatching_Calls restriction.
911         (Default_Prim_Op_Position): Remove the code that looks for the last
912         entity in the list of aliased subprograms. This code was wrong in
913         case of renamings.
914         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
915         when the source is compiled with the No_Dispatching_Calls restriction.
916         (Init_Predefined_Interface_Primitives): No need to inherit primitives
917         if we are compiling with restriction No_Dispatching_Calls.
918         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
919         subprograms if we are compiling under No_Dispatching_Calls restriction.
920         (Make_DT): Generate a dispatch table with a single dummy entry if
921         we are compiling with the No_Dispatching_Calls restriction. In
922         addition, in this case we don't generate code that calls to the
923         following run-time subprograms: Set_Type_Kind, Inherit_DT.
924         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
925         of this subprogram if compiling with the No_Dispatching_Calls
926         restriction.
927         (Expand_Type_Conversion): Instead of using the actual parameter,
928         the argument passed as parameter to the conversion function was
929         erroneously referenced by the expander.
930         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
931         Set_Predefined_Primitive_Op_Address and Set_Signature.
932         (Expand_Dispatching_Call): Generate call to
933         Get_Predefined_Prim_Op_Address for predefined primitives.
934         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
935         predefined primitives.
936         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
937         primitives we reserve one dummy entry to ensure that the tag does not
938         point to some memory that is associated with some other object. In
939         addition, remove all the old code that generated the assignments
940         associated with the signature of the dispatch table and replace them
941         by a call to the new subprogram Set_Signature.
942         (Set_All_DT_Position): Change the algorithm because now we have a
943         separate dispatch table associated with predefined primitive operations.
944         (Expand_Interface_Conversion): In case of non-static offset_to_top
945         add explicit dereference to get access to the object after the call
946         to displace the pointer to the object.
947         (Expand_Interface_Thunk): Modify the generation of the actual used
948         in the calls to the run-time function Offset_To_Top to fulfil its
949         new interface.
950         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
952 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
954         * exp_dist.adb (Copy_Specification): For access parameters, copy
955         Null_Exclusion flag, which will have been set for stream subprograms
956         in Ada2005 mode.
958 2006-02-13  Pascal Obry  <obry@adacore.com>
960         * expect.c (__gnat_expect_portable_execvp): New implementation. The
961         previous implementation was using the C runtime spawnve routine but
962         the corresponding wait was using directly the Win32 API. This was
963         causing some times a lock when waiting for an event using
964         WaitForSingleObject in __gnat_waitpid. This new implementation uses
965         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
966         API fixes this problem.
968 2006-02-13  Robert Dewar  <dewar@adacore.com>
970         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
971         call.
973 2006-02-13  Thomas Quinot  <quinot@adacore.com>
975         * exp_pakd.ads: Fix typos in comments.
977         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
978         array reference that is an explicit dereference, mark the converted
979         (packed) array reference as analyzed to prevent a forthcoming
980         reanalysis from resetting its type to the original (non-packed) array
981         type.
983 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
984             Javier Miranda  <miranda@adacore.com>
985             Eric Botcazou  <ebotcazou@adacore.com>
987         * exp_util.ads, exp_util.adb (Find_Prim_Op,
988         Is_Predefined_Primitive_Operation): When
989         searching for the predefined equality operator, verify that operands
990         have the same type.
991         (Is_Predefined_Dispatching_Operation): Remove the code that looks
992         for the last entity in the list of aliased subprograms. This code
993         was wrong in case of renamings.
994         (Set_Renamed_Subprogram): New procedure
995         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
996         Exp_Type constant computed when entering this subprogram.
997         (Known_Null): New function
998         (OK_To_Do_Constant_Replacement): New function
999         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
1000         (Side_Effect_Free): An attribute reference 'Input is not free of
1001         side effect, unlike other attributes that are functions. (from code
1002         reading).
1003         (Remove_Side_Effects): Expressions that involve packed arrays or records
1004         are copied at the point of reference, and therefore must be marked as
1005         renamings of objects.
1006         (Is_Predefined_Dispatching_Operation): Return false if the operation is
1007         not a dispatching operation.
1009         PR ada/18819
1010         (Remove_Side_Effects): Lift enclosing type conversion nodes for
1011         elementary types in all cases.
1013 2006-02-13  Javier Miranda  <miranda@adacore.com>
1015         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
1016         task types when accessing to the corresponding record type.
1017         Remove '!' in warning message.
1019 2006-02-13  Olivier Hainque  <hainque@adacore.com>
1021         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
1022         to avoid useless and space inefficient overalignments on targets where
1023         Max_Alignment is larger than 16.
1025 2006-02-13  Pascal Obry  <obry@adacore.com>
1027         * g-catiio.adb (Sec_Number): New type used to compute the number of
1028         seconds since 1-1-1970.
1029         (Image) [Natural]: The parameter was an Integer, as we can't deal with
1030         negative numbers (years, months...) it is better to have a Natural here.
1031         Code clean-up.
1032         (Image) [Number]: Change parameter from Long_Integer to Number.
1033         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
1034         overflow for dates past year 2038.
1036 2006-02-13  Matthew Heaney  <heaney@adacore.com>
1038         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
1039         Constraint_Error.
1041 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
1043         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
1044         native platforms.
1045         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
1046         finalization can occur normally.
1048 2006-02-13  Vincent Celier  <celier@adacore.com>
1050         * gnatcmd.adb (Rules_Switches): New table
1051         (Add_To_Rules_Switches): New procedure
1052         (GNATCmd): For command CHECK, put all options following "-rules" in the
1053         Rules_Switches table. Append these -rules switches after the -cargs
1054         switches.
1056 2006-02-13  Robert Dewar  <dewar@adacore.com>
1058         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
1059         These two cases were generating incorrect output, and if this unit
1060         was built with checks on, generated a discriminant mismatch constraint
1061         error.
1063 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
1064             Robert Dewar  <dewar@adacore.com>
1066         * lib-xref.adb (Get_Type_Reference): For a private type whose full
1067         view is an array type, indicate the component type as well, for
1068         navigation purposes.
1069         (Generate_Reference): Don't consider array ref on LHS to be a case
1070         of violating pragma Unreferenced.
1071         Do not give Ada 2005 warning except on real reference.
1073 2006-02-13  Vincent Celier  <celier@adacore.com>
1075         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
1076         main source, add switch -mdebug-main=_ada_ so that the executable can
1077         be debugged by the standard VMS debugger.
1078         (Gnatmake): Set No_Main_Subprogram to True when there is no main
1079         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
1080         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
1081         of the last source, as the binding and linking phases are never
1082         performed.
1083         Set all executable obsolete when rebuilding a library.
1085         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
1086         options.
1088 2006-02-13  Javier Miranda  <miranda@adacore.com>
1090         PR ada/23973
1092         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
1093         code to improve the error message reported when the program has
1094         declarations of abstract interface types and it is not compiled with
1095         the -gnat05 switch.
1096         (P_Access_Definition): Reorganize the code to improve the error
1097         message reported when the new Ada 2005 syntax for anonymous
1098         access types is used and the program is not compiled with the
1099         -gnat05 switch.
1101 2006-02-13  Robert Dewar  <dewar@adacore.com>
1103         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
1104         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
1105         (MODE_IN)
1107 2006-02-13  Javier Miranda  <miranda@adacore.com>
1109         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
1110         against source containing syntax errors.
1112 2006-02-13  Vincent Celier  <celier@adacore.com>
1114         * prj.adb (Reset): Initialize the first element of table Namings with
1115         the standard naming data.
1117 2006-02-13  Vincent Celier  <celier@adacore.com>
1119         * prj.ads (Error_Warning): New enumeration type
1121         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
1122         unknown, use the location of the project to report the error.
1123         (When_No_Sources): New global variable
1124         (Report_No_Ada_Sources): New procedure
1125         (Check): New parameter When_No_Sources. Set value of global variable
1126         When_No_Sources,
1127         (Find_Sources): Call Report_No_Ada_Sources when appropriate
1128         (Get_Sources_From_File): Ditto
1129         (Warn_If_Not_Sources): Better warning messages indicating the unit name
1130         and the file name.
1132         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
1133         Call Prj.Proc.Process with parameter When_No_Sources.
1135         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
1136         Call Recursive_Check with parameter When_No_Sources.
1137         (Recursive_Check): New parameter When_No_Sources. Call itself and
1138         Prj.Nmsc.Check with parameter When_No_Sources.
1139         (Process): New parameter When_No_Sources. Call Check with parameter
1140         When_No_Sources.
1141         (Copy_Package_Declarations): New procedure to copy renamed parameters
1142         and setting the location of the declared attributes to the location
1143         of the renamed package.
1144         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
1145         packages.
1147 2006-02-13  Vincent Celier  <celier@adacore.com>
1149         * prj-makr.adb (Make): Preserve the comments from the original project
1150         file.
1151         When removing nodes (attributes Source_Dirs, Source_Files,
1152         Source_List_File and package Naming), save the comments and attach the
1153         saved comments to the newly created nodes.
1154         Do not add a with clause for the naming package if one already exists.
1156 2006-02-13  Javier Miranda  <miranda@adacore.com>
1157             Gary Dismukes  <dismukes@adacore.com>
1158             Robert Dewar  <dewar@adacore.com>
1160         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
1162         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
1163         aliased entities to look for the overriden abstract interface
1164         subprogram.
1165         (Is_Interface_Subprogram): Complete documentation.
1166         (Check_Dispatching_Operation): Do not generate code to register the
1167         operation in the dispatch table if the source is compiled with
1168         restriction No_Dispatching_Calls.
1169         (Override_Dispatching_Operation): Check for illegal attempt to override
1170         No_Return procedure with procedure that is not No_Return
1171         (Check_Dispatching_Call): Suppress the check for an abstract operation
1172         when the original node of an actual is a tag-indeterminate attribute
1173         call, since the attribute, which must be 'Input, can never be abstract.
1174         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
1175         call to the Input attribute (even when rewritten).
1176         (Propagate_Tag): Augment comment to indicate the possibility of a call
1177         to an Input attribute.
1179         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
1180         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
1182         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
1183         No_Wide_Characters is no longer partition-wide
1184         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
1185         rather than GNAT
1187 2006-02-13  Douglas Rupp  <rupp@adacore.com>
1189         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
1191 2006-02-13  Javier Miranda  <miranda@adacore.com>
1193         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
1194         handles default-initialized components to keep separate the management
1195         of this feature but also avoid the unrequired resolution and
1196         expansion of components that do not have partially initialized
1197         values.
1198         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
1199         (Check_Bounds): Likewise.
1200         (Check_Length): Likewise.
1202 2006-02-13  Javier Miranda  <miranda@adacore.com>
1203             Ed Schonberg  <schonberg@adacore.com>
1205         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
1206         abstract interface type call analyze_and_resolve to expand the type
1207         conversion into the corresponding displacement of the
1208         reference to the base of the object.
1209         (Eval_Attribute, case Width): For systems where IEEE extended precision
1210         is supported, the maximum exponent occupies 4 decimal digits.
1211         (Accessibility_Message): Add '\' in 2-line warning message.
1212         (Resolve_Attribute): Likewise.
1213         (case Attribute_Access): Significantly revise checks
1214         for illegal access-to-subprogram Access attributes to properly enforce
1215         the rules of 3.10.2(32/2).
1216         Diagnose use of current instance with an illegal attribute.
1218         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
1219         to a Node_Id.
1220         (Enclosing_Generic_Unit): New function to return a node's innermost
1221         enclosing generic declaration node.
1222         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
1223         (Type_Access_Level): The accessibility level of anonymous acccess types
1224         associated with discriminants is that of the current instance of the
1225         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
1226         (Compile_Time_Constraint_Error): Handle case of conditional expression.
1227         (Kill_Current_Values_For_Entity): New function
1228         (Enter_Name): Change formal type to Entity_Id
1230 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
1231             Ed Schonberg  <schonberg@adacore.com>
1232             Gary Dismukes  <dismukes@adacore.com>
1234         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
1235         Analyze_Compilation_Unit.
1236         Detect and warn on redundant with clauses detected in a package spec
1237         and/or body when -gnatwr is used.
1238         (Analyze_Context): Analyze config pragmas before other items
1239         (Install_Context_Items): Don't analyze config pragmas here
1240         (Install_Limited_Withed_Unit): Set limited entity of package in
1241         with_clause so that cross-reference information or warning messages on
1242         unused packages can be properly generated
1243         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
1244         has Error_Posted set. Prevent infinite loops in illegal programs.
1245         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
1246         to the point of the error test requiring the current unit to be private.
1247         This ensures that private with clauses are not exempted from the basic
1248         checking for being a descendant of the same library unit parent as a
1249         withed private descendant unit.
1250         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
1251         handle private with clauses properly, as well as to account for cases
1252         where the withed unit is a public descendant of a private ancestor
1253         (in which case the current unit must be a descendant of the private
1254         ancestor's parent). The spec comments were updated accordingly. Also,
1255         the old error message in this subprogram was replaced with error
1256         messages that mirror the errors tested and reported by
1257         Check_Private_Child_Unit.
1258         Parameter and variable names improved for readability.
1259         (Install_Limited_Context_Clauses): Remove test for a withed unit being
1260         private as the precondition for calling
1261         Check_Private_Limited_Withed_Unit since that subprogram has been
1262         revised to test public units as well as private units.
1264 2006-02-13  Thomas Quinot  <quinot@adacore.com>
1265             Robert Dewar  <dewar@adacore.com>
1266             Ed Schonberg  <schonberg@adacore.com>
1267             Javier Miranda  <miranda@adacore.com>
1269         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
1270         that Scope_Stack.First = 1.
1271         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
1272         were not always properly handled previously.
1273         (Formal_Entity): Complete rewrite, to handle properly some complex case
1274         with multiple levels of parametrization by formal packages.
1275         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
1276         to the corresponding derived type declaration for proper semantics.
1278         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
1279         (Check_Component): Enforce restriction on components of
1280         unchecked_unions: a component in a variant cannot contain tasks or
1281         controlled types.
1282         (Unchecked_Union): Allow nested variants and multiple discriminants, to
1283         conform to AI-216.
1284         Add pragma Ada_2005 (synonym for Ada_05)
1285         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
1286         were not always properly handled previously.
1287         Document that pragma Propagate_Exceptions has no effect
1288         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
1289         (Set_Convention_From_Pragma): Check that if a convention is
1290         specified for a dispatching operation, then it must be
1291         consistent with the existing convention for the operation.
1292         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
1293         longer required to specify an vtable-ptr component in the record. For
1294         compatibility reasons we leave the support for the previous definition.
1295         (Analyze_Pragma, case No_Return): Allow multiple arguments
1297         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
1298         non-overrideen inherited operation with a controlling result as
1299         illegal only its implicit declaration comes from the derived type
1300         declaration of its result's type.
1301         (Check_Possible_Deferred_Completion): Relocate the object definition
1302         node of the subtype indication of a deferred constant completion rather
1303         than directly analyzing it. The analysis of the generated subtype will
1304         correctly decorate the GNAT tree.
1305         (Record_Type_Declaration): Check whether this is a declaration for a
1306         limited derived record before analyzing components.
1307         (Analyze_Component_Declaration): Diagnose record types  not explicitly
1308         declared limited when a component has a limited type.
1309         (Build_Derived_Record_Type): Code reorganization to check if some of
1310         the inherited subprograms of a tagged type cover interface primitives.
1311         This check was missing in case of a full-type associated with a private
1312         type declaration.
1313         (Constant_Redeclaration): Check that the subtypes of the partial and the
1314         full view of a constrained deferred constant statically match.
1315         (Mentions_T): A reference to the current type in an anonymous access
1316         component declaration  must be an entity name.
1317         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
1318         class_wide type to refer to full type, not to the incomplete one.
1319         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
1320         available. Required to give support to the certified run-time.
1321         (Analyze_Component_Declaration): In case of anonymous access components
1322         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
1323         (Process_Discriminants): For an access discriminant, use the
1324         discriminant specification as the associated_node_for_itype, to
1325         simplify accessibility checks.
1327 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
1328             Javier Miranda  <miranda@adacore.com>
1330         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
1331         abstract interpretations on an operator, remove interpretations that
1332         yield Address or a type derived from it, if one of the operands is an
1333         integer literal.
1334         (Try_Object_Operation.Try_Primitive_Operation,
1335         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
1336         location when creating the new reference to a primitive or class-wide
1337         operation as a part of rewriting a subprogram call.
1338         (Try_Primitive_Operations): If context requires a function, collect all
1339         interpretations after the first match, because there may be primitive
1340         operations of the same type with the same profile and different return
1341         types. From code reading.
1342         (Try_Primitive_Operation): Use the node kind to choose the proper
1343         operation when a function and a procedure have the same parameter
1344         profile.
1345         (Complete_Object_Operation): If formal is an access parameter and prefix
1346         is an object, rewrite as an Access reference, to match signature of
1347         primitive operation.
1348         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
1349         by an expanded name with prefix Standard, when the operands are of an
1350         anonymous access type.
1351         (Remove_Abstract_Operations): If the operation is abstract because it is
1352         inherited by a user-defined type derived from Address, remove it as
1353         well from the set of candidate interpretations of an overloaded node.
1354         (Analyze_Membership_Op): Membership test not applicable to cpp-class
1355         types.
1357 2006-02-13  Bob Duff  <duff@adacore.com>
1359         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
1360         redundant use clauses.
1361         In particular, if the scope of two use clauses overlaps, but one is not
1362         entirely included in the other, we should not warn.  This can happen
1363         with nested packages.
1364         (Analyze_Subprogram_Renaming): Protect the compiler against previously
1365         reported errors. The bug was reported when the compiler was built
1366         with assertions enabled.
1367         (Find_Type): If the node is a 'Class reference and the prefix is a
1368         synchronized type without a corresponding record, return the type
1369         itself.
1371 2006-02-13  Javier Miranda  <miranda@adacore.com>
1373         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
1374         if this is the full-declaration associated with a private declaration
1375         that implement interfaces, then the private type declaration must be
1376         limited.
1377         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
1378         as aliased. The use of the 'access attribute is not available for such
1379         object (for this purpose the object should be explicitly marked as
1380         aliased, but being an anonymous type this is not possible).
1382 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
1383             Robert Dewar  <dewar@adacore.com>
1385         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
1386         compilation unit is an elaboration scope.
1387         (Add_Task_Proc): Add '\' in 2-line warning message.
1388         (Activate_All_Desirable): Deal with case of unit with'ed by parent
1390 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
1391             Javier Miranda  <miranda@adacore.com>
1393         * sem_type.adb (Write_Overloads): Improve display of candidate
1394         interpretations.
1395         (Add_One_Interp): Do not add to the list of interpretations aliased
1396         entities corresponding with an abstract interface type that is an
1397         immediate ancestor of a tagged type; otherwise we have a dummy
1398         conflict between this entity and the aliased entity.
1399         (Disambiguate): The predefined equality on universal_access is not
1400         usable if there is a user-defined equality with the proper signature,
1401         declared in the same declarative part as the designated type.
1402         (Find_Unique_Type): The universal_access equality operator defined under
1403         AI-230 does not cover pool specific access types.
1404         (Covers): If one of the types is a generic actual subtype, check whether
1405         it matches the partial view of the other type.
1407 2006-02-13  Thomas Quinot  <quinot@adacore.com>
1409         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
1410         line. This is necessary to allow In_Extended_Main_Unit to provide
1411         correct results for itypes while writing out expanded source.
1412         (Close_File): No need to update the source_index_table here since it's
1413         now done for each line.
1415 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
1416             Robert Dewar  <dewar@adacore.com>
1418         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
1419         preserve the source unit where the itype is declared, and prevent a
1420         backend abort.
1421         (Note_Implicit_Run_Time_Call): New procedure
1422         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
1423         E_Subprogram_Type)
1425         * sprint.ads: Document use of $ for implicit run time routine call
1427 2006-02-13  Quentin Ochem  <ochem@adacore.com>
1429         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
1430         task name.
1432 2006-02-13  Bob Duff  <duff@adacore.com>
1434         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
1435         Scan_Unsigned, so we do not scan leading blanks and sign twice.
1436         Integer'Value("- 5") and Integer'Value("-+5") now correctly
1437         raise Constraint_Error.
1439         * s-vallli.adb (Scan_Long_Long_Integer): Call
1440         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
1441         do not scan leading blanks and sign twice.
1442         Integer'Value("- 5") and Integer'Value("-+5") now correctly
1443         raise Constraint_Error.
1445         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
1446         Scan_Long_Long_Unsigned): Split out most of the processing from
1447         Scan_Long_Long_Unsigned out into
1448         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
1449         This prevents scanning leading blanks and sign twice.
1450         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
1451         See RM-3.5(44).
1453         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
1454         out most of the processing from Scan_Unsigned out into
1455         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
1456         This prevents scanning leading blanks and sign twice.
1458         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
1459         use with Modular'Value attribute.
1460         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
1461         attribute.
1463 2006-02-13  Robert Dewar  <dewar@adacore.com>
1465         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
1467 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1469         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
1470         (PPC VxWorks): Likewise.
1471         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
1472         (forced_callee): Make non-inlinable and non-pure.
1473         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
1475 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
1476             Ben Brosgol  <brosgol@adacore.com>
1477             Robert Dewar  <dewar@adacore.com>
1479         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
1480         support.
1481         Document that gnatbind -M option is for cross environments only.
1482         Added description of using gnatmem to trace gnat rtl allocs and deallocs
1483         Add note on use of $ to label implicit run time calls
1484         Add documentation for -gnatyI (check mode IN)
1485         Updated chapter on compatibility with HP Ada
1486         VMS-oriented edits.
1487         Ran spell and corrected errors
1488         Add documentation for gnatbind -d and rework documentation of -D
1489         at the same time.
1490         Add subprogram/data elimination section.
1491         Minor editing of annex A.
1492         Add section for gnatcheck.
1493         Add documentation for restriction No_Dispatching_Calls
1494         Add documentation for pragma Ada_2005
1495         Remove mention of obsolete pragma Propagate_Exceptions
1496         Document that pragma Unreferenced can appear after DO in ACCEPT
1497         Clarify Pure_Function for library level units
1498         Mention Max/Min in connection with No_Implicit_Conditionals
1499         No_Wide_Characters restriction is no longer partition-wide
1500         Add a nice example for Universal_Literal_String attribute
1501         Document that pragma No_Return can take multiple arguments
1503         * ug_words: Added entry for gnatcheck
1505         * g-ctrl_c.ads (Install_Handler): Enhance comments
1507         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
1509         * g-trasym.ads: Add documentation on how to do off line symbolic
1510         traceback computation.
1512         * s-fatgen.adb: Add comments for Unaligned_Valid
1514         * stand.ads: Fix typo in comment
1516 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1518         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
1520 2006-02-06  Roger Sayle  <roger@eyesopen.com>
1522         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
1524 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1526         PR target/25926
1527         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
1528         implementation that calls __main.
1530 2006-01-25  Peter O'Gorman  <peter@pogma.com>
1532         PR bootstrap/25859
1533         * Makefile.in (GCC_LINK): Remove quotes.
1534         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
1535         or $(GCC_LINK).
1537         (powerpc-darwin): Pass -shared-libgcc when building shared library.
1539 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1541         PR ada/24533
1542         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
1544 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1546         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
1548 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
1550         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
1551         needed.
1553 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
1555         * Make-lang.in: Update dependencies
1557 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
1559         * Make-lang.in: Add rule for ada/exp_sel.o
1561 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
1563         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
1565 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
1567         * gnatvsn.ads (Library_Version): Bump to version 4.2
1568         (ASIS_Version_Number): Bumped.
1570 2005-12-09  Doug Rupp  <rupp@adacore.com>
1572         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
1573         Ada bind file prefix on VMS from b$ to b__.
1574         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
1575         __init.
1577         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
1578         Targparm.OpenVMS_On_Target.
1579         (Object_Suffix): Initialize with target object suffix.
1580         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
1582         * butil.adb: Change some Hostparm.OpenVMS checks to
1583         Targparm.OpenVMS_On_Target.
1585         * clean.adb: Change some Hostparm.OpenVMS checks to
1586         Targparm.OpenVMS_On_Target.
1587         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
1588         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
1589         Ada bind file prefix on VMS from b$ to b__.
1591         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
1592         --GCC so that Get_Target_Parameters can find system.ads.
1593         (Gnatlink): Call Get_Target_Parameters in mainline.
1594         Initialize standard packages for Targparm.
1595         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
1596         (Process_Args): Also Check for object files with target object
1597         extension.
1598         (Make_Binder_File_Names): Create with target object extension.
1599         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
1600         to b__.
1602         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
1603         Targparm.OpenVMS_On_Target.
1604         ({declaration},Build_Library,Check_Library): Change Ada bind file
1605         prefix on VMS from b$ to b__.
1607         * osint-b.adb: Change some Hostparm.OpenVMS checks to
1608         Targparm.OpenVMS_On_Target.
1609         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
1610         b__.
1612         * targext.c: New file.
1614         * Makefile.in: add support for vxworks653 builds
1615         (../../vxaddr2line): gnatlink with targext.o.
1616         (TOOLS_LIBS): Move targext.o to precede libgnat.
1617         (init.o, initialize.o): Minor clean up in dependencies.
1618         (GNATLINK_OBJS): Add targparm.o, snames.o
1619         Add rules fo building targext.o and linking it explicitly with all
1620         tools.
1621         Also add targext.o to gnatlib.
1623         * Make-lang.in: Add rules for building targext.o and linking it in
1624         with gnat1 and gnatbind.
1625         Add entry for exp_sel.o.
1627         * osint.adb Change some Hostparm.OpenVMS checks to
1628         Targparm.OpenVMS_On_Target.
1629         (Object_File_Name): Use target object suffix.
1631         * osint.ads (Object_Suffix): Remove, no longer used.
1632         (Target_Object_Suffix): Initialize with target object suffix.
1634         * rident.ads: Add special exception to license.
1636         * targparm.adb (Get_Target_Parameters): Set the value of
1637         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
1638         value.
1639         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
1640         
1641         * targparm.ads: Add special exception to license.
1643         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
1644         function.
1645         (Copy_File): Make sure from file is closed if error on to file
1646         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
1648         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
1649         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
1651         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
1652         target object suffix.
1654 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
1655             Quentin Ochem  <ochem@adacore.com>
1656             Florian Villoing  <villoing@adacore.com>
1658         * a-taster.ads, a-taster.adb: New files.
1660         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
1661         link to the version that does nothing. This way the task termination
1662         routine is not executed twice for the environment task when finishing
1663         because of an unhandled exception.
1665         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
1666         handler because of an unhandled exception.
1668         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
1669         System.Tasking.Utilities instead of that in System.Tasking.Stages.
1671         * s-finimp.adb (initialization code): Modify the soft link for the
1672         finalization of the global list instead of Adafinal.
1674         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
1675         non-tasking version of the soft link for task termination. We do
1676         nothing since if we are using the non-tasking version it
1677         means that the task termination functionality is not used.
1678         (Null_Finalize_Global_List): Add this null version for the procedure
1679         in charge of finalizing the global list for controlled objects.
1680         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
1681         instead for handling run-time termination in a more flexible way.
1682         (Adafinal_NT): This new procedure will take care of finalizing the
1683         global list for controlled objects if needed, but no tasking
1684         finalization.
1686         * s-tarest.adb (Task_Lock): Do not try to lock again the
1687         Global_Task_Lock if we already own it. Otherwise, we get blocked in
1688         some run-time operations.
1689         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
1690         until all nested locks have been released.
1691         (Task_Wrapper): Call the fall-back task termination handler. It
1692         applies to all tasks but the environment task.
1693         (Finalize_Global_Tasks): Add the call for the task termination
1694         procedure for the environment task.
1695         (Task_Wrapper): suppress warnings around declaration of
1696         Secondary_Stack_Address.
1698         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
1699         moved to the Common_ATCB record.
1700         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
1701         Common_ATCB record.
1702         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
1703         Common_ATCB record.
1705         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
1706         Fall_Back_Handler, and Specific_Handler.
1708         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
1709         defined in Ada.Task_Termination, to avoid circular dependencies.
1710         (Termination_Handler): Redefine this type here, alredy defined in
1711         Ada.Task_Termination, for avoiding circular dependencies.
1712         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
1713         for storing task termination handlers. In addition,
1714         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
1715         Common_ATCB because it is used by both the regular and the restricted
1716         run times.
1717         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
1718         Common_ATCB because it is used by both the regular and the restricted
1719         run times.
1720         (Common_ATCB): Added a dynamic task analyzer field.
1722         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
1723         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
1724         (Task_Wrapper): Call the task termination handler. It applies to all
1725         tasks but the environment task.
1726         (Finalize_Global_Tasks): Call the task termination procedure for the
1727         environment task. The call to Finalize_Global_List is now performed
1728         using the soft links mechanism.
1729         (Task_Wrapper): added dynamic stack analysis.
1731         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
1732         potentially blocking operations has been moved from
1733         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
1734         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
1735         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
1736         this run-time check.
1738         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
1739         of task termination procedure.
1740         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
1741         link for the task termination procedure.
1743         * bindusg.adb: (Bindusg): Added documentation for -u option.
1745         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
1746         (Get_Main_C): Add handling of dynamic stack analysis.
1747         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
1749         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
1750         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
1751         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
1753         * opt.ads: Added flags used by dynamic stack measurement.
1754         (Max_Line_Length): Remove (not used anymore)
1756         * s-io.ads, s-io.adb (Standard_Error): new subprogram
1757         (Standart_Output): new subprogram
1758         (Set_Output): new subprogram
1759         (Put): now uses the value of Current_Out to know if the output has to be
1760         send to stderr or stdout.
1761         
1762         * s-stausa.ads: Complete implementation.
1764         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
1765         
1766         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
1767         list of Ada 05 files.
1768         (GNAT Library Units): Add AltiVec files.
1770         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
1771         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
1772         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
1774 2005-12-09  Nicolas Setton  <setton@adacore.com>
1776         * adaint.c (__gnat_locate_regular_file): Return immediately if
1777         file_name is empty.
1779 2005-12-09  Javier Miranda  <miranda@adacore.com>
1780             Hristian Kirtchev  <kirtchev@adacore.com>
1782         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
1783         to the specification because the frontend generates code that uses this
1784         subprogram.
1785         (Set_Interface_Table): Add missing assertion.
1786         Update documentation describing the run-time structure.
1787         (Displace): New subprogram that displaces the pointer to the object
1788         to reference one of its secondary dispatch tables.
1789         (IW_Membership): Modified to use the new table of interfaces.
1790         (Inherit_TSD): Modified to use the new table of interfaces.
1791         (Register_Interface_Tag): Use the additional formal to fill the
1792         contents of the new table of interfaces.
1793         (Set_Interface_Table): New subprogram that stores in the TSD the
1794         pointer to the table of interfaces.
1795         (Set_Offset_To_Top): Use the additional formal to save copy of
1796         the offset value in the table of interfaces.
1797         Update structure of GNAT Primary and Secondary dispatch table diagram.
1798         Add comment section on GNAT dispatch table prologue.
1799         (Offset_To_Signature): Update the constant value of the Signature field.
1800         (Dispatch_Table): Update comment on hidden fields in the prologue.
1801         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
1802         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
1803         the type of formal parameter T to Tag, introduce additional assertions.
1804         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
1805         conversion.
1806         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
1808         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
1809         in all the calls to Expand_Interface_Thunk. Instead of referencing the
1810         record component containing the tag of the secondary dispatch table we
1811         have to use the Offset_To_Top run-time function to get this information;
1812         otherwise if the pointer to the base of the object has been displace
1813         we get a wrong value if we use the 'position attribute.
1815         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
1816         all the calls to Expand_Interface_Thunk.
1817         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
1818         interfaces; hence the call to Set_Interface_Table was clearly wrong.
1819         (Collect_All_Interfaces): Modify the internal subprogram Collect to
1820         ensure that the interfaces implemented by the ancestors are placed
1821         at the header of the generated list.
1822         (Expand_Interface_Conversion): Handle the case in which the displacement
1823         associated with the interface conversion is not statically known. In
1824         this case we generate a call to the new run-time subprogram Displace.
1825         (Make_DT): Generate and fill the new table of interfaces.
1826         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
1827         Get_Tagged_Kind and Set_Tagged_Kind.
1828         (Tagged_Kind): New function that determines the tagged kind of a type
1829         with respect to limitedness and concurrency and returns a reference to
1830         RE_Tagged_Kind.
1831         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
1832         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
1833         primary dispatch table for a type.
1834         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
1835         secondary dispatch table respectively of a tagged type.
1837         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
1838         (Expand_Interface_Conversion): New subprogram to indicate if the
1839         displacement of the type conversion is statically known.
1840         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
1842         * rtsfind.ads (RE_Offset_To_Top): New entity
1843         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
1844         accessible to users.
1845         (Re_Displace): New entity
1846         (RE_Interface_Data): New entity
1847         (RE_Set_Interface_Data): New_Entity
1848         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
1849         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
1850         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
1851         RE_TK_Tagged, RE_TK_Task.
1853         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
1854         Init_Secondary_Tags_Internal to allow its use with interface types and
1855         also to generate the code for the new additional actual required
1856         by Set_Offset_To_Top.
1857         (Build_Init_Statements): In case of components associated with abstract
1858         interface types there is no need to generate a call to its IP.
1859         (Freeze_Record_Type): Generate Select Specific Data tables only for
1860         concurrent types.
1861         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
1862         the bodies and specifications of the predefined primitive operations
1863         dealing with dispatching selects and abort, 'Callable, 'Terminated only
1864         for concurrent types.
1866         * exp_sel.ads, exp_sel.adb: New files.
1868         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
1869         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
1870         properly protected objects and attach handler in the case of the
1871         restricted profile.
1872         Move embeded package Select_Expansion_Utilities into a separate external
1873         package.
1874         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
1875         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
1876         (Build_K, Build_S_Assignment): New subprograms, part of the select
1877         expansion utilities.
1878         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
1879         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
1880         where the trigger is a dispatching procedure of a limited tagged type.
1882 2005-12-09  Olivier Hainque  <hainque@adacore.com>
1884         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
1885         pointer initialization values. Make a SAVE_EXPR instead. Add comments
1886         about the use and expansion of SAVE_EXPRs in the various possible
1887         renaming handling cases.
1888         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
1889         abusing DECL_FCONTEXT.
1891 2005-12-09  Matthew Heaney  <heaney@adacore.com>
1893         * a-convec.adb (Merge): Added assertions to check whether vector params
1894         are sorted.
1896         * a-coinve.adb (Merge): Added assertions to check whether vector params
1897         are sorted.
1899         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
1900         draft.
1901         (Cursor'Read): raises PE
1903         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
1904         to its default value.
1906         * a-cihama.adb: Manually check whether cursor's key and elem are
1907         non-null
1909         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
1910         (Merge): Assert that target and source lists are in order
1911         (Swap): Declare non-const temporaries, to pass to Splice
1913         * a-cdlili.ads: (Splice): Changed param name and param mode
1915         * a-cdlili.adb: (Splice): Changed param name and param mode
1916         (Merge): Assert that target and source lists are in order
1917         (Swap): Declare non-const temporaries, to pass to Splice
1919         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
1920         (Write): declare Stream param as not null
1922         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
1923         an exception message.
1925 2005-12-09  Thomas Quinot  <quinot@adacore.com>
1926             Robert Dewar  <dewar@adacore.com>
1928         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
1929         which is the absolute maximum length we can support.
1931         * frontend.adb: For the processing of configuration pragma files,
1932         remove references to Opt.Max_Line_Length, which is not checked anymore.
1934         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
1935         length.
1937         * scn.adb, scng.adb: 
1938         Always check line length against the absolute supported maximum,
1939         Hostparm.Max_Line_Length.
1941         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
1942         value for the maximum line length is Max_Line_Length (not
1943         Column_Number'Last).
1944         Minor error msg update
1945         (Set_Style_Check_Options): New interface returning error msg
1946         Minor code reorganization (processing for 'M' was out of alpha order)
1948         * switch-c.adb: New interface for Set_Style_Check_Options
1950         * stylesw.ads (Set_Style_Check_Options): New interface returning error
1951         msg.
1953 2005-12-09  Javier Miranda  <miranda@adacore.com>
1955         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
1956         with IP subprogram were only supported if there were limited types.
1958         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
1959         records with IP subprogram were only supported if there were limited
1960         types.
1962 2005-12-09  Olivier Hainque  <hainque@adacore.com>
1963             Eric Botcazou  <ebotcazou@adacore.com>
1965         * trans.c (tree_transform, emit_check): Adjust calls to
1966         build_call_raise, passing the now expected GNAT_NODE argument.
1968         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
1969         source line information than what the current global locus indicates
1970         when appropriate.
1972         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
1973         field has overflowed.
1974         (build_call_raise): Add a GNAT_NODE argument to convey better source
1975         line information than what the current global locus indicates when
1976         appropriate.
1977         (build_component_ref): Adjust call to build_call_raise.
1979 2005-12-09  Pascal Obry  <obry@adacore.com>
1981         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
1982         the iterator is quitting iteration on parent directory.
1984 2005-12-09  Javier Miranda  <miranda@adacore.com>
1986         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
1987         and the assignment to a class-wide object, before the assignment we
1988         generate a run-time check to ensure that the tag of the Target is
1989         covered by the tag of the source.
1991 2005-12-09  Robert Dewar  <dewar@adacore.com>
1993         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
1994         parameter in call to Image_Wide_Character.
1996         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
1997         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
1998         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
1999         annoying FFFE/FFFF inconsistency.
2001 2005-12-09  Robert Dewar  <dewar@adacore.com>
2002             Javier Miranda  <miranda@adacore.com>
2003             Ed Schonberg  <schonberg@adacore.com>
2005         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
2006         of type conversion.
2007         (Find_Interface): New subprogram that given a tagged type and one of its
2008         component associated with the secondary table of an abstract interface
2009         type, return the entity associated with such abstract interface type.
2010         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
2011         base type to create anonymous subtype, because entity may be a locally
2012         declared subtype or generic actual.
2013         (Find_Interface): New subprogram that given a tagged type and one of its
2014         component associated with the secondary table of an abstract interface
2015         type, return the entity associated with such abstract interface type.
2017         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
2018         conversion cannot be handled at compile time. In this case we pass this
2019         information to the expander to generate the appropriate code.
2021 2005-12-09  Robert Dewar  <dewar@adacore.com>
2022             Ed Schonberg  <schonberg@adacore.com>
2023             Gary Dismukes  <dismukes@adacore.com>
2024             Javier Miranda  <miranda@adacore.com>
2025             Hristian Kirtchev  <kirtchev@adacore.com>
2027         * einfo.adb (Itype_Printed): New flag
2028         (Is_Limited_Type): Derived types do not inherit limitedness from
2029         interface progenitors.
2030         (Is_Return_By_Reference_Type): Predicate does not apply to limited
2031         interfaces.
2033         * einfo.ads (Itype_Printed): New flag
2034         Move Is_Wrapper_Package to proper section
2035         Add missing Inline for Is_Volatile
2037         * output.ads, output.adb (Write_Erase_Char): New procedure
2038         (Save/Restore_Output_Buffer): New procedures
2039         (Save/Restore_Output_Buffer): New procedures
2041         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
2042         Add missing support for anonymous access type
2043         (Write_Id): Insert calls to Write_Itype
2044         (Write_Itype): New procedure to output itypes
2046         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
2047         use of "limited" in declaration.
2049         * sinfo.ads, sinfo.adb: 
2050         Formal derived types can carry an explicit "limited" indication.
2052         * sem_ch3.adb: Add with and use of Targparm.
2053         (Create_Component): If Frontend_Layout_On_Target is True and the
2054         copied component does not have a known static Esize, then reset
2055         the size and positional fields of the new component.
2056         (Analyze_Component_Declaration): A limited component is
2057         legal within a protected type that implements an interface.
2058         (Collect_Interfaces): Do not add to the list the interfaces that
2059         are implemented by the ancestors.
2060         (Derived_Type_Declaration): If the parent of the full-view is an
2061         interface perform a transformation of the tree to ensure that it has
2062         the same parent than the partial-view. This simplifies the job of the
2063         expander in order to generate the correct object layout, and it is
2064         needed because the list of interfaces of the full-view can be given in
2065         any order.
2066         (Process_Full_View): The parent of the full-view does not need to be
2067         a descendant of the parent of the partial view if both parents are
2068         interfaces.
2069         (Analyze_Private_Extension_Declaration): If declaration has an explicit
2070         "limited" the parent must be a limited type.
2071         (Build_Derived_Record_Type): A derived type that is explicitly limited
2072         must have limited ancestor and progenitors.
2073         (Build_Derived_Type): Ditto.
2074         (Process_Full_View): Verify that explicit uses of "limited" in partial
2075         and full declarations are consistent.
2076         (Find_Ancestor_Interface): Remove function.
2077         (Collect_Implemented_Interfaces): New procedure used to gather all
2078         implemented interfaces by a type.
2079         (Contain_Interface): New function used to check whether an interface is
2080         present in a list.
2081         (Find_Hidden_Interface): New function used to determine whether two
2082         lists of interfaces constitute a set equality. If not, the first
2083         differing interface is returned.
2084         (Process_Full_View): Improve the check for the "no hidden interface"
2085         rule as defined by AI-396.
2087 2005-12-09  Robert Dewar  <dewar@adacore.com>
2089         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
2090         types, not on record subtypes.
2091         (Freeze_Entity): Code cleanup. Add barrier to the loop
2092         that generates the references for primitive operations. This allows to
2093         remove an unnecessary exception handler.
2094         Code reformatting and comment clean ups.
2096 2005-12-09  Vincent Celier  <celier@adacore.com>
2098         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
2099         If GNAT CHECK is called with a project file, but with no
2100         source on the command line, call gnatcheck with all the compilable
2101         sources of the project.
2102         Take into account the new command Check, for gnatcheck. Treat as for
2103         other ASIS tools: take into account project, specific package Check and
2104         Compiler switches.
2105         For ASIS tools, add the switches in package Compiler for
2106         the invocation of the compiler.
2108         * prj-attr.adb: Add package Check and its attributes
2110         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
2112         * vms_conv.adb (Initialize): Change Params of command Check to
2113         unlimited files.
2114         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
2115         Add data for new command Check
2117         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
2118         ELIM.
2119         Add qualifiers for Check command options
2120         (Command_Type): New command Check
2122 2005-12-09  Thomas Quinot  <quinot@adacore.com>
2124         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
2125         command line switch overruns the output buffer.
2127 2005-12-09  Robert Dewar  <dewar@adacore.com>
2129         * sem_prag.adb: Processing for new pragma Complete_Representation
2130         (Analyze_Pragma, case Debug): Implement two argument form.
2132         * par-prag.adb: Entry for new pragma Complete_Representation
2133         (Prag, case Debug): Recognize two argument form of pragma Debug
2134         New interface for Set_Style_Check_Options.
2136         * sem_ch13.adb: Implement new pragma Complete_Representation.
2138         * snames.adb, snames.ads, snames.h: Entry for new pragma
2139         Complete_Representation.
2141 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
2143         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
2144         available user-specified stream attributes on limited parameters to
2145         also test the type directly rather than only its underlying type (for
2146         Ada 95) and, in the case of Ada 2005, to check that the user-specified
2147         attributes are visible at the point of the subprogram declaration.
2148         For Ada 2005, the error message is modified to indicate that the
2149         type's stream attributes must be visible (again, only for -gnat05).
2151 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
2153         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
2154         anonymous access types.
2156         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
2157         matching of anonymous access types and anonymous access to subprogram
2158         types. 'R'M 4.9.1 (2/2).
2160 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
2162         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
2163         rule prematurely when operands are universal, remaining ambiguities
2164         will be removed during resolution.
2165         Code cleanup.
2167         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
2168         that are Ada 2005 functions.
2169         (Has_Abstract_Interpretation): Subsidiary to
2170         Remove_Conversions, to remove ambiguities caused by abstract operations
2171         on numeric types when operands are universal.
2173 2005-12-09  Robert Dewar  <dewar@adacore.com>
2175         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
2176         for case where spec is categorized.
2178 2005-12-09  Javier Miranda  <miranda@adacore.com>
2180         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
2181         types use the corresponding record type. This was not needed before
2182         the implementation of Ada 2005 synchronized types because
2183         concurrent types were never tagged types in Ada 95.
2185 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
2187         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
2188         first subtype of the type of the expression to verify that it is a
2189         legal Time type.
2191 2005-12-09  Robert Dewar  <dewar@adacore.com>
2193         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
2194         decoded names.
2196 2005-12-09  Quentin Ochem  <ochem@adacore.com>
2197             Robert Dewar  <dewar@adacore.com>
2198             Ed Falis  <falis@adacore.com>
2199             Florian Villoing  <villoing@adacore.com>
2200             Thomas Quinot  <quinot@adacore.com>
2201             Arnaud Charlet  <charlet@adacore.com>
2203         * gnat_ugn.texi: Created section "Stack Related Tools"
2204         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
2205         "Stack Related Tools"
2206         Added subsection "Static Stack Usage Analysis"
2207         Added subsection "Dynamic Stack Usage Analysis"
2208         Include documentation of itypes in sprint listing (-gnatG)
2209         Documented gnatbind -D switch (default sec stack size for fixed sec
2210         stacks).
2211         Added Interrupt_State and Persistent_BSS to list of configuration
2212         pragmas.
2213         Add missing doc for maximum value of nnn in -gnatyMnnn
2215         * gnat_rm.texi: Document the AltiVec binding.
2216         Add documentation for pragma Complete_Representation
2217         Shortened an overly long line (> 79 chars)
2218         Clarify documentation of unchecked conversion in implementation
2219         defined cases.
2220         Document two argument form of pragma Debug
2222         * types.ads (Column_Number): Update documentation.
2224         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
2225         library level Finalize_Storage_Only objects (these are not attached to
2226         any finalization list).
2228         * system-mingw.ads: (Underlying_Priorities): Update comment.
2230 2005-12-09  Robert Dewar  <dewar@adacore.com>
2232         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
2233         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
2234         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
2235         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
2236         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
2237         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
2238         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
2239         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
2240         reformatting.
2242 2005-12-09  Robert Dewar  <dewar@adacore.com>
2244         * s-vaflop-vms-alpha.adb: (Ne_F): New function
2245         (Ne_G): New function
2247         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
2248         for tag assignment.
2249         (Rewrite_Comparison): Handle case where operation is not a comparison
2250         and ignore, and also handle type conversion case.
2252 2005-12-09  Thomas Quinot  <quinot@adacore.com>
2254         * exp_aggr.ads: Fix typo in comment.
2255         ???-mark Convert_Aggr_In_Assignment as needing documentation.
2257 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
2259         * layout.adb: Replace various uses of byte by storage unit throughout.
2260         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
2261         static size, convert to storage units before returning, to conform to
2262         spec.
2264 2005-12-09  Matthew Gingell  <gingell@adacore.com>
2266         * g-exctra.ads: Fix typo in comment.
2268 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2270         * utils.c: Minor reformatting.
2272 2005-12-09  Robert Dewar  <dewar@adacore.com>
2274         * g-soccon.ads: 
2275         Further comment fixes to make the status of the default file clear
2277         * s-bitops.adb: Clarify comment for Bits_Array
2279 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
2281         * Make-lang.in (ada.install-normal): Remove.
2283 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
2285         * Make-lang.in: Remove all dependencies on s-gtype.
2287 2005-12-05  Richard Guenther  <rguenther@suse.de>
2289         * utils.c (convert): Use fold_convert where appropriate.
2291 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
2293         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
2294         a period is meant.
2296 2005-12-02  Richard Guenther  <rguenther@suse.de>
2298         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
2300 2005-12-01  Roger Sayle  <roger@eyesopen.com>
2302         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
2303         nodes.
2305 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
2307         * mlib-prj.adb (Build_Library): Initialize Delete.
2309 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
2311         * socket.c: Add extern int h_errno for rtems since networking header
2312         files are not available at this point in a tool bootstrap. Newlib
2313         only has basic C library header files.
2315 2005-11-19  Richard Guenther  <rguenther@suse.de>
2316         Roger Sayle  <roger@eyesopen.com>
2318         PR ada/23717
2319         * misc.c (internal_error_function): Don't use vsprintf to format
2320         the error message text, instead use pp_format_text and the new
2321         pretty printer APIs.  This allows handling of %qs, %w, etc.
2323 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
2325         PR ada/24857
2326         * Makefile.in: Use s-auxdec-empty for RTEMS.
2328 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2330         PR ada/22333
2331         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
2332         a temporary if taking the address of something that is neither
2333         reference, declaration, or constant, since the gimplifier
2334         can't handle that case.
2336 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
2338         PR ada/24857
2339         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
2340         
2341 2005-11-16  Richard Guenther  <rguenther@suse.de>
2343         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
2345 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2347         PR ada/24855
2348         * raise-gcc.c: Add missing stdarg.h include.
2350 2005-11-16  Richard Guenther  <rguenther@suse.de>
2352         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
2353         (ada/misc.o): Likewise.
2355 2005-11-14  Thomas Quinot  <quinot@adacore.com>
2357         * g-soccon.ads: Minor reformatting. Update comments.
2359         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
2360         gain visibility on the declaration of struct timeval.
2362         * g-soccon-freebsd.ads,
2363         g-soccon-darwin.ads,
2364         g-soccon-tru64.ads,
2365         g-soccon-aix.ads,
2366         g-soccon-irix.ads,
2367         g-soccon-hpux.ads,
2368         g-soccon-solaris.ads,
2369         g-soccon-vms.ads,
2370         g-soccon-mingw.ads,
2371         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
2373         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
2374         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
2375         g-soccon-linux-x86.ads: New files.
2377         * g-socthi-mingw.adb: 
2378         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
2380         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
2381         (time_t, suseconds_t): New types constructed to match the tv_sec
2382         and tv_usec fields of C struct timeval.
2383         (Timeval): Construct structure in terms of the new types.
2384         (Host_Errno): New function (imported from socket.c), returns last hosts
2385         database error.
2387         * g-socthi-vxworks.adb:  Add error handling circuitry.
2389         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
2390         components of struct timeval.
2391         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
2392         (Check_Selector): In error conditions, clear internal socket sets to
2393         avoid a memory leak.
2394         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
2395         Send_Timeout, Receive_Timeout.
2397         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
2398         the tv_sec and tv_usec fields of C struct timeval.
2399         (Timeval): Construct structure in terms of the new types.
2400         (Host_Errno): New function (imported from socket.c), returns last hosts
2401         database error.
2403         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
2404         hosts database last error code.
2406         * gen-soccon.c: Complete value expansion should not be performed on
2407         TARGET, as it has the form of a math expression, and some components
2408         may be platform-defined macros.
2409         For VxWorks, generate the OK and ERROR values.
2410         New constants giving the sizes of the components of C struct timeval.
2412 2005-11-14  Robert Dewar  <dewar@adacore.com>
2413             Ed Schonberg  <schonberg@adacore.com>
2415         PR ada/18434
2417         * types.ads: Include All_Checks in Suppress_Array
2419         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
2420         not(a=b), since we no longer do this rewriting, and hence it is not
2421         needed.
2422         (Elaboration_Checks_Suppressed): Add special casing to
2423         deal with different cases of static and dynamic elaboration checks (all
2424         checks does not count in the first case, but does in the second).
2425         (Expr_Known_Valid): Do not assume that the result of any arbitrary
2426         function call is valid, since this is not the case.
2427         (Ensure_Valid): Do not apply validity check to a real literal
2428         in a universal or fixed context
2430         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
2431         elementary types using the operator in standard. It is cleaner not to
2432         modify the programmers intent, especially in the case of floating-point.
2433         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
2434         it did not matter because we always rewrote a/=b to not(a=b).
2435         (Expand_Allocator_Expression): For an allocator expression whose nominal
2436         subtype is an unconstrained packed type, convert the expression to its
2437         actual constrained subtype.
2438         Implement warning for <= or >= where < or > not possible
2439         Fix to Vax_Float tests (too early in many routines, causing premature
2440         Vax_Float expansions.
2442         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
2443         to be used with packages and generic packages as well as with
2444         subprograms.
2445         (Suppress): Set All_Checks, but not Elaboration_Check, for case
2446         of pragma Suppress (All_Checks)
2447         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
2448         a string literal for precise control over warnings.
2449         Avoid raise of pragma in case of unrecognized pragma and just return
2450         instead.
2452         * sem_prag.ads: Minor reformatting
2454         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
2455         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
2456         Switch. Do not handle any exception.
2457         Include -gnatwx as part of -gnatg (warn on redundant parens)
2458         Allow optional = after -gnatm
2459         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
2460         longer sets Elaboration_Checks.
2461         Code to set warning mode moved to Sem_Warn
2462         so that it can be shared by pragma processing.
2464         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
2465         statement.
2467         * s-taprop-solaris.adb: 
2468         Change some <= to =, to avoid new warning
2470         * a-exexda.adb, prj-proc.adb: 
2471         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
2472         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
2474 2005-11-14  Robert Dewar  <dewar@adacore.com>
2476         * exp_vfpt.adb: Handle /= case
2477         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
2478         so that we do not get duplicate scaling for fixed point conversions.
2480         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
2482 2005-11-14  Matthew Gingell  <gingell@adacore.com>
2484         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
2485         Increase default priority on Lynx from 15 to 17, and meet the Ada
2486         requirement that Default_Priority be ((Priority'First +
2487         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
2489 2005-11-14  Vincent Celier  <celier@adacore.com>
2491         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2492         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2493         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
2494         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
2495         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
2496         mlib-tgt-lynxos.adb (DLL_Prefix): New function
2498 2005-11-14  Doug Rupp  <rupp@adacore.com>
2500         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
2501         private part.
2503 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
2505         * s-traces-default.adb, s-trafor-default.ads,
2506         s-tratas-default.adb: Fix compilation errors.
2508 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
2510         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
2511         raising the exception so the memory used is freed.
2513 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
2515         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
2516         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
2517         (convert_address): Update comments and list of platforms using this.
2519         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
2520         no longer used.
2522 2005-11-14  Pascal Obry  <obry@adacore.com>
2523             Vincent Celier  <celier@adacore.com>
2525         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
2526         GNAT.Command_Line.
2528         * memroot.adb: Remove redundant with/use clause on
2529         System.Storage_Elements.
2531 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
2533         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
2534         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
2535         related code to a-exexpr.adb
2536         (Save_Occurrence_And_Private): Move GCC EH related code to
2537         a-exexpr-gcc.adb
2538         (Raise_Current_Excep): Add new variable Id with pragma
2539         volatile, to ensure that the variable lives on stack.
2541         * a-exexpr-gcc.adb, raise-gcc.c: New file.
2543         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
2544         from a-except.adb.
2545         Move GCC EH related code to a-exexpr-gcc.adb
2547         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
2548         64-bit Solaris
2549         Split the Linux version of g-soccon into separate variants for 32 and 64
2550         bit platforms.
2551         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
2552         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
2553         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
2554         of host variable $(RANLIB_FLAGS).
2555         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
2556         Code clean up: remove unused/obsolete targets.
2557         (EH_MECHANISM): New variable introduced to differenciate between the
2558         two EH mechanisms statically.
2559         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
2560         (LIBGNAT_OBJS): Add raise-gcc.o
2561         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
2562         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
2563         supports VxWorks 6 RTPs.
2564         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
2565         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
2567         * raise.c: Move all GCC EH-related routines to raise-gcc.c
2569 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
2571         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
2572         deferral level, when abort is not allowed, to a later stage (the
2573         Task_Wrapper).
2574         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
2575         it will not get changed by the generated code. It was previously done
2576         in Create_Task.
2578 2005-11-14  Thomas Quinot  <quinot@adacore.com>
2579             Olivier Hainque  <hainque@adacore.com>
2580             Eric Botcazou  <ebotcazou@adacore.com>
2582         * decl.c:
2583         Factor common code to build a storage type for an unconstrained object
2584         from a fat or thin pointer type and a constrained object type.
2585         (annotate_value): Handle BIT_AND_EXPR.
2586         (annotate_rep): Don't restrict the back annotation of inherited
2587         components to the type_annotate_only case.
2588         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
2589         we are not defining the type.
2590         <E_Record_Type>: Likewise.
2591         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
2592         to get advantage of the new maybe_stabilize_reference interface, to
2593         ensure that what we reference is indeed stabilized instead of relying
2594         on assumptions on what the stabilizer does.
2595         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
2596         type imported through a limited_with clause, use its non-limited view.
2597         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
2598         differentiation.
2599         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
2600         of #if sections + explicit comparisons of convention identifiers.
2601         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
2602         before early-returning for certain types when code generation is
2603         disabled.
2604         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
2605         nullification of gnu_expr we do for objects with address clause and
2606         that we are not defining.
2607         (elaborate_expression_1): Do not create constants when creating
2608         variables needed by the debug info: the dwarf2 writer considers that
2609         CONST_DECLs is used only to represent enumeration constants, and emits
2610         nothing for them.
2611         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
2612         object with an address clause into an indirect reference, drop the
2613         initializing expression.
2614         Include "expr.h".
2615         (STACK_CHECK_BUILTIN): Delete.
2616         (STACK_CHECK_PROBE_INTERVAL): Likewise.
2617         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
2618         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
2619         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
2620         corresponding to the renamed object as ignored for debugging purposes.
2622         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
2623         related): For a prefix that is a dereference of a fat or thin pointer,
2624         if there is an actual subtype provided by the front-end, use that
2625         subtype to build an actual type with bounds template.
2626         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
2627         is provided by the front-end, use that subtype to compute the size of
2628         the deallocated object.
2629         (gnat_to_gnu): When adding a statement into an elaboration procedure,
2630         check for a potential violation of a No_Elaboration_Code restriction.
2631         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
2632         with extra arguments to control whether to recurse through non-values
2633         and to let the caller know if the stabilization has succeeded.
2634         (gnat_stabilize_reference): Now a simple wrapper around
2635         maybe_stabilize, for common uses without restriction on lvalues and
2636         without need to check for the success indication.
2637         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
2638         pass false instead of 0 as the FORCE argument which is a bool.
2639         (Identifier_to_gnu): Remove checks ensuring that an renamed object
2640         attached to a renaming pointer has been properly stabilized, as no such
2641         object is attached otherwise.
2642         (call_to_gnu): Invoke create_var_decl to create the temporary when the
2643         function uses the "target pointer" return mechanism.
2644         Reinstate conversion of the actual to the type of the formal
2645         parameter before any other specific treatment based on the passing
2646         mechanism. This turns out to be necessary in order for PLACEHOLDER
2647         substitution to work properly when the latter type is unconstrained.
2649         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
2650         common pattern.
2651         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
2652         with extra arguments to control whether to recurse through non-values
2653         and to let the caller know if the stabilization has succeeded.
2655         * utils2.c (gnat_build_constructor): Only sort the fields for possible
2656         static output of record constructor if all the components are constant.
2657         (gnat_build_constructor): For a record type, sort the list of field
2658         initializers in increasing bit position order.
2659         Factor common code to build a storage type for an unconstrained object
2660         from a fat or thin pointer type and a constrained object type.
2661         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
2662         types variants, and process special cases of VIEW_CONVERT expressions
2663         as their NOP_EXPR counterpart to ensure we get to the
2664         CORRESPONDING_VARs associated with CONST_DECls.
2665         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
2666         on the right-hand side.
2668         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
2669         a common pattern.
2670         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
2671         are converting back to its original type.
2672         (convert) <JM input>: Fallthrough regular conversion code instead of
2673         extracting the object if converting to a type variant.
2674         (create_var_decl): When a variable has an initializer requiring code
2675         generation and we are at the top level, check for a potential violation
2676         of a No_Elaboration_Code restriction.
2677         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
2678         SIZE and SIZE_UNIT which we need for later back-annotations.
2679         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
2680         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
2681         is an unchecked union.
2682         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
2683         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
2684         main variant, just replace the VIEW_CONVERT_EXPR.
2685         <UNION_TYPE>: Revert 2005-03-02 change.
2687         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
2689         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
2691 2005-11-14  Matthew Heaney  <heaney@adacore.com>
2693         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
2694         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
2695         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
2696         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
2697         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
2698         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
2699         Compiles against the spec for ordered maps described in sections
2700         A.18.6 of the most recent (August 2005) AI-302 draft.
2702 2005-11-14  Olivier Hainque  <hainque@adacore.com>
2704         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
2705         to ensure bias adjustments take place when need be and to prevent
2706         occurrences of intermediate overflows.
2708 2005-11-14  Matthew Gingell  <gingell@adacore.com>
2709             Olivier Hainque  <hainque@adacore.com>
2711         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
2712         ia64 HP-UX.
2714         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
2715         tracebacks on ia64 HP-UX and provide explanatory comment.
2716         Enable backtraces on ia64 GNU/Linux.
2717         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
2718         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
2720 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
2721             Javier Miranda  <miranda@adacore.com>
2723         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
2724         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
2725         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
2726         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
2728         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
2729         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
2730         assertions).
2732         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
2733         subprogram that generates the external name associated with a
2734         secondary dispatch table.
2735         (Get_Secondary_DT_External_Name): New subprogram that generates the
2736         external name associated with a secondary dispatch table.
2738 2005-11-14  Emmanuel Briot  <briot@adacore.com>
2740         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
2741         line in the ALI file to include both an instantiation reference, and a
2742         returned value.
2744 2005-11-14  Vincent Celier  <celier@adacore.com>
2746         * clean.adb (Check_Project): Look for Ada code in extending project,
2747         even if Ada is not specified as a language.
2748         Use new function DLL_Prefix for DLL_Name
2749         (Clean_Interface_Copy_Directory): New procedure
2750         (Clean_Library_Directory): New procedure
2751         (Clean_Directory): Remove procedure, no longer used
2752         (Clean_Project): Do not delete any file in an externally built project
2754         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
2755         directory of an extending project, even when there are no Ada source
2756         present.
2757         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
2758         (Set_Ada_Paths.Add.Recursive_Add): Ditto
2760         * mlib-prj.adb (Check_Library): For all library projects, get the
2761         library file timestamp.
2762         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
2763         (Build_Library): Use new function DLL_Prefix for the DLL_Name
2764         (Clean): Remove procedure, no longer used
2765         (Ultimate_Extension_Of): New function
2766         (Build_Library): When cleaning the library directory, only remove an
2767         existing library file and any ALI file of a source of the project.
2768         When cleaning the interface copy directory, remove any source that
2769         could be a source of the project.
2771         * prj.ads, prj.adb (Project_Empty): Add values of new components
2772         Library_TS and All_Imported_Projects.
2773         (Project_Empty): Add values for new components of Project_Data:
2774         Library_ALI_Dir and Display_Library_ALI_Dir
2776         * prj-attr.adb: New project level attribute name Library_ALI_Dir
2778         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
2779         attribute Library_ALI_Dir.
2780         (Check_Library_Attributes): The library directory cannot be the same as
2781         any source directory of the project tree.
2782         (Check_Stand_Alone_Library): The interface copy directory cannot be
2783         the same as any source directory of the project tree.
2785         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
2786         all temporary files.
2788 2005-11-14  Robert Dewar  <dewar@adacore.com>
2789             Ed Schonberg  <schonberg@adacore.com>
2791         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
2792         (Check_Elab_Call): A call within a protected body is never an
2793         elaboration call, and does not require checking.
2794         (Same_Elaboration_Scope): Take into account protected types for both
2795         entities.
2796         (Activate_Elaborate_All_Desirable): New procedure
2798         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
2799         desirable
2801         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
2802         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
2804         * lib-writ.ads, lib-writ.adb: 
2805         Implement new AD/ED for Elaborate_All/Elaborate desirable
2806         Use new Elaborate_All_Desirable flag in N_With_Clause node
2808         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
2809         N_Free_Statement nodes.
2810         Define new class N_Subprogram_Instantiation
2811         Add Elaborate_Desirable flag to N_With_Clause node
2812         Add N_Delay_Statement (covering two kinds of delay)
2814         * debug.adb: Introduce d.f flag for compiler
2815         Add -da switch for binder
2817 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
2818             Cyrille Comar  <comar@adacore.com>
2820         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
2821         for task component, in the case of a limited aggregate. The enclosed
2822         object declaration will create it earlier. Otherwise, in the case of a
2823         nested aggregate, the object may appear in the wrong scope.
2824         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
2825         (Gen_Assign): If the component being assigned is an array type and the
2826         expression is itself an aggregate, wrap the assignment in a block to
2827         force finalization actions on the temporary created for each row of the
2828         enclosing object.
2829         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
2830         structures are initialized after all discriminants are set so that
2831         they can be accessed even when their offset is dynamic.
2833 2005-11-14  Robert Dewar  <dewar@adacore.com>
2834             Hristian Kirtchev  <kirtchev@adacore.com>
2836         * sem_attr.adb: Implement Machine_Rounding attribute
2837         (Analyze_Access_Attribute): The access attribute may appear within an
2838         aggregate that has been expanded into a loop.
2839         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
2840         'Terminated whenever the prefix is of a task interface class-wide type.
2841         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
2842         the prefix is of a task interface class-wide type.
2844         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
2845         to avoid warnings.
2847         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
2848         Remove pragma Inline for [Unaligned_]Valid.
2849         Add comments that Valid routines do not work for Vax_Float
2851         * exp_attr.adb: Implement Machine_Rounding attribute
2853         * snames.h: Add entry for Machine_Rounding attribute
2855 2005-11-14  Javier Miranda  <miranda@adacore.com>
2856             Robert Dewar  <dewar@adacore.com>
2857             Hristian Kirtchev  <kirtchev@adacore.com>
2859         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
2860         and related): For a prefix that is an explicit dereference of an
2861         access to unconstrained packed array type, annotate the dereference
2862         with an actual subtype so GIGI can make a correct size computation.
2863         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
2864         'Unrestricted_Access, if the designated type is an interface we
2865         add a type conversion to force the displacement of the pointer
2866         to the secondary dispatch table.
2867         Use Universal_Real instead of Long_Long_Float when we need a high
2868         precision float type for the generated code (prevents gratuitous
2869         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
2870         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
2871         'Terminated for task interface class-wide objects. Generate a call to
2872         the predefined dispatching routine used to retrieve the _task_id from
2873         a task corresponding record.
2874         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
2876         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
2877         (Check_Dispatching_Operation): Protect the frontend againts
2878         previously detected errors.
2880         * Makefile.rtl: Add new instantiations of system.fat_gen
2882         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
2883         Change name of instantiated package for better consistency
2884         with newly added system.fat_gen instantiations.
2886         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
2887         s-fvagfl.ads: New files.
2889 2005-11-14  Cyrille Comar  <comar@adacore.com>
2890             Thomas Quinot  <quinot@adacore.com>
2892         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
2893         assignment of a value of a tagged type that has been rewritten to a
2894         block statement, it is known by construction that no checks are
2895         necessary for the statements within the block: analyze it with checks
2896         suppressed.
2897         (Expand_N_If_Statement): When killing a dead then-branch in an
2898         if-statement that has elsif_parts, recompute the Current_Value node
2899         for any entity whose value is known from the condition of the first
2900         elsif_part.
2901         (Expand_N_Return_Statement): When returning a mutable record, convert
2902         the return value into its actual subtype in order to help the backend
2903         to return the actual size instead of the maximum. This is another
2904         aftermath of not returning mutable records on the sec-stack anymore.
2906         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
2907         handling of error msg for suspicious reverse range iteration.
2908         (Check_Possible_Current_Value_Condition): Move declaration from body to
2909         spec, to allow this subprogram to be called from exp_ch5.
2911 2005-11-14  Thomas Quinot  <quinot@adacore.com>
2913         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
2914         generate a set of nested array aggregates instead of a single flat
2915         aggregate for multi-dimensional arrays.
2917 2005-11-14  Pascal Obry  <obry@adacore.com>
2919         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
2920         by spawnve is a process handle, no need to convert. Add a parameter
2921         close to control wether the process handle must be closed.
2922         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
2923         a process handle, not need to convert.
2924         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
2926         * g-expect.adb: (Kill): Document the new close parameter.
2927         (Close): Do not release the process handle in the kill there as
2928         waitpid() is using it.
2929         (Send_Signal): Release the process handle.
2931 2005-11-14  Robert Dewar  <dewar@adacore.com>
2933         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
2934         need a high precision float type for the generated code (prevents
2935         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
2936         used).
2938         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
2939         need a high precision float type for the generated code (prevents
2940         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
2941         used).
2942         (Expand_Width_Attribute): In configurable run-time, the attribute is not
2943         allowed on non-static enumeration subtypes. Force a load error to emit
2944         the correct diagnostic.
2946 2005-11-14  Thomas Quinot  <quinot@adacore.com>
2947             Robert Dewar  <dewar@adacore.com>
2948             Ed Schonberg  <schonberg@adacore.com>
2950         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
2951         subtype to compute the size of the designated object at run-time,
2952         create such a subtype and store it in the Actual_Designated_Subtype
2953         attribute of the N_Free_Statement.
2954         Generate itype for classwide designated object in both cases of
2955         user-specified storage pool: specific and class-wide, not only in the
2956         specific case.
2957         Raise CE when trying to set a not null access type object to null.
2958         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
2959         an explicit loop, because freeze nodes make its position variable.
2961         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
2962         null object.
2964 2005-11-14  Javier Miranda  <miranda@adacore.com>
2966         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
2967         Build_Stream_Procedure): Add the null-excluding attribute to the first
2968         formal.
2969         This has no semantic meaning under Ada95 mode but it is a
2970         requirement under Ada05 mode.
2972         * par-ch3.adb (P_Access_Definition): Addition of warning message if
2973         the null exclusion is used under Ada95 mode
2974         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
2975         (P_Access_Definition): Remove assertion that forbids the use of
2976         the null-exclusion feature in Ada95.
2978 2005-11-14  Robert Dewar  <dewar@adacore.com>
2980         * impunit.adb: Exclude container helper units not intended for use by
2981         users.
2983 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
2985         * freeze.adb (Freeze_Entity): For an access formal that is an access
2986         to subprogram, freeze the anonymous subprogram type at the same time,
2987         to prevent later freezing in the wrong scope, such as the enclosing
2988         subprogram body.
2989         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
2990         subprogram whenever available.
2992 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
2994         PR ada/23732
2995         * gnatvsn.ads (Library_Version): Bump to 4.1
2997 2005-11-14  Robert Dewar  <dewar@adacore.com>
2999         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
3000         Storage_Offset to avoid wrap around causing invalid results.
3002 2005-11-14  Pascal Obry  <obry@adacore.com>
3004         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
3005         cross-compiler.
3006         (Scan_Bind_Arg): Fail with an error message if -M option is used
3007         on a native compiler.
3009 2005-11-14  Robert Dewar  <dewar@adacore.com>
3010             Vincent Celier  <celier@adacore.com>
3012         * gprep.adb: Implement -C switch to scan comments
3014         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
3016         * scans.ads: Comment updates (including new use of Tok_Comment in
3017         preprocessing)
3019         * opt.ads: Add documentation for flags that are used by gprmake,
3020         currently and in the next version of gprmake.
3021         (Verbosity_Level): New variable
3022         Add Replace_In_Comments switch
3024         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
3025         and -vm.
3026         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
3028 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
3030         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
3031         message, friendlier.
3033 2005-11-14  Robert Dewar  <dewar@adacore.com>
3035         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
3037 2005-11-14  Doug Rupp  <rupp@adacore.com>
3039         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
3041 2005-11-14  Robert Dewar  <dewar@adacore.com>
3043         * interfac.ads: Change declarations of IEEE float types so that we no
3044         longer need a separate version of this package for VMS.
3046 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
3048         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
3049         internal entity created for the declaration of a child subprogram body
3050         with no spec as coming from source, to generate proper cross-reference
3051         information.
3053 2005-11-14  Vincent Celier  <celier@adacore.com>
3055         * make.adb (Compile_Sources): Change verbose message to minimum
3056         verbosity level High for "is in an Ada library", "is a read-only
3057         library" and "is an internal library",
3058         (Create_Binder_Mapping_File): Path name of ALI file for library project
3059         must include the library directory, not the object directory.
3060         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
3061         for new switches -vl, -vm and -vh.
3062         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
3063         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
3064         (Compile_Sources): Do not attempt to compile if an ALI file is missing
3065         in a project that is externally built.
3066         (Compute_All_Imported_Projects): New procedure
3067         (Gnatmake): Check if importing libraries should be regenerated because
3068         at least an imported library is more recent.
3069         (Initialize): For each project compute the list of the projects it
3070         imports directly or indirectly.
3071         (Add_Library_Search_Dir): New procedure, used in place of
3072         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
3073         put in the search paths.
3074         (Add_Source_Search_Dir): New procedure, used in place of
3075         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
3076         put in the search paths.
3077         (Mark_Directory): Resolve the absolute path the directory before marking
3078         it.
3080         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
3081         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
3082         Switch. Do not handle any exception.
3083         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
3084         so that the switch is recognized as valid.
3085         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
3087 2005-11-14  GNAT Script  <nobody@adacore.com>
3089         * Make-lang.in: Makefile automatically updated
3091 2005-11-14  Pascal Obry  <obry@adacore.com>
3093         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
3094         used.
3095         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
3096         In both cases the last argument was dropped.
3098 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
3100         * namet.h: (Column_Numbe): New type.
3101         (Get_Column_Number): Define to sinput__get_column_number.
3102         (Instantiation): Define to sinput__instantiation.
3103         (Get_Column_Number): Declare.
3104         (Instantiation): Likewise.
3106 2005-11-14  Robert Dewar  <dewar@adacore.com>
3108         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
3109         syntax, which could cause compiler hangs.
3111 2005-11-14  Vincent Celier  <celier@adacore.com>
3113         * prj-ext.adb: Take into account new environment variable
3114         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
3115         are defined.
3116         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
3117         normalize its path name, making it absolute and resolving symbolic
3118         links, and replace the original if resolved path is different.
3120 2005-11-14  Vincent Celier  <celier@adacore.com>
3122         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
3123         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
3125 2005-11-14  Emmanuel Briot  <briot@adacore.com>
3127         * prj-pp.adb (Print): Do not output the with statement if the
3128         associated name is empty, which happens for virtual extending projects.
3129         (Print): Preserve the "extends all" attribute when printing the project.
3131         * prj-tree.ads (String_Value_Of): Add comment about returned value for
3132         a virtual extending project.
3134 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
3136         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
3137         rhs of an assignment even if the type is unconstrained, when the
3138         context is non-expanding.
3139         In an inlined body, if the context type is private,
3140         resolve with its full view, which must be a composite type.
3142 2005-11-14  Robert Dewar  <dewar@adacore.com>
3143             Ed Schonberg  <schonberg@adacore.com>
3145         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
3146         Do not give obsolescent warning on with of subprogram (since we
3147         diagnose calls)
3148         (Analyze_With_Clause): Add test for obsolescent package
3149         (Install_Context_Clauses): If the unit is the body of a child unit, do
3150         not install twice the private declarations of the parents, to prevent
3151         circular lists of Use_Clauses in a parent.
3152         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
3153         compiling body of child unit.
3154         Use new class N_Subprogram_Instantiation
3155         (Expand_With_Clause): If this is a private with_clause for a child unit,
3156         appearing in the context of a package declaration, then the implicit
3157         with_clauses generated for parent units are private as well.
3158         (License_Check): Do not generate message if with'ed unit is internal
3160 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
3161             Ed Schonberg  <schonberg@adacore.com>
3162             Thomas Quinot  <quinot@adacore.com>
3164         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
3165         names are internal, because they will not have a corresponding partner
3166         in the actual package.
3167         (Analyze_Formal_Package): Move the setting of the formal package spec's
3168         Generic_Parent field so that it occurs prior to analyzing the package,
3169         to allow proper operation of Install_Parent_Private_Declarations.
3170         (Analyze_Package_Instantiation): Set the instantiated package entity's
3171         Package_Instantiation field.
3172         (Get_Package_Instantiation_Node): Move declaration to package spec.
3173         Retrieve the N_Package_Instantiation node when the Package_Instantiation
3174         field is present.
3175         (Check_Generic_Child_Unit): Within an inlined call, the only possible
3176         instantiation is Unchecked_Conversion, for which no parents are needed.
3177         (Inline_Instance_Body): Deinstall and record the use_clauses for all
3178         parent scopes of a scope being removed prior to inlining an instance
3179         body.
3180         (Analyze_Package_Instantiation): Do not perform front-end inlining when
3181         the current context is itself an instance within a non-instance child
3182         unit, to prevent scope stack errors.
3183         (Save_References): If the node is an aggregate that is an actual in a
3184         call, rewrite as a qualified expression to preserve some type
3185         information, to resolve possible ambiguities in the instance.
3186         (Instance_Parent_Unit): New global variable to record the ultimate
3187         parent unit associated with a generic child unit instance (associated
3188         with the existing Parent_Unit_Visible flag).
3189         (type Instance_Env): New component Instance_Parent_Unit for stacking
3190         parents recorded in the global Instance_Parent_Unit.
3191         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
3192         stack.
3193         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
3194         it's not a top-level unit, and only do this if Instance_Parent_Unit is
3195         not already set. Replace test of Is_Child_Unit with test of parent's
3196         scope against package Standard. Add comments and a ??? comment.
3197         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
3198         on a child instance parent to test that the parent equals
3199         Instance_Parent rather than simply checking that the unit is not a
3200         child unit.
3201         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
3202         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
3203         a formal interface are ancestors of the corresponding actual.
3204         (Validate_Formal_Interface_Type): Additional legality checks.
3205         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
3206         interface types with ancestors.
3207         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
3208         to diagnose attempts to use generic within its own declaration.
3210 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
3211             Javier Miranda  <miranda@adacore.com>
3213         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
3214         discriminant.
3215         (Build_Private_Derived_Type): The entity of the created full view of the
3216         derived type does not come from source. If after installing the private
3217         declarations of the parent scope the parent is still private, use its
3218         full view to construct the full declaration of the derived type.
3219         (Build_Derived_Record_Type): Relax the condition that controls the
3220         execution of the check that verifies that the partial view and
3221         the full view agree in the set of implemented interfaces. In
3222         addition, this test now only takes into account the progenitors.
3223         (Derive_Interface_Subprograms): No need to derive subprograms
3224         of ancestors that are interfaces.
3225         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
3226         associated code.
3227         Change name Is_Package to Is_Package_Or_Generic_Package
3228         (Complete_Subprograms_Derivation): Handle the case in which the full
3229         view is a transitive derivation of the ancestor of the partial view.
3230         (Process_Full_View): Rename local subprogram Find_Interface_In_
3231         Descendant to Find_Ancestor_Interface to leave the code more clear.
3232         Remove wrong code that avoids the generation of an error message
3233         when the immediate ancestor of the partial view is an interface.
3234         In addition some minor reorganization of the code has been done to
3235         leave it more clear.
3236         (Analyze_Type_Declaration): If type has previous incomplete tagged
3237         partial view, inherit properly its primitive operations.
3238         (Collect_Interfaces): Make public, for analysis of formal
3239         interfaces.
3240         (Analyze_Interface_Declaration): New procedure for use for regular and
3241         formal interface declarations.
3242         (Build_Derived_Record_Type): Add support for private types to the code
3243         that checks if a tagged type implements abstract interfaces.
3244         (Check_Aliased_Component_Type): The test applies in the spec of an
3245         instance as well.
3246         (Access_Type_Declaration): Clean up declaration of malformed type
3247         declared as an access to its own classwide type, to prevent cascaded
3248         crash.
3249         (Collect_Interfaces): For private extensions and for derived task types
3250         and derived protected types, the parent may be an interface that must
3251         be included in the interface list.
3252         (Access_Definition): If the designated type is an interface that may
3253         contain tasks, create Master_Id for it before analyzing the expression
3254         of the declaration, which may be an allocator.
3255         (Record_Type_Declaration): Set properly the interface kind, for use
3256         in allocators, the creation of master id's for task interfaces, etc.
3258 2005-11-14  Javier Miranda  <miranda@adacore.com>
3259             Ed Schonberg  <schonberg@adacore.com>
3261         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
3262         omitted in case of stream attribute subprograms.
3263         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
3264         appear immediately after a subprogram body, when there is no previous
3265         subprogram declaration.
3266         Change name Is_Package to Is_Package_Or_Generic_Package
3267         (Process_Formals): A non null qualifier on a non null named access
3268         type is not an error, and is a warning only if Redundant_Constructs
3269         are flagged.
3271 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
3272             Ed Schonberg  <schonberg@adacore.com>
3274         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
3275         nested within Analyze_Package_Specification to install the private
3276         declarations and use clauses within each of the parent units of a
3277         package instance of a generic child package.
3278         (Analyze_Package_Specification): When entering a private part of a
3279         package associated with a generic instance or formal package, the
3280         private declarations of the parent must be installed (by calling new
3281         procedure Install_Parent_Private_Declarations).
3282         Change name Is_Package to Is_Package_Or_Generic_Package
3283         (Preserve_Full_Attributes): For a synchronized type, the corresponding
3284         record is absent in a generic context, which does not indicate a
3285         compiler error.
3287 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
3289         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
3290         not try to rewrite a renamed stream attribute, because the operations
3291         on the type may not have been generated.
3292         Handle properly a renaming_as_body generated for a stream operation
3293         whose default is abstract because the object type itself is abstract.
3294         (Find_Type): If the type is incomplete and appears as the prefix of a
3295         'Class reference, it is tagged, and its list of primitive operations
3296         must be initialized properly.
3297         (Chain_Use_Clauses): When chaining the use clauses that appear in the
3298         private declaration of a parent unit, prior to compiling the private
3299         part of a child unit, find on the scope stack the proper parent entity
3300         on which to link the use clause.
3301         (Note_Redundant_Use): Emit a warning when a redundant use clause is
3302         detected.
3303         (Analyze_Object_Renaming): An attribute reference is not a legal object
3304         if it is not a function call.
3306 2005-11-14  Robert Dewar  <dewar@adacore.com>
3307             Ed Schonberg  <schonberg@adacore.com>
3309         * sem_eval.adb: Implement d.f flag
3310         (Subtype_Statically_Match): A generic actual type has unknown
3311         discriminants when the corresponding actual has a similar partial view.
3312         If the routine is called to validate the signature of an inherited
3313         operation in a child instance, the generic actual matches the full view,
3315 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
3316             Ed Schonberg  <schonberg@adacore.com>
3317             Robert Dewar  <dewar@adacore.com>
3318             Thomas Quinot  <quinot@adacore.com>
3320         * sem_res.adb (Resolve_Call): Provide a better error message whenever
3321         a procedure call is used as a select statement trigger and is not an
3322         entry renaming or a primitive of a limited interface.
3323         (Valid_Conversion): If the operand has a single interpretation do not
3324         remove address operations.
3325         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
3326         statement to inhibit warning.
3327         (Resolve_Unary_Op): Do not produce a warning when
3328         processing an expression of the form -(A mod B)
3329         Use Universal_Real instead of Long_Long_Float when we need a high
3330         precision float type for the generated code (prevents gratuitous
3331         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
3332         (Resolve_Concatenation_Arg): Improve error message when argument is an
3333         ambiguous call to a function that returns an array.
3334         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
3335         there is an implicit operator in the given scope if we are within an
3336         instance: legality check has been performed on the generic.
3337         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
3338         after resolving operand, to avoid false warnings on overloaded calls.
3340 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
3341             Javier Miranda  <miranda@adacore.com>
3343         PR ada/15604
3345         * sem_type.adb (Covers): In an inlined body, a composite type matches
3346         a private type whose full view is a composite type.
3347         (Interface_Present_In_Ancestor): Protect the frontend against
3348         previously detected errors to ensure that its compilation
3349         with assertions enabled gives the same output that its
3350         compilation without assertions.
3351         (Interface_Present_In_Ancestor): Add support for private types.
3352         Change name In_Actual to In_Generic_Actual (clean up)
3353         (Disambiguate): New predicate In_Actual, to recognize expressions that
3354         appear in the renaming declaration generated for generic actuals, and
3355         which must be resolved in the outer context.
3357 2005-11-14  Robert Dewar  <dewar@adacore.com>
3358             Thomas Quinot  <quinot@adacore.com>
3359             Hristian Kirtchev  <kirtchev@adacore.com>
3360             Ed Schonberg  <schonberg@adacore.com>
3362         * sem_util.ads, sem_util.adb: Change name Is_Package to
3363         Is_Package_Or_Generic_Package.
3364         (Check_Obsolescent): New procedure.
3365         (Set_Is_Public): Remove obsolete junk test.
3366         (Set_Public_Status): Do not set Is_Public on an object whose declaration
3367         occurs within a handled_sequence_of_statemets.
3368         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
3369         for a parameterless procedure.
3370         (Enter_Name): Recognize renaming declarations created for private
3371         component of a protected type within protected operations, so that
3372         the source name of the component can be used in the debugger.
3374 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
3375             Robert Dewar  <dewar@adacore.com>
3377         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
3378         of a generic subprogram are not visible outside the body.
3379         (Set_Warning_Switch): New procedure (code to set warning mode moved
3380         here from Switch.C so that it can be shared by pragma processing.
3381         (Check_References): Special case warning for non-modified non-imported
3382         volatile objects.
3383         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
3384         form with a string literal argument
3386 2005-11-14  Javier Miranda  <miranda@adacore.com>
3388         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
3389         anonymous access.
3390         (Write): Addition of "not null" to the anonymous access.
3391         (Read): Addition of "not null" to the anonymous access.
3392         (Write): Addition of "not null" to the anonymous access.
3394         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
3395         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
3396         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
3397         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
3398         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
3399         "not null" to the anonymous access.
3401 2005-11-14  Robert Dewar  <dewar@adacore.com>
3403         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
3404         offset values
3406 2005-11-14  Vincent Celier  <celier@adacore.com>
3408         * switch.adb (Bad_Switch): New procedure
3409         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
3410         message when in error.
3412         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
3413         Too_Many_Output_Files): Remove declarations, no longer used.
3414         (Scan_Nat): New parameter Switch
3415         (Scan_Pos): Ditto
3416         (Bad_Switch): New procedure
3418         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
3419         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
3420         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
3421         to Osint.Fail. Do not handle any exception.
3423 2005-11-14  Vincent Celier  <celier@adacore.com>
3425         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
3426         designates a non existent directory.
3428 2005-11-14  Robert Dewar  <dewar@adacore.com>
3430         * xgnatugn.adb: Replace invalid membership test by 'Valid
3432 2005-11-14  Vincent Celier  <celier@adacore.com>
3434         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
3435         there is no object directory.
3437 2005-11-14  Robert Dewar  <dewar@adacore.com>
3439         * usage.adb: Minor adjustment to output format, use nn instead of nnn
3440         (so that -gnateInnn does not run into next column)
3442 2005-11-14  Ed Falis  <falis@adacore.com>
3444         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
3445         "constrained"
3447 2005-11-14  Cyrille Comar  <comar@adacore.com>
3449         * s-chepoo.ads: Add comments on Dereference.
3450         Remove unnecessary inherited abstract primitives.
3451         Cosmetic cleanup.
3453 2005-11-14  Robert Dewar  <dewar@adacore.com>
3455         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
3456         node parameter, not needed, since it is available as Declaration_Node.
3458 2005-11-14  Geert Bosch  <bosch@adacore.com>
3460         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
3461         grammatically correct.
3463 2005-11-14  Vincent Celier  <celier@adacore.com>
3465         * s-fileio.ads: Correct spelling error in comment
3467 2005-11-14  Cyrille Comar  <comar@adacore.com>
3468             Robert Dewar  <dewar@adacore.com>
3469             Vincent Celier  <celier@adacore.com>
3470             Ben Brosgol  <brosgol@adacore.com>
3471             Jose Ruiz  <ruiz@adacore.com>
3472             Pascal Obry  <obry@adacore.com>
3474         * gnat_ugn.texi: 
3475         Document that -fstack-check is needed for strict compliance with the
3476         Ada 95 Reference Manual.
3477         Correct reference to VAX systems to meet HP guidelines
3478         Add documentation for new gnatmake switches -vl, -vm and -vh
3479         Replace DEC Ada by HP Ada
3480         Replace DIGITAL by HP
3481         Remove empty section on tools in compatibility section
3482         Clarify the Windows convention semantics.
3483         Document the Win32 calling convention.
3484         The Stdcall, Win32 and DLL convention are synonyms.
3485         Add a note in -gnatR description about zero size record components
3486         Note on new >= and <= warnings for -gnatwc
3487         Document that equal sign after -gnatm is optional.
3488         Note that strip is working fine on DLL built with a Library
3489         Project. The restriction apply only to DLL built with gnatdll.
3490         Update section about the way to debug a DLL.
3491         Update information about the DLL convention.
3492         Document -C switch for gnatprep
3493         Document new attribute Library_ALI_Dir
3494         Update elaboration doc to include implicit Elaborate pragmas now
3495         generated for subprogram instantiations.
3496         Document limitation on executable names that include spaces for --GCC,
3497         --GNATBIND, and --GNATLINK switches.
3498         Document that -w causes -gnatws to be added at start of gcc switches
3500         * gnat_rm.texi: Document that -mieee is needed for generating infinite
3501         and NaN values in case of overflow on machines that are not fully
3502         compliant with the IEEE floating-point standard.
3503         Create a section describing the set of compiler options needed for
3504         strict compliance with the Ada 95 Reference Manual.
3505         Add documentation for pragma Obsolescent applied to a package
3506         Clarify potential issues of mixed language programs related to the
3507         I/O buffering enabling in the elaboration of the GNAT runtime.
3508         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
3509         This documentation only patch adds extra documentsion for pragma
3510         Restrictions (No_Elaboration_Code), explaining why it is not possible
3511         to document this restriction in terms of allowed source constructs.
3512         Document string literal form of pragma Warnings
3513         Document new attribute Library_ALI_Dir
3514         Add documentation on stable attributes in project files that was missing
3516         * gnat-style.texi: Indicate that paragraphs within a single comment
3517         should be separated by empty comment lines
3519         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
3520         /05 respectively)
3522         * bindusg.adb: Minor cleanup, put -m before -M for consistency
3524 2005-11-14  Robert Dewar  <dewar@adacore.com>
3526         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
3527         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
3528         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
3529         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
3530         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
3531         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
3532         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
3533         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
3534         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
3535         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
3536         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
3537         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
3538         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
3539         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3540         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
3541         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
3542         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
3543         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
3544         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
3545         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
3546         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
3547         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
3548         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
3549         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
3550         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
3551         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
3552         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
3553         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
3554         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
3555         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
3556         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
3557         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
3558         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
3559         system-interix.ads, system-solaris-sparc.ads,
3560         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
3561         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
3562         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
3563         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
3564         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
3565         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
3566         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
3567         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
3568         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
3569         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
3570         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
3571         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
3572         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
3573         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
3574         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
3575         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
3576         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
3577         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
3578         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
3579         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
3580         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
3581         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
3582         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3583         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
3584         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
3585         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
3586         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
3587         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
3588         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
3589         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
3590         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
3591         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
3592         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
3593         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
3594         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
3595         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
3596         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
3597         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
3598         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
3599         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
3600         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
3601         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
3602         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
3603         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
3604         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
3605         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
3606         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
3607         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
3608         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
3609         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
3610         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
3611         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
3612         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
3613         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
3614         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
3615         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
3616         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
3617         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
3618         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
3619         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
3620         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
3621         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
3622         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
3623         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
3624         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
3625         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
3626         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
3627         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
3628         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
3629         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
3630         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
3631         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
3632         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
3633         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
3634         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
3635         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
3636         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
3637         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
3638         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
3639         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
3640         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
3641         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
3642         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
3643         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
3644         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
3645         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
3646         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
3647         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
3648         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
3649         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
3650         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
3651         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
3652         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
3653         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
3654         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
3655         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
3656         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
3657         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
3658         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
3659         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
3660         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
3661         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
3662         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
3663         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
3664         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
3665         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
3666         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
3667         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
3668         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
3669         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
3670         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
3671         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
3672         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
3673         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
3674         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
3675         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
3676         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
3677         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
3678         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
3679         a-numaux-darwin.ads, a-numaux-darwin.adb,
3680         a-swuwha.ads, a-stunha.ads: Minor reformatting
3682 2005-11-14  Robert Dewar  <dewar@adacore.com>
3684         PR ada/18434
3685         * osint-m.adb: Add pragma Elaborate_All for Osint
3687 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3689         PR ada/23995
3690         * trans.c (call_to_gnu): Restore statement lost in translation.
3692 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3694         * init.c: Use the Linux-specific section for the IA-64/Linux target.
3695         (__gnat_adjust_context_for_raise): Add conditional code so that the
3696         IA-64 is also supported.
3698 2005-11-03  James E Wilson  <wilson@specifix.com>
3700         PR ada/23427
3701         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3702         TREE_OVERFLOW check.
3704 2005-09-21  Olivier Hainque  <hainque@adacore.com>
3706         PR ada/22418
3707         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
3708         as we create them to store a size in bits.
3710 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
3712         PR ada/21937
3713         PR ada/22328
3714         PR ada/22381
3715         PR ada/22383
3716         PR ada/22419
3717         PR ada/22420
3718         * utils2.c (build_return_expr): New helper function.
3719         * gigi.h (build_return_expr): Declare it.
3720         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
3721         of manually building the RETURN_EXPR tree.
3722         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
3723         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
3724         build_binary_op for the "target pointer" case.  Use build_return_expr
3725         instead of manually building the RETURN_EXPR tree.
3727 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
3729         PR ada/23788
3730         * s-tpinop.ads: Make this unit Preelaborate.
3732 2005-09-16  Andreas Jaeger  <aj@suse.de>
3734         * socket.c: Add string.h for memcpy.
3736 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
3738         * dec-io.ads, dec-io.adb: Removed, no longer used.
3740 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
3742         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
3744         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
3745         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
3746         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
3747         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
3748         dependent units are Preelaborate.
3749         (Initialize): Call Interrupt_Managemeent.Initialize and
3750         OS_Primitives.Initialize to ensure proper initialization of this unit.
3751         Remove use of System.Soft_Links
3752         Make this unit Preelaborate.
3754         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
3755         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
3756         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
3757         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
3758         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3759         s-tratas.ads, s-tasinf.ads: Minor reformatting.
3760         Add pragma Preelaborate, since these packages are suitable for this
3761         categorization.
3762         Update comments.
3764         * s-traent-vms.ads, s-intman-dummy.adb,
3765         s-taprop-dummy.adb: Make this unit Preelaborate.
3767         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3768         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
3769         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
3770         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
3771         s-intman-solaris.adb, s-intman-irix-athread.adb,
3772         s-intman-irix.adb: Mark this unit Preelaborate.
3773         (Initialize): New procedure.
3774         Update comments.
3776         * s-taspri-linux.ads: Removed.
3778         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
3779         as done by other implementations (e.g. posix).
3781         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
3782         responsible for deferring abort.
3783         Mark this unit Preelaborate.
3785         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
3786         proper initialization of the tasking run-time.
3788         * s-tasdeb.ads: Mark this unit Preelaborate.
3789         (Known_Tasks): Add explicit default value to avoid elaboration code.
3791         * s-inmaop-vms.adb (Elaboration code): Add call to
3792         Interrupt_Management.Initialize since the elaboration code depends on
3793         proper initialization of this package.
3795         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
3796         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
3797         s-osprim-posix.adb: Make this unit Preelaborate.
3799         * a-calend.adb: Add call to OS_Primitives.Initialize
3801         * a-elchha.adb: Update use of Except.Id.Full_Name.
3802         Minor reformatting.
3803         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
3805         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
3806         Move with clauses outside Warnings Off now that dependent units are
3807         Preelaborate.
3808         Use raise xxx with "..."; Ada 2005 form.
3810         * a-taside.ads, a-taside.adb:
3811         Remove some dependencies, to make it easier to make this unit truly
3812         Preelaborate.
3813         Rewrite some code to be conformant with Preelaborate rules.
3815         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
3816         marked Preelaborate in the future.
3818         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
3819         these units Preelaborate.
3821         * s-exctab.adb: Update use of Except.Id.Full_Name.
3823         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
3824         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
3825         Set_Exc_Stack_Addr): Removed, no longer used.
3826         Remove reference to *Machine_State_Addr*, no longer needed.
3828         * s-stalib.ads: Mark this unit as Preelaborate[_05].
3829         (Exception_Data): Full_Name is now a System.Address so that this unit
3830         can be made Preelaborate.
3831         Clean up/simplify code thanks to Full_Name being a System.Address.
3832         Remove obsolete pragma Suppress (All_Checks), no longer needed.
3834         * s-taskin.ads, s-taskin.adb:
3835         Move with clauses outside Warnings Off now that dependent units are
3836         Preelaborate.
3837         Make this unit Preelaborate.
3838         (Initialize): New proceduure, replace elaboration code and makes the
3839         set up of the tasking run-time cleaner.
3840         (Detect_Blocking): Now a function instead of a deferred boolean, to
3841         obey Preelaborate rules.
3843         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
3844         soft links, no longer used.
3846         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
3847         packages are suitable for this categorization.
3849         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
3850         since we compile run-time sources in Ada 2005 mode.
3851         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
3852         avoid having s-taprop*.adb depend on s-soflin and to avoid code
3853         duplication.
3854         Remove reference to *Machine_State_Addr*, no longer needed.
3856 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
3858         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
3859         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
3860         Remove reference to System.Exceptions.
3862         * s-mastop-x86.adb: Removed, no longer used.
3864         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
3866         * a-excach.adb: Minor reformatting.
3868         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
3869         instead fix new warnings that were hidden by this change.
3870         (AAA, ZZZ): Removed, replaced by...
3871         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
3872         are used instead of constants, to help make Ada.Exception truly
3873         preelaborate.
3874         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
3875         Raise_Storage_Error): File is now a System.Address, to simplify code.
3876         (Elab code): Removed, no longer used.
3877         (Null_Occurrence): Remove Warnings Off and make this construct
3878         preelaborate.
3879         Remove code related to front-end zero cost exception handling, since
3880         it is no longer used.
3881         Remove -gnatL/-gnatZ switches.
3883         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
3884         Update use of Except.Msg.
3886         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
3887         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
3888         to front-end zero cost exception handling, since it is no longer used.
3889         Remove -gnatL/-gnatZ switches.
3891         * lib-writ.ads: Minor reformatting
3892         Remove doc of UX
3894         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
3896         * Make-lang.in: Remove references to s-except.ads
3898         * s-except.ads: Removed, no longer used.
3900         * s-mastop.ads, s-mastop.adb:
3901         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
3902         Remove reference to System.Exceptions.
3904         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
3905         switch-b.adb: Remove code related to front-end zero cost exception
3906         handling, since it is no longer used.
3907         Remove -gnatL/-gnatZ switches.
3909 2005-09-01  Robert Dewar  <dewar@adacore.com>
3910             Gary Dismukes  <dismukes@adacore.com>
3911             Javier Miranda  <miranda@adacore.com>
3913         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
3914         type by valid test and generate warning.
3915         (Tagged_Membership): Generate call to the run-time
3916         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
3917         Change formal name Subtype_Mark to Result_Definition in several calls to
3918         Make_Function_Specification.
3919         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
3920         check for proper accessibility of the operand of a class-wide allocator.
3921         The check can be left out if checks are suppressed or if the expression
3922         has a specific tagged type whose level is known to be safe.
3924         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
3925         generates the run-time check associated with null-excluding entities.
3926         (Expand_N_Return_Statement): Add tests to determine if the accessibility
3927         check on the level of the return expression of a class-wide function
3928         can be elided. The check usually isn't needed if the expression has a
3929         specific type (unless it's a conversion or a formal parameter). Also
3930         add a test for whether accessibility checks are suppressed. Augment
3931         the comments to describe the conditions for performing the check.
3933 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
3934             Javier Miranda  <miranda@adacore.com>
3935             Gary Dismukes  <dismukes@adacore.com>
3936             Ed Schonberg  <schonberg@adacore.com>
3938         * a-tags.adb (IW_Membership): Give support to
3939         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
3940         subprogram has been extended to look for the tag in the ancestors tag
3941         table.
3942         Update the structure of the GNAT Dispatch Table to reflect the
3943         additional two tables used in dispatching selects.
3944         Introduce appropriate array types and record components in
3945         Type_Specific_Data to reflect the two tables.
3946         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
3947         the TSD of a tag, indexed by position.
3948         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
3949         operation kind in the TSD of a tag, indexed by position.
3951         * a-tags.ads: Introduce an enumeration type to capture different
3952         primitive operation kinds. Define a constant reflecting the number of
3953         predefined primitive operations.
3954         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
3955         of an entry wrapper.
3956         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
3957         callable entity of a primitive operation.
3959         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
3960         primitive operations used in dispatching selects for limited
3961         interfaces, limited tagged, task and protected types what implement a
3962         limited interface.
3963         (Freeze_Type): Generate the bodies of the primitive operations used in
3964         dispatching selects for limited tagged, task and protected types that
3965         implement a limited interface. Generate statements to populate the two
3966         auxiliary tables used for dispatching in select statements.
3967         (Freeze_Record_Type): Add call to initialize the dispatch table entries
3968         associated with predefined interface primitive operations.
3969         (Build_Dcheck_Function): Change Set_Subtype_Mark to
3970         Set_Result_Definition.
3971         (Build_Variant_Record_Equality): Change Subtype_Mark to
3972         Result_Definition.
3973         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
3974         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
3975         (Build_Assignment): Simplify the code that adds the run-time-check.
3976         (Expand_N_Object_Declaration): Code cleanup.
3978         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
3979         entries when there is a protected type that implements a limited
3980         interface.
3982         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
3983         common routines used in expansion of dispatching selects.
3984         (Add_Private_Declarations): Select the appropriate protection type when
3985         there is a protected type that implements a limited interface.
3986         (Build_Parameter_Block): Generate a wrapped parameter block.
3987         (Build_Protected_Subprogram_Body): Select the appropriate type for
3988         locking entries when there is a protected type that implements a
3989         limited interface.
3990         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
3991         classified as entry wrappers.
3992         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
3993         asynchronous selects.
3994         (Expand_N_Conditional_Entry_Call): Add support for expansion of
3995         dispatching conditional selects.
3996         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
3997         protection when there is a protected type that implements limited
3998         interfaces.
3999         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
4000         timed selects.
4001         (Extract_Dispatching_Call): Extract the entity of the name of a
4002         dispatching call, the object parameter, actual parameters and
4003         corresponding formals.
4004         (Make_Initialize_Protection): Correct logic of protection initialization
4005         when there is a protected type that implements a limited interface.
4006         (Parameter_Block_Pack): Populate a wrapped parameter block with the
4007         values of actual parameters.
4008         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
4009         block and assign them to the original actual parameters.
4011         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
4012         (Build_Protected_Sub_Specification): Change the type and name of the
4013         last formal to account for the increased variety of protection modes.
4015         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
4016         entities. Used to save the value of the Is_Hidden attribute when the
4017         limited-view is installed.
4018         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
4019         the attribute of procedures classified as entry wrappers.
4020         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
4021         entity of a primitive wrapper.
4022         (Write_Entity_Flags): Output the name and value of the
4023         Is_Primitive_Wrapper attribute.
4024         (Write_Field27_Name): Output the name and entity of the field Wrapped_
4025         Entity.
4026         (Underlying_Type): If we have an incomplete entity that comes from
4027         the limited view then we return the Underlying_Type of its non-limited
4028         view if it is already available.
4029         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
4030         including operators.
4031         (Write_Field26_Name): Add entry for Overridden_Operation
4032         (Overridden_Operation): New attribute of functions and procedures.
4034         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
4035         predefined position in the dispatch table for the primitive operations
4036         used in dispatching selects.
4037         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
4038         predefined primitive operations and replace it with
4039         Default_Prim_Op_Count.
4040         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
4041         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
4042         the names of the generated primitive operations used in dispatching
4043         selects.
4044         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
4045         case of abstract interface types. They will be inherit by the objects
4046         implementing the interface.
4047         (Make_DT): There is no need to inherit the dispatch table of the
4048         ancestor interface for the elaboration of abstract interface types.
4049         The dispatch table will be inherited by the object implementing the
4050         interface.
4051         (Copy_Secondary_DTs): Add documentation.
4052         (Validate_Position): Improve this static check in case of
4053         aliased subprograms because aliased subprograms must have
4054         the same position.
4055         (Init_Predefined_Interface_Primitives): New subprogram that initializes
4056         the entries associated with predefined primitives of all the secondary
4057         dispatch tables.
4058         (Build_Anonymous_Access_Type): Removed.
4059         (Expand_Interface_Actuals): With the previous cleanup there is no need
4060         to build an anonymous access type. This allows further cleanup in the
4061         code generated by the expander.
4062         (Expand_Interface_Conversion): If the actual is an access type then
4063         build an internal function to handle the displacement. If the actual
4064         is null this function returns null because no displacement is
4065         required; otherwise performs a type conversion that will be
4066         expanded in the code that returns the value of the displaced actual.
4067         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
4068         conversions that have no effect in the generated code because no
4069         displacement is required. Code cleanup; use local variables to
4070         avoid repeated calls to the subprogram directly_designated_type().
4072         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
4073         Classify the primitive operations used in dispatching selects as
4074         predefined.
4075         (Implements_Limited_Interface): Determine whether some type either
4076         directly implements a limited interface or extends a type that
4077         implements a limited interface.
4078         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
4079         (Expand_Subtype_From_Expr): Do not build actual subtype if the
4080         expression is limited.
4081         (Find_Interface_Tag): Add code to handle class-wide types and
4082         entities from the limited-view.
4084         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
4085         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
4086         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
4087         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
4088         Set_Prim_Op_Kind.
4090         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
4091         of procedure name or prefix that appears as a trigger in a triggering
4092         alternative.
4094         * uintp.ads: Introduce constants Uint_11 and Uint_13.
4096 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
4098         * s-tataat.adb, a-tasatt.adb:
4099         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
4101         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
4102         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
4103         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
4104         longer used.
4106 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
4107             Jose Ruiz  <ruiz@adacore.com>
4109         * s-taprop-vxworks.adb:
4110         Move with clauses outside Warnings Off now that dependent units are
4111         Preelaborate.
4112         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
4113         initialization of this unit.
4114         (Specific): Add new procedures Initialize and Delete so that this
4115         package can be used for VxWorks 5.x and 6.x
4116         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
4117         differences between VxWorks 5.x and 6.x
4118         Minor reformatting.
4119         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
4120         caller.
4121         Use only Preelaborate-compatible constructs.
4123         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
4124         Primitives.Operations.
4125         (Delete, Initialize): New procedures.
4127         * s-osinte-vxworks.adb: Body used to handle differences between
4128         VxWorks 5.x and 6.x
4129         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
4131         * s-osinte-vxworks.ads: Minor reformatting.
4132         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
4133         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
4134         and 6.
4135         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
4136         between Vxworks 5 and 6.
4137         (taskLock, taskUnlock): Removeed, no longer used.
4139         * adaint.c: The wait.h header is not located in the sys directory on
4140         VxWorks when using RTPs.
4141         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
4142         using RTPs.
4143         (__gnat_dup): dup is available on Vxworks when using RTPs.
4144         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
4146         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
4148         * expect.c: The wait.h header is not located in the sys directory on
4149         VxWorks when using RTPs.
4151 2005-09-01  Thomas Quinot  <quinot@adacore.com>
4153         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
4155         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
4157         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4158         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4159         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
4160         g-soccon-freebsd.ads: Add new constants:
4161          IP_MULTICAST_IF
4162          SO_RCVTIMEO/SO_SNDTIMEO
4163          IOV_MAX
4165         * gen-soccon.c:
4166         Move all target-specific file inclusions and macro definitions to
4167         gsocket.h, in order to ensure that any C code in socket.c will see a
4168         set of constants that is consistent with the contents of g-soccon.ads.
4170         * gsocket.h: Code imported from gen-soccon.c:
4171         Move all target-specific file inclusions and macro definitions to
4172         gsocket.h, in order to ensure that any C code in socket.c will see a set
4173         of constants that is consistent with the contents of g-soccon.ads.
4174         This change also makes gen-soccon self-contained (removing dependencies
4175         upon GCC internal headers).
4177         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
4178         iovecs at a time.
4179         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
4181         * socket.c: Minor reformatting.
4183 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4184             Thomas Quinot  <quinot@adacore.com>
4186         * fname-sf.adb, mlib-tgt.ads,
4187         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
4188         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
4189         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
4190         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
4191         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
4192         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
4193         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
4194         makegpr.adb: Remove redundant use_clauses.
4196 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
4198         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
4199         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
4200         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
4201         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
4202         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
4203         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
4204         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
4205         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
4206         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
4207         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
4208         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
4209         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
4210         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
4211         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
4212         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
4213         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4214         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
4215         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
4216         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
4217         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4218         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
4219         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
4220         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
4221         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
4222         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
4223         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
4224         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
4225         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
4226         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
4227         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
4228         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
4229         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
4230         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
4231         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
4232         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
4233         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
4234         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
4235         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
4236         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
4237         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
4238         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
4239         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
4240         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
4241         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
4242         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
4243         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
4244         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
4245         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
4246         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
4247         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
4248         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
4249         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
4250         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
4251         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
4252         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
4253         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
4254         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
4255         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
4256         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
4257         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
4258         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
4259         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
4260         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
4261         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
4262         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
4263         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
4264         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
4265         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
4266         and always use the no parameter form for consistency.
4268         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
4270 2005-09-01  Robert Dewar  <dewar@adacore.com>
4272         * binde.adb: Minor reformatting
4273         (Find_Elab_Order): Output warning if -p used with static elab order
4275 2005-09-01  Robert Dewar  <dewar@adacore.com>
4277         * checks.adb (Check_Needed): New procedure, deals with removing checks
4278         based on analysis of short-circuited forms. Also generates warnings for
4279         improper use of non-short-circuited forms.
4280         Code clean ups.
4282 2005-09-01  Robert Dewar  <dewar@adacore.com>
4284         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
4285         with 'Valid tests.
4287 2005-09-01  Robert Dewar  <dewar@adacore.com>
4289         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
4290         spec.
4291         Implement new insertion char < (conditional warning)
4292         * errutil.adb, erroutc.adb: Implement new insertion char <
4293         (conditional warning).
4294         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
4295         (Error_Msg_Warn): New variable for < insertion char.
4296         * prj-nmsc.adb: Implement new errout insertion char < (conditional
4297         warning).
4298         (Check_For_Source): Change value of Source_Id only after the current
4299         source has been dealt with.
4301 2005-09-01  Robert Dewar  <dewar@adacore.com>
4302             Doug Rupp  <rupp@adacore.com>
4304         * exp_attr.adb: Handle vax fpt for 'Valid attribute
4305         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
4306         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
4307         (Valid_D, Valid_F, Valid_G): New functions
4309 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4310             Hristian Kirtchev  <kirtchev@adacore.com>
4311             Javier Miranda  <miranda@adacore.com>
4313         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
4314         from object notation, the original node is unanalyzed and carries no
4315         semantic information, so that accessiblity checks must be performed on
4316         the type of the actual itself.
4317         (Expand_N_Subprogram_Declaration): Change last actual parameter for
4318         compatibility with Build_Protected_Sub_Specification.
4319         (Check_Overriding_Inherited_Interfaces): Add suport to handle
4320         overloaded primitives.
4321         (Register_Interface_DT_Entry): Use the new name of the formal
4322         the the calls to Expand_Interface_Thunk
4324         * exp_dbug.ads: Augment comments on encoding of protected types to
4325         include the generation of dispatching subprograms when the type
4326         implements at least one interface.
4328         * lib.ads: Extend information in Load_Stack to include whether a given
4329         load comes from a Limited_With_Clause.
4331         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
4332         whether a potential circularity is harmless, because it includes units
4333         loaded through a limited_with clause. Extends previous treatment which
4334         did not handle properly arbitrary combinations of limited and
4335         non-limited clauses.
4337 2005-09-01  Nicolas Setton  <setton@adacore.com>
4339         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
4340         to be encoded as typ___XBLU_lowerbound__upperbound instead of
4341         typ___XB_lowerbound__upperbound.
4343 2005-09-01  Thomas Quinot  <quinot@adacore.com>
4345         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
4346         dummy access formal for RACW/RAS TypeCode TSS.
4347         (Build_TypeCode_Call): Do not generate dummy null access actual for
4348         calls to the TypeCode TSS.
4350 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4352         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
4353         fully qualified name, to distinguish instances with the same local name.
4355         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
4356         fully qualified.
4358 2005-09-01  Robert Dewar  <dewar@adacore.com>
4360         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
4361         packed arrays.
4363 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
4365         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
4366         (Free): New deallocation procedure for filter elements
4367         (Close): Deallocate any existing filter for the concerned connection
4369 2005-09-01  Laurent Pautet  <pautet@adacore.com>
4371         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
4372         position set is provided, we compute one in order to reduce the maximum
4373         length of the keys.  This computation first selects a character
4374         position between 1 and the minimum length of the keys in order to
4375         avoid reducing one of the keys to an empty string.
4376         (Initialize, Compute): When the ratio V to K is too low, the algorithm
4377         does not converge. The initialization procedure now comes with a
4378         maximum number of iterations such that when exceeded, an exception is
4379         raised in Compute. The user can initialize this ratio to another value
4380         and try again
4381         Reformating and updated headers.
4383 2005-09-01  Javier Miranda  <miranda@adacore.com>
4385         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
4386         that given an entity T creates and returns an Itype that duplicates the
4387         contents of T. The returned Itype has the null-exclusion
4388         attribute set to True, and its Etype attribute references T
4389         to keep the association between the two entities.
4390         Update copyright notice
4392         * sem_aggr.adb (Check_Can_Never_Be_Null,
4393         Aggregate_Constraint_Checks, Resolve_Aggregate,
4394         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
4396         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
4398 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
4399             Robert Dewar  <dewar@adacore.com>
4400             Hristian Kirtchev  <kirtchev@adacore.com>
4402         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
4403         Result_Definition.
4405         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
4406         function specs.
4407         Call Set_Result_Definition instead of Set_Subtype_Mark.
4408         (P_Subprogram_Specification): Add parsing of anonymous access result
4409         plus null exclusions. Call Set_Result_Definition instead of
4410         Set_Subtype_Mark.
4412         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
4413         (P_Access_Type_Definition): Add parsing for an anonymous access result
4414         subtype, plus parsing for null exclusions. Call Set_Result_Definition
4415         instead of Set_Subtype_Mark.
4417         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
4418         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
4419         (Result_Definition): New function for N_Function_Specifications.
4420         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
4421         N_Function_Specification.
4422         (Set_Null_Exclusion_Present): Allow this flag for
4423         N_Function_Specification.
4424         (Set_Result_Definition): New procedure for N_Function_Specifications.
4425         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
4426         and N_Function_Specification.
4428         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
4429         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
4430         Add support for LIMITED NEW for Ada 2005 AI-419
4431         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
4432         syntax for anonymous access results.
4433         Replace Subtype_Mark field by Result_Definition in
4434         N_Function_Specification and N_Access_Definition specs.
4435         Add Null_Exclusion_Present to spec of N_Function_Specification.
4436         (Result_Definition): New function for N_Function_Specification and
4437         N_Access_Function_Definition.
4438         (Set_Result_Definition): New procedure for N_Function_Specification and
4439         N_Access_Function_Definition.
4441         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
4442         Result_Definition for cases of N_Access_Function_Definition and
4443         N_Function_Specification.
4444         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
4446 2005-09-01  Vincent Celier  <celier@adacore.com>
4448         * lib-writ.adb: Update Copyright notice
4449         (Write_With_Lines): On platforms where file names are case-insensitive,
4450         record the file names in lower case.
4451         (Write_ALI): For D lines, on platforms where file names are
4452         case-insensitive, record the file names in lower case.
4454 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4455             Emmanuel Briot  <briot@adacore.com>
4457         * lib-xref.adb (Output_Overridden_Op): Display information on
4458         overridden operation.
4460         * lib-xref.ads: Add documentation on overridden operations.
4462         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
4463         information.
4465         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
4466         overriding entity information.
4468 2005-09-01  Vincent Celier  <celier@adacore.com>
4470         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
4471         including those that are inherited.
4473 2005-09-01  Robert Dewar  <dewar@adacore.com>
4475         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
4477         * par-prag.adb: Implement new pragma Debug_Policy
4479         * sem_prag.adb Implement new pragma Debug_Policy
4480         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
4481         Component_Size attribute specification. Give warning for ignored pragma
4482         Pack.
4484         * snames.h, snames.ads, snames.adb: Introduce entries in
4485         Preset_Names for Name_Disp_Asynchronous_Select,
4486         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
4487         Name_Disp_Timed_Select.
4488         New pragma Debug_Policy
4490         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
4491         explicitly.
4492         Switch -gnata also sets Debug_Pragmas_Enabled
4494         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
4495         handle an explicit -gnata when compiling predefined files.
4497 2005-09-01  Vincent Celier  <celier@adacore.com>
4499         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
4500         directories of projects that have no Ada sources.
4502 2005-09-01  Robert Dewar  <dewar@adacore.com>
4504         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
4505         (makes a difference for wide characters)
4507         * widechar.adb, widechar.ads:
4508         Add Wide_Char_Byte_Count feature to count chars vs bytes
4510 2005-09-01  Thomas Quinot  <quinot@adacore.com>
4511             Ed Schonberg  <schonberg@adacore.com>
4512             Robert Dewar  <dewar@adacore.com>
4514         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
4515         'Address attribute reference with an overloaded prefix, use the
4516         location of the prefix (not the location of the attribute reference) as
4517         the error location.
4518         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
4519         a function renaming thereof, is a valid prefix for 'Size (where it is
4520         intepreted as a function call).
4521         (Statically_Denotes_Entity): New predicate to determine whether the
4522         prefix of an array attribute can be considered static.
4524         PR ada/9087
4525         (Eval_Attr): Fix failure to evaluate Component_Size for
4526         unconstrained arrays (resulted in wrong value in packed case, since
4527         back end cannot handle this case)
4529 2005-09-01  Robert Dewar  <dewar@adacore.com>
4531         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
4532         error msgs for most common cases.
4533         Use new errout insertion char < (conditional warning)
4535 2005-09-01  Javier Miranda  <miranda@adacore.com>
4536             Ed Schonberg  <schonberg@adacore.com>
4538         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
4539         become local to the whole package.
4540         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
4541         the package was already analyzed the new algorithm "replaces" the
4542         real entities by the shadow ones. This is required to ensure that
4543         the order of these entities in the homonym chains does not change;
4544         otherwise we can have undefined references at linking time because
4545         in case of conflicts the external name of the entities will have
4546         a suffix that depends on the order of the entities in the chain.
4547         (Remove_Limited_With_Clause): Complementary code that completes the
4548         new algorithm and replaces the shadow entities by the real ones.
4549         (Install_Limited_Withed_Unit): When unchaining entities before the
4550         installation of the shadow entities, only regular entities of the
4551         public part must be taken into account. This is required to
4552         keep this routine in synch with the work done by Remove_Limited_
4553         With_Clause
4554         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
4555         even if unit is analyzed, because the analysis of the unit is
4556         idempotent in any case, and the limited view of the unit may have to
4557         be installed for proper visibility.
4558         (Expand_Limited_With_Clause): Even if the unit in the implicit
4559         with_clause has been analyzed already, a limited view of the package
4560         must be built for the current context, if it does not exist yet.
4562 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4563             Javier Miranda  <miranda@adacore.com>
4564             Gary Dismukes  <dismukes@adacore.com>
4566         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
4567         defining entity for the instance body, make a new defining identifier
4568         rather than copying the entity of the spec, to prevent accidental
4569         sharing of the entity list.
4570         (Check_Private_View): When exchanging views of private types, build the
4571         list of exchanged views as a stack, to ensure that on exit the exchanges
4572         are undone in the proper order.
4573         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
4574         Restore the compilation environment in case of instantiation_error.
4575         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
4576         for an anonymous access result.
4577         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
4578         (Formal_Entity): Handle properly the case of a formal package that
4579         denotes a generic package renaming.
4581 2005-09-01  Thomas Quinot  <quinot@adacore.com>
4583         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
4584         clause if the array aggregate is surrounded by parentheses.
4586 2005-09-01  Cyrille Comar  <comar@adacore.com>
4587             Gary Dismukes  <dismukes@adacore.com>
4588             Ed Schonberg  <schonberg@adacore.com>
4589             Javier Miranda  <miranda@adacore.com>
4591         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
4592         underlying type
4593         to check if a type is Constrained in cases related to code generation
4594         (rather than semantic checking) since otherwise we do not generate
4595         similar code for mutable private types depending if their
4596         discriminants are visible or not.
4597         (Check_Abstract_Overriding): Do not complain about failure to override
4598         the primitive operations used in dispatching selects since they will
4599         always be overriden at the freeze point of the type.
4600         (Access_Definition): Separate out handling for resetting the scope
4601         of an anonymous access function result type. Retrieve the scope
4602         of the associated function rather than using Current_Scope, which
4603         does not have a consistent value (depends on whether we're in the
4604         middle of analyzing formal parameters). Add ??? comment about
4605         finding a cleaner way to handle the special cases of scope setting.
4606         (Process_Incomplete_Dependents): A protected operation is never a
4607         dispatching operation (only its wrapper may be).
4608         (Build_Derived_Record_Type): In case of tagged private types that
4609         implement interfaces add derivation of predefined primitive
4610         operations.
4611         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
4612         by two parameters that are used in case of derivation from abstract
4613         interface types: No_Predefined_Prims is used to avoid the derivation
4614         of predefined primitives from the interface, and Predefined
4615         Prims_Only is used to complete the derivation predefined primitives
4616         in case of private tagged types implementing interfaces.
4617         Fix typo in comments
4618         (Find_Interface_In_Descendant): Protect the frontend against
4619         wrong code with large circularity chains.
4620         (Is_Private_Overriding): Add support for entities overriding interface
4621         subprograms. The test failed because Entities associated with overriden
4622         interface subprograms are always marked as hidden (and used to build
4623         the secondary dispatch table); in this case the overriden entity is
4624         available through the field abstract_interface_alias (cf. override_
4625         dispatching_operation)
4626         (Access_Definition): Set the scope of the type to Current_Scope for the
4627         case of a function with an anonymous access result type.
4628         (Access_Subprogram_Declaration): Handle creation of the type entity for
4629         an access-to-function type with an anonymous access result.
4630         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
4631         in handling for N_Access_Function_Definition.
4632         (Analyze_Subtype_Declaration): Modify the text of error message.
4633         (Derived_Type_Declaration): Modify the text of error message.
4634         (Process_Subtype): Modify the text of error message plus cleanup
4635         of one redundant error message.
4636         (Analyze_Component_Declaration): Code cleanup.
4637         (Analyze_Object_Declaration): Code cleanup.
4638         (Analyze_Subtype_Declaration): Propagate the null-exclusion
4639         attribute in case of access types. Code cleanup.
4640         (Array_Type_Declaration): Code cleanup.
4641         (Process_Discriminants): Create the new null-excluding itype
4642         if required. Code cleanup.
4643         (Process_Subtype): Create the new null-excluding itype if
4644         required. Code cleanup.
4645         (Build_Derived_Record_Type): Code cleanup to avoid calling
4646         twice the subprogram derive_subprograms in case of private
4647         types that implement interfaces. In this particular case the
4648         subprogram Complete_Subprograms_Derivation already does the
4649         job associated with the second call.
4651         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
4652         conversion to the full view when generating an operation for a
4653         discriminant whose type may currently be private.
4655 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4656             Javier Miranda  <miranda@adacore.com>
4658         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
4659         V (Obj.F), the rewriting does not involve the indexed component, but
4660         only the selected component itself.
4661         Do not apply the transformation if the analyzed node is an actual of a
4662         call to another subprogram.
4663         (Complete_Object_Operation): Retain the entity of the
4664         dispatching operation in the selector of the rewritten node. The
4665         entity will be used in the expansion of dispatching selects.
4666         (Analyze_One_Call): Improve location of the error message associated
4667         with interface.
4668         (Analyze_Selected_Component): No need to resolve prefix when it is a
4669         function call, resolution is done when parent node is resolved, as
4670         usual.
4671         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
4672         when attempting to resolve a call transformed from its object notation.
4673         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
4674         of the argument list for each interpretation of the operation.
4675         (Try_Object_Operation): The designated type of an access parameter may
4676         be an incomplete type obtained through a limited_with clause, in which
4677         case the primitive operations of the type are retrieved from its full
4678         view.
4679         (Analyze_Call): If this is an indirect call, and the return type of the
4680         access_to_subprogram is incomplete, use its full view if available.
4682 2005-09-01  Javier Miranda  <miranda@adacore.com>
4683             Gary Dismukes  <dismukes@adacore.com>
4685         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
4686         access types the null-exclusion and access-to-constant attributes must
4687         also match.
4688         (Analyze_Return_Statement): When the result type is an anonymous access
4689         type, apply a conversion of the return expression to the access type
4690         to ensure that appropriate accessibility checks are performed.
4691         (Analyze_Return_Type): For the case of an anonymous access result type,
4692         generate the Itype and set Is_Local_Anonymous_Access on the type.
4693         Add ??? placeholder for check to disallow returning a limited object
4694         in Ada 2005 unless it's an aggregate or a result of a function call.
4695         Change calls from Subtype_Mark to Result_Definition.
4696         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
4697         Result_Definition in call to Make_Function_Specification.
4698         (Build_Body_To_Inline): Change Set_Subtype_Mark to
4699         Set_Result_Definition.
4700         (Make_Inequality_Operator): Change formal Subtype_Mark to
4701         Result_Definition in call to Make_Function_Specification.
4702         (Process_Formals): Create the new null-excluding itype if required.
4703         (New_Overloaded_Entity): For an entity overriding an interface primitive
4704         check if the entity also covers other abstract subprograms in the same
4705         scope. This is required to handle the general case, that is, overriding
4706         other interface primitives and overriding abstract subprograms inherited
4707         from some abstract ancestor type.
4708         (New_Overloaded_Entity): For an overriding entity that comes from
4709         source, note the operation that it overrides.
4710         (Check_Conformance, Type_Conformant): Addition of one new formal
4711         to skip controlling formals in the analysis. This is used to
4712         handle overloading of abstract interfaces.
4713         (Base_Types_Match): Add missing case for types imported from
4714         limited-with clauses
4715         (New_Overloaded_Entity): Add barrier to protect the use of
4716         the "alias" attribute.
4718 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4720         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
4721         verify that the procedure and the entry are mode conformant.
4722         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
4723         as a different operator, which is often a cut-and-paste error.
4725 2005-09-01  Javier Miranda  <miranda@adacore.com>
4726             Ed Schonberg  <schonberg@adacore.com>
4728         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
4729         used in controlling parameters exclude null because it is necessary to
4730         read the tag to dispatch, and null has no tag.
4731         (Override_Dispatching_Operation): If the previous operation is inherited
4732         from an interface, it becomes hidden  and does not participate in later
4733         name resolution.
4735 2005-09-01  Javier Miranda  <miranda@adacore.com>
4736             Ed Schonberg  <schonberg@adacore.com>
4737             Gary Dismukes  <dismukes@adacore.com>
4739         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
4740         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
4741         the expander will generate the corresponding run-time check to evaluate
4742         the expression.
4743         (Resolve_Call): Check for legal type of procedure name or prefix that
4744         appears as a trigger in a triggering alternative.
4745         (Valid_Conversion): If expression is ambiguous and the context involves
4746         an extension of System, remove System.Address interpretations.
4747         (Resolve_Qualified_Expression): Reject the case of a specific-type
4748         qualification applied to a class-wide argument. Enhance comment
4749         to explain checking of Original_Node.
4750         (Resolve_Type_Conversion): The location of the error message was not
4751         general enough to handle the general case and hence it has been removed.
4752         In addition, this patch improves the text of the message.
4753         (Resolve_Type_Conversion): Add missing support for access to interface
4754         types.
4755         (Resolve_Type_Conversion): If the target is a class-wide interface type,
4756         do not expand if the expression is the actual in a call, because proper
4757         expansion will take place when the call itself is expanded.
4758         (Resolve_Allocator): If the context is an unchecked conversion, the
4759         allocator inherits its storage pool, if any, from the target type of
4760         the conversion.
4762 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4763             Javier Miranda  <miranda@adacore.com>
4765         * sem_type.adb (Add_One_Interp): If a candidate operation is an
4766         inherited interface operation that has an implementation, use the
4767         implementation to avoid spurious ambiguities.
4768         (Interface_Present_In_Ancestor): In case of concurrent types we can't
4769         use the Corresponding_Record_Typ attribute to look for the interface
4770         because it is set by the expander (and hence it is not always
4771         available). For this reason we traverse the list of interfaces
4772         (available in the parent of the concurrent type).
4773         (Interface_Present_In_Ancestor): Handle entities from the limited view
4775 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4777         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
4778         from the list of required components.
4779         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
4780         primitive procedure of a limited interface with a controlling first
4781         parameter.
4782         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
4783         of an entry.
4784         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
4785         capture if it is generated in the second operand of a short-circuit
4786         operation.
4787         Do not capture values for variables with address clauses.
4788         (Is_Object_Reference): Treat a function call as an object reference only
4789         if its type is not Standard_Void_Type.
4791 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
4793         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
4794         to a variable that is statically known to be constant.
4796 2005-09-01  Geert Bosch  <bosch@adacore.com>
4797             Robert Dewar  <dewar@adacore.com>
4799         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
4800         (VAXGF_Safe_First): Idem.
4802 2005-09-01  Robert Dewar  <dewar@adacore.com>
4803             Arnaud Charlet  <charlet@adacore.com>
4805         * g-dirope.ads: Minor reformatting
4806         Document that bounds of result of Base_Name match the input index
4807         positions.
4808         Add documentation on environment variable syntax for Expand_Path
4810         * gnat_ugn.texi: Update documentation to include mention of -m switches
4811         Document new treatment of wide characters in max line length
4812         style check.
4813         Remove -gnatL/-gnatZ switches, no longer used.
4814         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
4815         of -gnata switch.
4817         * gnat_rm.texi: Add doc for two argument form of pragma
4818         Float_Representation.
4819         Add documentation for pragma No_Strict_Aliasing
4820         Add note that explicit component clause overrides pragma Pack.
4821         Add documentation of pragma Debug_Policy
4823 2005-09-01  Matthew Heaney  <heaney@adacore.com>
4825         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
4826         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
4827         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
4828         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
4829         draft (Draft 13, August 2005) of Ada Amendment 1.
4831 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
4833         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
4834         Note that the platform-specific version of g-soccon.ads for VMS is now
4835         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
4836         really is a package spec).
4837         Replace s-taspri-linux.ads by s-taspri-posix.ads
4838         Remove references to s-mastop-x86.adb
4840         * system-vxworks-xscale.ads: Removed, no longer used.
4841         * s-vxwork-xscale.ads: Removed, no longer used.
4843 2005-09-01  Robert Dewar  <dewar@adacore.com>
4845         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
4846         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
4847         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
4848         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
4849         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
4850         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
4851         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
4852         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
4853         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
4854         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
4855         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
4856         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
4857         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
4858         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
4859         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
4860         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
4861         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
4862         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
4863         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
4864         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
4865         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
4867 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
4869         PR ada/23187
4870         * adaint.c
4871         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
4873 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
4874             Doug Rupp  <rupp@adacore.com>
4876         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
4877         when needed.
4878         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
4879         this code in the GNAT run-time.
4881         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
4883         PR ada/21053
4884         * init.c (__gnat_error_handler [many]): Mark "msg" as const
4885         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
4887         (__gnat_inside_elab_final_code): Moved here from
4888         Standard_Library and only defined for the compiler.
4889         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
4890         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
4891         using RTPs because directly vectored Interrupt routines are not
4892         supported on this configuration.
4893         (getpid): Do not redefine this function on VxWorks when using RTPs
4894         because this primitive is well supported by the RTP libraries.
4895         (copy_msg): Correct the code that checks for buffer overflow.
4896         Discovered during code reading.
4898 2005-08-29  Olivier Hainque  <hainque@adacore.com>
4900         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
4901         a library level mutable variable with an initializer, tell
4902         build_allocator to ignore the initializer's size. It may not be large
4903         enough for all the values that might be assigned to the variable later
4904         on.
4906 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
4907             Eric Botcazou  <ebotcazou@adacore.com>
4909         * trans.c: Protect < in error msg with quote
4910         Replace GCC_ZCX by Back_End_Exceptions.
4911         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
4912         has been sufficiently aligned in the record.
4914 2005-08-15  James E. Wilson  <wilson@specifix.com>
4916         * system-linux-alpha.ads: Change ia64 to alpha.
4918 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
4920         * decl.c, utils.c: Fix comment typos.
4922 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
4924         * decl.c, init.c, initialize.c: Fix comment typos.
4926 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
4928         Make CONSTRUCTOR use VEC to store initializers.
4929         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
4930         CONSTRUCTOR_ELTS.
4931         * trans.c (extract_values): Likewise.
4932         * utils.c (convert, remove_conversions): Likewise.
4933         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
4934         gnat_build_constructor): Likewise.
4936 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
4938         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
4939         DECL_SECTION_NAME.
4940         (compare_field_bitpos): Likewise.
4942 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
4944         * utils.c (create_var_decl): Only set DECL_COMMON on
4945         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
4946         VAR_OR_FUNCTION_DECL_P.
4948 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
4950         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
4951         removed.
4953 2005-07-07  Pascal Obry  <obry@adacore.com>
4955         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
4956         returned type on Windows.
4958         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
4959         routine.
4961         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
4962         exception in this case.
4963         Simplify the code as "Image (Image'Range)" = "Image".
4965 2005-07-07  Vincent Celier  <celier@adacore.com>
4967         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
4968         the destructor/constructor attributes for <lib>final/<lib>init.
4970         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
4972 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
4974         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
4975         type if the parameter is not passed by copy but reference by default.
4977 2005-07-07  Javier Miranda  <miranda@adacore.com>
4979         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
4980         Reimplementation of the support for abstract interface types in order
4981         to leave the code more clear and easy to maintain.
4983         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
4984         abstract interface types in order to leave the code clearer and easier
4985         to maintain.
4987         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
4988         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
4989         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
4990         appropriate entry of the secondary dispatch table.
4991         (Make_DT): Add code to inherit the secondary dispatch tables of
4992         the ancestors.
4994         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
4995         implementing both functionalities by means of a common routine, each
4996         routine has its own code.
4998 2005-07-07  Javier Miranda  <miranda@adacore.com>
5000         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
5002         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
5003         types:
5004         --
5005           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
5006         --
5008         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
5009         use of tag incomplete types.
5011         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
5012         give support to tagged incomplete types.
5014         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
5015         expression is a discriminant reference and its type is private, as can
5016         happen within a stream operation for a mutable record, use the full
5017         view of the type to resolve the case alternatives.
5018         (Analyze_Assignment): Check wrong dereference of incomplete types.
5020         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
5021         types.
5023         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
5024         incomplete types.
5026         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
5027         N_Incomplete_Type_Declaration nodes.
5029         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
5030         Tag_Present to give support to tagged incomplete types:
5031         --
5032           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
5033         --
5035 2005-07-07  Olivier Hainque  <hainque@adacore.com>
5037         PR ada/22301
5039         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
5040         definitions for the Unwind wrappers in the compiler case.
5042 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
5043             Javier Miranda  <miranda@adacore.com>
5045         * par-load.adb (Load): If a child unit is loaded through a limited_with
5046         clause, each parent must be loaded as a limited unit as well.
5048         * sem_ch10.adb (Previous_Withed_Unit): Better name for
5049         Check_Withed_Unit. Return true if there is a previous with_clause for
5050         this unit, whether limited or not.
5051         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
5052         the current unit.
5053         (Is_Visible_Through_Renamings): New local subprogram of install_limited
5054         _withed_unit that checks if some package installed through normal with
5055         clauses has a renaming declaration of package whose limited-view is
5056         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
5057         of the current Draft document for Ada 2005.
5058         (Analyze_Context): Complete the list of compilation units that
5059         are allowed to contain limited-with clauses. It also contains
5060         checks that were previously done by Install_Limited_Context_Clauses.
5061         This makes the code more clear and easy to maintain.
5062         (Expand_Limited_With_Clause) It is now a local subprogram of
5063         Install_Limited_Context_Clauses, and contains the code that adds
5064         the implicit limited-with clauses for parents of child units.
5065         This functionality was prevously done by Analyze_Context.
5067         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
5068         incomplete type.
5070         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
5071         been erroneously named in a limited-with clause of its own context.
5072         In this case the error has been previously notified by Analyze_Context.
5074 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
5076         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
5077         generic package that contains local declarations with the same name.
5078         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
5080 2005-07-07  Bernard Banner  <banner@adacore.com>
5082         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
5083         ia64 platform only on platforms that you the GCC unwind library
5084         rather than the system unwind library.
5086 2005-07-07  Thomas Quinot  <quinot@adacore.com>
5088         * expect.c: Minor reformatting
5090 2005-07-07  Sergey Rybin  <rybin@adacore.com>
5092         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
5093         --no-separate-is
5095         * gnat_ugn.texi: Add description for new gnatpp option
5096         (--no-separate-is)
5098 2005-07-04  Thomas Quinot  <quinot@adacore.com>
5100         * g-expect-vms.adb, g-expect.ads, g-expect.adb
5101         (Get_Command_Output): New subprogram to launch a process and get its
5102         standard output as a string.
5104 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
5105             Olivier Hainque  <hainque@adacore.com>
5107         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
5108         fetch a code-range descriptor associated with the machine state. On
5109         failure set the machine state's PC to 0; on success, pass the
5110         descriptor to exc_virtual_unwind.
5112         * init.c (Tru64 section): New function __gnat_set_code_loc.
5114 2005-07-04  Vincent Celier  <celier@adacore.com>
5116         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5117         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5118         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
5119         Remove all auto-initialization code, as this is now done through the
5120         constructor mechanism.
5122         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
5123         __gnat_sals_init_using_constructors): New functions.
5125         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
5126         Linker_Constructor and Linker_Destructor when switch -a is used.
5128         * bindusg.adb: Add line for new switch -a
5130         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
5131         (Gnatbind): When switch -a is used, check if it is allowed
5133         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
5135 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
5137         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
5138         This prevents us from hitting a limitation during the debug info
5139         generation when using stabs.
5140         (Prims_Ptr): Likewise.
5142 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
5143             Ed Schonberg  <schonberg@adacore.com>
5144             Javier Miranda  <miranda@adacore.com>
5146         * checks.adb (Null_Exclusion_Static_Checks): In the case of
5147         N_Object_Declaration, only perform the checks if the Object_Definition
5148         is not an Access_Definition.
5150         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
5151         where the parent of an the access definition is an N_Object_Declaration
5152         when determining the Associated_Node_For_Itype and scope of an
5153         anonymous access-to-subprogram type.
5155         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
5156         Corresponding_Spec on the body created for a null procedure. Add ???
5157         comment. Remove New_Copy_Tree call on body argument to
5158         Set_Body_To_Inline.
5160         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
5161         discriminants, use the type of the actual as well, because the
5162         discriminants may be read by the called subprogram.
5164         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
5165         access type we do not need to handle non-limited views.
5166         (Build_Derived_Record_Type): Additional check to check that in case of
5167         private types, interfaces are only allowed in private extensions.
5169 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
5171         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
5172         <Pragma_Linker_Destructor>: Likewise.
5174         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
5175         Pragma_Linker_Destructor.
5177         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
5178         ATTR_LINK_DESTRUCTOR.
5179         (static_ctors, static_dtors): New variables.
5181         * misc.c (gnat_expand_body): Output current function as constructor
5182         and destructor if requested.
5184         * par-prag.adb: Add processing for pragma Linker_Constructor and
5185         Linker_Destructor.
5187         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
5188         extracted from Check_Interrupt_Or_Attach_Handler.
5189         (Check_Interrupt_Or_Attach_Handler): Invoke it.
5190         Implement pragma Linker_Constructor and Linker_Destructor with the
5191         help of Find_Unique_Parameterless_Procedure.
5192         Replace Name_Alias with Name_Target for pragma Linker_Alias.
5194         * snames.h, snames.ads, snames.adb:
5195         Add Name_Linker_Constructor and Name_Linker_Destructor.
5196         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
5197         * snames.adb: Remove Name_Alias.
5199         * trans.c: Include cgraph.h.
5200         (build_global_cdtor): New function.
5201         (Compilation_Unit_to_gnu): Build global constructor and destructor if
5202         needed.
5203         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
5204         of objects too.
5205         (addressable_p) <COMPONENT_REF>: Unconditionally test
5206         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
5208         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
5209         variable if it is external.
5211         (static_ctors, static_dtors): New global variables.
5212         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
5213         <ATTR_LINK_DESTRUCTOR>: Likewise.
5214         (end_subprog_body): Chain function as constructor and destructor
5215         if requested.
5217         * exp_util.adb (Force_Evaluation): Unconditionally invoke
5218         Remove_Side_Effects with Variable_Ref set to true.
5219         (Remove_Side_Effects): Handle scalar types first. Use a renaming
5220         for non-scalar types even if Variable_Ref is true and for class-wide
5221         expressions.
5223 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
5225         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
5226         to prevent spurious warnings.
5228 2005-07-04  Thomas Quinot  <quinot@adacore.com>
5230         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
5231         Itypes. Itypes are really unexpected there.
5232         (Build_TypeCode_Function): Generalise special processing for Itypes to
5233         handle the case of numeric implicit base types as well as enumerated
5234         ones.
5236 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
5238         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
5239         controlled, indicate the expected type of the dereference that is
5240         created for the call to Deep_Finalize, to prevent spurious errors when
5241         the designated type is private and completed with a derivation from
5242         another private type.
5244 2005-07-04  Vincent Celier  <celier@adacore.com>
5246         * make.adb (Change_To_Object_Directory): When unable to change the
5247         current dir to the object directory, output the full path of the
5248         directory.
5250 2005-07-04  Matthew Gingell  <gingell@adacore.com>
5252         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
5254         * indepsw-linux.adb: Replace by...
5256         * indepsw-gnu.adb: ...this new file
5258 2005-07-04  Vincent Celier  <celier@adacore.com>
5260         * mlib-prj.adb (Auto_Initialize): New constant String
5261         (SALs_Use_Constructors): New Boolean function
5262         (Build_Library): Call gnatbind with Auto_Initialize switch when
5263         SALs_Use_Constructors returns True.
5265         * mlib-tgt.ads: Minor reformatting
5267         * mlib-utl.ads: Minor reformatting
5269         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
5271 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
5273         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
5274         single protected declarations can have an interface list.
5275         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
5276         with seriously malformed entry declarations, and lead to compilation
5277         abandoned messages.
5279 2005-07-04  Javier Miranda  <miranda@adacore.com>
5281         * par-load.adb: Load the context items in two rounds.
5283 2005-07-04  Robert Dewar  <dewar@adacore.com>
5285         * scng.adb: Do not consider Mod used as an attribute to be a keyword
5287 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
5288             Javier Miranda  <miranda@adacore.com>
5290         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
5291         type extension needs a limited view.
5292         Remove previous restriction on private types available through the
5293         limited-view (only tagged private types were previously allowed).
5294         (Install_Withed_Unit): In the code that implements the
5295         legality rule given in AI-377, exclude a child unit with the name
5296         Standard, because it is a homonym of the Standard environment package.
5298 2005-07-04  Thomas Quinot  <quinot@adacore.com>
5300         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
5301         overloaded function call, carry interpretations from the original tree
5302         to the copy.
5304 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
5306         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
5307         types check whether some designated type is a limited view, and use
5308         the non-limited view if available.
5310 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
5312         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
5313         constraint of full view of a private view T1 if present, when T2 is a
5314         discriminated full view.
5316 2005-07-04  Thomas Quinot  <quinot@adacore.com>
5318         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
5319         actual that is a view conversion of a bit packed array reference.
5321 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
5323         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
5324         present before checking whether an interface type covers a synchronized
5325         type.
5327 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
5329         * sem_util.adb (Is_Object_Reference): An indexed or selected component
5330         whose prefix is an implicit dereference is an object reference. Removes
5331         spurious errors when compiling with -gnatc.
5333 2005-07-04  Robert Dewar  <dewar@adacore.com>
5335         PR ada/22039
5337         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
5339 2005-07-04  Matthew Gingell  <gingell@adacore.com>
5341         * tracebak.c: Enable tracebacks on ia64 platforms
5343 2005-07-04  Vincent Celier  <celier@adacore.com>
5345         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
5346         the GNAT BIND command, as gnatbind accepts multiples ALI files with
5347         the -L or -n switches.
5349 2005-07-04  Vincent Celier  <celier@adacore.com>
5351         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
5352         correctly computed and the main project data is not modified while
5353         doing so.
5354         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
5355         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
5356         c++linker as this does not work on some platforms.
5358 2005-07-04  Matthew Heaney  <heaney@adacore.com>
5360         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
5361         was changed.
5362         * a-coinve.adb: Perform constraint checks explicitly.
5364 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5365             Thomas Quinot  <quinot@adacore.com>
5367         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
5368         new target gen-soccon.
5370 2005-07-04  Robert Dewar  <dewar@adacore.com>
5372         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
5374 2005-07-04  Thomas Quinot  <quinot@adacore.com>
5376         * g-socket.ads (Check_Selector): Minor rewording of comment.
5378 2005-07-04  Vincent Celier  <celier@adacore.com>
5380         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
5382 2005-07-04  Thomas Quinot  <quinot@adacore.com>
5384         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
5386 2005-07-04  Sergey Rybin  <rybin@adacore.com>
5388         * gnat_ugn.texi: Add description of --eol gnatpp option
5390 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
5391             Thomas Quinot  <quinot@adacore.com>
5393         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
5394         if the user wants all calls of a subprogram to be flagged,
5395         independently of whether they are made from within the same unit or
5396         another unit.
5397         Mention restriction for pragma Linker_Alias on some platforms.
5398         Document pragma Linker_Constructor and Linker_Destructor.
5399         Rewrite documentation of Weak_External, Linker_Section and
5400         Linker_Alias pragmas.
5402 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
5404         * s-stausa.ads, s-stausa.adb: New files.
5406 2005-06-30  Kelley Cook
5408         * all files:  Update FSF address in copyright headers.
5409         * gen-soccon.co (main): Output new FSF address in generated files.
5411 2005-06-28  Paul Brook  <paul@codesourcery.com>
5413         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
5415 2005-06-14  Olivier Hainque  <hainque@adacore.com>
5416             Eric Botcazou  <ebotcazou@adacore.com>
5418         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
5419         exc_unwind, now that we are generating proper .debug_frame output for
5420         that target.
5422         * tracebak.c: Remove the mips-irix section, as we are now using the
5423         s-mastop based unwinder again.
5424         Under SPARC/Solaris, take into account the stack bias to compute the
5425         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
5426         ABI.
5428 2005-06-14  Doug Rupp  <rupp@adacore.com>
5430         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
5432         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
5434 2005-06-14  Pascal Obry  <obry@adacore.com>
5436         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
5437         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
5438         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
5439         package name).
5441         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
5442         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
5443         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
5444         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
5445         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
5446         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
5447         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
5448         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
5449         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
5450         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
5451         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
5452         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
5453         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
5454         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
5455         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
5456         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
5457         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
5458         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
5459         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
5460         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
5461         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
5462         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
5463         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
5464         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
5465         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
5466         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5467         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
5468         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
5469         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
5470         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
5471         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
5472         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
5473         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
5474         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
5475         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
5476         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
5477         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
5478         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
5479         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
5480         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
5481         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
5482         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
5483         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
5484         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
5485         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
5486         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
5487         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
5488         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
5489         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
5490         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
5491         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
5492         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
5493         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
5494         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
5495         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
5496         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
5497         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
5498         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
5499         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
5500         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
5501         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
5502         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
5503         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
5504         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
5505         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
5506         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
5507         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
5508         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
5509         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
5510         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
5511         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
5512         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
5513         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
5514         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
5515         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
5516         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
5517         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5518         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
5519         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
5520         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
5521         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
5522         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
5523         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
5524         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
5525         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
5526         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
5527         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
5528         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
5529         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
5530         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
5531         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
5532         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
5533         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
5534         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
5535         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
5536         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
5537         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
5538         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
5539         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
5540         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
5541         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
5542         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
5543         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
5544         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
5545         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
5546         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
5547         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
5548         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
5549         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
5550         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
5551         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
5552         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
5553         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
5554         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
5555         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
5556         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
5557         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
5558         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
5559         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
5560         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
5561         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
5562         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
5563         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
5564         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
5565         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
5566         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
5567         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
5568         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
5569         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
5570         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
5571         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
5572         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
5573         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
5575 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
5576             Arnaud Charlet  <charlet@adacore.com>
5578         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
5579         longer protected objects. They have been replaced by lower-level
5580         suspension objects made up by a mutex and a condition variable (or
5581         their equivalent given a particular OS) plus some internal data to
5582         reflect the state of the suspension object.
5583         (Initialize, Finalize): Add this initialization procedure for
5584         Suspension_Object, which is a controlled type.
5585         (Finalize): Add the finalization procedure for Suspension_Object,
5586         which is a controlled type.
5588         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
5589         Ada.Synchronous_Task_Control because there is no longer a need for a
5590         VxWorks specific version of this package. Target dependencies
5591         has been moved to System.Task_Primitives.Operations.
5593         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
5594         longer needed.
5595         (InitializeCriticalSection, EnterCriticalSection,
5596         LeaveCriticalSection, DeleteCriticalSection): Replace the type
5597         pCriticalSection by an anonymous access type so that we avoid problems
5598         of accessibility to local objects.
5600         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
5601         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
5602         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
5603         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
5604         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
5605         set the environment task mask here.
5606         (Current_State): Add this function that returns the state of the
5607         suspension object.
5608         (Set_False): Add this procedure that sets the state of the suspension
5609         object to False.
5610         (Set_True): Add this procedure that sets the state of the suspension
5611         object to True, releasing the task that was suspended, if any.
5612         (Suspend_Until_True): Add this procedure that blocks the calling task
5613         until the state of the object is True. Program_Error is raised if
5614         another task is already waiting on that suspension object.
5615         (Initialize): Add this procedure for initializing the suspension
5616         object. It initializes the mutex and the condition variable which are
5617         used for synchronization and queuing, and it sets the internal state
5618         to False.
5619         (Finalize): Add this procedure for finalizing the suspension object,
5620         destroying the mutex and the condition variable.
5622         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
5623         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
5624         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
5625         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
5626         which provides a low-level abstraction (using operating system
5627         primitives) for Ada.Synchronous_Task_Control.
5628         This object is made up by a mutex (for ensuring mutual exclusion), a
5629         condition variable (for queuing threads until the condition is
5630         signaled), a Boolean (State) indicating whether the object is open,
5631         and a Boolean (Waiting) reflecting whether there is a task already
5632         suspended on this object.
5634         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
5635         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
5636         s-intman-vms.ads, s-intman-mingw.adb,
5637         (Initialize_Interrupts): Removed, no longer used.
5639         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
5640         (Setup_Interrupt_Mask): New procedure.
5642         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
5644         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
5646         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
5647         this is no longer done in the body of s-taprop
5648         (Server_Task): Explicitely test for Pending_Action in case
5649         System.Parameters.No_Abort is True.
5651         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
5652         is no longer done in the body of s-taprop
5654 2005-06-14  Robert Dewar  <dewar@adacore.com>
5656         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
5657         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
5658         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
5659         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
5660         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5661         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
5662         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
5663         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
5664         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
5665         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
5666         system-linux-hppa.ads, system-vms_64.ads,
5667         system-vxworks-alpha.ads: Minor comment update for
5668         AI-362 (unit is Pure).
5670         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
5671         Add pragma Pure_05 for AI-362
5672         Make remaining conversion functions obsolescent in Ada 95
5674         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
5675         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
5676         Add entries for a-wichun and a-zchuni
5677         Add a-widcha a-zchara for AI-395
5678         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
5680         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
5681         Add entries for a-wichun.o and a-zchuni.o
5682         Entries for a-widcha.o and a-zchara.o
5683         Add entry for a-chacon.o
5685         * a-ztenau.adb: Add with of Ada.Characters.Conversions
5687         * a-chacon.ads, a-chacon.adb: New files.
5689         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
5690         categorization violations.
5692         * a-strmap.ads: Add pragma Pure_05 for AI-362
5693         * a-strmap.ads: Add note on implicit categorization for AI-362
5695         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
5697         * par-prag.adb: Dummy entry for pragma Persistent_BSS
5698         Set Ada_Version_Explicit, for implementation of AI-362
5699         Add processing for pragma Pure_05 and Preelaborate_05
5700         Add entry for Assertion_Policy pragma
5702         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
5703         when needed for proper processing of categorization stuff
5705         * sem_cat.adb:
5706         For several cases, make errors in preealborate units warnings,
5707         instead of errors, if GNAT_Mode is set. For AI-362.
5709         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
5710         preelaborate unit is now warning if in GNAT mode
5712         * s-stoele.ads: Document AI-362 for pragma preelaborate
5714 2005-06-14  Doug Rupp  <rupp@adacore.com>
5716         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
5717         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
5718         Default_Exception_Msg_Max_Length: new parameter.
5720         * a-except.ads: (Exception_Msg_Max_Length): Set to
5721         System.Parameters.Default_Exception_Msg_Max_Length
5722         Add pragma Preelaborate_05 for AI-362
5723         Add warnings off to allow categorization violations for AI-362
5725 2005-06-14  Vincent Celier  <celier@adacore.com>
5727         * gnatsym.adb: Adapt to modification of package Symbols: procedure
5728         Process is now in package Processing.
5730         * symbols.ads, symbols.adb:
5731         (Processing): New package, containing procedure Process
5733         * symbols-vms-alpha.adb:
5734         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
5736         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
5737         symbols-processing-vms-ia64.adb: New files.
5739 2005-06-14  Pascal Obry  <obry@adacore.com>
5741         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
5742         implementation. This new version generates the proper DllMain routine
5743         to initialize the SAL. The DllMain is generated in Ada and compiled
5744         before being added as option to the library build command.
5746 2005-06-14  Doug Rupp  <rupp@adacore.com>
5747             Pascal Obry  <obry@adacore.com>
5749         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
5750         call to decc$translate_vms.
5751         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
5752         need to remove those quotes before catenating the filename.
5753         (__gnat_locate_exec_on_path): improvements to the Win32 section:
5754         * avoid allocating the memory twice for better efficiency;
5755         * allocate 32K buffer for environment expansion as suggested by MSDN;
5756         * prepend ".;" to the path so that current directory is searched too.
5758 2005-06-14  Robert Dewar  <dewar@adacore.com>
5760         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
5761         instead of raising CE (AI-241)
5762         Add warnings off to allow categorization violations for AI-362
5764 2005-06-14  Robert Dewar  <dewar@adacore.com>
5766         * ali-util.adb, gnatbind.adb: Remove references to
5767         Force_RM_Elaboration_Order.
5769         * switch-b.adb: Remove recognition of -f switch
5771 2005-06-14  Pascal Obry  <obry@adacore.com>
5773         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
5774         implementation which is slightly more efficient.
5776 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
5777             Javier Miranda  <miranda@adacore.com>
5778             Ed Schonberg  <schonberg@adacore.com>
5779             Hristian Kirtchev  <kirtchev@adacore.com>
5781         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
5782         allocator's designated type is a class-wide type, and compiling for
5783         Ada 2005, emit a run-time check that the accessibility level of the
5784         type given in the allocator's expression is not deeper than the level
5785         of the allocator's access type.
5787         (Tagged_Membership): Modified to gives support to abstract interface
5788         types.
5790         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
5791         Access_Level.
5792         (Descendant_Tag): New predefined function
5793         (Is_Descendant_At_Same_Level): New predefined function
5794         (Get_Access_Level): New private function
5795         (Set_Access_Level): New private procedure
5796         (IW_Membership): New function. Given the tag of an object and the tag
5797         associated with an interface, evaluate if the object implements the
5798         interface.
5799         (Register_Interface_Tag): New procedure used to initialize the table of
5800         interfaces used by the IW_Membership function.
5801         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
5802         of the dispatch table.
5803         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
5804         table of interfaces of the parent.
5805         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
5806         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
5807         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
5808         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
5809         Ada 2005 semantics for the new predefined function.
5811         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
5812         call to Descendant_Tag rather than Internal_Tag.
5813         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
5814         the accessibility level of the attribute's Item parameter is not deeper
5815         than the level of the attribute's prefix type. Tag_Error is raised if
5816         the check fails. The check is only emitted for Ada_05.
5817         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
5818         requested stream attribute, use it.
5819         (Expand_N_Attribute_Reference): If the designated type is an interface
5820         then rewrite the referenced object as a conversion to force the
5821         displacement of the pointer to the secondary dispatch table.
5822         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
5823         is a dereference of an object with a constrained partial view.
5825         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
5826         type is a class-wide type, emit a run-time check that the accessibility
5827         level of the returned object is not deeper than the level of the
5828         function's master (only when compiling for Ada 2005).
5830         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
5831         Action_Nb_Arg): Add entries for new Get_Access_Level and
5832         Set_Access_Level routines in these tables.
5833         (Make_DT): Generate a call to set the accessibility level of the
5834         tagged type in its TSD.
5835         (Make_DT): Code cleanup. The functionality of generating all the
5836         secondary dispatch tables has been moved to freeze_record_type.
5837         (Make_Abstract_Interface_DT): Minor code cleanup.
5838         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
5839         this subprogram implements a new algorithm that provides the
5840         same functionality and it is more clear in case of primitives
5841         associated with abstract interfaces.
5842         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
5843         clean up, the functionality of this subprogram is now provided
5844         by Set_All_DT_Position.
5845         (Write_DT): New subprogram: a debugging procedure designed to be called
5846         within gdb to display the dispatch tables associated with a tagged
5847         type.
5848         (Collect_All_Interfaces): New subprogram that collects the whole list
5849         of interfaces that are directly or indirectly implemented by a tagged
5850         type.
5851         (Default_Prim_Op_Position): New subprogram that returns the fixed
5852         position in the dispatch table of the default primitive operations.
5853         (Expand_Interface_Actuals): New subprogram to generate code that
5854         displaces all the actuals corresponding to class-wide interfaces to
5855         reference the interface tag of the actual object.
5856         (Expand_Interface_Conversion): New subprogram. Reference the base of
5857         the object to give access to the interface tag associated with the
5858         secondary dispatch table.
5859         (Expand_Interface_Thunk): New subprogram that generates the code of the
5860         thunk. This is required for compatibility with the C+ ABI.
5861         (Make_Abstract_Interface_DT): New subprogram that generate the
5862         declarations for the secondary dispatch tables associated with an
5863         abstract interface.
5864         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
5865         attribute for each primitive operation covering interface subprograms
5866         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
5867         These subprograms were upgraded to give support to abstract interfaces
5869         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
5870         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
5871         RE_Set_Access_Level.
5872         (RE_Unit_Table): Add entries for new Ada.Tags operations.
5873         Add support to call the followig new run-time subprograms:
5874         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
5876         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
5877         match its full declaration when both have an access definition with
5878         statically matching designated subtypes.
5879         (Analyze_Component_Declaration): Delete commented out code that was
5880         incorrectly setting the scope of an anonymous access component's type.
5881         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
5882         an access discriminant when the containing type is nonlimited.
5883         (Make_Incomplete_Type_Declaration): Create an incomplete type
5884         declaration for a record type that includes self-referential access
5885         components.
5886         (Check_Anonymous_Access_Types): Before full analysis of a record type
5887         declaration, create anonymous access types for each self-referential
5888         access component.
5889         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
5890         an access component in this context is a Local_Anonymous_Access, for
5891         proper accessibility checks.
5892         (Access_Definition): Set properly the scope of the anonymous access type
5893         created for a stand-alone access object.
5894         (Find_Type_Of_Object): An object declaration may be given with an access
5895         definition.
5896         (Complete_Subprograms_Derivation): New subprogram used to complete
5897         type derivation of private tagged types implementing interfaces.
5898         In this case some interface primitives may have been overriden
5899         with the partial-view and, instead of re-calculating them, they
5900         are included in the list of primitive operations of the full-view.
5901         (Build_Derived_Record_Type): Modified to give support to private
5902         types implemening interfaces.
5903         (Access_Definition): Reject ALL on anonymous access types.
5904         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
5905         type derivation to occur at a deeper accessibility level than the
5906         parent type.
5907         For the case of derivation within a generic body however, disallow the
5908         derivation if the derived type has an ancestor that is a formal type
5909         declared in the formal part of an enclosing generic.
5910         (Analyze_Object_Declaration): For protected objects, remove the check
5911         that they cannot contain interrupt handlers if not declared at library
5912         level.
5913         (Add_Interface_Tag_Components): New subprogram to add the tag components
5914         corresponding to all the abstract interface types implemented by a
5915         record type or a derived record type.
5916         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
5917         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
5918         Process_Full_View, Record_Type_Declaration): Modified to give
5919         support to abstract interface types
5920         (Collect_Interfaces): New subprogram that collects the list of
5921         interfaces that are not already implemented by the ancestors
5922         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
5923         when partial view has no discriminants and full view has defaults.
5924         (Constrain_Access): Reject a constraint on a general access type
5925         if the discriminants of the designated type have defaults.
5926         (Access_Subprogram_Declaration): Associate the Itype node with the inner
5927         full-type declaration or subprogram spec. This is required to handle
5928         nested anonymous declarations.
5929         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
5930         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
5931         Process_Full_View, Record_Type_Declaration): Modified to give
5932         support to abstract interface types
5933         (Derive_Subprograms): Addition of a new formal to indicate if
5934         we are in the case of an abstact-interface derivation
5935         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
5936         to the specification because it is requied to analyze all the
5937         identifiers found in a list of interfaces
5939         * debug.adb: Complete documentation of flag "-gnatdZ"
5941         * exp_ch3.adb: Implement config version of persistent_bss pragma
5942         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
5943         testing for TSS presence to properly enforce visibility rules.
5944         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
5945         Make_Abstract_Interfaces_DT to generate the secondary tables
5946         associated with abstract interfaces.
5947         (Build_Init_Procedure): Modified to initialize all the tags
5948         corresponding.
5949         (Component_Needs_Simple_Initialization): Similar to other tags,
5950         interface tags do not need initialization.
5951         (Freeze_Record_Type): Modified to give support to abstract interface
5952         types.
5953         (Expand_N_Object_Declaration): Do not generate an initialization for
5954         a scalar temporary marked as internal.
5956         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
5957         in-out parameter that is a component in an initialization procedure,
5958         whose constraint might depend on discriminants, and that may be
5959         misaligned because of packing or representation clauses.
5960         (Is_Legal_Copy): New predicate to determine whether a possibly
5961         misaligned in-out actual can actually be passed by copy/return. This
5962         is an error in case the type is by_reference, and a warning if this is
5963         the consequence of a DEC import pragma on the subprogram.
5964         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
5965         interface types
5966         (Expand_Inlined_Call): Mark temporary generated for the return value as
5967         internal, so that no useless scalar normalization is generated for it.
5968         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
5969         null procedure can always be inlined.
5970         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
5971         procedure, generate an explicit empty body for it.
5973         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
5974         Given a type implementing an interface, returns the corresponding
5975         access_disp_table value.
5976         (Find_Interface_Tag): New subprogram. Given a type implementing an
5977         interface, returns the record component containing the tag of the
5978         interface.
5979         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
5980         previous ones that return the corresponding tag and access_disp_table
5981         entities.
5982         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
5983         is a predefined primitive operation.
5984         (Expand_Subtype_From_Expr): If the expression is a selected component
5985         within an initialization procedure, compute its actual subtype, because
5986         the component may depend on the discriminants of the enclosing record.
5988         * i-cpp.ads, i-cpp.adb:
5989         This package has been left available for compatibility with previous
5990         versions of the frontend. As part of the new layout this is now a
5991         dummy package that uses declarations available at a-tags.ads
5993         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
5994         "constant access" and "aliased [constant] access" when not compiling
5995         with -gnat05.
5996         Suppress Ada 2005 keyword warning if -gnatwY used
5997         (P_Identifier_Declarations): Add support for object declarations with
5998         access definitions.
5999         (Private_Extension_Declaration): Complete the documentation
6000         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
6001         attribute in case of private extension declaration
6002         (P_Type_Declaration): Mark as "abstract" the type declarations
6003         corresponding with protected, synchronized and task interfaces
6004         (P_Declarative_Items): "not" and "overriding" are overriding indicators
6005         for a subprogram or instance declaration.
6007         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
6008         instantiation that is a dispatching operation has controlling access
6009         parameters that are null excluding.
6010         Save and restore Ada_Version_Explicit, for implementation of AI-362
6011         (Validate_Derived_Type_Instance): Add check for abstract interface
6012         types.
6013         (Analyze_Formal_Package): Establish Instantiation source for the copy of
6014         the generic that is created to represent the formal package.
6015         (Analyze_Package_Instantiation): Instantiate body immediately if the
6016         package is a predefined unit that contains inlined subprograms, and
6017         we are compiling for a Configurable_Run_Time.
6018         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
6019         If the program has a null default, generate an empty body for it.
6021         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
6022         error message condition, null procedures are correctly detected now.
6023         (New_Overloaded_Entity): Bypass trivial overriding indicator check
6024         for subprograms in the context of protected types. Instead, the
6025         indicator is examined in Sem_Ch9 while analysing the subprogram
6026         declaration.
6027         (Check_Overriding_Indicator): Check consistency of overriding indicator
6028         on subprogram stubs as well.
6029         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
6030         the library level.
6031         (Analize_Subprogram_Specification): When analyzing a subprogram in which
6032         the type of the first formal is a concurrent type, replace this type
6033         by the corresponding record type.
6034         (Analyze_Subprogram_Body): Undo the previous work.
6035         (Analyze_Procedure_Call): If the call has the form Object.Op, the
6036         analysis of the prefix ends up analyzing the call itself, after which
6037         we are done.
6038         (Has_Interface_Formals): New subprogram subsidiary to analyze
6039         subprogram_specification that returns true if some non
6040         class-wide interface subprogram is found
6041         (New_Overloaded_Entity): Modified to give support to abstract
6042         interface types
6043         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
6044         access to subprograms must be recursive.
6045         (Is_Unchecked_Conversion): Improve the test that recognizes
6046         instantiations of Unchecked_Conversion, and allows them in bodies that
6047         are to be inlined by the front-end. When the body comes from an
6048         instantiation, a reference to Unchecked_Conversion will be an
6049         Expanded_Name, even though the body has not been analyzed yet.
6050         Replace Is_Overriding and Not_Overriding in subprogram_indication with
6051         Must_Override and Must_Not_Override, to better express intent of AI.
6052         (Analyze_Subprogram_Body): If an overriding indicator is given, check
6053         that it is consistent with the overrinding status of the subprogram
6054         at this point.
6055         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
6056         always inlined.
6057         If the subprogram is a null procedure, indicate that it does not need
6058         a completion.
6060         * sem_disp.adb (Check_Controlling_Type): Give support to entities
6061         available through limited-with clauses.
6062         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
6063         allowed as the last primitive of a tagged type if it has no previous
6064         spec.
6065         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
6066         to give support to abstract interface types
6068         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
6069         in the case where the target type is an anonymous access type of an
6070         object or component (that is, when Is_Local_Anonymous_Access is true).
6071         Prevent the special checks for conversions of access discriminants in
6072         the case where the discriminant belongs to a nonlimited type, since
6073         such discriminants have their accessibility level defined in the same
6074         way as a normal component of an anonymous access type.
6075         (Resolve_Allocator): When an allocator's designated type is a class-wide
6076         type, check that the accessibility level of type given in the
6077         allocator's expression or subtype indication is not statically deeper
6078         than the level of the allocator's access type.
6079         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
6080         name in a discriminant constraint of a record component.
6081         (Resolve_Explicit_Dereference): Do not check whether the type is
6082         incomplete when the dereference is a use of an access discriminant in
6083         an initialization procedure.
6084         (Resolve_Type_Conversion): Handle conversions to abstract interface
6085         types.
6086         (Valid_Tagged_Conversion): The conversion of a tagged type to an
6087         abstract interface type is always valid.
6088         (Valid_Conversion): Modified to give support to abstract interface types
6089         (Resolve_Actuals): Enable full error reporting on view conversions
6090         between unrelated by_reference array types.
6091         The rule for view conversions of arrays with aliased components is
6092         weakened in Ada 2005.
6093         Call to obsolescent subprogram is now considered to be a violation of
6094         pragma Restrictions (No_Obsolescent_Features).
6095         (Check_Direct_Boolean_Operator): If the boolean operation has been
6096         constant-folded, there is nothing to check.
6097         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
6098         check on possible violation of restriction No_Direct_Boolean_Operators
6099         until after expansion of operands, to prevent spurious errors when
6100         operation is constant-folded.
6102         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
6103         Has_Compatible_Type): Modified to give support to abstract interface
6104         types.
6105         (Interface_Present_In_Ancestor): New function to theck if some ancestor
6106         of a given type implements a given interface
6108         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
6109         prefix is a parameterless function that returns an access_to_procedure.
6110         (Transform_Object_Operation): Handle properly function calls of the
6111         form Obj.Op (X), which prior to analysis appear as indexed components.
6112         (Analyze_One_Call): Complete the error notification to help new Ada
6113         2005 users.
6114         (Analyze_Allocator): For an allocator without an initial value, where
6115         the designated type has a constrained partial view, a discriminant
6116         constraint is illegal.
6118 2005-06-14  Robert Dewar  <dewar@adacore.com>
6120         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
6121         do with treatment of Set_Col when positioned at end of line character.
6123 2005-06-14  Robert Dewar  <dewar@adacore.com>
6125         * atree.adb: (Elist*): Protect against uninitialized field
6127 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6129         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
6130         for an attribute reference that returns an access type.
6131         (Apply_Discriminant_Check): No need for check if (designated) type has
6132         constrained partial view.
6134         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
6135         both bound checks, rather than a conjunction.
6136         (Insert_Valid_Check): If the expression is an actual that is an indexed
6137         component of a bit-packed array, force expansion of the packed element
6138         reference, because it is specifically inhibited elsewhere.
6140 2005-06-14  Vincent Celier  <celier@adacore.com>
6142         * clean.adb (Clean_Project): Correctly delete executable specified as
6143         absolute path names.
6145         * make.adb (Gnatmake): Allow relative executable path names with
6146         directory information even when project files are used.
6147         (Change_To_Object_Directory): Fail gracefully when unable to change
6148         current working directory to object directory of a project.
6149         (Gnatmake): Remove exception handler that could no longer be exercized
6150         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
6151         may be deallocated by Normalize_Arguments.
6152         (Collect_Arguments): Eliminate empty arguments
6154         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
6155         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
6156         (Check_Project): Return False when Project is No_Project. Return True
6157         when All_Projects is True.
6158         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
6159         All_Projects to True.
6160         Minor reformatting
6162 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6163             Javier Miranda  <miranda@adacore.com>
6164             Thomas Quinot  <quinot@adacore.com>
6165             Robert Dewar  <dewar@adacore.com>
6166             Hristian Kirtchev  <kirtchev@adacore.com>
6167             Gary Dismukes  <dismukes@adacore.com>
6169         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
6170         anonymous access types, to indicate that the accessibility level of
6171         the type is determined by that of the enclosing declaration.
6172         (Has_Persistent_BSS): New flag
6173         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
6174         of this attribute with functions.
6175         (Is_Primitive_Wrapper): Remove the barrier.
6176         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
6177         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
6178         New subprograms.
6179         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
6180         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
6181         New subprograms.
6182         (Is_Pure_Unit_Access_Type): New flag
6183         (Abstract_Interfaces): Complete the assertion to cover all usages.
6184         (Set_Is_Interface): Complete the assertion to cover all usages.
6185         (Is_Primitive_Wrapper): New attribute.
6186         (Is_Obsolescent): Now applies to all entities (though it is only set
6187         for subprograms currently)
6188         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
6189         which solves various problems concerning access subtypes.
6190         (Has_Persistent_BSS): New flag
6191         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
6192         Remove these subprograms because this attribute is currently
6193         not used.
6194         New entity flags:
6195         Has_Specified_Stream_Input (Flag190)
6196         Has_Specified_Stream_Output (Flag191)
6197         Has_Specified_Stream_Read (Flag192)
6198         Has_Specified_Stream_Write (Flag193)
6199         Present in all type and subtype entities. Set for a given view if the
6200         corresponding stream-oriented attribute has been defined by an
6201         attribute definition clause. When such a clause occurs, a TSS is set
6202         on the underlying full view; the flags are used to track visibility of
6203         the attribute definition clause for partial or incomplete views.
6204         (Is_Pure_Unit_Access_Type): New flag
6205         Clarify use of Is_Internal.
6206         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
6207         internally generated to wrap the invocation of tasks and protected
6208         types that implement interfaces.
6209         (Implementation_Base_Type): Documentation correction
6210         (Is_Obsolescent): Now applies to all entities (though it is only set
6211         for subprograms currently)
6212         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
6213         which solves various problems concerning access subtypes.
6215         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
6216         for examined parameters. Identify unequal parameter list lengths as
6217         non-conformant parameters.
6218         (Overriding_Possible): Do not check for "All" qualifier in declaration
6219         of controlling access parameter, following prescription of AI-404.
6220         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
6221         that build the procedure body that wraps an entry invocation
6222         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
6223         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6224         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
6225         give support to abstract interface types
6227         * freeze.adb (Freeze_Entity): Issue error message if
6228         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
6229         type has no storage pool (Ada 2005) AI-366.
6230         Also modified to give support to abstract interface types
6231         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
6232         Inline_Always pragma.
6234         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
6235         now begin an entry declaration.
6236         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
6237         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
6238         a subprogram declaration preceded by an overriding indicator.
6239         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
6240         declarations or subprogram declarations preceded by reserved words
6241         "not" or "overriding".
6242         (P_Entry_Declaration): Update comment. Parse and check overriding
6243         indicator, set semantic flags of entry declarations.
6244         (P_Task): New error message in case of private applied
6245         to a task type declaration.
6246         (P_Protected): New error message in case of private applied
6247         to a task type declaration.
6249         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
6250         in which the full view of a type implementing an interface is a
6251         concurrent type.
6252         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
6253         Declare_Inherited_Private_Subprograms): If an explicit operation
6254         overrides an operation that is inherited in the private part, mark the
6255         explicit one as overriding, to enable overriding indicator checks.
6256         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
6257         full view to partial view, to simplify handling in back-end.
6259         * sprint.adb: Print interface lists where needed: derived types,
6260         protected types, task types.
6261         output "is null" for null procedures. Part of implementation of
6263         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
6264         relaxation of rules for access types in pure, shared passive partitions.
6266         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
6267         first read discriminants into temporary objects, performing checks on
6268         the read values, then possibly performing discriminant checks on the
6269         actual (if it is constrained), and only finally reading the components
6270         into a constrained temporary object.
6271         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
6272         case of reading discriminants of a mutable record type to recognize
6273         the new form of the code generated by
6274         Build_Mutable_Record_Read_Procedure.
6276         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
6277         of a simple call to Make_TSS_Name.
6278         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
6279         buffer, in order for Is_TSS to work correctly on local TSS names.
6281         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
6282         Is_Local_Anonymous_Access to check legaliy of attributes in the
6283         context of  access components and stand-alone access objects.
6284         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
6285         treated as available for a limited private type if there is an
6286         attribute_definition_clause that applies to its full view, but not in
6287         other cases where the attribute is available for the full view
6288         (specifically, the sole fact that the full view is non-limited does not
6289         make the attribute available for the partial view).
6290         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
6291         non-overloaded intrinsic subprogram.
6292         (Check_Stream_Attribute): Reject an attribute reference for an
6293         unavailable stream attribute even if the prefix is not a limited type
6294         (case of a 'Input attribute reference for an abstract, non-classwide
6295         type)
6296         (Stream_Attribute_Available): New function to determine whether a stream
6297         attribute is available at a place.
6298         (Check_Attribute): Use Stream_Attribute_Available instead of just
6299         testing for TSS presence on the implementation base type.
6300         (Analyze_Attribute): Modified to give support to task interfaces.
6301         (Analyze_Access_Attribute): Add error check for use of an Access (or
6302         Unrestricted_Access) attribute with a subprogram marked as
6303         Inline_Always.
6304         (Analyze_Attribute, case Attribute_Address): Add error check for use of
6305         an Address attribute with a subprogram marked as Inline_Always.
6306         Update Eval_Attribute to handle new value of Width from AI-395
6308         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
6309         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
6310         Factor common code across the stream-oriented attribute circcuits into
6311         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
6312         processing is functionally identical to the previous duplicated one,
6313         except that an expression that denotes an abstract subprogram will now
6314         be rejected, as mandated by AI-195 item 5.
6316         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
6317         Is_Local_Anonymous_Access to apply accessibility checks to access
6318         components and stand-alone access objects.
6319         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
6320         elsewhere.
6321         (Is_Potentially_Persistent_Type): New function
6322         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
6323         a heap-object whose type has a constrained partial view, the object is
6324         unconstrained and the component may depend on a discriminant, making its
6325         renaming illegal.
6327         * sinfo.ads, sinfo.adb
6328         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
6329         (Must_Override): Flag applicable to N_Entry_Declaration.
6330         Indicate that interface_list can appear in single task and single
6331         protected declarations.
6332         Replace Is_Overriding and Not_Overriding with Must_Override and
6333         Must_Not_Override, to better express intent of AI.
6334         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
6335         of an overriding indicator in a subprogram or instance.
6336         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
6337         Add the overriding indicator [[not] overriding] construct to the
6338         following grammar productions:
6339          ENTRY_DECLARATION
6340          GENERIC_INSTANTIATION
6341          SUBPROGRAM_SPECIFICATION
6343         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
6344         can start with an overriding indicator.
6346         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
6347         flags accordingly on subrogram specifications or instances.
6349         * sem_ch8.adb:
6350         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
6351         overriding_indicator, if present, is consistent with status of spec.
6352         Improve error message for null-excluding checks on controlling access
6353         parameters.
6354         (Check_In_Previous_With_Clause): Protect the frontend against
6355         previously reported critical errors in the context clauses.
6356         Save and restore Ada_Version_Explicit, for implementation of AI-362
6357         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
6358         operation verify that controlling formals of the renamed entity that
6359         are access parameters are explicitly non-null.
6360         (Find_Expanded_Name): Improve error message when prefix is an illegal
6361         reference to a private child unit.
6363         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
6364         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
6365         Rewrite to correspond to new wide character names in AI-395
6367         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
6368         default procedures.
6370 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6371             Robert Dewar  <dewar@adacore.com>
6373         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
6374         code, not on the bodies of predefined operations, to cut down on
6375         spurious noise.
6377 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6379         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
6380         be expanded in place. The size computation does not require a
6381         subtraction, which would raise an exception on a compiler built with
6382         assertions when the upper bound is Integer'first.
6383         (Flatten): For an array of composite components, take into account the
6384         size of the components to determine whether it is safe to expand the
6385         array into a purely positional representation.
6387 2005-06-14  Thomas Quinot  <quinot@adacore.com>
6389         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
6390         denoting a formal parameter into account.
6392 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6394         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
6395         the entry_call alternative of a conditional entry call, wrap the
6396         conditional entry call itself.
6398 2005-06-14  Nicolas Setton  <setton@adacore.com>
6399             Ed Schonberg  <schonberg@adacore.com>
6401         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
6402         the "simple_choice" member in a variant record, in accordance with the
6403         description in the package spec: the information output for a constant
6404         should be "S number", not "SS number".
6405         (Get_Encoded_Name): Return at once if not generating code. Avoids name
6406         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
6408 2005-06-14  Thomas Quinot  <quinot@adacore.com>
6410         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
6411         RACW without any primitives, do not generate the if statement for
6412         dispatching by name in the PolyORB/DSA case, as it would be malformed
6413         (it would have an Elsif_Parts list that is not No_List, but with a
6414         length of 0).
6416 2005-06-14  Robert Dewar  <dewar@adacore.com>
6418         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
6420 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
6422         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
6423         can determine whether pragma Suppress_Exception_Locations is in effect.
6425         * utils2.c (build_call_raise): Do not pass the file name to the
6426         exception handler if pragma Suppress_Exception_Locations is in effect.
6427         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
6429 2005-06-14  Emmanuel Briot  <briot@adacore.com>
6431         * g-debpoo.adb (Deallocate, Dereference): Improve output.
6433 2005-06-14  Nicolas Roche  <roche@adacore.com>
6435         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
6436         to ""
6437         (Next_Level): Fix minor bug in handling of ../dir case
6438         (Read): Add dir separator to Directory name so that "" is understood as
6439          "/"
6441 2005-06-14  Pascal Obry  <obry@adacore.com>
6443         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
6444         releasing the items.
6446 2005-06-14  Vincent Celier  <celier@adacore.com>
6447             Cyrille Comar  <comar@adacore.com>
6449         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
6450         with output file descriptor and with output file name.
6451         (Dup, Dup2): Now global procedures as they are used by two subprograms
6452         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
6454 2005-06-14  Thomas Quinot  <quinot@adacore.com>
6456         PR ada/6717
6458         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
6459         broadcast address.
6460         (Create_Selector): Bind listening socket used to create the signalling
6461         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
6462         Set listen backlog to 1 to ensure that we detect socket theft by a
6463         failure of our own connect(2) call.
6464         (Check_Selector): Improve documentation of the selector mechanism.
6465         (Broadcast_Inet_Addr): New constant.
6467 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
6469         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
6470         type which turns out to be an incomplete and incorrect fix.
6471         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
6472         of the type is declared in a record (for determination of insertion
6473         type).
6474         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
6475         a private type and ensure that the primary entity is used for the type
6476         of the newly created function's V formal by taking the Etype of the
6477         view.
6479 2005-06-14  Javier Miranda  <miranda@adacore.com>
6480             Jose Ruiz  <ruiz@adacore.com>
6481             Robert Dewar  <dewar@adacore.com>
6482             Ed Schonberg  <schonberg@adacore.com>
6484         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
6485         that indicates if we are parsing a compilation unit found in a
6486         limited-with clause.
6487         It is use to avoid the circularity check.
6489         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
6490         we are parsing a compilation unit found in a limited-with clause. This
6491         is use to avoid the circularity check.
6493         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
6494         unit as a consequence of parsing a limited-with clause. This is used
6495         to avoid the circularity check.
6497         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
6498         (Analyze_Context): Limited-with clauses are now allowed
6499         in more compilation units.
6500         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
6501         againts previously reported critical errors in context clauses
6502         (Install_Limited_Withed_Unit): Code cleanup plus static detection
6503         of two further errors: renamed subprograms and renamed packages
6504         are not allowed in limited with clauses.
6505         (Install_Siblings): Do not install private_with_clauses on the package
6506         declaration for a non-private child unit.
6507         (Re_Install_Parents): When a parent of the subunit is reinstalled,
6508         reset visibility of child units properly.
6509         (Install_Withed_Unit): When a child unit appears in a with_clause of its
6510         parent, it is immediately visible.
6512 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6513             Emmanuel Briot  <briot@adacore.com>
6515         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
6516         declared within an inlined body as referenced, to prevent spurious
6517         warnings.
6518         (Output_One_Ref): If an entity renames an array component, indicate in
6519         the ALI file that this aliases (renames) the array. Capture as well
6520         function renamings that rename predefined operations.
6521         Add information about generic parent for package and subprogram
6522         instances.
6523         (Get_Type_Reference): For a subtype that is the renaming of an actual in
6524         an instantiation, use the first_subtype to ensure that we don't generate
6525         cross-reference information for internal types.
6526         For objects and parameters of a generic private type, retain the '*'
6527         indicator to distinguish such an entity from its type.
6529         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
6530         to store information about instantiated entities.
6532         * ali.adb (Scan_ALI): Add support for parsing the reference to the
6533         generic parent
6535         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
6536         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
6537         information.
6539 2005-06-10  Doug Rupp  <rupp@adacore.com>
6540             Arnaud Charlet  <charlet@adacore.com>
6541             Olivier Hainque  <hainque@adacore.com>
6542             Jose Ruiz  <ruiz@adacore.com>
6544         * Make-lang.in: Add initialize.o when needed.
6545         Remove obsolete references to RT_FLAGS.
6546         Add missing dependencies for sdefault.o
6548         * initialize.c: New file.
6550         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
6551         [VMS] cond_signal_table: Fix problem in declaration.
6552         [VMS] __gnat_error_handler: rewrite.
6553         Move all __gnat_initialize() routines to initialize.c
6554         Specialize the former "hpux" section to "hppa hpux", as this is what the
6555         section really is here for and we now have other hpux ports that need
6556         different contents.
6557         (__gnat_adjust_context_for_raise) i386-linux: First version of this
6558         function for this target. Adjust PC by one in the machine context. This
6559         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
6560         it is more reliable to do that in the signal handler itself.
6561         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
6562         flags, so that the handler is passed the context structure to adjust
6563         prior to the raise.
6564         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
6565         SA_SIGINFO sigaction should look like. Call
6566         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
6567         Machine_State_Operations stuff.
6568         Add conditional code so that the x86_64 is also supported.
6570 2005-06-14  Pascal Obry  <obry@adacore.com>
6572         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
6573         the library name.
6575 2005-06-14  Robert Dewar  <dewar@adacore.com>
6577         * opt.ads, opt.adb: New flags for persistent_bss mode
6578         Add Ada_Version_Explicit, for implementation of AI-362
6579         Add Assertions_Enabled_Config and associated handling
6580         Needed since setting can be changed with Assertion_Policy pragma
6581         Add new flag Warn_On_Ada_2005_Compatibility
6583         * switch-c.adb: Recognize -gnatwy/Y
6584         Set Ada_Version_Explicit, for implementation of AI-362
6585         The -gnatg switch now includes -gnatyu
6587         * usage.adb: Add -gnatwy/Y
6588         Remove wrong asterisk on -gnatwX line
6589         Add line for -gnatyu switch
6591 2005-06-14  Vincent Celier  <celier@adacore.com>
6593         * osint.adb (Add_Default_Search_Dirs): Put source and object
6594         directories of project files before directories coming from
6595         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
6597 2005-06-14  Robert Dewar  <dewar@adacore.com>
6599         PR ada/15613
6601         * par-ch2.adb (Scan_Pragma_Argument): New procedure
6602         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
6604 2005-06-14  Vincent Celier  <celier@adacore.com>
6606         * prep.adb (Preprocess): Ignore error when scanning the first token of
6607         a line.
6609 2005-06-14  Vincent Celier  <celier@adacore.com>
6611         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
6612         (Check_Stand_Alone_Library): If the specified reference symbol file does
6613         not exist, only issue a warning when the symbol policy is not
6614         Controlled. And, when symbol policy is Compliant, set the symbol
6615         policy to Autonomous.
6617 2005-06-14  Vincent Celier  <celier@adacore.com>
6619         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
6620         when the project file in a with clause is not the last one, that is the
6621         project file name is followed by a comma.
6622         * prj-pp.adb: (First_With_In_List): New Boolean global variable
6623         (Print): Issue list of project files separated by commas in with clauses
6624         according to the values returned by Is_Not_Last_In_List.
6625         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
6626         (Set_Is_Not_Last_In_List): New procedure
6628 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
6630         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
6632 2005-06-14  Robert Dewar  <dewar@adacore.com>
6634         * scng.adb: Add call to new Check_EOF routine
6635         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
6636         Add some comments regarding wide character handling
6638         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
6640         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
6642         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
6643         characters are now considered graphic characters and hence yield false
6644         in this call.
6646         * nmake.adt: Modify header so that xnmake does not generate output
6647         files with multiple blank lines.
6649         * treeprs.adt: Remove a blank line so that output from xtreeprs does
6650         not have an extra blank line
6652 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
6654         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
6655         expression when the component type is an anonymous access type to
6656         ensure that appropriate accessibility checks are done.
6658         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
6659         expression of an assignment when the target object is of an anonymous
6660         access type. This ensures that required accessibility checks are done.
6661         (One_Bound): Move the check for type Universal_Integer to
6662         Process_Bounds.
6663         (Process_Bounds): Check whether the type of the preanalyzed range is
6664         Universal_Integer, and in that case set Typ to Integer_Type prior
6665         to setting the type of the original range and the calls to One_Bound.
6667 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6669         * sem_case.adb (Expand_Others_Choice): Improve warning.
6671 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6673         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
6674         constraint of full view if present, when other type is discriminated.
6675         (Eval_Relational_Op): Recognize tests of pointer values against Null,
6676         when the pointer is known to be non-null, and emit appropriate warning.
6678 2005-06-14  Robert Dewar  <dewar@adacore.com>
6679             Ed Schonberg  <schonberg@adacore.com>
6681         PR ada/10671
6683         * sem_prag.adb: Implement pragma Persistent_BSS
6684         Remove obsolete pragma Persistent_Data, Persistent_Object
6685         Set Ada_Version_Explicit, for implementation of AI-362
6686         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
6687         Add processing for pragma Pure_05 and Preelaborate_05
6688         Add processing for Assertion_Policy pragma
6689         Add pragma identifiers for Assert
6690         (Analyze_Pragma, case Assert): Check number of arguments
6691         (Process_Inline): Additional guard against an illegal program, where the
6692         argument of the pragma is undefined, and warnings on redundant
6693         constructs are enabled.
6694         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
6695         Ada_05 to this pragma, specifying that the pragma is only active in
6696         Ada_05 mode.
6697         (Check_Arg_Order): New procedure
6698         Add appropriate calls to this procedure throughout
6699         Also throughout, check entity name before doing any other checks
6701         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
6702         Remove obsolete pragma Persistent_Data, Persistent_Object
6703         Add entries for pragma Pure_05 and Preelaborate_05
6704         Add entries for Assertion_Policy pragma and associated names
6705         Add some names for pragma argument processing
6707         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
6709 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
6711         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
6712         appears within a negation (either from source or as a rewriting of
6713         inequality) adjust text of warning accordingly.
6715 2005-06-14  Thomas Quinot  <quinot@adacore.com>
6717         * s-strxdr.adb: Follow AI95-00132
6719 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
6721         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
6723 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
6724             Jose Ruiz  <ruiz@adacore.com>
6726         * s-tposen.adb, s-tpobop.adb
6727         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
6728         the exception id.
6729         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
6730         there is no violation of the Max_Entry_Queue_Length restriction (if it
6731         has been set); Program_Error is raised otherwise.
6732         (Requeue_Call): Before requeuing the task on the target entry queue we
6733         check that there is no violation of the Max_Entry_Queue_Length
6734         restriction (if it has been set); Program_Error is raised otherwise.
6736 2005-06-14  Robert Dewar  <dewar@adacore.com>
6738         * styleg.adb: Fix several remaining problems in -gnatyu switch
6739         Blank line count not reset at start
6740         Scanning outside source buffer in some cases
6741         Confusing message for blanks at end of file
6742         Non-empty blank lines not recognized
6744         * nmake.adt: Modify header so that xnmake does not generate output
6745         files with multiple blank lines.
6747         * treeprs.adt: Remove a blank line so that output from xtreeprs does
6748         not have an extra blank line
6750 2005-06-14  Sergey Rybin  <rybin@adacore.com>
6752         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
6754 2005-06-14  Doug Rupp  <rupp@adacore.com>
6755             Vincent Celier  <celier@adacore.com>
6757         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
6758         Update copyright.
6760         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
6761         Remove "Library" command.
6762         Change keyword for style check -gnatyd from NOCRLF to
6763         DOS_LINE_ENDINGS.
6764         Remove useless second style check keyword NONE
6765         Remove help documentation for inexistent style check keyword
6766         RM_COLUMN_LAYOUT.
6767         Add help documentation for style check keywords DOS_LINE_ENDINGS,
6768         UNNECESSARY_BLANK_LINES and XTRA_PARENS
6769         Add UNNECESSARY_BLANK_LINES for -gnatyu
6770         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
6772         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
6774 2005-06-14  Vincent Celier  <celier@adacore.com>
6776         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
6777         gprmake was invoked with -d.
6778         (Compile_Sources): If -d was used, output the "completed ..." message
6779         for each compilation.
6780         (Scan_Arg): Recognize new switch -d
6781         When -c and at least one main is specified, set
6782         Unique_Compile to True to guarantee that no other sources will be
6783         compiled.
6785 2005-06-14  Matthew Heaney  <heaney@adacore.com>
6787         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
6788         * a-swuwha.ads, a-swuwha.adb: New files
6790         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
6791         * a-szuzha.ads, a-szuzha.adb: New files.
6793         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
6794         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
6795         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
6796         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6797         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
6798         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
6799         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
6800         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
6801         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
6802         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
6803         Ada 2005 RM.
6805 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
6806             Olivier Hainque  <hainque@adacore.com>
6807             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6808             Pascal Obry  <obry@adacore.com>
6810         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
6812         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
6813         making a temporary around a procedure call because of non-addressable
6814         actual parameter.
6815         (process_freeze_entity): If entity is a private type, capture size
6816         information that may have been computed for the full view.
6817         (tree_transform, case N_Allocator): If have initializing expression,
6818         check type for Has_Constrained_Partial_View and pass that to
6819         build_allocator.
6820         (tree_transform, case N_Return_Statement): Pass extra arg to
6821         build_allocator.
6823         * decl.c (annotate_value): Remove early return if -gnatR is not
6824         specified.
6825         (gnat_to_gnu_field): Don't make a packable type for a component clause
6826         if the position is byte aligned, the field is aliased, and the clause
6827         size isn't a multiple of the packable alignment. It serves no useful
6828         purpose packing-wise and would be rejected later on.
6829         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
6831         PR ada/20515
6832         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
6833         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
6834         instead.
6835         (create_concat_name): Idem.
6837 2005-06-10  Robert Dewar  <dewar@adacore.com>
6838             Eric Botcazou  <ebotcazou@adacore.com>
6839             Ben Brosgol  <brosgol@adacore.com>
6840             Cyrille Comar  <comar@adacore.com>
6841             Sergey Rybin  <rybin@adacore.com>
6842             Pascal Obry  <obry@adacore.com>
6844         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
6845         Document second argument (Ada_05) of pragma Obsolescent
6846         Add note that call to subprogram marked with pragma Obsolescent
6847         is now considered to be a violation of program Restrictions
6848         (No_Obsolescent_Features).
6849         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
6850         that only machine-dependent attributes are supported.
6852         * gnat_ugn.texi:
6853         Commented out menu lines and empty section for gnatclean examples
6854         Document -gnatwy/Y
6855         Fix some over long lines
6856         Clarify and enhance documentation of ADA_PROJECT_PATH.
6857         Rework section 2.11.2(3) about linking with a non-GNU compiler.
6858         Mention new switch -fcallgraph-info.
6859         Mention new switch -fstack-usage.
6860         For gnatpp, replace '-notab' with '-N' and add this option to Index
6861         Corrected VMS example.
6862         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
6863         Minor reformatting
6864         Add documentation for -gnatyu switch (unnecessary blank lines)
6865         Document new switch -U for GNAT PRETTY and GNAT METRIC
6866         Add note about Stdcall being handled as C convention on non Windows OS.
6867         Remove some junk typo in description of gnatbind -S switch
6868         Remove reference to Extensions_Allowed pragma
6869         Document the new order of the directories to be searched (source and
6870         object directories of project files before directories in ADA_*_PATH
6871         environment variables.
6873         * g-trasym.ads: Document that IRIX is supported
6875 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
6877         * Makefile.in: Add initialize.o when needed.
6878         Adapt to new VMS package body Symbols and subunits
6879         No specialized version of a-sytaco is needed for VxWorks.
6881         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
6882         * a-zchara.ads, a-widcha.ads: New files.
6884         * system-hpux-ia64.ads: New file.
6886         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
6887         is imported from the VxWorks kernel.
6889 2005-06-14  Robert Dewar  <dewar@adacore.com>
6891         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
6892         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
6893         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
6894         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
6895         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
6896         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
6897         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
6898         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
6899         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
6900         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
6901         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
6902         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
6904 2005-06-14  Thomas Quinot  <quinot@adacore.com>
6906         * xeinfo.adb: Fix typo in comment
6908 2005-06-14  Javier Miranda  <miranda@adacore.com>
6910         * repinfo.ads: Fix typo in comment
6912 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
6914         * s-finimp.adb (Parent_Tag): Delete this imported function (function
6915         Parent_Tag is now in the visible part of Ada.Tags).
6916         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
6917         using imported function.
6919 2005-06-14  Bernard Banner  <banner@adacore.com>
6921         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
6922         also apply for handling support for VxSim 653.
6924 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
6926         * xsnames.adb: Add automatic generation of snames.h.
6928 2005-06-14  Thomas Quinot  <quinot@adacore.com>
6930         * gen-soccon.c: Add IP_MULTICAST_IF constant
6931         Minor reformatting and adjustments to prevent warnings.
6933 2005-06-14  Pascal Obry  <obry@adacore.com>
6935         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
6937 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
6939         * trans.c (gnat_gimplify_expr): Call
6940         recompute_tree_invarant_for_addr_expr when we change
6941         the operand of the ADDR_EXPR.
6943 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6945         * misc.c: Don't include errors.h.
6947 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6949         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
6951 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
6953         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
6954         comment typos.
6955         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
6957 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
6959         PR ada/20270
6960         * Makefile.in: Make TGT_LIB behave correctly.
6962 2005-04-23  DJ Delorie  <dj@redhat.com>
6964         * misc.c: Adjust warning() callers.
6966 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
6968         PR ada/18847
6969         * a-nudira.adb (Value): Check for valid string.
6970         * a-nuflra.adb (Value): Likewise.
6972 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
6974         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
6976 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
6978         * adaint.c, init.c, tracebak.c: Fix comment typos.
6979         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
6981 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
6982             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6984         * Makefile.in: Add make ifeq define for hppa linux tasking support.
6985         * system-hpux.ads: Define Signed_Zeros to be True.
6986         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
6988 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
6990         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
6991         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
6992         typos.
6994 2005-03-30  Tom Tromey  <tromey@redhat.com>
6996         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
6998 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7000         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
7002 2005-03-29  Robert Dewar  <dewar@adacore.com>
7004         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
7005         fixed-point expression has value that is not a multiple of the Small
7006         value.
7008         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
7010         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
7011         nanoseconds.
7013         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
7015 2005-03-29  Vincent Celier  <celier@adacore.com>
7017         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
7018         (Build_Dynamic_Library.Version_String): Return the empty string when
7019         Lib_Version is empty or when the symbol policy is not Autonomous.
7021         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
7022         a symbol is not in the reference symbol file, increase the Major ID
7023         and set the Minor ID to 0.
7024         Use gsmatch=lequal instead of gsmatch=equal
7026 2005-03-29  Doug Rupp  <rupp@adacore.com>
7028         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
7029         name and translate.
7031 2005-03-29  Javier Miranda  <miranda@adacore.com>
7033         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
7034         (Inherit_DT): The first formal has been redefined as a Tag.
7035         This allows us the removal of the subprogram Get_TSD.
7036         (TSD): Replace the call to Get_TSD by the actual code.
7038         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
7039         (Make_DT): Upgrade the call to Inherit_TSD according to the
7040         new interface: the first formal is now a Tag.
7042         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
7043         redefined as a Tag.
7044         This change allows us to remove the subprogram Get_TSD.
7045         (CPP_Get_TSD): Subprogram removed.
7046         (TSD): Replace the call to CPP_Get_TSD by the actual code.
7048         * rtsfind.ads: Remove support to call the run-time
7049         subprogram Get_TSD
7051 2005-03-29  Robert Dewar  <dewar@adacore.com>
7053         * errutil.adb, errout.adb:
7054         Minor comment updates on Line_Terminator references
7056         * par-ch10.adb: Add ??? comment about line terminator
7058         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
7059         (check dos line terminator).
7060         (Check_Line_Max_Length): New procedure, split off from the existing
7061         Check_Line_Terminator routine. Separating this out allows -gnatyf to
7062         be properly recognized.
7064         * styleg.adb: Add ??? comment for line terminator reference
7066         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
7067         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
7069         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
7070         (check dos line terminator).
7071         (Check_Line_Max_Length): New procedure, split off from the existing
7072         Check_Line_Terminator routine. Separating this out allows -gnatyf to
7073         be properly recognized.
7075         * stylesw.ads, stylesw.adb:
7076         Add handling for new -gnatyd switch (check dos line terminator)
7078         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
7079         Recognize -gnatwb/-gnatwB switches
7080         Include Warn_On_Bad_Fixed_Value for -gnatg
7082         * usage.adb:
7083         Add line for new -gnatyd switch (check dos line terminator)
7085         * usage.adb: Add lines for -gnatwb/-gnatwB
7087         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
7089         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
7091         * gnat_ugn.texi: Fix overlong lines
7092         Document new -gnatyd switch
7093         Document new -gnatwb/-gnatwB switches
7095 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
7097         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
7098         order to retrieve the component list of the type, before examining
7099         individual components.
7101         * sem_type.adb (Covers): Types are compatible if one is the base type
7102         of the other, even though their base types might differ when private
7103         views are involved.
7105 2005-03-29  Thomas Quinot  <quinot@adacore.com>
7107         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
7108         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
7109         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
7110         analyzed if expansion is disabled (which could otherwise cause spurious
7111         error messages if expansion has been disabled due to previous
7112         (unrelated) errors).
7114         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
7115         is disabled, the entity denoted by the argument is the access type
7116         itself, not an underlying record type, so there is no need to go back
7117         to the Corresponding_Remote_Type.
7119 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
7120             Robert Dewar  <dewar@adacore.com>
7122         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
7123         expand a call to an instance of
7124         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
7125         Constructor actual of the instance. A class-wide membership
7126         check is also generated, to ensure that the tag passed to the instance
7127         denotes a type in the class.
7128         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
7129         of Name_Generic_Dispatching_Constructor.
7131         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
7132         05 unit for AI-260-02).
7134         * a-tgdico.ads: New file.
7136         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
7137         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
7139         * snames.ads, snames.adb (Preset_Names): Add entry for
7140         Generic_Dispatching_Constructor.
7142         PR ada/20300
7144         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
7145         character type cases.
7146         (Analyze_Subprogram_Renaming): Add special handling for
7147         the case of renaming of stream attributes when the renaming denotes a
7148         generic formal subprogram association for an abstract formal subprogram.
7149         Check that the attribute is a primitive stream attribute (and not
7150         a class-wide stream attribute) and then rewrite the attribute name
7151         as the name of the appropriate compiler-generated stream primitive.
7153 2005-03-29  Robert Dewar  <dewar@adacore.com>
7155         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
7156         recursive calls.
7157         (Is_Possibly_Unaligned_Object): Correct typo that
7158         resulted in inaccurate result for unaligned scalars within records.
7160 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
7162         * freeze.adb (Freeze_Record_Type): If the type of the component is an
7163         itype whose parent is controlled and not yet frozen, do not create a
7164         freeze node for the itype if expansion is disabled.
7166 2005-03-29  Vincent Celier  <celier@adacore.com>
7168         * make.adb (Gnatmake): Don't fail if the main project file is declared
7169         as having no Ada sources. Do not display message "no sources to
7170         compile" in quiet output.
7172 2005-03-29  Doug Rupp  <rupp@adacore.com>
7174         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
7175         extra tools.
7177 2005-03-29  Robert Dewar  <dewar@adacore.com>
7179         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
7180         child.
7182 2005-03-29  Robert Dewar  <dewar@adacore.com>
7184         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
7185         missing TYPE Improve the error message generated when compiling a
7186         limited interface in Ada83 or Ada95 mode.
7188 2005-03-29  Robert Dewar  <dewar@adacore.com>
7190         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
7191         rather than proceed ahead using a junk attribute name.
7193 2005-03-29  Vincent Celier  <celier@adacore.com>
7195         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
7197         * prj-part.adb (Parse_Single_Project): Set the location of a project
7198         on its defining identifier, rather than on the reserved word "project".
7200         * prj-proc.adb (Expression): Adapt to the fact that default of external
7201         references may be string expressions, not always literal strings.
7202         (Recursive_Process): Set Display_Name equal to Name
7203         when Location is No_Location, that is when there is no actual file.
7204         Get the Display_Name of the project from the source, when it is not a
7205         virtual project.
7206         (Process): Use the Display_Name in error messages
7208         * prj-strt.adb (External_Reference): Allow default to be string
7209         expressions, not only literal strings.
7211 2005-03-29  Vincent Celier  <celier@adacore.com>
7213         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
7214         file and the reference symbol file to be the same file.
7216 2005-03-29  Thomas Quinot  <quinot@adacore.com>
7218         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
7219         forbid conversion of a local access-to-subprogram type to a remote one.
7221         * sem_util.adb (Wrong_Type): For a record type that is the expanded
7222         equivalent type for a remote access-to-subprogram type, go back to the
7223         original RAS entity when displaying an error message, so the casing is
7224         the original source casing.
7226 2005-03-29  Robert Dewar  <dewar@adacore.com>
7228         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
7229         on param update.
7231 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
7233         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
7234         subtype if code is being pre-analyzed, to prevent un-expanded
7235         references to protected formals, among others.
7236         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
7237         interpretation that can be a call, include the result of the call as a
7238         possible interpretation of the dereference.
7240         * sem_ch5.adb (Process_Bounds): Determine type of range by
7241         pre-analyzing a copy of the original range, and then analyze the range
7242         with the expected type.
7244         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
7245         with an overloaded prefix where not all interpretations yield an
7246         access to subprogram, do not rewrite node as a call.
7247         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
7248         the node as a call once the context identifies the interpretation of
7249         the prefix whose call yields the context type.
7250         (Valid_Conversion): For the case of a conversion between
7251         local access-to-subprogram types, check subtype conformance using
7252         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
7253         detailed error message.
7255 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
7257         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
7258         indicator, indicate that the formal can never be null.
7259         (Process_Formals): If a formal has a non_null indicator, insert the
7260         resulting subtype immediately before the enclosing subprogram decl,
7261         and not at the beginning of the corresponding declarative part, to
7262         prevent access before elaboration (Ada2005).
7264 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7266         PR ada/19956
7267         * utils.c (finish_record_type): Use variable_size when setting sizes.
7269 2005-03-29  Robert Dewar  <dewar@adacore.com>
7271         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
7272         guarantee Unix style line terminators for the output files, even when
7273         running on windows.
7275 2005-03-29  Robert Dewar  <dewar@adacore.com>
7277         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
7278         buffer if an exception is raised.
7280 2005-03-29  Ed Falis  <falis@adacore.com>
7282         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
7283         VxWorks 653 1.4
7285 2005-03-29  Robert Dewar  <dewar@adacore.com>
7287         * sem_util.ads: Minor reformatting
7288         * gnat_rm.texi: Minor editing.
7290 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
7292         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
7293         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
7295 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7297         * adaint.c (__gnat_portable_spawn): Adjust cast.
7299 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
7301         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
7303 2005-03-17  Pascal Obry  <obry@adacore.com>
7305         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
7306         used.
7308         * expect.c (__gnat_waitpid): Moved here from adaint.c.
7309         Reimplement under Win32 using Win32 API.
7311         (__gnat_kill) [Win32]: Properly close the process handle before leaving
7312         this routine.
7314 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
7316         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
7317         (DECL_RENAMED_OBJECT): New accessor macro.
7318         (SET_DECL_RENAMED_OBJECT): New setter macro.
7320         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
7321         object in all cases.  Attach the renamed object to the VAR_DECL.
7322         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
7323         field is not prescribed.
7325         * misc.c (gnat_handle_option): Handle -gnatO separately.
7326         (gnat_print_decl) <VAR_DECL>: New case.
7327         Print the DECL_RENAMED_OBJECT node.
7329         * lang.opt:  Declare separate -gnatO option.
7331         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
7332         pointer, replace it with the renamed object.
7333         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
7334         pointer type if the source is not a fat pointer type whose underlying
7335         array has the same non-zero alias set as that of the destination array.
7337 2005-03-17  Javier Miranda  <miranda@adacore.com>
7339         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
7340         (Get_Inheritance_Depth): Removed.
7341         (Set_Inheritance_Depth): Removed.
7343         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
7344         subprogram Get_Expanded_Name because it is not referenced by the
7345         frontend.
7347         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
7348         (CPP_Get_Inheritance_Depth): Removed.
7349         (CPP_Set_Inheritance_Depth): Removed.
7351         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
7353 2005-03-17  Robert Dewar  <dewar@adacore.com>
7355         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
7356         3, since we now expect GCC 3 to do all the work.
7358 2005-03-17  Javier Miranda  <miranda@adacore.com>
7360         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
7361         of one barrier to avoid wrong usage of this attribute.
7363         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
7364         First_Private_Entity.
7366         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
7367         the subprogram against wrong usage.
7368         Adapt the code to traverse the entities in the
7369         scope of a record_type because in addition to its usage regarding
7370         packages, this subprogram is also called by Expand_N_Freeze_Entity
7371         to install the visible declarations of the enclosing scope of a
7372         record_type_with_private to establish the proper visibility before
7373         freezing the entity and related subprograms.
7375 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
7377         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
7378         entry formals.
7380 2005-03-17  Thomas Quinot  <quinot@adacore.com>
7382         * exp_ch3.adb (Check_Attr): New subprogram.
7383         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
7384         into a new Check_Attr subprogram, in order to provide a more
7385         explanatory error message (including the name of the missing attribute).
7386         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
7387         subprogram determines whether a default implementation exists for a
7388         given stream attribute.
7389         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
7390         Determine whether to generate a default implementation for each stream
7391         attribute separately, as this depends on the specific attribute.
7393         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
7394         limited extension where a stream attribute is missing for a limited
7395         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
7396         generate a bogus reference to the missing attribute to prevent
7397         cascaded errors. Instead, generate a null statement.
7399         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
7400         available for a limited type if it has been specified for an ancestor
7401         of the type.
7403 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
7405         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
7406         entity is an operator.
7408 2005-03-17  Thomas Quinot  <quinot@adacore.com>
7410         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
7411         spec, to make this predicate available to other units.
7413         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
7414         reimplementing it.
7416         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
7417         when no distribution runtime library is available.
7419         * sem_res.adb, sem_dist.adb: Disable expansion of remote
7420         access-to-subprogram types when no distribution runtime library is
7421         available.
7422         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
7423         predicate available to other units.
7425         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
7426         spec, to make this predicate available to other units.
7428 2005-03-17  Vincent Celier  <celier@adacore.com>
7430         * make.adb (Insert_Project_Sources): Make sure the Q is always
7431         initialized.
7433         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
7434         the default for the tree, not the global default naming.
7436         * prj-proc.adb (Recursive_Process): No need to put the default naming
7437         in the project data, it's already there.
7439 2005-03-17  Doug Rupp  <rupp@adacore.com>
7441         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
7443         * 5xcrtl.ads: Renamed to...
7444         * s-crtl-vms64.ads: ...this new file
7446 2005-03-17  Robert Dewar  <dewar@adacore.com>
7448         PR ada/19519
7450         * namet.adb (Copy_One_Character): Set proper wide character encoding
7451         for upper half character if we have upper half encoding.
7453 2005-03-17  Robert Dewar  <dewar@adacore.com>
7455         * par.adb (Par): Improved msg for attempt to recompile predefined unit
7457 2005-03-17  Thomas Quinot  <quinot@adacore.com>
7459         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
7460         tagged limited type, the TSS is a newly built renaming declaration:
7461         insert it using Set_TSS, not Copy_TSS.
7463 2005-03-17  Javier Miranda  <miranda@adacore.com>
7465         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
7466         Try_Object_Operation): Analyze the object that is accessible
7467         through the prefix of the subprogram call before we apply
7468         the transformation of the object-operation notation.
7470 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
7472         * s-taprob.adb (Initialize_Protection): Initialize the protected
7473         object's owner to Null_Task.
7474         (Lock): If pragma Detect_Blocking is in effect and the caller of this
7475         procedure is already the protected object's owner then Program_Error
7476         is raised. In addition the protected object's owner is updated.
7477         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
7478         of this procedure is already the protected object's owner then
7479         Program_Error is raised.
7480         In addition the protected object's owner is updated.
7481         (Unlock): Remove the ownership of the protected object.
7483         * s-taprob.ads (Protection): Add the field Owner, used to store the
7484         protected object's owner.
7485         This component is needed for detecting one type of potentially blocking
7486         operations (external calls on a protected subprogram with the same
7487         target object as that of the protected action). Document the rest of
7488         the components.
7490         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
7491         Initialize the protected object's owner to Null_Task.
7492         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
7493         caller of this procedure is already the protected object's owner then
7494         Program_Error is raised.
7495         Do not raise Program_Error when this procedure is called from a
7496         protected action.
7497         (Unlock_Entries): Remove the ownership of the protected object.
7498         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
7499         of this procedure is already the protected object's owner then
7500         Program_Error is raised.
7501         Do not raise Program_Error when this procedure is called from
7502         a protected action.
7504         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
7505         used to store the protected object's owner.
7507         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
7508         effect and this procedure (a potentially blocking operation) is called
7509         from whithin a protected action, Program_Error is raised.
7510         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
7511         and this procedure (a potentially blocking operation) is called from
7512         whithin a protected action, Program_Error is raised.
7514 2005-03-17  Vincent Celier  <celier@adacore.com>
7515             Nicolas Setton  <setton@adacore.com>
7517         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
7518         switch, not supported by the linker on Darwin. Add '_' before
7519         <library>init, as this character is added unconditionally by the
7520         compiler.
7521         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
7522         correct one ".dylib". This fixes detection of the archive files when
7523         building library projects.
7525 2005-03-17  Vincent Celier  <celier@adacore.com>
7527         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
7528         -gnat83, -gnat95 and -gnat05.
7530 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
7532         * gnat_ugn.texi: Document gnatmem restriction
7534 2005-03-17  Thomas Quinot  <quinot@adacore.com>
7536         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
7537         cleanup
7539 2005-03-17  Robert Dewar  <dewar@adacore.com>
7541         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
7542         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
7543         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
7545         * casing.adb: Comment improvements
7547 2005-03-17  Pascal Obry  <obry@adacore.com>
7549         * g-expect.adb: Minor reformatting.
7551 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
7553         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
7554         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
7555         to dependencies.
7557 2005-03-15  Vincent Celier  <celier@adacore.com>
7559         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
7560         Add new parameter In_Tree to specify the project tree: needed
7561         by the project manager. Adapt to changes in project manager
7562         using new parameter In_Tree.
7564 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
7566         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
7567         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
7568         ada/bldtools to avoid make -jN failures.
7570 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
7572         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
7573         to NULL_TREE on entry.
7575 2005-03-15  Robert Dewar  <dewar@adacore.com>
7577         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
7578         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
7579         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
7580         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
7581         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7582         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
7583         system-interix.ads, system-solaris-sparc.ads,
7584         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
7585         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
7586         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7587         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
7588         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
7589         Compiler_System_Version to be False.
7591         * opt.ads: Add new flag Opt.Address_Is_Private
7593         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
7594         Add new parameter Compiler_System_Version to avoid checking for
7595         completeness of parameters when compiler is compiling itself.
7596         Allows old versions of GNAT to be compiled with new compiler.
7598 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
7600         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
7601         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
7602         calling thread.
7603         (Stack_Base_Available): New flag.
7604         (Get_Page_Size): New overloaded functions imported from C.
7605         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
7606         PROT_ON, PROT_OFF): New constants.
7607         (mprotect): New function imported from C.
7608         (pthread_teb_t): New record type.
7610         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
7611         (Create_Task): Account for the Yellow Zone and the guard page.
7613 2005-03-15  Vincent Celier  <celier@adacore.com>
7615         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7616         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7617         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
7618         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
7619         Library_File_Name_For): Add new parameter In_Tree
7620         to specify the project tree: needed by the project manager.
7621         Adapt to changes in project manager using new parameter In_Tree.
7622         Remove local imports, use functions in System.CRTL.
7624         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
7625         to use the project manager.
7627         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
7628         In_Tree to designate the project tree. Adapt to changes in the project
7629         manager, using In_Tree.
7631         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
7632         Copy_Interface_Sources): Add new parameter In_Tree to specify the
7633         project tree: needed by the project manager.
7634         (Build_Library): Check that Arg'Length >= 6 before checking if it
7635         contains "--RTS=...".
7637         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
7638         Library_File_Name_For): Add new parameter In_Tree to specify the
7639         project tree: needed by the project manager.
7641         * prj.ads, prj.adb: Major modifications to allow several project trees
7642         in memory at the same time.
7643         Change tables to dynamic tables and hash tables to dynamic hash
7644         tables. Move tables and hash tables from Prj.Com (in the visible part)
7645         and Prj.Env (in the private part). Move some constants from the visible
7646         part to the private part. Make other constants deferred.
7647         (Project_Empty): Make it a variable, not a function
7648         (Empty_Project): Add parameter Tree. Returns the data with the default
7649         naming data of the project tree Tree.
7650         (Initialize): After updating Std_Naming_Data, copy its value to the
7651         component Naming of Project Empty.
7652         (Register_Default_Naming_Scheme): Use and update the default naming
7653         component of the project tree, instead of the global variable
7654         Std_Naming_Data.
7655         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
7656         Tree is not defaulted, return the default naming data of the Tree.
7657         (Initial_Buffer_Size): Constant moved from private part
7658         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
7659         variables initialized in procedure Initialize.
7660         (Add_To_Buffer): Add two in out parameters to replace global variables
7661         Buffer and Buffer_Last.
7662         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
7663         functions.
7664         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
7665         hash tables.
7666         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
7667         for the project tree.
7668         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
7669         constant at the beginning of the package spec, so that they cane be used
7670         in subprograms before their full declarations.
7671         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
7672         (Empty_Project): Add parameter of type Project_Node_Ref
7673         (Private_Project_Tree_Data): Add component Default_Naming of type
7674         Naming_Data.
7675         (Buffer, Buffer_Last): remove global variables
7676         (Add_To_Buffer): Add two in out parameters to replace global variables
7677         Buffer and Buffer_Last.
7678         (Current_Packages_To_Check): Remove global variable
7679         (Empty_Name): Move to private part
7680         (No-Symbols): Make it a constant
7681         (Private_Project_Tree_Data): New type for the private part of the
7682         project tree data.
7683         (Project_Tree_Data): New type for the data of a project tree
7684         (Project_Tree_Ref): New type to designate a project tree
7685         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
7686         for the project tree.
7688         * prj-attr.ads: Add with Table; needed, as package Prj no longer
7689         imports package Table.
7691         * prj-com.adb: Remove empty, no longer needed body
7693         * prj-com.ads: Move most of the content of this package to package Prj.
7695         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
7696         designate the project node tree and Packages_To_Check to replace
7697         global variable Current_Packages_To_Check.
7698         Add new parameters In_Tree and Packages_To_Check to local subprograms,
7699         when needed. Adapt to changes in project manager with project node tree
7700         In_Tree.
7702         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
7703         project tree to most subprograms. Move tables and hash tables to
7704         private part of package Prj.
7705         Adapt to changes in project manager using project tree In_Tree.
7707         * prj-makr.adb (Tree): New constant to designate the project node tree
7708         Adapt to change in project manager using project node tree Tree
7710         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
7711         display the Library_Src_Dir and the Library_Dir.
7712         Add new parameter In_Tree to designate the project node tree to most
7713         subprograms. Adapt to changes in the project manager, using project tree
7714         In_Tree.
7715         (Check_Naming_Scheme): Do not alter the casing on platforms where
7716         the casing of file names is not significant.
7717         (Check): Add new parameter In_Tree to designate the
7719         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
7720         designate the project tree.
7721         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
7723         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
7724         to replace those that were in the private part of package Prj.
7725         Add new parameter In__Tree to designate the project node tree to most
7726         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
7727         (Post_Parse_Context_Clause): When specifying the project node of a with
7728         clause, indicate that it is a limited with only if there is "limited"
7729         in the with clause, not necessarily when In_Limited is True.
7730         (Parse): Add new parameter In_Tree to designate the project node tree
7732         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
7733         designate the project node tree. Adapt to change in Prj.Tree with
7734         project node tree In_Tree.
7736         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
7737         tree In_Tree in the call to function Empty_Process to give its initial
7738         value to the project data Processed_Data.
7739         Add new parameters In_Tree to designate the project tree and
7740         From_Project_Node_Tree to designate the project node tree to several
7741         subprograms. Adapt to change in project manager with project tree
7742         In_Tree and project node tree From_Project_Node_Tree.
7744         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
7745         to replace those that were in the private part of package Prj.
7746         Add new parameter In_Tree to designate the project node tree to most
7747         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
7749         * prj-tree.ads, prj-tree.adb: Add new parameter of type
7750         Project_Node_Tree_Ref to most subprograms.
7751         Use this new parameter to store project nodes in the designated project
7752         node tree.
7753         (Project_Node_Tree_Ref): New type to designate a project node tree
7754         (Tree_Private_Part): Change table to dynamic table and hash tables to
7755         dynamic hash tables.
7757         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
7758         the project tree to most subprograms. Adapt to changes in project
7759         manager using project tree In_Tree.
7761         * makegpr.adb (Project_Tree): New constant needed to use project
7762         manager.
7764 2005-03-15  Olivier Hainque  <hainque@adacore.com>
7766         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
7767         for sigactions with SA_SIGINFO set. Call
7768         __gnat_adjust_context_for_raise before raising, to perform the
7769         potentially required adjustments to the machine context for the GCC
7770         unwinder.
7772         * raise.h (__gnat_adjust_context_for_raise): New prototype.
7774         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
7775         Adjust PC by one in the provided machine context.
7776         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
7777         so that the handler is passed the context structure to adjust prior to
7778         the raise.
7779         (__gnat_error_handler) HPUX: Adjust the signature to match what an
7780         SA_SIGINFO sigaction should look like. Call
7781         __gnat_adjust_context_for_raise before actually raising.
7782         (__gnat_adjust_context_for_raise): Default noop to help PC
7783         adjustments before raise from signal handlers.
7784         (__gnat_error_handler): Indirectly call a predicate function to
7785         determine if a condition should be resignaled or not.
7786         (__gnat_set_resignal_predicate): User interface to modify the predicate.
7787         (__gnat_default_resignal_p): Default GNAT predicate.
7789 2005-03-15  Doug Rupp  <rupp@adacore.com>
7791         * adaint.c: Prefix #include of VMS system header files with vms/
7792         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
7793         Do not define a dummy function "convert_addresses" under Darwin,
7794         not needed.
7796         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
7797         with vms/
7799 2005-03-15  Nicolas Setton  <setton@adacore.com>
7801         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
7802         PPC/AIX.
7804 2005-03-15  Robert Dewar  <dewar@adacore.com>
7806         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
7807         AI-386.
7809         * a-retide.ads: Minor comment changes
7811 2005-03-15  Robert Dewar  <dewar@adacore.com>
7813         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
7814         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
7815         Realloc_For_Chunk to private part of package.
7816         New subprograms for AI-301
7818         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
7819         Get_Line procedure.
7820         Avoid unnecessary use of Get/Set_Wide_String
7822 2005-03-15  Robert Dewar  <dewar@adacore.com>
7824         PR ada/13470
7826         * a-stunau.ads, a-stunau.adb:
7827         Change interface to allow efficient (and correct) implementation
7828         The previous changes to allow extra space in unbounded strings had
7829         left this interface a bit broken.
7831         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
7833         * g-spipat.ads, g-spipat.adb: New interface for Get_String
7834         Minor reformatting (function specs)
7836         * g-spitbo.adb: New interface for Get_String
7838         * g-spitbo.ads: Minor reformatting
7840         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
7842         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
7844 2005-03-15  Javier Miranda  <miranda@adacore.com>
7845             Robert Dewar  <dewar@adacore.com>
7846             Thomas Quinot  <quinot@adacore.com>
7847             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7849         * atree.ads, atree.adb: Add support for Elist24 field
7851         * atree.h: Fix wrong definition of Field27
7852         Add support for Elist16 field
7853         Add support for Elist24 field
7855         * einfo.ads, einfo.adb (Abstract_Interfaces,
7856         Set_Abstract_Interfaces): New subprograms.
7857         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
7858         subprograms.
7859         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
7860         entities rather than a single node.
7861         (Is_Interface, Set_Is_Interface): New subprogram
7862         (First_Tag_Component): New syntesized attribute
7863         (Next_Tag_Component): New synthesized attribute
7864         (Write_Entity_Flags): Upgraded to write Is_Interface
7865         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
7866         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
7867         (Task_Body_Procedure): New subprogram to read this attribute.
7868         (Set_Task_Body_Procedure): New subprogram to set this attribute.
7869         (Has_Controlled_Component): Now applies to all entities.
7870         This is only a documentation change, since it always worked to apply
7871         this to other than composite types (yielding false), but now this is
7872         official.
7873         Update documentation on Must_Be_Byte_Aligned for new spec
7875         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
7876         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
7877         uses of the Access_Disp_Table attribute to reference the first dispatch
7878         table associated with a tagged type. As
7879         part of the implementation of abstract interface types,
7880         Access_Disp_Table has been redefined to contain a list of dispatch
7881         tables (rather than a single dispatch table).
7882         Similarly, upgrade all the references to Tag_Component by the
7883         new attribute First_Tag_Component.
7884         (Find_Inherited_TSS): Moved to exp_tss.
7885         Clean up test in Expand_N_Object_Declaration for cases
7886         where we need to do a separate assignment of the initial value.
7887         (Expand_N_Object_Declaration): If the expression in the
7888         declaration of a tagged type is an aggregate, no need to generate an
7889         additional tag assignment.
7890         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
7891         is to be deleted.
7892         Bit packed array ops are only called if operands are known to be
7893         aligned.
7894         (Component_Equality): When returning an N_Raise_Program_Error statement,
7895         ensure that its Etype is set to Empty to avoid confusing GIGI (which
7896         expects that only expressions have a bona fide type).
7897         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
7898         determine the amount of data to be copied.
7900         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
7901         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
7902             INTERFACE_TYPE_DEFINITION ::=
7903               [limited | task | protected | synchronized] interface
7904                 [AND interface_list]
7906         * par-ch3.adb (P_Type_Declaration): Modified to give support to
7907         interfaces.
7908         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
7909         interfaces.
7910         (P_Interface_Type_Definition): New subprogram that parses the new
7911         syntax rule of Ada 2005 interfaces
7912         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
7913         messages by the correct RENAMES (quotes removed).
7915         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
7916         attribute First_Tag_Component.
7918         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
7919         (Interface_List, Set_Interface_List): New subprograms.
7920         (Interface_Present, Set_Interface_Present): New subprograms.
7921         (Limited_Present, Set_Limited_Present): Available also in derived
7922         type definition nodes.
7923         (Protected_Present, Set_Protected_Present): Available also in
7924         record type definition and
7925         derived type definition nodes.
7926         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
7927         (Task_Present, Set_Task_Present): New subprogram.
7928         (Task_Body_Procedure): Removed.
7929         (Set_Task_Body_Procedure): Removed.
7930         These subprogram have been removed because the attribute
7931         Task_Body_Procedure has been moved to the corresponding task type
7932         or task subtype entity to leave a field free to store the list
7933         of interfaces implemented by a task (for AI-345)
7934         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
7935         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
7936         expression flag Do_Range_Check
7937         (Exception_Junk): Change to Flag7 to accomodate above change
7938         (Box_Present, Default_Name, Specification, Set_Box_Present,
7939         Set_Default_Name, Set_Specification): Expand the expression
7940         "X in N_Formal_Subprogram_Declaration" into the corresponding
7941         two comparisons. Required to use the csinfo tool.
7943         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
7944         "with string" given.
7946         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
7947         expression given.
7949         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
7950         in 2005 mode
7952         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
7953         attribute Task_Body_Procedure rather than the old semantic field that
7954         was available in the task_type_declaration node.
7956         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
7957         interface type definitions.
7958         (P_Formal_Derived_Type_Definition): Modified to handle the list of
7959         interfaces.
7961         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
7962         task type declaration.
7963         (P_Protected): Modified to handle the list of interfaces in a
7964         protected type declaration.
7966 2005-03-15  Doug Rupp  <rupp@adacore.com>
7967             Vincent Celier  <celier@adacore.com>
7969         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
7970         (Gen_Output_File_C): Likewise.
7971         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
7973 2005-03-15  Thomas Quinot  <quinot@adacore.com>
7975         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
7976         is an N_Raise_Constraint_Error node, create a new copy of it without
7977         going through a call to Duplicate_Subexpr.
7979 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
7980             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7981             Nicolas Setton  <setton@adacore.com>
7982             Ed Schonberg  <schonberg@adacore.com>
7984         PR ada/19900
7985         PR ada/19408
7986         PR ada/19140
7987         PR ada/20255
7989         * decl.c (gnat_to_gnu_field): Reject aliased components with a
7990         representation clause that prescribes a size not equal to the rounded
7991         size of their types.
7992         (gnat_to_gnu_entity, case E_Component): Always look at
7993         Original_Record_Component if Present and not the entity.
7994         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
7995         of tagged extension types by not making field for components that are
7996         inside the parent.
7997         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
7998         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
7999         expression to the type of the object when the object is constant.
8000         Reverse defer_debug_incomplete_list before traversing it, so that trees
8001         are processed in the order at which they were added to the list. This
8002         order is important when using the stabs debug format.
8003         If we are deferring the output of debug information, also defer this
8004         output for a function return type.
8005         When adding fields to a record, prevent emitting debug information
8006         for incomplete records, emit the information only when the record is
8007         complete.
8008         (components_to_record): New parameter defer_debug.
8009         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
8010         (gnat_to_gnu_field_decl): New function.
8011         (substitution_list, annotate_rep): Call it.
8012         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
8013         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
8014         No longer update discriminants to not be a COMPONENT_REF.
8015         (copy_alias_set): Strip padding from input type; also handle
8016         unconstrained arrays properly.
8018         * gigi.h (write_record_type_debug_info): New function.
8019         Convert to use ANSI-style prototypes. Remove unused
8020         declarations for emit_stack_check, elab_all_gnat and
8021         set_second_error_entity.
8022         (gnat_to_gnu_field_decl): New decl.
8024         * utils.c (write_record_type_debug_info): New function.
8025         (finish_record_type): Delegate generation of debug information to
8026         write_record_type_debug_info.
8027         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
8028         (update_pointer_to): Fix pasto.
8029         (convert) <UNION_TYPE>: Accept slight type variations when
8030         converting to an unchecked union type.
8032         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
8033         replace the N_Freeze_Entity with a null statement.
8035         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
8036         within a constrained subcomponent of an enclosing record, place the
8037         freeze nodes in the scope stack entry for the enclosing record.
8038         (Undelay_Type): New Subprogram.
8039         (Set_Small_Size): Pass T, the type to modify; all callers changed.
8040         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
8041         within records; allow them to have freeze nodes if their base types
8042         aren't frozen yet.
8044         * exp_util.adb (Remove_Side_Effects): Properly test for
8045         Expansion_Delayed and handle case when it's inside an
8046         N_Qualified_Expression.
8048         * sem_ch3.adb (Derived_Type_Declaration): New predicate
8049         Comes_From_Generic, to recognize accurately that the parent type in a
8050         derived type declaration can be traced back to a formal type, because
8051         it is one or is derived from one, or because its completion is derived
8052         from one.
8053         (Constrain_Component_Type): If component comes from source and has no
8054         explicit constraint, no need to constrain in in a subtype of the
8055         enclosing record.
8056         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
8057         Minor change to propagate Is_Ada_2005 flag
8059         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
8060         Expansion_Delayed is False.
8061         (assoc_to_constructor): Ignore fields that have a
8062         Corresponding_Discriminant.
8063         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
8064         function returns "by target", dereference the target pointer using the
8065         type of the actual return value.
8066         <all>: Be prepared for a null gnu_result.
8067         (processed_inline_subprograms): Check flag_really_no_inline
8068         instead of flag_no_inline.
8069         (set_second_error_entity): Remove unused function.
8070         (gnat_to_gnu, case N_Selected_Component): Call
8071         gnat_to_gnu_field_decl.
8072         (assoc_to_constructor): Likewise.
8074 2005-03-15  Robert Dewar  <dewar@adacore.com>
8075             Ed Schonberg  <schonberg@adacore.com>
8076             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8078         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
8079         Must_Be_Byte_Aligned for cases where we do not need to use a
8080         System.Pack_nn unit.
8082         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
8083         as procedures.
8084         Needed now that we do some processing for IN parameters as well. This
8085         may well fix some unrelated errors.
8086         (Expand_Call): Handle case of unaligned objects (in particular those
8087         that come from packed arrays).
8088         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
8089         renamed entity is an inherited operation, re-expand the call using the
8090         original operation, which is the one to call.
8091         Detect attempt to inline parameterless recursive subprogram.
8092         (Represented_As_Scalar): Fix to work properly with private types
8093         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
8094         accurate estimate. Yields True in far fewer cases than before,
8095         improving the quality of code that depends on this test.
8097         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
8098         over both visible and private declarations to remove them from tree,
8099         and mark subprograms declared in package as eliminated, to prevent
8100         spurious use in subsequent compilation of generic units in the context.
8102         * exp_util.ads: Minor cleanup in variable names
8104         * sem_eval.ads, sem_eval.adb: Minor reformatting
8105         (Compile_Time_Known_Bounds): New function
8107 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
8109         * exp_ch7.adb (Convert_View): Use base types of underlying types when
8110         determining whether an unchecked conversion is needed for the argument
8111         of an initialization call.
8113 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
8115         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
8116         that appears in the instantiation rather than the internal subtype
8117         generated in the wrapper package, to avoid anomalies in gigi when the
8118         target is derived from a private type whose full view is an access type.
8120 2005-03-15  Robert Dewar  <dewar@adacore.com>
8122         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
8123         not needed.
8124         Add documentation to replace the use of this flag
8125         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
8126         the x86_64.
8128 2005-03-15  Thomas Quinot  <quinot@adacore.com>
8130         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
8131         here from exp_attr so it can be shared between exp_attr and exp_dist.
8132         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
8133         all TSS names, not a subset thereof, and the previous name introduced
8134         an unnecessarily confusion that a distinction might exist between
8135         "OK" TSS names and some "not OK" TSS names.
8137 2005-03-15  Doug Rupp  <rupp@adacore.com>
8139         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
8140         Command_Name.
8142 2005-03-15  Pascal Obry  <obry@adacore.com>
8143             Eric Botcazou  <ebotcazou@adacore.com>
8145         PR ada/20226
8146         PR ada/20344
8148         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
8149         when IN_RTS. This is to work around a bootstrap path problem.
8151         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
8152         table and pass it to __gnat_install_SEH_handler().
8153         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
8155         * lang.opt: Fix specification of -fRTS=.
8157 2005-03-15  Doug Rupp  <rupp@adacore.com>
8158             Bernard Banner  <banner@adacore.com>
8159             Vincent Celier  <celier@adacore.com>
8160             Arnaud Charlet  <charlet@adacore.com>
8162         PR ada/6852
8163         This change works fine when gnatlib is built from the gcc directory,
8164         but does not work when using the libada Makefile, since GCC_FOR_TARGET
8165         is not passed to ada/Makefile.in, so more work is needed by a
8166         Makefile/configure expert.
8168         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
8169         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
8170         Setup gnatlink switch -M for x86_64 linux, as it is already setup
8171         for Linux x86.
8172         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
8173         Run ranlib on libgccprefix.a
8174         Define PREFIX_OBJS for Darwin, to build libgccprefix.
8175         (ADA_INCLUDE_SRCS): Split Ada packages.
8177 2005-03-15  Robert Dewar  <dewar@adacore.com>
8179         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
8181         * impunit.adb: Add GNAT.UTF_32
8183         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
8185         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
8186         now uses GNAT.UTF_32).
8188         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
8189         capabilities for categorizing characters using Unicode categories
8191 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
8193         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
8194         instantiation that has been rewritten as a package body, retrieve spec
8195         to generate proper name for implicit_with_clause.
8196         (Install_Parents): Recognize a parent that is an instantiation but has
8197         been rewritten as a package declaration during analysis.
8199 2005-03-15  Javier Miranda  <miranda@adacore.com>
8200             Ed Schonberg  <schonberg@adacore.com>
8202         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
8203         parameter reported some error we immediately return. This improves the
8204         behaviour of the frontend in case of errors.
8205         (Install_Parent, Remove_Parent): Introduce new flag
8206         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
8207         ancestor of a generic child unit, when the child is being instantiated.
8208         (Inline_Instance_Body): If we are compiling the private
8209         part or the body of a child unit, restore the proper visibility of the
8210         parents after compiling the instance body.
8212 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
8213             Javier Miranda  <miranda@adacore.com>
8215         PR ada/15608
8216         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
8217         of a private type, in which case it is underlying_type that denotes
8218         the proper task. Also modified to use the new entity attribute
8219         that is directly available in the task type and task subtype entities
8220         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
8221         arrays when other dimensions than the first are constrained by
8222         discriminants of an enclosing record.
8223         (Insert_Explicit_Dereference): If the prefix is an indexed component or
8224         a combination of indexed and selected components, find ultimate entity
8225         and generate the appropriate reference for it, to suppress spurious
8226         warnings.
8227         (Note_Possible_Modification): If an entity name has no entity, return.
8228         (Is_Variable): A function call never denotes a variable.
8229         (Requires_Transient_Scope): For record types, recurse only on
8230         components, not on internal subtypes that may have been generated for
8231         constrained components.
8233 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
8235         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
8236         Eliminated as candidates for resolution. Both efficient, and avoids
8237         anomalies with operators declared in deleted code.
8238         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
8239         expansion is disabled (as when compiling a generic) to prevent spurious
8240         warnings on prefixes of selected components.
8242 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
8244         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
8245         attached to a list before checking whether it appears in the private
8246         declarations of the current package.
8247         (Make_Inequality_Operator): Insert declaration in proper declarative
8248         list rather than just setting the Parent field, so that
8249         Is_Private_Declaration can handle it properly.
8251 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
8253         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
8254         a renaming a body, check that the renamed subprogram in not intrinsic.
8255         (Find_Direct_Name): If several use_visible entities hide
8256         each other, and the context is a predefined file compiled through
8257         rtsfind, keep only the entity that comes from a predefined file.
8259 2005-03-15  Geert Bosch  <bosch@adacore.com>
8261         * s-fatgen.adb (Valid): Extend special exceptions to account for long
8262         long float padding to also cover AMD64 and IA64.
8264 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
8266         * s-imgwch.adb: Add with and use of Interfaces.
8267         (Img_Wide_Character): Change type of Val to Unsigned_16.
8268         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
8270 2005-03-15  Matthew Gingell  <gingell@adacore.com>
8272         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
8274 2005-03-15  Robert Dewar  <dewar@adacore.com>
8276         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
8278         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
8280         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
8282 2005-03-15  Robert Dewar  <dewar@adacore.com>
8284         * s-bitops.adb, s-bitops.ads,
8285         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
8286         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
8287         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
8288         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
8289         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
8290         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
8291         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
8292         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
8293         reformatting.
8295 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
8297         * utils2.c (build_binary_op): Fix typo.
8299 2005-03-15  Doug Rupp  <rupp@adacore.com>
8301         * s-crtl.ads (popen,pclose): New imports.
8303 2005-03-15  Cyrille Comar  <comar@adacore.com>
8305         * comperr.adb (Compiler_Abort): remove references to obsolete
8306         procedures in the bug boxes for various GNAT builds.
8308 2005-03-15  Vincent Celier  <celier@adacore.com>
8310         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
8312 2005-03-15  Geert Bosch  <bosch@adacore.com>
8313             Arnaud Charlet  <charlet@adacore.com>
8314             Robert Dewar  <dewar@adacore.com>
8315             Cyrille Comar  <comar@adacore.com>
8316             Sergey Rybin  <rybin@adacore.com>
8318         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
8319         too specific and long-winded to be appropriate for the GNAT User's
8320         Guide.
8321         Warn about use of GCC switches not documented in the GNAT User's Guide,
8322         as these may cause generated code to not conform to Ada semantics.
8323         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
8324         Add documentation for -gnat95 and -gnat05 switches
8325         Remove paragraph documenting obsolete way to refer to third party
8326         libraries.
8327         Add a few references to Ada_05 that were missing.
8328         Update documentation on -gnatZ/-gnatL.
8329         Document limitation when using -m64 under Solaris.
8330         Change the "Name Casing" subsection of the pretty-printer section
8331         according to the changes in the dictionary processing.
8333         * gnat_rm.texi: Document the Ada_05 pragma.
8334         Section on record representation clauses describes the new more
8335         relaxed rules about placement of large packed bit array components.
8336         Add documentation of GNAT.UTF_32
8338 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
8340         * misc.c (gnat_post_options): Turn off structural
8341         aliasing for now.
8343 2005-03-08  Laurent Guerby <laurent@guerby.net>
8345         * system-linux-sparc.ads: Fix typo in previous commit.
8347 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
8348             Laurent Guerby <laurent@guerby.net>
8350         PR ada/20035
8351         * system-linux-sparc.ads: New.
8352         * Makefile.in: Add sparc linux entry.
8354 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
8356         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
8357         parameters as unused.
8359 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8360         Partial merge from libada-gnattools-branch:
8362         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
8363         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
8364         into code in gnattools/Makefile.in.  Remove direct dependencies on
8365         stamp-tools by tools clauses.
8366         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
8367         * config-lang.in: Add gnattools to $lang_dirs.
8369 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
8371         PR ada/19942
8372         * utils.c (gnat_type_for_mode): Return null instead of ICE because
8373         we asked for an unknown mode.
8375 2005-02-12  Richard Henderson  <rth@redhat.com>
8377         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
8378         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
8380 2005-02-10  Andreas Jaeger  <aj@suse.de>
8382         * init.c (__gnat_initialize): Mark parameter as unused.
8384 2005-02-09  Doug Rupp  <rupp@adacore.com>
8386         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
8387         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
8389 2005-02-09  Doug Rupp  <rupp@adacore.com>
8391         * gnatchop.adb (dup, dup2),
8392         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
8394         * gnatlbr.adb (mkdir),
8395         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
8397         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
8399 2005-02-09  Doug Rupp  <rupp@adacore.com>
8401         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
8403 2005-02-09  Robert Dewar  <dewar@adacore.com>
8404             Thomas Quinot  <quinot@adacore.com>
8405             Javier Miranda  <miranda@adacore.com>
8406             Pascal Obry  <obry@adacore.com>
8407             Ed Schonberg  <schonberg@adacore.com>
8408             Doug Rupp  <rupp@adacore.com>
8409             Gary Dismukes  <dismukes@adacore.com>
8410             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8412         * g-zstspl.ads: New file.
8414         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
8416         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
8417         Ada 95 mode
8418         Add definition of Wide_Wide_Space for AI-285
8420         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
8421         interface (to support Ada 95 and Ada 2005 units).
8422         Add Unbounded_IO files
8423         Add entries for Wide_Wide packages for AI-285
8424         Add list of containers packages to Ada 2005 unit list
8426         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
8427         support new Unbounded_IO package cleanly.
8429         * g-utf_32.ads, g-utf_32.adb: New files.
8431         * Makefile.rtl: Add entry for g-utf_32
8432         Add new files for Unbounded_IO
8433         Adjust make file for new AI-285 wide wide packages
8434         Add AI-302 containers to the run time.
8436         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
8437         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
8438         subprograms for AI-301.
8440         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
8442         * a-stunau.ads: Minor comment correction
8444         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
8445         etc.
8446         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
8447         (Check_RPC): Update to match changes in expanded code.
8448         Clean up unused entity.
8450         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
8451         was not taken into account.
8452         This includes proper initialization with Normalize_Scalars.
8453         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
8454         normalize scalars cases (particularly the latter) to do a better job
8455         of finding invalid representations.
8457         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
8459         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
8460         used
8462         * exp_dist.adb: Add support for wide wide character type
8463         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
8464         private part, generate stub bodies at the end of the private part,
8465         not the visible part.
8466         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
8467         PolyORB support.
8468         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
8469         generic wrapper to execute final processing after completing the
8470         expansion of the RPC receiver for an RACW.
8472         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
8473         packages and attributes.
8474         (Preset_Names): Addition of the new reserved words of Ada 2005,
8475         that is interface, overriding and synchronized.
8476         (Get_Pragma_Id): Give support to the use of the new reserved word
8477         "interface" as a pragma name.
8478         (Is_Pragma_Name): Give support to the use of the new reserved word
8479         "interface" as a pragma name.
8480         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
8481         attribute implementation.
8483         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
8484         checks to entities that are output parameters of Asm operations.
8485         Handle the Stream_Size attribute.
8486         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
8488         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
8490         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
8491         for second parameter being 0.0.
8492         Add support for wide wide character type.
8493         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
8495         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
8496         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
8497         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
8498         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
8499         for wide wide character cases.
8501         * cstand.adb: Create entities for Wide_Wide_Character and
8502         Wide_Wide_String.
8504         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
8505         accordance with AI-258.
8506         Add new declarations for 16/32 bit C character types (Part of AI285)
8508         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
8509         (Obsolescent_Warning): New field
8510         (Rep_Clause): New local subprogram used to share code. Returns the rep
8511         clause for which the name is given in parameter.
8512         (Has_Stream_Size_Clause): New routine.
8513         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
8514         (Address_Clause): Implementation is now using Rep_Clause.
8515         (Alignment_Clause): Idem.
8516         (Size_Clause): Idem.
8518         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
8519         entity in non-Ada 2005 mode and generate warning.
8521         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
8522         (Prag): Code cleanup. Remove old gnat pragma "overriding"
8524         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
8525         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
8526         on the named unit if the pragma is not in the current compilation unit,
8527         so that elaboration calls in the current unit can set up an elaboration
8528         dependency on the named unit, as needed.
8529         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
8530         subprogram as well as for subprograms declared within a package.
8531         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
8532         pragma overriding.
8534         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
8535         to z) to avoid some instances of duplication for Wide_Wide packages.
8537         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
8538         characters.
8540         * scn.adb: Char_Literal_Value field is now a Uint
8542         * scng.adb: Significant rewrite to handle new Ada 2005 features
8543         allowing wide and wide wide characters in program text, e.g. for
8544         identifiers, as described in AI-285.
8545         (Set_Reserved): New procedure, makes setting up keywords cleaner.
8546         (Initialize_Scanner): Register the new reserved words of Ada 2005.
8547         (Scan): Give support to the new reserved words.
8549         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
8550         warning notifying that interface, overriding, and synchronized are
8551         new reserved words.
8552         (P_Pragma): Allow the use of the new reserved word "interface" as
8553         a pragma name.
8555         * gnatls.adb, gnatbind.adb,
8556         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
8557         identifiers named "interface" to "SAL_Interface".
8559         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
8560         (Structured Exception handling).
8561         (Gen_Main_C): Idem.
8563         * bindgen.adb:
8564         (Gen_Main_Ada): Set the default exit code if specified.
8565         (Gen_Main_C): Likewise.
8566         Part of *DC20-006.
8567         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
8568         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
8570         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
8571         new -Xnnn switch.
8573         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
8574         has a collision with the new Ada 2005 "interface" reserved word.
8576         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
8577         generate a warning notifying that interface, overriding, and
8578         synchronized are new reserved words.
8580         * scans.ads (Token_Type): Addition of the tokens corresponding to the
8581         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
8582         and Tok_Synchronized.
8584         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
8585         "dispatching" rather than "primitive" operations, since dispatching
8586         calls are now allowed to abstract formal subprograms (which are not
8587         primitive).
8588         Char_Literal_Value field is now a Uint
8589         (Resolve_Slice): If the prefix is an access to an unconstrained array,
8590         compute the actual subtype of the designated object to impose the proper
8591         index constraints.
8592         (Resolve_Selected_Component): Do not insert an access check if the
8593         prefix is an access type: such a node is expanded into an explicit
8594         dereference, on which the access check is performed anyway. Removes
8595         expensive duplicate checks.
8596         (Resolve_Call): Use new flag Is_Obsolescent and field
8597         Obsolescent_Warning so that pragma Obsolescent works on library
8598         subprograms.
8599         Add support for wide wide character type
8600         (Resolve_Allocator): Replace the error message on wrong null-exclusion
8601         value by a warning message.
8602         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
8603         as fixed-point, and one of the operands is non-static and universal, it
8604         can only be an illegal exponentiation operation, in which case there is
8605         no real value to retrieve.
8607         * exp_strm.adb: Add support for wide wide character type
8608         (Build_Elementary_Input_Call): Compute the size of the stream element by
8609         querying the rep chain to find the Stream_Attribute attribute value.
8610         (Build_Elementary_Write_Call): Ditto.
8612         * sem_aggr.adb: Char_Literal_Value field is now a Uint
8613         Add support for wide wide character type
8614         Replace the error messages on wrong null-exclusion value by warnings
8615         as described in Ada 2005.
8616         (Resolve_Extension_Aggregate): Document the fact that the error
8617         message on class-wide expressions in extensions aggregates.
8619         * sem_case.adb: Add support for wide wide character type
8621         * sem_ch13.adb: Add support for wide wide character type
8622         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
8624         * sem_ch3.adb: Add support for wide wide character type
8625         (Process_Subtype): If constraint is illegal for the type, set Ekind of
8626         now-useless Itype, to prevent cascaded errors on a compiler built
8627         without -gnatp.
8629         * sem_ch8.adb: Add with and use of Sem_Disp.
8630         (Analyze_Subprogram_Renaming): Replace unclean uses of
8631         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
8632         of Corresponding_Spec to Empty).
8633         (Attribute_Renaming): Replace use of Corresponding_Spec with
8634         Corresponding_ Formal_Spec and simplify condition.
8635         (Use_One_Package): Check that scope of homonym of identifier is defined,
8636         before checking whether it is a wrapper package.
8637         Add support for wide wide character type
8639         * sem_eval.adb: Add support for wide wide character type.
8640         (Eval_Arithmetic_Op): Check for compile time known signed integer
8641         overflow in the non-static case.
8642         (Subtypes_Statically_Match): A formal scalar type and its base type do
8643         not statically match.
8645         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
8646         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
8647         subtype).
8648         (Unit_Declaration_Node): Ditto.
8649         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
8650         has a packed array type, the prefix has been rewritten into a type
8651         conversion. Determine variable-ness from the converted expression.
8652         Handle wide wide character cases.
8654         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
8656         * stringt.ads, stringt.adb: Handle full UTF-32 range.
8657         Remove ["0A"] from comment, since it can look like a line terminator.
8658         Currently we don't permit this, but this is under discussion by the
8659         ARG, and it is easy enough to use a different example.
8661         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
8662         handling UTF-32 encoding for wide wide character.
8663         Implement new brackets coding ["hhhhhhhh"]
8664         Add UTF-8 encodings for full UTF-32 range
8666         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
8668         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
8669         bit range Add full UTF-32 support.
8670         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
8671         notify that constraint error will be raised at run-time
8672         because a null value is assigned to a null-excluding object.
8673         Remove some obsolete declarations and make Char_Code
8674         unsigned.
8676         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
8677         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
8678         Rcheck subprograms.
8680         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
8681         wrong null-exclusion value by a warning message.
8682         (Enable_Range_Check): Do range check if the prefix is an
8683         explicit dereference whose designated object is an unconstrained array.
8684         Current algorithm for removing duplicate checks is over-eager in this
8685         case.
8687         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
8688         null-exclusion value by a warning message
8690         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
8691         completely. Add support for Uint2 field
8693         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
8694         exp_prag.adb: Char_Literal_Value field is now a Uint.
8696         * exp_util.adb (Insert_Actions): Replace
8697         N_Formal_Subprogram_Declaration by
8698         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
8699         Char_Literal_Value field is now a Uint.
8701         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
8702         defined for subprogram renaming declarations. When set, the field
8703         indicates the defining entity of a corresponding formal subprogram
8704         when the renaming corresponds to a formal subprogram association in an
8705         instantiation.
8706         (Set_Corresponding_Formal_Spec): New procedure to return
8707         Corresponding_Formal_Spec field.
8708         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
8709         (which is now a subtype).
8710         Char_Literal_Value field is now a Uint
8712         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
8713         pointer to the base of the dispatch table.
8714         Minor changes to comments.
8715         (Controlling_Type): New function for determining the tagged type
8716         associated with a tagged primitive subprogram.
8717         (Expand_Dispatching_Call): Add support for a controlling actual that is
8718         directly a value of type Ada.Tag rather than a tagged object.
8720         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
8721         describing the new layout.
8722         (Dispatch_Table): The expander computes the actual array size, allocates
8723         the Dispatch_Table record accordingly, and generates code that displaces
8724         the base of the record after the Typeinfo_Ptr component. The access to
8725         these components is done by means of local functions.
8726         (Offset_To_Top): New function.
8727         (Typeinfo_Ptr): New function.
8728         (Get_TSD): Modified to access the new position of the TSD.
8729         (Set_TSD): Modified to save the TSD in its new position.
8731         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
8732         case of formal abstract subprograms. Add check and message for -gnat05.
8733         Update comments.
8735         * sem_ch12.adb: Add with and use for Sem_Disp.
8736         (Analyze_Associations): Minor change from "=" to "in" for use of
8737         N_Formal_Subtype_Declaration (which is now a subtype).
8738         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
8739         N_Formal_Subtype_Declaration (which is now a subtype).
8740         (Analyze_Formal_Subprogram): Add handling for
8741         N_Formal_Abstract_Subprogram, marking the formal as abstract and
8742         dispatching, setting the controlling status of the formal parameters
8743         and result, and issuing an error if there is no controlling type for
8744         the formal subprogram.
8745         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
8746         which is an unclean use of that field, we set the new field
8747         Corresponding_Formal_Spec to make the formal subprogram available to
8748         processing in Analyze_Subprogram_Declaration.
8749         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
8750         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
8751         Constrained, so that it is is does not statically match its anonymous
8752         base type.
8754         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
8755         abstract formal subprograms in error check for functions returning
8756         abstract types. Set scope of new designator for
8757         a parameterless subprogram, so that it is available when checking the
8758         body for nested subprograms, before full analysis of said body.
8759         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
8760         subprogram only if inner one comes from source.
8761         (Analyze_Function_Call): If the call is given in object notation, the
8762         analysis of the name rewrites the node and analyzes it with the proper
8763         argument list. After analyzing the name, if the call has been rewritten
8764         and the result type is set, no further analysis is needed.
8765         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
8766         mark in function specification, in a context where the formals are
8767         visible and hide outer homographs.
8769         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
8770         as the tagged type for the cases of abstract formal subprograms and
8771         renamings of those.  Clean up spec comments.
8772         (Check_Dispatching_Context): Add error message to indicate "abstract
8773         procedure", covering the case of a call to a formal abstract procedure
8774         that has statically tagged operands.
8775         (Check_Dispatching_Call): Check for the case of an actual given by
8776         a tag-indeterminate function call whose type is an ancestor of the
8777         containing call's associated tagged type. This situation can occur
8778         for inherited primitives with function defaults. In this case we
8779         use the tagged type's tag directly as the controlling argument for
8780         the calls.
8781         (Expand_Call): Name change on call to Expand_Dispatch_Call.
8783         * sprint.adb (Sprint_Node_Actual): Split
8784         N_Formal_Subprogram_Declaration into two alternatives for the new
8785         cases N_Formal_Abstract_Subprogram_Declaration and
8786         N_Formal_Concrete_Subprogram_Declaration.
8787         Char_Literal_Value field is now a Uint.
8789         * trans.c: Get rid of junk Uint2 reference.
8790         Char_Literal_Value field is now a Uint.
8791         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
8792         (gigi): Correct third arg to gimplify_body.
8794         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
8795         (TYPE_LANG_FLAG_0): Check for record or union.
8797         * treepr.adb: Char_Literal_Value field is now a Uint
8799         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
8800         UI_From_CC.
8802         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
8803         Add full UTF-32 support
8804         Char_Code is now 32 bits
8806         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
8807         wide character UTF_32 line terminators.
8808         Initialize Main_Source_File to avoid error when no main
8809         source is loaded.
8811         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
8812         (Main_Source_File) when no main source has been loaded, to avoid
8813         potential crash.
8815 2005-02-09  Robert Dewar  <dewar@adacore.com>
8817         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
8818         Fix name of Set routine
8820         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
8821         fixed packages.
8823         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
8824         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
8825         fixed packages
8827         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
8828         forms of Get_Line subprograms for AI-301.
8830         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
8831         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
8832         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
8833         a-stwima.ads: Minor reformatting.
8835 2005-02-09  Doug Rupp  <rupp@adacore.com>
8836             Thomas Quinot  <quinot@adacore.com>
8838         * adaint.c, adaint.h
8839         [VMS] (to_ptr32): New function.
8840         (MAYBE_TO_PTR32): New macro.
8841         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
8842         for pointer size.
8843         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
8844         [VMS] (#define fork()): Remove since unneccessary.
8845         (__gnat_set_close_on_exec): New routine to support
8846         GNAT.OS_Lib.Set_Close_On_Exec.
8848         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
8849         the parent side as close-on-exec so that they are not inherited by the
8850         child.
8852         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
8853         set or clear the FD_CLOEXEC flag on a file descriptor.
8855 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
8856             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8858         Fix for c330001 - PR ada/19386
8860         * decl.c:
8861         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
8862         on the field if Pragma Component_Alignment (Storage_Unit).
8863         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
8864         side-effects as if it were a constant; also make SAVE_EXPR to protect
8865         side-effects.
8866         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
8867         UNION_TYPE.
8868         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
8869         (components_to_record): Test it.
8870         Fix improper usage of REFERENCE_CLASS_P.
8872         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
8873         RECORD_TYPE.
8875         * utils2.c: Minor reformatting.
8877         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
8878         handle other cases like RECORD_TYPE.
8880         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
8882 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
8884         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
8885         component of an array of arrays in an assignment context, and the
8886         aggregate has component associations that require sliding on
8887         assignment, force reanalysis of the aggregate to generate a temporary
8888         before the assignment.
8889         (Must_Slide): Make global to the package, for use in Gen_Assign.
8891 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
8893         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
8894         unchecked union with no inferable discriminants, return a
8895         Raise_Program_Error node, rather than inserting it at the point the
8896         type is frozen.
8897         (Expand_Record_Equality, Component_Equality): Handle properly the case
8898         where some subcomponent is an unchecked union whose generated equality
8899         code raises program error.
8901 2005-02-09  Doug Rupp  <rupp@adacore.com>
8903         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
8904         [VMS] (#define exit hack): Remove.
8906 2005-02-09  Pascal Obry  <obry@adacore.com>
8907             Arnaud Charlet <charlet@adacore.com>
8909         * init.c (__gnat_initialize): Add a new parameter eh which contains the
8910         address of the exception registration. The Win32 version of this
8911         routine calls __gnat_install_SEH_handler() to initialize the SEH
8912         (Structured Exception Handling) handler.
8913         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
8914         SEH (Structured Exception Handling) now.
8915         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
8916         (__gnat_initialize for ppc-vxworks): Adjust comments and the
8917         preprocessor condition protecting the call to the extra eh setup
8918         subprogram, which is only available for the ppc target.
8919         (__gnat_clear_exception_count): replaced reference to
8920         variable taskIdCurrent by call to taskIdSelf(), cleaner.
8922         * seh_init.c: New file.
8924         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
8925         (GNATBIND_OBJS): Idem.
8927         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
8928         routine takes a new parameter (a pointer to the exception registration
8929         for the SEH (Structured Exception Handling) support.
8931         * raise.h: (__gnat_install_SEH_handler): New prototype.
8932         Update copyright notice.
8934         * s-tassta.adb (Task_Wrapper): Declare the exception registration
8935         record and initialize it by calling __gnat_install_SEH_handler.
8937 2005-02-09  Vincent Celier  <celier@adacore.com>
8939         * make.adb (Gnatmake): Do not fail when the main project has no object
8940         directory.
8942 2005-02-09  Doug Rupp  <rupp@adacore.com>
8944         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
8945         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
8946         [VMS]: Add translations for g-enblsp.adb.
8948         * s-asthan-vms.adb: Removed.
8949         * s-asthan-vms-alpha.adb: Added.
8951 2005-02-09  Pascal Obry  <obry@adacore.com>
8953         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
8954         (LIBGNAT_OBJS): Add seh_init.o.
8956 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
8958         PR ada/16592
8960         * Makefile.in: Link all gnat tools with -static-libgcc, since
8961         -shared-libgcc is now used by default on some systems (e.g. linux with
8962         recent binutils).
8963         Remove references to Makefile.prolog/generic, no longer used.
8965 2005-02-09  Vincent Celier  <celier@adacore.com>
8967         * prj-makr.adb (Process_Directory): Put file name in canonical case
8968         before matching against the patterns.
8969         If gnatname has been invoked as <prefix>-gnatname
8970         then invoke the compiler as <prefix>-gcc, not just "gcc".
8972 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
8974         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
8975         with expansion disabled. The actual subtype is needed among other
8976         places when the selected component appears in the context of a loop
8977         bound, and denotes a packed array.
8978         (Operator_Check): Always use the first subtype in the
8979         error message, to avoid the appearance of internal base types.
8980         (Transform_Object_Operation): Copy each actual in full
8981         to the parameter associations of the constructed call, rather than
8982         using the shallow copy mechanism of New_Copy_List. This ensures that
8983         the chaining of named associations is done properly.
8984         (Complete_Object_Operation): Rewrite node, rather than
8985         replacing it, so that we can trace back to the original selected
8986         component.
8988         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
8989         and calls that use object notation, if the called function is not
8990         declared  in a withed unit, place the elaboration constraint on the
8991         unit in the context that makes the function accessible.
8992         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
8993         imposes an elaboration constraint between two packages.
8995 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
8997         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
8998         views of a private type after handling its private dependents, to
8999         maintain proper stack discipline between entry and exit from the
9000         package.
9002 2005-02-09  Cyrille Comar  <comar@adacore.com>
9004         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
9005         Minor reformatting.
9007 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
9009         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
9010         fields for foreign threads.
9012 2005-02-09  Doug Rupp  <rupp@adacore.com>
9014         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
9015         recursion warnings when compiled with -gnatdm.
9017 2005-02-09  Robert Dewar  <dewar@adacore.com>
9019         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
9020         Slight fix to documentation of -gnaty with no parameters
9022         * xr_tabls.ads: Add ??? comment for missing overall comment
9024         * xsinfo.adb: Make default file name be sinfo.h, since this is what
9025         we now use by default.
9027         * xsnames.adb: Adjust end of file test to look for five space followed
9028         by '#' instead of six spaces. The format of xsnames.adb was modified
9029         in the last update.
9031         * a-numeri.ads: Add reference to AI-388 for greek letter pi
9032         identifier.
9034         * clean.adb: Minor reformatting.
9036         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
9037         gnatname.adb: Minor reformatting
9038         Add 2005 to copyright output when utility is run
9040         * csets.adb: Eliminate obsolete comment
9042         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
9043         Update comments.
9045         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
9047 2005-02-09  Sergey Rybin  <rybin@adacore.com>
9049         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
9050         the difference between compact and incompact layout and add the record
9051         representation clause to the example illustrating different layouts.
9052         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
9053         component clauses").
9055 2005-02-09  Florian Villoing  <villoing@adacore.com>
9057         * gnat_ugn.texi: Fix typos.
9058         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
9059         @file.
9060         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
9061         in the generated documentation.
9063 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
9065         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
9066         longer supported.
9067         Update linker wrapper when linking with non GNU C++.
9069 2005-02-09  Pascal Obry  <obry@adacore.com>
9071         * gnat_ugn.texi:
9072         Document the procedure to debug the DllMain routine on Windows.
9073         Add note about -funwind-tables and mixed Ada and C/C++ programming in
9074         ZCX mode.
9075         Document new BIND qualifer /RETURN_CODES=VMS.
9077 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
9079         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
9080         Edited gnatmetric chapter
9082 2005-02-09  Robert Dewar  <dewar@adacore.com>
9084         * gnat_rm.texi:
9085         Changes to document new wide wide character support
9086         For AI-285
9087         Update documentation on Normalize_Scalars and Initialize_Scalars
9089 2005-02-09  Pascal Obry  <obry@adacore.com>
9091         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
9093 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
9095         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
9096         from the VxWorks kernel) that is needed for getting the active
9097         priority of the different tasks.
9099         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
9100         Use a pragma Elaborate_Body in the spec file instead.
9101         Noticed by code reading.
9103 2005-02-09  Thomas Quinot  <quinot@adacore.com>
9105         * exp_util.ads: Minor correction in comment.
9107 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
9109         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
9110         since this procedure is now too complex to be worth inlining.
9112 2005-02-09  Richard Henderson  <rth@redhat.com>
9114         * utils.c (gnat_define_builtin): Remove.
9115         (gnat_install_builtins): Use build_common_builtin_nodes.
9117 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
9119         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
9120         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
9121         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
9122         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
9123         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
9124         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
9125         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
9126         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
9127         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
9128         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9129         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
9130         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
9131         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
9132         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
9133         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
9134         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
9135         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
9136         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
9137         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
9138         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
9139         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
9140         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
9141         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
9142         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
9143         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
9144         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
9145         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
9146         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
9147         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
9148         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
9149         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
9150         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
9151         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
9152         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
9153         library.
9155 2005-01-27  Laurent GUERBY <laurent@guerby.net>
9157         * Makefile.in: Fix a-intnam.ads from previous commit,
9158         add 2005 to copyright.
9159         * a-intman-rtems.ads: Renamed to...
9160         * a-intnam-rtems.ads:
9162 2005-01-27  Laurent GUERBY <laurent@guerby.net>
9164         * Makefile.in: Rename GNAT RTEMS specific files.
9165         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
9166         5rosinte.ads, 5rparame.adb: Replaced by files below.
9167         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
9168         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
9170 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
9171             Laurent GUERBY <laurent@guerby.net>
9173         PR ada/19488
9174         * 5rosinte.ads: Add No_Key constant.
9175         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
9176         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9178 2005-01-26  Laurent GUERBY <laurent@guerby.net>
9180         PR ada/19414
9181         * i-cobol.adb (Valid_Numeric): Handle zero length case.
9183 2005-01-20  Richard Henderson  <rth@redhat.com>
9185         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
9186         a-intnam-linux.ads and system-linux-alpha.ads.
9187         * a-intnam-linux-alpha.ads: Remove file.
9188         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
9189         * system-linux-alpha.ads: New file.
9191 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
9193         PR ada/13470
9194         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
9195         set to the new string.
9197 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
9199         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
9200         to True.
9202 2005-01-18  Richard Henderson  <rth@redhat.com>
9204         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
9205         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
9206         for alpha-linux.
9207         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
9209 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
9211         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
9212         (GCC_ZCX_Support): Likewise.
9214 2005-01-11  Bastian Blank  <waldi@debian.org>
9216         * system-linux-s390.ads: Define Preallocated_Stacks.
9217         * system-linux-s390x.ads: Likewise.
9219 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
9221         * gnat_ugn.texi: Fix texi errors with null variables.
9223 2005-01-03  Thomas Quinot  <quinot@adacore.com>
9225         * gen-soccon.c: New utility program to generate g-soccon.ads
9226         automatically.
9228         * socket.c, gsocket.h: Split inclusion of system header files into a
9229         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
9231         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
9232         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9233         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
9234         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
9235         should not be edited by hand anymore, but should be regenerated using
9236         gen-soccon.
9238 2005-01-03  Robert Dewar  <dewar@adacore.com>
9239             Ed Schonberg  <schonberg@adacore.com>
9240             Vincent Celier  <celier@adacore.com>
9242         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
9243         on/off, since this is an obsolescent feature, for which we now generate
9244         a warning.
9246         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
9247         warning mode is set and obsolescent usage of this attribute occurs.
9248         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
9249         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
9250         predates, and partly motivates, the adoption of the AI.
9251         Implement new Ada 2005 attribute Mod
9253         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
9254         attribute Mod.
9256         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
9258         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
9259         pragma restrictions.
9260         New entry for Ada 2005 attribute Mod.
9262         * par-prag.adb:
9263         Add recognition of new pragma Restrictions No_Dependence
9264         Recognize restriction No_Obsolescent_Features at parse time
9266         * bcheck.adb: Add circuitry for checking for consistency of
9267         No_Dependence restrictions.
9269         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
9270         restrictions.
9272         * restrict.ads, restrict.adb: Add subprograms to deal with
9273         No_Dependence restrictions.
9275         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
9276         restrictions.
9278         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
9279         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
9281         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
9282         dummy parameter to scng instantiation.
9283         Needed for new restriction No_Obsolescent_Features
9285         * scn.adb: (Obsolescent_Check): New procedure
9286         Needed for new restriction No_Obsolescent_Features
9288         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
9289         specified by AI-285, needed for implementation of AI-388 (adding greek
9290         pi to Ada.Numerics).
9291         Add new generic formal to scng, needed for new restriction
9292         No_Obsolescent_Features.
9294         * s-rident.ads: Add new restriction No_Obsolescent_Features.
9296         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
9297         restrictions lines.
9298         (Scan_ALI): When finding an unexpected character on an R line, raise
9299         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
9300         Ignore_Errors is True, default restrictions are set and scanning of the
9301         ALI file continues with the next line. Also, when Bad_R_Line is raised
9302         and Ignore_Errors is True, skip to the end of le line.
9304         * sem_ch10.adb: Check that explicit with's do not violate
9305         No_Dependence restrictions.
9306         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
9307         illegal context clauses containing child units of instance.
9309         * sem_prag.adb: Processing and checking for new No_Dependence
9310         restrictions.
9311         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
9312         analyze and check the External argument.
9314         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
9316 2005-01-03  Robert Dewar  <dewar@adacore.com>
9318         * atree.adb: Add a fifth component to entities
9319         This allows us to add 32 flags and four new fields
9321         * atree.ads: Add a fifth component to entities
9322         This allows us to add 32 flags and four new fields
9324         * einfo.ads, einfo.adb: Document new fields and new flags now available
9325         Add routines for printing new fields
9327         * treepr.adb: Call routines to print out additional fields if present
9329 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
9331         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
9332         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
9334         * Makefile.in: Add support to build shared Ada libraries on solaris x86
9335         Remove gpr2make, replaced by gprmake.
9336         Remove references to gnatmem and libaddr2line.
9337         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
9338         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
9339         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
9340         a-numaux-darwin.ads and a-numaux-darwin.adb
9341         Enable mlib-tgt-lynxos.adb on lynxos.
9343         * Make-lang.in: Remove rules for gpr2make.
9344         When generating sdefault.adb, do not call Relocate_Path
9345         on S3 for function Target_Name, as it is not a path.
9346         Remove references to gnatmem and libaddr2line.
9348         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
9349         files.
9351 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
9353         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
9354         address is incompatible with its base type alignment constraints when
9355         this can be decided statically.
9357 2005-01-03  Olivier Hainque  <hainque@adacore.com>
9359         * decl.c (compatible_signatures_p): New function. The intended purpose
9360         is to check if two function signatures for a call-site and a callee are
9361         compatible enough for the call to be valid. The underlying purpose is
9362         to check if a call to a mapped builtin is using the right interface.
9363         The current code actually does not check antyhing - this a placeholder
9364         for future refinements.
9365         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
9366         builtin calls for convention Intrinsic.
9368         * gigi.h (builtin_decl_for): Declare (new function).
9370         * utils.c (gnat_install_builtins): Install the target specific builtins.
9371         (builtin_decl_for): New function, provide a dummy body for now.
9373 2005-01-03  Geert Bosch  <bosch@adacore.com>
9375         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
9376         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
9377         (Pred): Implement in terms of Succ.
9379         * trans.c (convert_with_check): Reimplement conversion of float to
9380         integer.
9382 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
9383             Vincent Celier  <celier@adacore.com>
9385         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
9386         bounds can be negative, and must be declared Int, not Nat.
9388         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
9389         array is checked after using the index in the array.
9391         * makegpr.adb (Add_Switches): Check if there is a package for the
9392         processor. If there is no package, do not look for switches.
9394 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
9396         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
9397         generation of predefined stream operations (specs and bodies) should
9398         proceed. Under various restrictions these subprograms must not be
9399         generated.
9401 2005-01-03  Thomas Quinot  <quinot@adacore.com>
9403         * exp_dist.adb:
9404         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
9405         amount of PCS-specific code in RACW stubs generation.
9406         (Copy_Specification): Set Etype on copied formal parameter entities, as
9407         this information is needed for PolyORB stubs generation.
9408         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
9409         variable Dynamic_Async.
9410         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
9411         (Build_RPC_Receiver_Specification): Make generic again, as recent
9412         changes have allowed RPC receivers to have the same profile for both
9413         variants of the PCS.
9414         Reorganise RPC receiver generation to reduce differences between the
9415         structure of GARLIC and PolyORB RPC receivers.
9416         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
9417         PCS-specific.
9418         Simplify elaboration code for RCI packages.
9420         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
9421         generation to reduce differences between the structure of GARLIC and
9422         PolyORB RPC receivers.
9424         * s-stratt.adb: Fix typo in comment.
9426 2005-01-03  Thomas Quinot  <quinot@adacore.com>
9428         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
9429         copied from Make_Init_Call).
9431         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
9432         reads and assignments on a temporary variable declared with appropriate
9433         discriminants.
9435 2005-01-03  Robert Dewar  <dewar@adacore.com>
9437         * i-c.adb (To_C): Raise CE if string is null and Append_Null
9439 2005-01-03  Robert Dewar  <dewar@adacore.com>
9441         * i-cstrin.adb (Update): Do not append a null in form called with a
9442         String. This avoids unintended behavior.
9444 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
9446         PR ada/17527
9447         * init.c: Fix warnings on Free BSD section.
9449 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
9451         PR ada/16949
9452         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
9453         xsinfo.adb).
9455 2005-01-03  Vincent Celier  <celier@adacore.com>
9457         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
9458         libraries when Unique_Compile is True (-u switch).
9459         (Gnatmake): ditto.
9461 2005-01-03  Robert Dewar  <dewar@adacore.com>
9463         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
9464         upper case letter or underscore after W, as allowed by spec.
9466 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
9468         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
9469         darwin port by using proper type definitions from header files.
9470         Use SIGTERM instead of SIGABRT for SIGADAABORT.
9472 2005-01-03  Robert Dewar  <dewar@adacore.com>
9474         * par.adb: Enhance error message handling for configuration file
9475         pragmas.
9477 2005-01-03  Robert Dewar  <dewar@adacore.com>
9479         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
9480         removed during the previous update (test properly for case of dividing
9481         largest negative number by -1, which generates overflow).
9483 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
9484             Sergey Rybin  <rybin@adacore.com>
9486         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
9487         to use as the defining identifier for a formal package.
9488         (Remove_Parent): If the instance takes place within (an instance of)
9489         a sibling, preserve private declarations of common parent.
9491 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
9493         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
9494         to determine whether one of the operands is a fixed-point type for
9495         which a user-defined multiplication or division operation might be
9496         defined.
9498         * sem_res.adb (Valid_Conversion): The legality rules for conversions
9499         of access types are symmetric in Ada 2005: either designated type can
9500         be unconstrained.
9502 2005-01-03  Vincent Celier  <celier@adacore.com>
9504         * s-fileio.adb (Temp_File_Record): Change length of string component
9505         Name from L_tmpnam + 1 to max_path_len + 1.
9507 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
9509         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
9510         Self_Id.Deferral_Level = 0.
9511         (Do_Pending_Action): Move this function to the spec.
9513         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
9514         Do_Pending_Action explicitely when needed, in case we're using
9515         No_Abort restrictions.
9517         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
9518         deferral level since it will not get changed by the generated code.
9519         Keeping a default value of 1 would prevent some operations (e.g.
9520         select or delay) to proceed successfully.
9522 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
9523             Robert Dewar  <dewar@adacore.com>
9524             Cyrille Comar  <comar@adacore.com>
9526         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
9527         porting guide chapter (vms version).
9528         Revised doc title (removed "for native platforms") and subtitle.
9529         Add discussion on warning flag for obsolescent features. First we
9530         note that it applies to obsolete GNAT features, which was previously
9531         omitted. Second we contrast the behavior with that of the new
9532         Ada 2005 AI-368 restriction No_Obsolescent_Features.
9533         Preliminary rewriting of GNAT & libraries chapter in order to take
9534         into account default project locations & new project manager
9535         capabilities.
9537 2005-01-03  Robert Dewar  <dewar@adacore.com>
9539         * cstand.adb (Create_Operators): Clean up format and documentation of
9540         unary and binary operator result tables. No change in code, just
9541         reformatting and addition of comments.
9543         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
9544         sem_ch2.adb: Minor reformatting
9546         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
9547         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
9548         comments for Tree_Read and Tree_Write.
9550 2005-01-03  Pascal Obry  <obry@adacore.com>
9552         * exp_attr.ads: Minor reformatting.
9554 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
9556         * comperr.adb (Compiler_Abort): Add specialized message for GAP
9557         versions.
9559 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
9561         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
9562         whether the ancestor type is private, as may be the case with nested
9563         instantiations.
9565 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
9567         PR ada/19128
9568         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
9570 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9572         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
9573         * utils2.c (build_unary_op): Likewise.
9575 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9577         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
9579 2004-12-19  Richard Henderson  <rth@redhat.com>
9581         * trans.c (gigi): Update gimplify_body call.
9583 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
9585         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
9587 2004-12-07  Ed Falis  <falis@adacore.com>
9589         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
9590         current task being suspended.
9592         * init.c (__gnat_clear_exception): added to reset VxWorks exception
9593         count.
9594         (__gnat_map_signal): removed test for current task being suspended.
9596 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
9598         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
9599         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
9600         targets (such as AAMP).
9602 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
9604         * atree.adb (Visit_Itype): Create a new name for the generated itype,
9605         because the back-end may otherwise treat it as a redefinition of the
9606         old symbol.
9608 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
9610         * back_end.adb (Scan_Back_End_Switches): Accept --param.
9612         * lang-specs.h: Accept --param.
9614 2004-12-07  Vincent Celier  <celier@adacore.com>
9616         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
9617         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
9618         Current_Body_Suffix => Ada_Body_Suffix).
9619         Take into account Externally_Built attribute.
9621         * clean.adb (In_Extension_Chain): Always return False when one of the
9622         parameter is No_Project.
9623         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
9624         Ada_Language_Index).
9625         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
9626         Process_Languages for procedure Parse).
9628         * gnatcmd.adb (Carg_Switches): New table.
9629         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
9630         Adapt to name changes in package Prj (Current_Spec_Suffix =>
9631         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
9633         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
9634         Header_Num and function Hash are now declared in package Prj,
9635         not Prj.Com.
9637         * prj.adb (Suffix_Of): New function.
9638         (Set (Suffix)): New procedure.
9639         (Hash): One function moved from Prj.Com
9640         (Is_Present, Language_Processing_Data_Of): New functions
9641         (Set): Two new procedures
9642         (Add_Language_Name, Display_Language_Name): New procedures
9644         * prj.ads: (Suffix_Of): New function
9645         (Set (Suffix)): New procedure
9646         Add several types and tables for multi-language support.
9647         (Header_Num): Type moved from Prj.Com
9648         (Hash): Two functions moved from Prj.Com
9649         (Is_Present, Language_Processing_Data_Of): New functions
9650         (Set): Two new procedures
9651         (Add_Language_Name, Display_Language_Name): New procedures
9652         (Naming): Component name changes:
9653         Current_Spec_Suffix => Ada_Spec_Suffix,
9654         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
9655         Impl_Suffixes, Supp_Suffixes.
9656         (Project_Data): New components: Externally_Built, Supp_Languages,
9657         First_Language_Processing, Supp_Language_Processing, Default_Linker,
9658         Default_Linker_Path.
9660         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
9661         new package Language_Processing with its attributes (Compiler_Driver,
9662         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
9663         Binder_Driver, Default_Linker).
9665         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
9666         (Header_Num): Type moved to package Prj
9668         * prj-env.adb: Adapt to name changes in package Prj
9669         (Current_Spec_Suffix => Ada_Spec_Suffix,
9670         Current_Body_Suffix => Ada_Body_Suffix).
9672         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
9673         default to the project path, except the "-" is one of the directories
9674         in env var ADA_PROJECT_PATH.
9675         (Current_Project_Path): Global variable, replacing Project_Path
9676         that was in the body of Prj.Part.
9677         (Project_Path): New function
9678         (Set_Project_Path): New procedure
9679         Initialize Current_Project_Path during elaboration of the package
9680         Remove dependency on Prj.Com, no longer needed
9682         * prj-ext.ads (Project_Path): New function
9683         (Set_Project_Path): New procedure
9685         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
9686         suffix is defined for language <lang>.
9687         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
9688         accessing directly the components of Naming.
9689         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
9690         Reorganise of this package.
9691         Break procedure Check in several procedures.
9693         * prj-nmsc.ads: Replace all procedures (Ada_Check,
9694         Other_Languages_Check and Language_Independent_Check) with a single
9695         procedure Check.
9697         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
9698         Process_Languages, no longer needed.
9700         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
9701         Current_Project_Path.
9702         Remove elaboration code, moved to the body of Prj.Ext
9703         Use new function Prj.Ext.Project_Path instead of old variable
9704         Project_Path.
9705         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
9706         When comparing with project paths on the stack, first put the resolved
9707         path in canonical case.
9708         (Parse_Single_Project): Set the path name of the project file in the
9709         tree to the normalized path.
9711         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
9712         parameter Process_Languages, no longer needed.
9713         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
9714         Other_Languages_Check.
9716         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
9717         to store the resolved canonical path of the project file.
9718         Remove dependency to Prj.Com, no longer needed
9720         * prj-util.adb: Adapt to name changes in package Prj
9721         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
9722         Ada_Body_Suffix).
9724         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
9725         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
9726         Externally_Built, Include_Option, Language_Processing.
9728         * makegpr.adb: Numerous changes due to changes in packages
9729         Prj and Prj.Nmsc.
9731         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
9732         default to the project path, except whe "-" is one of the directories
9733         in env var ADA_PROJECT_PATH.
9734         (Gnatls): In verbose mode, add the new section "Project Search Path:"
9736 2004-12-07  Robert Dewar  <dewar@adacore.com>
9738         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
9740         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
9741         set -gnatR3m mode.
9743         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
9744         flag. No longer needed now that we handle this in gnat1drv.adb.
9746         * repinfo.ads: Minor reformatting
9748 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9749             Olivier Hainque  <hainque@adacore.com>
9750             Eric Botcazou  <ebotcazou@adacore.com>
9752         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
9753         TYPE_SIZE_UNIT of result type if SIZE is not specified.
9754         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
9755         of a bitfield, which we know is useless and causes trouble because of
9756         alignment implications.
9758         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
9759         BSS sections.
9760         (process_attributes): Clear DECL_COMMON again when a section attribute
9761         is present.
9762         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
9763         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
9764         (create_field_decl): Special case ADDRESSABLE negative to mean
9765         "no bitfield creation", to be used by make_aligning_type. Don't
9766         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
9767         fields claimed addressable still have to be bitfields. Use
9768         value_factor_p instead of a raw binop construction to check for the
9769         position's alignment.
9771 2004-12-07  Geert Bosch  <bosch@adacore.com>
9773         * eval_fat.adb: Revert previous change.
9775 2004-12-07  Thomas Quinot  <quinot@adacore.com>
9776             Ed Schonberg  <schonberg@adacore.com>
9778         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
9779         with an implicit dereference as its prefix, use
9780         Insert_Explicit_Dereference instead of merely rewriting the prefix into
9781         an explicit dereference. This ensures that a reference to the original
9782         prefix is generated, if appropriate.
9784         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
9785         dereference is rewritten to an explicit one, generate a reference to
9786         the entity denoted by its prefix using the original prefix node, so
9787         the dereference can be properly recorded as a read of the denoted
9788         access value, if appropriate.
9790         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
9791         emitting 'assigned but never read' warning on a variable on the basis
9792         that it has an access type.
9793         (Check_References): Emit unreferenced warning when the scope is a
9794         subprogram body.
9796 2004-12-07  Robert Dewar  <dewar@adacore.com>
9797             Ed Schonberg  <schonberg@adacore.com>
9799         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
9800         intrinsic
9802         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
9803         leaving call unchanged.
9804         This deals with the case where the pragma Import specified
9805         an external name, to be handled by the back end.
9807         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
9808         subprogram which is Imported with convention Intrinsic if an
9809         External_Name argument is specified.
9810         (Process_Import_Or_Interface): Properly diagnose link name argument.
9811         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
9812         with Sem_Ch6.Cannot_Inline.
9813         (Process_Inline): Provide separate warning for inapplicable inline
9814         pragma.
9815         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
9816         treatment is uniform on different targets.
9818 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
9820         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
9821         construct is rewritten, preserve end label to permit source navigation.
9823 2004-12-07  Thomas Quinot  <quinot@adacore.com>
9825         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
9826         Specific_Build_Stub_Target): New subprograms.
9827         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
9828         the PCS implementation used, using the above PCS-customized subprograms.
9829         Minor reformatting.
9830         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
9831         for generation of DSA code targeted to the PolyORB PCS.
9832         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
9833         implementation of the partition communication subsystem in ancillary
9834         subprograms.
9835         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
9836         PolyORB_Support.Build_Stub_Type): New subrograms containing the
9837         PCS-specific part of Add_Stub_Type.
9838         (Insert_Partition_Check): Use runtime library function to perform
9839         E.4(19) check.
9841         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
9842         (RE_Same_Partition): New entity, from s-parint.
9844         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
9846 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
9848         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
9849         Output the copyright message on a separate line from the version
9850         message.
9852 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
9854         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
9855         compile-time warning.
9857 2004-12-07  Robert Dewar  <dewar@adacore.com>
9859         * g-regpat.adb: (Match): Change a misuse of or to or else
9861 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
9863         * lib-xref.adb:
9864         (Generate_Reference): Handle properly a reference to an entry formal,
9865          when an accept statement has a pragma Unreferenced for it.
9867         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
9868         and the Has_Pragma_Unreferenced flag for each formal before analyzing
9869         the body, to ensure that warnings are properly emitted for each accept
9870         statement of a given task entry.
9872 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
9874         * Makefile.in: Add support for foreign threads on VMS.
9876 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9878         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
9879         Remove.
9880         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
9882         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
9884         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
9885         exception.
9886         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
9888 2004-12-07  Robert Dewar  <dewar@adacore.com>
9890         * nlists.adb (Prepend_Debug): Remove parameters and nest within
9891         Prepend.
9892         (Remove_Next_Debug): Same fix
9894         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
9895         maintain back pointers now, though we did not used to, and comments
9896         were out of date).
9897         (Prepend): Remove pragma Inline.
9898         (Remove_Next): Same cleanup
9900 2004-12-07  Thomas Quinot  <quinot@adacore.com>
9902         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
9903         used to record an implicit dereference as a read operation on its
9904         prefix when operating under -gnatc. Necessary to avoid spurious
9905         'variable assigned but never read' warnings in that mode.
9906         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
9907         is a non-overloaded implicit dereference, call the above subprogram to
9908         ensure proper recording of references.
9910 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
9912         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
9913         to be resolved later as part of Analyze_Iteration_Scheme's call to
9914         Make_Index.
9916 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
9918         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
9919         prefix is not a scalar type, place error message on prefix, not on
9920         type entity.
9922 2004-12-07  Bernard Banner  <banner@adacore.com>
9924         * vxaddr2line.adb: Add support for x86 vxworks
9926 2004-12-07  Thomas Quinot  <quinot@adacore.com>
9928         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
9929         documentation of the behaviour of these functions when passed an IP
9930         address that has no record in the system hosts database and no reverse
9931         record in the DNS.
9933         * cstand.adb, a-tags.ads: Fix typos in comment.
9935 2004-12-07  Robert Dewar  <dewar@adacore.com>
9937         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
9938         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
9939         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
9940         s-poosiz.ads: Minor reformatting
9942         * make.adb: Minor reformatting
9943         Add some ??? comments asking for more comments
9945         * s-poosiz.adb: Minor reformatting
9946         Add comments on alignment requirement
9948         * sinfo.ads: Remove obsolete comment and fix typo.
9950 2004-12-07  Vincent Celier  <celier@adacore.com>
9951             Sergey Rybin  <rybin@adacore.com>
9953         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
9954         Files" with the new tool and package names.
9955         Reformatting to suppress most of the warnings for line too long
9956         Document the new section "Project Search Path:" in the output of
9957         gnatls -v.
9958         Add gnatmetric section
9960 2004-12-07  Vincent Celier  <celier@adacore.com>
9962         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
9963         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
9964         and -eit to -ept. Added qualifier
9965         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
9967 2004-11-27  Andreas Schwab  <schwab@suse.de>
9969         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
9971 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
9973         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
9974         internal implementation unit GNAT.Sockets.Thin,
9975         as their usage for sockets is non-portable (using the read and write
9976         functions from the system runtime library is fine on UNIX but won't
9977         work under Windows).
9979         * mingw32.h: Update copyright notice.
9981 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
9983         * ada-tree.h: Minor reformatting of previous change to avoid lines
9984         longer than 79 characters.
9986 2004-11-25  Olivier Hainque  <hainque@adacore.com>
9988         * tb-gcc.c: GCC infrastructure based implementation of
9989         __gnat_backtrace.
9991 2004-11-24  Steven Bosscher  <stevenb@suse.de>
9993         * misc.c (gnat_post_options): Don't clear
9994         flag_inline_functions.
9996 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
9998         PR ada/17986
9999         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
10000         tree.
10002 2004-11-21  Andreas Jaeger  <aj@suse.de>
10004         * stylesw.adb: Change Style_Check_Subprogram_Order to
10005         Style_Check_Order_Subprograms.
10007 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
10009         * adaint.h, adaint.c
10010         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
10011         to avoid warnings.
10012         Add also a cast to kill another warning.
10013         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
10014         parameter with the priority class of the parent process instead of
10015         always using the NORMAL_PRIORITY_CLASS.
10016         (__gnat_dup): New function.
10017         (__gnat_dup2): New function.
10018         (__gnat_is_symbolic_link): Enable the effective body of this
10019         function when __APPLE__ is defined.
10021         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
10022         Update comments.
10024 2004-11-18  Olivier Hainque  <hainque@adacore.com>
10026         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
10027         address of which may be used to represent "others" and "all others"
10028         choices in exception tables, instead of the current harcoded
10029         (void *)0 and (void *)1.
10030         (Setup_Exception): Do nothing in the GNAT SJLJ case.
10032         * gigi.h (others_decl, all_others_decl): New decls representing the
10033         new Others_Value and All_Others_Value objects.
10034         (struct attrib): Rename "arg" component as "args", since GCC expects a
10035         list of arguments in there.
10037         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
10038         corresponding objects exported by a-exexpr, instead of hardcoded dummy
10039         addresses.
10041         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
10042         others_decl and all_others_decl instead of hardcoded dummy addresses
10043         to represent "others" and "all others" choices, which is cleaner and
10044         more flexible with respect to the possible eh pointer encoding policies.
10046         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
10047         (process_attributes): Account for the naming change of the "args"
10048         attribute list entry component.
10050         * decl.c (build_attr_list): Rename into prepend_attributes to allow
10051         cumulating attributes for different entities into a single list.
10052         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
10053         attributes for the current entity and propagate first subtype
10054         attributes to other subtypes.
10055         <E_Procedure>: Attribute arguments are attr->args and not
10056         attr->arg any more.
10057         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
10058         argument provided, as this is what GCC expects. Use NULL_TREE instead
10059         of 0 for trees.
10061 2004-11-18  Robert Dewar  <dewar@adacore.com>
10063         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
10064         Minor reformatting througout (including new function specs)
10065         Add ??? comments asking for clarification.
10067 2004-11-18  Thomas Quinot  <quinot@adacore.com>
10069         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
10070         incomplete duplicate implementation of this subprogram from butil.
10072 2004-11-18  Thomas Quinot  <quinot@adacore.com>
10074         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
10075         procedures factors the common processing for building an RPC receiver
10076         for an RCI package or an RACW type.
10077         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
10078         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
10079         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
10080         in use.
10081         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
10082         Add_RACW_Features.
10083         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
10084         Add_RAST_Features.
10085         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
10086         distribution subprogram identifiers that are either subprogram numbers
10087         or strings.
10088         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
10089         string distribution identifiers assigned to a given subprogram.
10090         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
10091         (Add_RAS_Dereference_TSS): Add comments.
10092         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
10093         is not referenced yet because it will be used by the PolyORB DSA
10094         implementation.
10095         (Insert_Partition_Check): Remove fossile code.
10096         (First_RCI_Subprogram_Id): Document this constant.
10097         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
10098         RAS_Access TSS.
10099         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
10100         replaced with calls to Get_Library_Unit_Name_String. Previously there
10101         were several instances of the same code in different locations in the
10102         compiler; this checkin completes the replacement of all of these
10103         instances with calls to a common subprogram.
10104         Minor reformatting.
10106         * sem_dist.adb: Remove comment noting that RPC receiver generation
10107         should be disabled for RACWs that implement RASs.
10108         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
10110         * sem_util.ads, sem_util.adb (Has_Stream): New function
10111         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
10112         qualified name of a library unit into the name buffer.
10113         (Note_Possible_Modification): Generate a reference only
10114         if the context comes from source.
10116         * snames.ads (PCS_Names): New subtype corresponding to names of
10117         supported implementations of the Partition Communication Subsystem
10118         (PCS) (i.e. the runtime library support modules for the distributed
10119         systems annex).
10121 2004-11-18  Robert Dewar  <dewar@adacore.com>
10122             Ed Schonberg  <schonberg@adacore.com>
10124         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
10125         (Has_Rep_Pragma): New function
10126         (Has_Attribute_Definition_Clause): New function
10127         (Record_Rep_Pragma): Moved here from sem_ch13.adb
10128         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
10130         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
10132         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
10133         (Expand_Pragma_Psect_Object): New procedure
10134         These procedures contain the revised and cleaned up processing for
10135         these two pragmas. This processing was formerly in Sem_Prag, but
10136         is more appropriately moved here. The cleanup involves making sure
10137         that the pragmas are properly attached to the tree, and that no
10138         nodes are improperly shared.
10140         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
10141         pragmas to Exp_Prag, which is more appropriate.
10142         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
10143         check for duplicates Remove use of Is_Psected flag, no longer needed.
10144         Use new Make_String_Literal function with string.
10146         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
10147         that are functions return universal values, that have to be converted
10148         to the context type.
10149         Use new Make_String_Literal function with string.
10150         (Get_Stream_Convert_Pragma): New function, replaces the use of
10151         Get_Rep_Pragma, which had to be kludged to work in this case.
10153         * freeze.adb: Use new Has_Rep_Pragma function
10155         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
10156         function with string.
10157         Use new Has_Rep_Pragma function.
10159         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
10160         string argument.
10162 2004-11-18  Robert Dewar  <dewar@adacore.com>
10164         * errout.ads, errout.adb: (First_Sloc): New function
10166         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
10167         check (-gnatyx) instead of being included as a redundant construct
10168         warning.
10170         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
10171         Style_Check_Order_Subprograms.
10173         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
10174         stylesw.adb: Add Style_Check_Xtra_Parens
10176         * usage.adb: Add line for -gnatyx (check extra parens)
10178         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
10180 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
10181             Robert Dewar  <dewar@adacore.com>
10183         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
10184         discriminant of a constrained subtype, analyze the copy of the
10185         corresponding constraint, because in some cases it may be only
10186         partially analyzed.
10187         Removes long-lived ??? comments.
10189         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
10190         handled controlled or secondary-stack expressions within the
10191         iteration_scheme of a loop.
10193         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
10194         bounds that may contain functions calls, to prevent memory leaks when
10195         the bound contains a call to a function that uses the secondary stack.
10196         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
10197         generate temporaries for loop bounds that might contain function calls
10198         that require secondary stack and/or finalization actions.
10200         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
10201         selected component and the selector is overloadable (not just a
10202         function) treat as function call, Analyze_Call will disambiguate if
10203         necessary.
10204         (Analyze_Selected_Component): Do not generate an actual subtype for the
10205         selected component if expansion is disabled. The actual subtype is only
10206         needed for constraint checks.
10207         (Analyze_Allocator): If restriction No_Streams is set, then do
10208         not permit objects to be declared of a stream type, or of a
10209         composite type containing a stream.
10211         * restrict.ads: Remove the a-stream entry from Unit_Array, since
10212         No_Streams no longer prohibits with'ing this package.
10214         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
10215         discriminants, but the parent base has unknown discriminants, there is
10216         no discriminant constraint to inherit. Such a discrepancy can arise
10217         when the actual for a formal type with unknown discriminants is a
10218         similar private type whose full view has discriminants.
10219         (Analyze_Object_Declaration): If restriction No_Streams is set, then
10220         do not permit objects to be declared of a stream type, or of a
10221         composite type containing a stream.
10223 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
10225         * exp_dbug.ads: Update documentation to reflect simpler encoding for
10226         protected operations.
10228         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
10229         generated name, it complicates decoding in gdb and hinders debugging
10230         of protected operations.
10231         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
10232         flag for the protected entry barrier function.
10233         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
10234         flag for the protected entry function.
10236 2004-11-18  Nicolas Setton  <setton@adacore.com>
10238         * expect.c: Define __unix__ when __APPLE__ is defined.
10240         * Makefile.in: Inform the value of the variable GMEM_LIB in the
10241         Darwin-specific section.
10243         * lang-specs.h: Change the placement of the %1 marker.
10244         Works around the fact that gcc adds -fPIC by default under Darwin.
10246 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
10248         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
10249         type of the object with the packed array type, set the Analyzed flag
10250         on the object if it is an entity or simple indexed component, to avoid
10251         spurious type errors.
10253 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
10255         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
10256         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
10257         separate line from the version message.
10259 2004-11-18  Ed Falis  <falis@adacore.com>
10261         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
10262         vthreads.
10263         (init_float): Eliminate initialization of floating point status for
10264         AE653. The instructions have no effect for vThreads.
10266 2004-11-18  Vincent Celier  <celier@adacore.com>
10268         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
10269         gnatbind is invoked with -shared.
10271 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
10273         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
10274         for Detect_Blocking which is redundant with the check done within the
10275         procedure Protected_Single_Entry_Call.
10276         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
10277         Detect_Blocking which is redundant with the check done within the
10278         procedure Protected_Single_Entry_Call.
10280 2004-11-18  Vincent Celier  <celier@adacore.com>
10282         * makegpr.adb (Compile): Put the compiling switches (in package
10283         Compiler and on the command line) immediately after "-c", instead of
10284         at the end of the command line invocation of the compiler, when
10285         compiling a non-Ada file.
10286         (Build_Global_Archive): When there is no need to rebuild the archive,
10287         set Global_Archive_Exists, so that the archive is passed to the linker
10288         if one is needed.
10290 2004-11-18  Robert Dewar  <dewar@adacore.com>
10291             Sergey Rybin  <rybin@adacore.com>
10293         * gnat_ugn.texi:
10294         Remove extra paren check from list of checks for redundant constructs
10295         Add documentation of new -gnatyx style check (check extra parens)
10296         Remove paragraph about gnatelim debug options.
10298         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
10299         objects rather than forbidding dependencies on the package Ada.Streams.
10301         * sinfo.ads: Add ??? note that we should document pragmas passed to
10302         back end.
10304         * g-expect.ads: Fix a few typos in the comments.
10306 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
10308         * misc.c (gnat_handle_option): Use %< and %> for quoting in
10309         warning message.
10311 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10313         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
10315 2004-11-07  Andreas Schwab  <schwab@suse.de>
10317         * Makefile.in (install-gnatlib): Remove spurious hyphen.
10319 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
10321         PR ada/18228
10322         * Makefile.in (darwin): Set soext to .dylib.
10324 2004-10-26  Vincent Celier  <celier@gnat.com>
10325             Thomas Quinot   <quinot@act-europe.fr>
10327         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
10328         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
10329         there is no use of GNAT.Sockets.Constants.
10330         Remove remaining pragma Import for C_Write
10331         Remove C_Read and C_Write from internal implementation unit
10332         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
10333         the read and write functions from the system runtime library is fine
10334         on UNIX but won't work under Windows).
10336         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
10337         (Check_Selector): Use C_Recv instead of C_Read.
10338         Selectors are the GNAT.Sockets abstraction to perform a select()
10339         call on a set of descriptors. To allow abortion of an ongoing
10340         select operation, some data is written to a dedicated socket that
10341         is always monitored.
10342         Under Windows, the write and read library functions cannot operate
10343         on sockets, so we need to use send and recv instead, which is portable
10344         across all supported platforms.
10346         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
10347         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
10348         (using the read and write functions from the system runtime library is
10349         fine on UNIX but won't work under Windows).
10351 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
10353         * mlib-tgt-darwin.adb: New file.
10355         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10356         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10357         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10358         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
10359         subprogram body.
10361         * Makefile.in: Add support for building shared libraries under Darwin.
10362         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
10363         the low level EH init subprogram to be called from __gnat_initialize.
10365         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
10366         indicates which options to pass to the archive indexer.
10368         * mlib-utl.adb: Add support for calling ranlib with additional
10369         options. This is needed for instance under Mac OS X.
10370         (Ranlib_Options): New global variable, used to store the potential
10371         options to pass to ranlib.
10372         (Ar): Use Ranlib_Options when spawning ranlib.
10373         (Initialize): Set the value of ranlib option.
10375 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
10377         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
10378         instead of 8K, to reflect the real potential needs for stack-checking
10379         in the ZCX case.
10381 2004-10-26  Pascal Obry  <obry@gnat.com>
10383         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
10385         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
10386         Windows only the initial thread stack size can be set so it is good to
10387         start we a low stack size.
10388         The OS will adjust the size as needed.
10390 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
10391             Nicolas Setton  <setton@act-europe.fr>
10393         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
10394         "__unix__" instead of "unix".
10395         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
10396         sections were just mistakenly ignored. The former is
10397         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
10398         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
10399         of hpux. This prevents an unwanted definition of the symbol
10400         convert_addresses in adaint.o.
10402 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
10404         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
10405         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
10407 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
10409         * a-filico.ads, a-filico.adb: fix incorrect header.
10411 2004-10-26  Javier Miranda  <miranda@gnat.com>
10413         * a-ststio.ads: Fix typo in identifier
10415 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
10417         * sem_ch4.adb: Minor reformatting.
10419 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10421         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
10422         enabled, check the result of unary and binary operations when the
10423         expression is the right-hand side of an assignment.
10425 2004-10-26  Vincent Celier  <celier@gnat.com>
10427         * clean.adb (Delete): Do not output warnings when in quiet output and
10428         not in verbose mode.
10429         (Force_Deletions): New Boolean flag, defaulted to False
10430         (Delete): Only delete a file if it is writable, and when
10431         Force_Deletions is True.
10432         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
10433         (Usage): Line for new switch -f
10434         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
10435         own.
10437 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
10439         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
10440         JM type only if its size matches that of the wrapper.  When a size is
10441         prescribed and the field is not aliased, remove the wrapper of a JM
10442         type only if the size is not greater than that of the packed array.
10443         (gnat_to_gnu_entity): Change the extension of packed array wrappers
10444         from LJM to JM.
10446 2004-10-26  Geert Bosch  <bosch@gnat.com>
10448         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
10449         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
10450         (Pred): Implement in terms of Succ.
10452 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10454         * exp_aggr.adb (Safe_Component): An aggregate component that is an
10455         unchecked conversion is safe for in-place use if the expression of the
10456         conversion is safe.
10457         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
10458         be expandable in place even if the aggregate does not come from source.
10459         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
10460         designated object of an allocator in place, rather than building it
10461         first on the stack. The previous scheme forces a full copy of the array,
10462         and may be altogether unsusable if the size of the array is too large
10463         for stack allocation.
10465 2004-10-26  Robert Dewar  <dewar@gnat.com>
10467         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
10468         compares if the component is atomic.
10470         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
10471         array assignment if the component type is atomic.
10473 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10474             Eric Botcazou  <ebotcazou@act-europe.fr>
10476         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
10477         is aliased and is a by_reference type, do not pass by copy.
10478         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
10479         detect whether the call is in the right side of an assignment or
10480         the expression of an object declaration.  Recurse on component
10481         association within aggregates.
10482         Call it in the condition that determines whether the temporary is
10483         necessary for correct stack-checking.
10485 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
10487         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
10488         RACW_Type, used in the PolyORB version.
10489         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
10490         version and the GARLIC version.
10492         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
10493         Rename RCI_Info to RCI_Locator for better consistency between the
10494         GARLIC and PolyORB versions of the distributed systems annex.
10495         (DSA_Implementation_Name): This enumeration lists the possible
10496         implementations of the Partition Communication Subsystem for the
10497         Distributed Systems Annex (DSA). The three available implementations
10498         are the dummy stub implementation (No_DSA), and two versions based on
10499         two different distribution runtime libraries: GARLIC and PolyORB. Both
10500         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
10501         technology.
10502         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
10503         that organization.
10505         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
10506         between the GARLIC and PolyORB versions of the distributed systems
10507         annex.
10508         Remove RE_Unbounded_Reclaim_Pool since it is unused.
10510 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
10512         * gnat1drv.adb: Suppress calling the back end when
10513         Frontend_Layout_On_Target is true.
10515 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
10517         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
10518         Set_Read_Only): New subprograms.
10519         These new routines allow the user to set or unset the Owner execute
10520         and Owner write permission flags on a file.
10522         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
10523         GNAT.OS_Lib.Set_Executable instead of rolling our own.
10525 2004-10-26  Matthew Gingell  <gingell@gnat.com>
10527         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
10529 2004-10-26  Pascal Obry  <obry@gnat.com>
10531         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
10532         memory before the faulting page we properly test the process read
10533         access for this address using appropriate Win32 routine.
10534         (HPUX sections): guard with "__hpux__" instead of "hpux".
10536 2004-10-26  Robert Dewar  <dewar@gnat.com>
10538         * lib-xref.adb (Generate_Reference): Don't complain about reference to
10539         entry parameter if pragma Unreferenced set, since we do not properly
10540         handle the case of multiple parameters.
10542 2004-10-26  Vincent Celier  <celier@gnat.com>
10544         * prj-env.adb: (Contains_ALI_Files): New Boolean function
10545         (Ada_Objects_Path.Add): For a library project, add to the object path
10546         the library directory only if there is no object directory or if the
10547         library directory contains ALI files.
10548         (Set_Ada_Paths.Add.Recursive_Add): Ditto
10550 2004-10-26  Vincent Celier  <celier@gnat.com>
10552         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
10553         extension of library projects.
10555         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
10556         path defaults to ".:<prefix>/lib/gnat".
10557         (Parse): For an extending all project, allow direct import of a project
10558         that is virtually extended.
10560         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
10561         the specified name is directly imported, return its ID. Otherwise, if
10562         an extension of this project is imported, return the ID of the
10563         extension.
10565 2004-10-26  Robert Dewar  <dewar@gnat.com>
10567         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
10568         (Sub3): New procedure, used by Scaled_Divide
10569         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
10570         correct more than one instance of failure to propagate carries
10571         correctly.
10572         (Double_Divide): Handle overflow case of largest negative number
10573         divided by minus one.
10575         * s-arit64.ads (Double_Divide): Document that overflow can occur in
10576         the case of a quotient value out of range.
10577         Fix comments.
10579 2004-10-26  Robert Dewar  <dewar@gnat.com>
10581         * s-bitops.adb (Bit_Eq): Remove redundant check.
10583         * s-bitops.ads: Minor comment updates
10584         Change some occurrences of Address to System.Address
10586         * s-carsi8.ads: Fix minor cut-and-paste error in comments
10588 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10590         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
10591         accessibility check to prefix that is a protected operation.
10593 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10595         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
10596         empty, post message on stub.
10598 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10599             Javier Miranda  <miranda@gnat.com>
10601         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
10602         current instance appears within a unit that is directly in the context
10603         of the main unit.
10604         Used to determine whether the body of the instance should be analyzed
10605         immediately after its spec, to make its subprogram bodies available
10606         for front-end inlining.
10607         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
10608         constraint is not allowed on the component type (AARM 12.5.3(3))
10610 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
10612         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
10613         'Storage_Pool): enhance, document & limit detection of non-sharable
10614         internal pools.
10616         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
10618         * s-pooglo.ads: Add more documentation now that this pool is properly
10619         documented.
10621 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10623         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
10624         or protected type with discriminants, do not constrain the
10625         corresponding record type if the subtype declaration has no
10626         discriminant constraints. This can be the case in source code, or in
10627         the subtype declaration created to rename an actual type within an
10628         instantiation.
10630 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10632         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
10633         different kind of stub (possibly wrong name for file), do not check
10634         for conformance.
10635         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
10636         includes call to some function that returns an unconstrained type, do
10637         not inline.
10639 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
10641         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
10642         appear in the code for the main unit. Dependencies among units in the
10643         context of the main unit are established when those other units are
10644         compiled. Otherwise spurious elaboration constraints can generate
10645         incorrect elaboration circularities.
10647 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
10648             Ed Schonberg   <schonberg@gnat.com>
10650         * sem_util.adb (Is_Aliased_View): Defend against the case where this
10651         subprogram is called with a parameter that is not an object name. This
10652         situation arises for some cases of illegal code, which is diagnosed
10653         later, and in this case it is wrong to call Is_Aliased, as that might
10654         cause a compiler crash.
10655         (Explain_Limited_Type): Refine previous fix to include
10656         inherited components of derived types, to provide complete information.
10658         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
10659         is the prival for a protected object.
10660         It is necessary to mark this entity as a variable, in addition to
10661         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
10662         modified to avoid checking the Aliased flag on entities that are not
10663         objects. (Checking that flag for non-objects is erroneous and could
10664         lead to a compiler crash).
10666 2004-10-26  Robert Dewar  <dewar@gnat.com>
10668         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
10669         X_Frac = 0.5, then we know that the number X must be positive.
10670         (Succ): Remove the same redundant test, and also fix the primary test
10671         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
10672         Minor reformatting
10673         (Decompose): Add fuller comments to spec
10675 2004-10-26  Pascal Obry  <obry@gnat.com>
10677         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
10678         validity (process must have read access). Set to 0 in all other cases.
10679         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
10680         violation on Win32.
10681         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
10682         segmentation violation.
10684 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
10686         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
10687         whose type is a constructed subtype of an aliased object with an
10688         unconstrained nominal subtype, convert the actual to the constructed
10689         subtype before taking its address.
10691 2004-10-26  Vincent Celier  <celier@gnat.com>
10693         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
10694         (Is_Path_Name_Case_Sensitive): New function
10696         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
10697         (Base_Name, Simple_Name, Current_Directory, Compose,
10698         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
10699         the result.
10701 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
10702             Vasiliy Fofanov  <fofanov@act-europe.fr>
10703             Vincent Celier   <celier@gnat.com>
10705         * gnat_ugn.texi: Generalize "finding memory problems" section into a
10706         "memory management issues" section and document some of the useful
10707         memory pools provided as part of the GNAT library.
10708         Remove "virtual" from declaration of A::method2 in
10709         the simple example of Ada/C++ mixed system.
10710         Library Projects may be virtually extended: their virtual extensions
10711         are not Library Projects.
10712         Added section on extending project hierarchies.
10714 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10716         * adaint.c (__gnat_get_libraries_from_registry): Cast value
10717         to LPBYTE.
10718         (__gnat_portable_spawn): Remove const.
10720         * mingw32.h (MAXPATHLEN): Check for previous definition.
10722 2004-10-17  Matthias Klose  <doko@debian.org>
10724         * gnatvsn.ads: Set gnat library version to 4.0.
10726 2004-10-05  Vincent Celier  <celier@gnat.com>
10728         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
10730 2004-10-04  Laurent GUERBY <laurent@guerby.net>
10732         PR ada/15156
10733         * Makefile.in: Define and use RANLIB_FLAGS.
10735 2004-10-04  Pascal Obry  <obry@gnat.com>
10737         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
10738         other x86 platforms).
10740 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
10742         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
10743         in general and triggers stack alignment adjustment for thread entry
10744         points on targets where this is necessary.
10746 2004-10-04  Bernard Banner  <banner@gnat.com>
10748         PR ada/13897
10750         * Makefile.in: Add section for powerpc linux
10751         Add variant i-vxwork-x86.ads
10753         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
10755 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
10757         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
10758         table registration calls when need be. Ensures no reference to the crt
10759         ctors symbol are issued in the SJLJ case, which avoids possible
10760         undefined symbol errors in the case of modules to be statically linked
10761         with the kernel.
10763 2004-10-04  Javier Miranda  <miranda@gnat.com>
10765         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
10766         in-line the code corresponding to subprogram Analyze_Actuals. In
10767         addition, analyze the actuals only in case of subprogram call.
10769 2004-10-04  Ed Falis  <falis@gnat.com>
10771         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
10773 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
10775         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
10776         in the documentation.
10778 2004-10-04  Robert Dewar  <dewar@gnat.com>
10780         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
10781         IF and CASE.
10782         (Analyze_Block_Statement): Add circuitry to detect following dead code
10783         (Check_Unreachable_Code): Handle case of block exit
10785 2004-10-04  Robert Dewar  <dewar@gnat.com>
10787         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
10788         (XMatchD): Avoid warning for Logic_Error call
10790 2004-10-04  Robert Dewar  <dewar@gnat.com>
10792         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
10793         consider expressions buried within a procedure actual to be an actual.
10794         This caused some blowups with uses of packed slices within a procedure
10795         actual.
10797 2004-10-04  Robert Dewar  <dewar@gnat.com>
10799         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
10800         longer need to be initialized to zero.
10801         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
10802         initialized to zero.
10804         * checks.adb (Expr_Known_Valid): Packed arrays are now always
10805         considered valid, even if the representation is modular. That's correct
10806         now that we no longer initialize packed modular arrays to zero.
10808         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
10809         suffixes. These are now documented as the only cases in which the
10810         debugger ignores outer records.
10811         Previously, the spec allowed arbitrary suffixes for this purpose.
10812         Change name of LJM to JM for packed array pad records
10813         Create separate section on packed array handling, and add a whole new
10814         set of comments to this section describing the situation with packed
10815         modular types and justification requirements depending on endianness.
10817 2004-10-04  Robert Dewar  <dewar@gnat.com>
10819         * a-except.adb: Add a comment for last change
10821         * einfo.ads: Minor spelling correction in comment
10823         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
10825         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
10826         messages.
10828         * sem_util.ads: Minor comment update
10830 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
10832         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
10833         Inline_Always when in Configurable_Run_Time mode.
10835         * sem_prag.adb (Process_Convention): If entity is an inherited
10836         subprogram, apply convention to parent subprogram if in same scope.
10837         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
10838         when in Configurable_Run_Time mode.
10840 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
10842         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
10843         class_wide type after component list has been inherited.
10845 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
10847         * sem_ch12.adb (Check_Generic_Actuals): New predicate
10848         Denotes_Previous_Actual, to handle properly the case of a private
10849         actual that is also the component type of a subsequent array actual.
10850         The visibility status of the first actual is not affected when the
10851         second is installed.
10852         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
10853         make fully recursive the treatment of formals of packages declared
10854         with a box.
10855         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
10856         the above on exit from an instantiation.
10857         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
10858         current instantiation which is now complete.
10859         (Analyze_Package_Instantiation): No instantiated body is needed if the
10860         main unit is generic. Efficient, and avoid anomalies when a instance
10861         appears in a package accessed through rtsfind.
10863 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
10865         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
10866         do not generate a declaration for a temporary if the call is part of a
10867         library-level instantiation.
10869 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
10871         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
10872         searching for a limited component to flag.
10874         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
10875         expansion of Input, to account for the fact that the implicit call
10876         generated by the attribute reference must freeze the user-defined
10877         stream subprogram. This is only relevant to 'Input, because it can
10878         appear in an object declaration, prior to the body of the subprogram.
10880         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
10881         expansion can proceed and further errors uncovered.
10882         (Minor clean up): Fix cases of using | instead of \ for continuation
10883         messages.
10885 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10887         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
10889         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
10890         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
10891         Use gcc_assert and gcc_unreachable.
10893         * decl.c (gnat_to_gnu_entity, case object): Check and process a
10894         specified alignment before validating size.
10895         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
10896         stripped-down declaration for the type of the inner field when making
10897         a JM type.
10899         * utils.c (finish_record_type): Do not compute the size in units
10900         incrementally. Instead compute it once for the rep clause case.
10901         Use gcc_assert and gcc_unreachable.
10903 2004-10-04  Vincent Celier  <celier@gnat.com>
10905         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
10906         in file name.
10907         (Is_Valid_Path_Name): Take '/' as a directory separator.
10909 2004-10-04  Vincent Celier  <celier@gnat.com>
10911         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
10912         (Extended_Project) only if Extended_Project is defined, to avoid
10913         assertion error.
10914         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
10915         resolved path.
10916         (Parse_Single_Project): Ditto.
10918         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
10919         Add_To_Project_Path for virtual projects.
10921 2004-10-04  Vincent Celier  <celier@gnat.com>
10923         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10924         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10925         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
10926         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
10927         parameter Options_2.
10929         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
10930         Build_Dynamic_Library with an empty Options_2.
10932         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
10933         default anymore.
10935         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
10936         directory separator, if any.
10937         (Gprmake): Do not allow mains on the command line for library projects.
10938         Do not attempt to link when the project is a library project.
10939         (Library_Opts): New table to store Library_Options.
10940         (Build_Library): If Library_Options is specified, pass these options
10941         when building a shared library.
10943 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
10945         * s-tposen.adb (Service_Entry): The object must be always unlocked at
10946         the end of this procedure now that the unlock operation was inserted
10947         by the expander.
10949 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
10951         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
10952         corresponding to the Preallocated_Stacks flags in System.
10953         (Get_Target_Parameters): Including the processing for
10954         Preallocated_Stacks.
10956         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
10957         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
10958         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
10959         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
10960         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
10961         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
10962         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
10963         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
10964         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10965         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10966         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
10967         used to signal whether the compiler creates the required stacks and
10968         descriptors for the different tasks (when True) or it is done by the
10969         underlying operating system at run time (when False).
10970         It is initially set to False in all targets.
10972         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
10973         if it is supported by the target.
10974         (Make_Task_Create_Call): Pass the stack address if it has been
10975         previously created. Otherwise pass a Null_Address.
10977         * snames.adb: Add _stack.
10979         * snames.ads: Add Name_uStack. Required to allow the expander to
10980         statically allocated task stacks.
10982         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
10983         Stack_Address argument.
10984         Check that its value is equal to Null_Address because this target does
10985         not support the static stack allocation.
10987 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
10989         * usage.adb: Change "pragma inline" to "pragma Inline" in information
10990         and error messages
10992 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
10994         * exp_dist.adb: Split declaration of asynchronous flag out of
10995         Add_RACW_Read_Attribute.
10996         Minor reformatting for better alignment with PolyORB version.
10997         Store the entity for the asynchronous flag of an RACW, rather than the
10998         expression, in the asynchronous flags table. This will allow this flag
10999         to be used in other subprograms beside Add_RACW_Read_Attribute.
11001 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
11003         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
11004         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11005         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
11006         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
11007         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
11008         sockets constant MSG_NOSIGNAL (Linux-specific).
11009         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
11010         all Send operations.
11011         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
11012         from trigerring SIGPIPE.
11013         Rename components to avoid clash with Ada 2005 possible reserved
11014         word 'interface'.
11015         (Check_Selector): When the select system call returns with an error
11016         condition, propagate Socket_Error to the caller.
11018 2004-10-01  Jan Hubicka  <jh@suse.cz>
11020         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
11022 2004-09-23  Robert Dewar  <dewar@gnat.com>
11024         PR ada/17540
11026         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
11027         instead do this at freeze time (we won't do it if there is an address
11028         clause).
11029         Change "pragma inline" to "pragma Inline" in information and error
11030         messages.
11031         Minor reformatting.
11033         * freeze.adb (Check_Address_Clause): Remove previous change, not the
11034         right way of doing things after all.
11035         (Freeze_Entity): For object, set Is_Public for imported entities
11036         unless there is an address clause present.
11038 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
11040         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
11041         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
11042         ensures proper handling of types with rep clauses, which might have
11043         their TYPE_SIZE set already.
11045 2004-09-21  Robert Dewar  <dewar@gnat.com>
11047         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
11048         packed array types in both little- and big-endian cases. This change
11049         ensures that we no longer count on the unused bits being initialized
11050         for such types (and in particular ensures that equality testing will
11051         only read the relevant bits).
11052         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
11053         These changes mean that we no longer need to initialize small packed
11054         arrays.
11055         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
11056         optimization to an LJM field as to its parent field.
11058         * ada-tree.h, trans.c, utils.c, utils2.c:
11059         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
11061 2004-09-20  Jan Hubicka  <jh@suse.cz>
11063         * utils.c (gnat_finalize): Remove.
11064         (end_subprog_body): Directly call cgraph_finalize_function;
11065         do not lower the nested functions.
11067 2004-09-20  Robert Dewar  <dewar@gnat.com>
11069         PR ada/17540
11071         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
11072         if an address clause is present, since that means that the Import
11073         should be ignored.
11075 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
11077         * 5tsystem.ads: Removed, no longer used.
11079 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
11080             Zack Weinberg  <zack@codesourcery.com>
11082         * ada-tree.def: Use tree_code_class enumeration constants
11083         instead of code letters.
11084         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
11085         Update for new tree-class enumeration constants.
11087 2004-09-17  Vincent Celier  <celier@gnat.com>
11089         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
11090         capabilities of the general project manager.
11092 2004-09-09  Vincent Celier  <celier@gnat.com>
11094         * a-direct.ads: Add pragma Ada_05
11095         (Directory_Entry_Type): Give default value to component Kind to avoid
11096         not initialized warnings.
11098         * a-direct.adb (Current_Directory): Remove directory separator at the
11099         end.
11100         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
11101         an existing directory.
11102         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
11103         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
11104         Convert the result to File_Size.
11106         * prj.ads: (Project_Error): New exception
11108         * prj-attr.adb: Except in procedure Initialize, Fail comes from
11109         Prj.Com, not from Osint.
11110         (Attrs, Package_Attributes): Tables moved to private part of spec
11111         (Add_Attribute, Add_Unknown_Package): Moved to new child package
11112         Prj.Attr.PM.
11113         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
11114         Prj.Project_Error after call to Fail.
11115         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
11116         Fail. Check that package name is not already in use.
11118         * prj-attr.ads: Comment updates to indicate that all subprograms may be
11119         used by tools, not only by the project manager, and to indicate that
11120         exception Prj.Prj_Error may be raised in case of problem.
11121         (Add_Unknown_Package, Add_Attribute): Moved to new child package
11122         Prj.Attr.PM.
11123         (Attrs, Package_Attributes): Table instantiations moved from the body to
11124         the private part to be accessible from Prj.Attr.PM body.
11126         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
11127         from new package Prj.Attr.PM.
11128         (Parse_Attribute_Declaration): Call Add_Attribute from new package
11129         Prj.Attr.PM.
11131         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
11133         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
11134         instead of Elaboration_Checks).
11136         * a-calend.adb: Minor reformatting
11138 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11140         * gigi.h (maybe_pad_type): New declaration.
11141         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
11143         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
11145         * cuintp.c: Convert to use buildN.
11147         * decl.c (maybe_pad_type): No longer static.
11148         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
11149         target pointer.
11150         Convert to use buildN.
11152         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
11153         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
11154         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
11155         RHS.
11156         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
11157         (gnat_gimplify_expr, case ADDR_EXPR): New case.
11158         Convert to use buildN.
11160         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
11161         TREE_READONLY for const.
11162         Convert to use buildN.
11164         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
11165         (create_var_decl): Refine when TREE_STATIC is set.
11166         Convert to use buildN.
11168 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
11170         * gnat_ugn.texi: Delete text relating to checking of ali and object
11171         consistency.
11173         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
11174         routines.
11176 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
11178         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
11179         pragmas recognized by GNAT.
11181         * gnat_rm.texi: Document pragma Detect_Blocking.
11183         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
11184         raise Program_Error if called from a protected operation.
11186         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
11187         the protected action nesting level.
11188         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
11189         protected action nesting level.
11190         (Unlock): When pragma Detect_Blocking is active decrease the protected
11191         action nesting level.
11193         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
11194         Protected_Action_Nesting.
11196         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
11197         Common_ATCB record. It contains the dynamic level of protected action
11198         nesting for each task. It is needed for checking whether potentially
11199         blocking operations are called from protected operations.
11200         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
11201         Detect_Blocking is active or not in the partition.
11203         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
11204         raise Program_Error if called from a protected operation.
11205         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
11206         Program_Error if called from a protected operation.
11207         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
11208         Program_Error if called from a protected operation.
11210         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
11211         raise Program_Error if called from a protected operation.
11213         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
11214         raise Program_Error if called from a protected operation, and increase
11215         the protected action nesting level.
11216         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
11217         Program_Error if called from a protected operation, and increase the
11218         protected action nesting level.
11219         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
11220         protected action nesting level.
11222         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
11223         raise Program_Error if called from a protected operation, and increase
11224         the protected action nesting level.
11225         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
11226         Program_Error if called from a protected operation, and increase the
11227         protected action nesting level.
11228         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
11229         raise Program_Error if called from a protected operation.
11230         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
11231         active, raise Program_Error if called from a protected operation.
11232         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
11233         protected action nesting level.
11235         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
11236         insertion of the statement raising Program_Error. The run time
11237         contains the required machinery for handling that.
11239         * sem_util.ads: Change comment associated to procedure
11240         Check_Potentially_Blocking_Operation.
11241         This procedure does not insert a call for raising the exception because
11242         that is currently done by the run time.
11244         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
11246         * init.c: Add the global variable __gl_detect_blocking that indicates
11247         whether pragma Detect_Blocking is active (1) or not (0). Needed for
11248         making the pragma available at run time.
11249         (__gnat_set_globals): Pass and update the detect_blocking parameter.
11251         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
11252         pragma Detect_Blocking is active.
11254         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
11256         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
11257         DB is found in the ali file. Any unit compiled with pragma
11258         Detect_Blocking active forces its effect in the whole partition.
11260         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
11261         Detect_Blocking is active and delay is called from a protected
11262         operation.
11264         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
11265         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
11266         Detect_Blocking is active (0 otherwise).
11267         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
11268         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
11269         otherwise).
11271 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
11273         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
11274         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
11275         package.
11277         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
11278         (Register_Receiving_Stub): Add Subp_Info formal parameter.
11279         Update API in placeholder implemetation of s-parint to reflect changes
11280         in distribution runtime library.
11282         * sem_ch3.adb (Expand_Derived_Record): Rename to
11283         Expand_Record_Extension.
11285         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
11286         primitive operations of potentially distributed object types that have
11287         non-controlling anonymous access formals.
11289         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
11290         subprogram.
11291         New implementation of expansion for remote access-to-subprogram types,
11292         based on the RACW infrastructure.
11293         This version of sem_dist is compatible with PolyORB/DSA as well as
11294         GLADE.
11296         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
11297         Asynchrronous that applies to a remote access-to-subprogram type, mark
11298         the underlying RACW type as asynchronous.
11300         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
11301          __gnat_using_gnu_linker to 1.
11303         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
11304         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
11305         GNAT.Perfect_Hash_Generators, and remove the empty
11306         GNAT.Perfect_Hash package.
11308         * atree.adb: Minor reformatting
11310         * exp_ch3.adb (Expand_Derived_Record): Rename to
11311         Expand_Record_Extension.
11312         (Build_Record_Init_Proc.Build_Assignment): The default expression in
11313         a component declaration must remain attached at that point in the
11314         tree so New_Copy_Tree copies it if the enclosing record type is derived.
11315         It is therefore necessary to take a copy of the expression when building
11316         the corresponding assignment statement in the init proc.
11317         As a side effect, in the case of a derived record type, we now see the
11318         original expression, without any rewriting that could have occurred
11319         during expansion of the ancestor type's init proc, and we do not need
11320         to go back to Original_Node.
11322         * exp_ch3.ads (Expand_Derived_Record): Rename to
11323         Expand_Record_Extension.
11325         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
11326         Returns the RACW type used to implement a remote access-to-subprogram
11327         type.
11328         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
11329         New subprograms. Used to create a proxy tagged object for a remote
11330         subprogram. The proxy object is used as the designated object
11331         for RAS values on the same partition (unless All_Calls_Remote applies).
11332         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
11333         System.Partition_Interface.Get_Unique_Remote_Pointer.
11334         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
11335         Renamed from Add_RAS_*_Attribute.
11336         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
11337         subprograms.
11338         New implementation of expansion for remote access-to-subprogram types,
11339         based on the RACW infrastructure.
11341         * exp_dist.ads (Copy_Specification): Update comment to note that this
11342         function can copy the specification from either a subprogram
11343         specification or an access-to-subprogram type definition.
11345 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
11347         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
11348         in an instance, between an explicit subprogram an one inherited from a
11349         type derived from an actual.
11351         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
11352         add a polling call if the subprogram is to be inlined by the back-end,
11353         to avoid repeated calls with multiple inlinings.
11355         * checks.adb (Apply_Alignment_Check): If the expression in the address
11356         clause is a call whose name is not a static entity (e.g. a dispatching
11357         call), treat as dynamic.
11359 2004-09-09  Robert Dewar  <dewar@gnat.com>
11361         * g-trasym.ads: Minor reformatting
11363         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
11364         packed arrays, since unused bits are expected to be zero for a
11365         comparison.
11367 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
11369         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
11370         comment.
11372 2004-09-09  Pascal Obry  <obry@gnat.com>
11374         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
11375         enable map file generation. Add the right option to generate the map
11376         file if Map_File is set to True.
11378         * gnatdll.adb (Gen_Map_File): New variable.
11379         (Syntax): Add info about new -m (Map_File) option.
11380         (Parse_Command_Line): Add support for -m option.
11381         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
11382         Minor reformatting.
11384 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
11386         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
11387         new gnatdist implementation.
11388         Define a subpackage isolating the output routines specific to this
11389         verbose mode.
11391 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
11393         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
11395         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
11397 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
11399         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
11400         internal unit.
11402         * opt.ads: Add Ada_Version_Runtime constant used to decide which
11403         version of the language is used to compile the run time.
11405 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
11407         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
11408         of variable length temporaries for function return now that the
11409         back-end and gigi support it.
11411 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11413         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
11415         * trans.c (struct stmt_group): Delete field GLOBAL.
11416         (gnat_init_stmt_group): Do not initialize it.
11417         (call_to_gnu): Use save_expr, not protect_multiple_eval.
11418         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
11419         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
11420         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
11421         (start_stmt_group): Likewise.
11422         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
11424         * utils2.c (ggc.h): Include.
11425         (build_call_raise): Call build_int_cst, not build_int_2.
11427         * utils.c (gnat_init_decl_processing): Fix arg to
11428         build_common_tree_nodes.
11429         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
11430         (gnat_define_builtin): Set built_in_decls.
11431         (init_gigi_decls): Call build_int_cst, not build_int_2.
11433         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
11434         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
11435         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
11436         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
11437         SET_TYPE_MODULE): Use them.
11438         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
11439         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
11440         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
11441         SET_TYPE_ADA_SIZE): Likewise.
11442         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
11443         (DECL_CONST_CORRESPONDING_VAR,
11444         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
11445         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
11446         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
11447         (TYPE_RM_SIZE_NUM): New macro.
11448         (TYPE_RM_SIZE): Modified to use above.
11450         * cuintp.c: (build_cst_from_int): New function.
11451         (UI_To_gnu): Use it.
11453         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
11454         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
11455         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
11456         MIN_EXPR for the size, copy it into new.
11458 2004-09-01  Robert Dewar  <dewar@gnat.com>
11460         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
11461         packed indexed component where array is an IN OUT formal. This
11462         generated garbage code previously.
11464         * gnat_ugn.texi: Document -fverbose-asm
11466         * gnat-style.texi: Minor updates (note that boolean constants and
11467         variables are joined with AND/OR rather than short circuit forms).
11469 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
11471         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
11472         it is an upward conversion of an untagged type with no representation
11473         change.
11475 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
11477         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
11478         System.Partition_Interface.
11480         * checks.adb (Apply_Access_Checks): Do not generate checks when
11481         expander is not active (but check for unset reference to prefix of
11482         dereference).
11484         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
11485         pragma Debug as an if statement with a constant condition, for
11486         consistent treatment of entity references contained within the
11487         enclosed procedure call.
11489 2004-09-01  Vincent Celier  <celier@gnat.com>
11491         * bindgen.adb: (Set_EA_Last): New procedure
11492         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
11493         Set_EA_Last.
11494         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
11495         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
11496         linked without errors.
11497         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
11498         ST and EA.
11499         (Gen_Exception_Table_C): Correct same bugs
11501         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
11503         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
11504         on Windows, make sure that the drive letter is in upper case.
11506         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
11507         Windows, when the drive letter is added and Case_Sensitive is True, the
11508         drive letter is forced to upper case.
11510         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
11511         to Options_2 for the call to MLib.Utl.Gcc.
11513         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
11514         directory separator when defining BASE_DIR.
11516 2004-09-01  Pascal Obry  <obry@gnat.com>
11518         * gprcmd.adb (Extend): Do not output trailing directory separator. This
11519         is not needed and it confuses Windows GNU/make which does not report
11520         directory terminated by a slash as a directory.
11521         (gprcmd): Idem for "pwd" internal command.
11523         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
11524         target names rewrite to fix regressions with recent version of
11525         GNU/make. Starting with GNU/make 3.80 the pipe character was not
11526         handled properly anymore.
11528 2004-09-01  Andreas Schwab  <schwab@suse.de>
11530         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
11531         * raise.c [!IN_RTS]: Undef abort.
11533 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
11535         * utils2.c (build_allocator): Use ssize_int.
11537         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
11539 2004-08-27  Andreas Schwab  <schwab@suse.de>
11541         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
11543 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
11544             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11546         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
11548 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
11550         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
11551         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
11552         * utils.c (init_gigi_decls): Likewise.
11553         * utils2.c (build_call_raise, build_allocator): Likewise.
11555 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
11557         * utils.c (gnat_init_decl_processing): Adjust
11558         build_common_tree_nodes call.
11560 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
11562         * utils2.c (build_allocator): Use build_int_cst for negative
11563         size types.
11565 2004-08-18  Richard Henderson  <rth@redhat.com>
11567         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
11569 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
11571         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
11572         call.s
11573         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
11574         (gnat_to_gnu): Likewise.
11576 2004-08-16  Pascal Obry  <obry@gnat.com>
11578         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
11579         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
11580         option and not mdll anymore. Update comment.
11582 2004-08-16  Pascal Obry  <obry@gnat.com>
11584         * bld.adb (Put_Include_Project): Properly handle directory separators
11585         on Windows.
11587 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
11589         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
11590         decreasing the number of allocated junk nodes while searching for the
11591         appropriate subprogram.
11593 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
11595         * cuintp.c (UI_To_gnu): Use build_int_cst..
11596         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
11597         * utils.c (init_gigi_decls): Likewise.
11598         * utils2.c (build_call_raise): Likewise.
11600 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
11602         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
11603         for a global aliased object with a variable size and an unconstrained
11604         nominal subtype, pretend there is no initializer if the one we have is
11605         incomplete, and avoid referencing an inexistant component in there. The
11606         part we have will be rebuilt anyway and the reference may confuse
11607         further operations.
11609 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
11611         * einfo.ads: Minor reformatting
11613         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
11614         restrictions in the ALI if we only want to warn about violations.
11616 2004-08-13  Vincent Celier  <celier@gnat.com>
11618         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
11619         when creating a new Unit_Record in table Units.
11621         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
11622         that are violated, if any.
11624         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
11625         add directory separator if path already ends with a directory separator.
11627 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
11629         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
11630         unit, this is an attempt to inline a construct that is not available in
11631         the current restricted mode, so abort rather than trying to continue.
11633         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
11634         discriminants that rename those of the parent, recover names of
11635         original discriminants for the constraint on the full view of the
11636         parent.
11637         (Complete_Private_Subtype): Do not create a subtype declaration if the
11638         subtype is an itype.
11640         * gnat_rm.texi: Added section on implementation of discriminated
11641         records with default values for discriminants.
11643 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
11645         PR ada/15601
11646         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
11647         the second operand is overloaded.
11649 2004-08-10  Richard Henderson  <rth@redhat.com>
11651         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
11652         add __builtin_alloca.
11654 2004-08-10  Richard Henderson  <rth@redhat.com>
11656         * config-lang.in (boot_language): Yes.
11658 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
11660         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
11661         from complaining on potential uninitialized reference.
11662         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
11663         new specification and test explicitly for non-zero return value.
11665         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
11666         returning C.int, to avoid using a derived boolean type.
11668         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
11669         Duplicate_Subexpr_No_Checks in preference to direct use of
11670         Remove_Side_Effects and New_Copy_Tree.
11671         Clear Comes_From_Source on prefix of 'Size attribute reference.
11673         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
11674         g-socthi-vxworks.adb: Change calls to
11675         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
11676         and test explicitly for non-zero return value.
11678         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
11679         (Is_Socket_In_Set): Declare imported function as returning C.int, to
11680         avoid using a derived boolean type.
11682 2004-08-09  Albert Lee  <lee@gnat.com>
11684         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
11686 2004-08-09  Pascal Obry  <obry@gnat.com>
11688         * gnat_ugn.texi: Document new way to build DLLs on Windows using
11689         GCC's -shared option.
11691         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
11692         Options_2 parameter (options put after object files).
11694 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
11696         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
11697         ignore overflows on low and high bounds of an index to also account for
11698         differences in signedness between sizetype and gnu_index_subtype.
11699         These are as legitimate as the ones caused by a lower TYPE_PRECISION
11700         on sizetype.
11702 2004-08-09  Robert Dewar  <dewar@gnat.com>
11704         * s-solita.ads, s-solita.adb: Minor reformatting
11706         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
11707         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
11708         obsolescent section
11709         Add note that No_Implicit_Conditionals does not suppress
11710         run time constraint checks.
11712         * vms_conv.ads: Minor reformatting
11714         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
11715         and necessary for following change).
11716         (Mark): Return new format Mark_Id containing sec stack address
11717         (Release): Use sec stack address from Mark_Id avoiding Self call
11719         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
11720         pointer (cleanup and necessary for following change).
11721         Define Mark_Id as record containing address of secondary stack, that way
11722         Release does not need to find the stack again, decreasing the number of
11723         calls to Self and improving efficiency.
11725         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
11727         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
11728         case variable into the individual case branches when possible.
11730         * sem_ch11.adb: Minor reformatting
11732         * prj.ads: Correct spelling of suffixs
11734         * prj-nmsc.adb: Minor reformatting
11735         Correct spelling suffixs throughout (also in identifiers)
11737         * freeze.adb: Minor spelling correction
11739         * exp_ch2.adb: Cleanups to handling of Current_Value
11740         (no functional effect).
11742         * bld.adb: Correct spelling of suffixs
11744         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
11746 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
11748         PR ada/15408
11750         * sem_ch7.adb (Install_Private_Declarations): In the body of the
11751         package or of a child, private entities are both immediately_visible
11752         and not hidden.
11754 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
11756         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
11757         there are no range checks on the value of the literal.
11759         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
11760         wrapped is the triggering alternative of an asynchronous select, action
11761         statements mustbe inserted before the select itself.
11763         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
11764         case where the prefix is a protected function call.
11765         (Resolve_Attribute, case 'Access): The attribute reference on a
11766         subprogram is legal in a generic body if the subprogram is declared
11767         elsewhere.
11769 2004-08-09  Vincent Celier  <celier@gnat.com>
11771         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
11772         languages, otherwise building the library may fail with unresolved
11773         symbols.
11774         (Compile_Sources): Do not build libraries if -c switch is used
11776         * gnatlink.adb (Process_Args): New switches -M and -Mmap
11777         (Write_Usage): If map file creation is supported, output new switches
11778         -M and -Mmap.
11779         (Gnatlink): When -M is specified, add the necessary switch(es) to the
11780         gcc call, when supported.
11782         * Makefile.in: Added indepsw.o to the object list for gnatlink
11783         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
11785         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
11786         indepsw.adb, indepsw.ads: New files.
11788 2004-08-09  Bernard Banner  <banner@gnat.com>
11790         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
11792         * Makefile.in: add section for vxworks x86
11794 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
11796         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
11797         per-object constrained components where the discriminant is of an
11798         Access type.
11799         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
11800         the parent initialization procedure for derived Unchecked_Unions.
11801         Instead, derived Unchecked_Unions build their own initialization
11802         procedure.
11803         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
11804         Check the body of the subprogram for details.
11805         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
11806         functions for derived Unchecked_Union types by introducing a condition.
11807         Allow the creation of TSS equality functions for Unchecked_Unions.
11808         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
11809         Add formal parameter Discr to function signature. Discr is used to
11810         control the generated case statement for Unchecked_Union types.
11811         (Make_Eq_If): Rename formal parameter Node to E in function signature.
11813         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
11814         Unchecked_Unions.
11815         Check the body of the subprogram for details.
11816         (Expand_Composite_Equality): Augment composite type equality to include
11817         correct handling of Unchecked_Union components.
11818         (Expand_N_In): Add condition to detect illegal membership tests when the
11819         subtype mark is a constrained Unchecked_Union and the expression lacks
11820         inferable discriminants, and build a Raise_Program_Error node.
11821         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
11822         to detect types that contain components of unconstrained Unchecked_Union
11823         subtype. Add condition to detect equality between types that have an
11824         unconstrained Unchecked_Union component, and build a Raise_Program_Error
11825         node. Add condition to detect equality between Unchecked_Union types
11826         that lack inferable discriminants, and build a Raise_Program_Error node.
11827         Otherwise build a TSS equality function call.
11828         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
11829         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
11830         with the operand lacking inferable discriminants, and build a Raise_
11831         Program_Error node.
11832         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
11833         composite equality.
11834         (Has_Inferable_Discriminants): Implement new predicate for objects and
11835         expressions of Unchecked_Union type. Check the body of subprogram for
11836         details.
11837         (Has_Unconstrained_UU_Components): Add function
11838         Component_Is_Unconstrained_UU. It is used to detect whether a single
11839         component is of an unconstrained Unchecked_Union subtype. Add function
11840         Variant_Is_Unconstrained_UU. It is used to detect whether a single
11841         component inside a variant is of an unconstrained Unchecked_Union type.
11843         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
11844         inferred discriminant values. Add condition to generate a case
11845         statement with an inferred discriminant as the switch.
11846         (Make_Component_List_Assign): Introduce a Boolean flag that determines
11847         the behaviour of the subprogram in the presence of an Unchecked_Union.
11848         Add condition to trigger the usage of the inferred discriminant value
11849         as the generated case statement switch.
11850         (Make_Field_Assign): Introduce a Boolean flag that determines the
11851         behaviour of the subprogram in the presence of an Unchecked_Union. Add
11852         condition to trigger the usage of the inferred discriminant value as
11853         the right-hand side of the generated assignment.
11855         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
11856         parameter generation when dealing with Unchecked_Unions.
11858         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
11859         checks for Unchecked_Unions.
11861         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
11863         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
11864         Raise_Program_Error nodes for the execution of Read and Write
11865         attributes of Unchecked_Union types and the execution of Input and
11866         Output attributes of Unchecked_Union types that lack default
11867         discriminant values.
11869         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
11870         Unchecked_Union. Add procedure Check_Component. It is used to inspect
11871         per-object constrained components of Unchecked_Unions for being
11872         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
11873         check individual components withing a variant.
11875         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
11876         comparison of Unchecked_Unions.
11877         (Resolve_Equality_OP): Remove guard that prevents equality between
11878         Unchecked_Unions.
11880         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
11881         of component subtypes for Unchecked_Union components.
11882         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
11883         since it is the actual subtype.
11885         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
11886         pass of Unchecked_Union subtypes as generic actuals to formal types
11887         that lack known_discriminant_parts or that are derived Unchecked_Union
11888         types, and do nothing. In any other case, produce an error message.
11890         * sem_ch3.adb (Analyze_Component_Declaration): Add function
11891         Contains_POC. It determines whether a constraint uses the discriminant
11892         of an enclosing record type.
11893         Add condition to detect per-object constrained component and set the
11894         appropriate flag.
11895         (Derived_Type_Declaration): Remove guard that prevents derivation from
11896         Unchecked_Union types.
11897         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
11898         Union subtypes.
11900         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
11901         references to Unchecked_Union discriminants.
11903         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
11904         formal generation when dealing with Unchecked_Unions.
11905         (Set_Actual_Subtypes): Add condition to prevent generation of actual
11906         subtypes for Unchecked_Unions.
11908         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
11909         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
11910         completions of discriminated partial views by Unchecked_Unions and
11911         produce an error message.
11913 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11915         * trans.c (struct stmt_group): New field, GLOBAL.
11916         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
11917         (struct elab_info): New struct.
11918         (elab_info_list, gnu_elab_proc_stack): New variables.
11919         (Compilation_Unit_to_gnu): New procedure.
11920         (gigi): Call it and also handle elaboration procs we've saved.
11921         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
11922         global field from parent.
11923         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
11924         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
11925         (start_stmt_group): Initialize global field from parent.
11926         (add_decl_expr): Set to global for current statement group.
11927         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
11928         post.
11930         * utils.c (global_bindings_p): True when no current_function_decl; no
11931         longer check current_binding_level.
11933 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
11935         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
11936         choice.
11938         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
11940 2004-08-06  Andreas Schwab  <schwab@suse.de>
11942         * utils.c (gnat_define_builtin): Remove second parameter of
11943         make_decl_rtl.
11944         (begin_subprog_body): Likewise.
11946 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
11948         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
11949         optimization, not supported by the tree-ssa back-end.
11951 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
11953         * s-mastop-irix.adb: Update comments.
11955         * a-except.adb (Exception_Information): Raise Constraint_Error if
11956         exception Id is Null_Id.
11957         This is required behavior, which is more reliably and clearly checked
11958         at the top level interface level.
11960 2004-07-26  Javier Miranda  <miranda@gnat.com>
11962         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
11963         call if a component has no default_expression and the box is used.
11965         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
11966         default_expression and you use box, it behaves as if you had declared a
11967         stand-alone object.
11968         (Resolve_Record_Aggregate): If a component has no default_expression and
11969         you use box, it behaves as if you had declared a stand-alone object.
11971         * sem_ch10.adb (Install_Siblings): Do not make visible the private
11972         entities of private-with siblings.
11974 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
11976         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
11977         for a component of an itype, set the parent pointer for analysis,
11978         there is no list in which to insert it.
11980         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
11981         bona-fide renamings, not for inherited operations.
11983         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
11984         actual for a formal that is an access parameter, create local
11985         finalization list even if the expression is not an aggregate.
11987 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
11989         PR ada/16213
11990         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
11991         Diagnose properly illegal subprogram renamings that are library units.
11993 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
11995         PR ada/15588
11996         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
11997         conversion rewritten as an unchecked conversion, check that original
11998         expression is a variable.
12000         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
12001         unchecked_conversion, create new node rather than rewriting in place,
12002         to preserve original construct.
12004 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12006         * gigi.h (gnat_expand_body): Deleted.
12008         * Make-lang.in: (trans.o): Depends on function.h.
12010         * misc.c: (gnat_expand_body): Moved to here.
12012         * trans.c (gnat_expand_body_1): Deleted.
12013         (gnat_expand_body): Moved from here.
12014         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
12015         (add_stmt): Check for marked visited with global_bindings_p.
12016         (gnat_gimplify_expr, case COMPONENT_REF): New case.
12017         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
12019         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
12020         VIEW_CONVERT_EXPR if not operation type.
12022         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
12023         fat pointer.
12025         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
12026         changes: reformatting of negation operators, removing unneeded
12027         inequality comparison with zero, converting equality comparisons with
12028         zero to negations, changing int/0/1 to bool/false/true, replace calls
12029         to gigi_abort with abort, and various other similar changes.
12031 2004-07-26  Vincent Celier  <celier@gnat.com>
12033         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
12034         "setup".
12036         * make.adb (Gnatmake): Fail when a library is not present and there is
12037         no object directory.
12039         * mlib-prj.adb (Check_Library): No need to check if the library needs
12040         to be rebuilt if there is no object directory, hence no object files
12041         to build the library.
12043         * opt.ads (Setup_Projects): New Boolean flag.
12045         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
12046         Location.
12047         Create directory when Kind /= "" and in "gnat setup". Report error if
12048         directory cannot be created.
12049         (Ada_Check): Create library interface copy dir if it does not exist
12050         and we are in "gnat setup".
12051         (Find_Sources): No error if in "gnat setup" and no Ada sources were
12052         found.
12053         (Language_Independent_Check): Create object directory, exec directory
12054         and/or library directory if they do not exist and we are in
12055         "gnat setup".
12057         * vms_conv.ads: (Command_Type): New command Setup.
12059         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
12061         * vms_data.ads: Add qualifiers/switches for new built-in command
12062         "setup".
12064 2004-07-25  Richard Henderson  <rth@redhat.com>
12066         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
12067         DECL_IGNORED_P on RESULT_DECL.
12069 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
12071         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
12072         allocation and potentially overflowing update with
12073         Tailored_Exception_Information. Use the sec-stack free procedural
12074         interface to output Exception_Information instead.
12076         * a-except.adb (To_Stderr): New subprogram for character, and string
12077         version moved from a-exextr to be visible from other separate units.
12078         (Tailored_Exception_Information): Remove the procedural version,
12079         previously used by the default Last_Chance_Handler and not any more.
12080         Adjust various comments.
12082         * a-exexda.adb: Generalize the exception information procedural
12083         interface, to minimize the use of secondary stack and the need for
12084         local buffers when the info is to be output to stderr:
12085         (Address_Image): Removed.
12086         (Append_Info_Character): New subprogram, checking for overflows and
12087         outputing to stderr if buffer to fill is of length 0.
12088         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
12089         (Append_Info_Address, Append_Info_Exception_Name,
12090         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
12091         Append_Info_Basic_Exception_Traceback,
12092         Append_Info_Exception_Information): New subprograms.
12093         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
12094         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
12095         Exception_Info_Maxlength, Exception_Name_Length,
12096         Exception_Message_Length): New subprograms.
12097         (Exception_Information): Use Append_Info_Exception_Information.
12098         (Tailored_Exception_Information): Use
12099         Append_Info_Basic_Exception_Information.
12100         Export services for the default Last_Chance_Handler.
12102         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
12103         other separate units.
12105 2004-07-20  Vincent Celier  <celier@gnat.com>
12107         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
12109 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
12111         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
12112         emit itype references for the designated types of component types that
12113         are declared outside of the full record declaration, and that may
12114         denote a partial view of that record type.
12116 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
12118         PR ada/15607
12119         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
12120         which is the designated type in an access component declaration, to the
12121         list of incomplete dependents of the parent type, to avoid elaboration
12122         issues with out-of-scope subtypes.
12123         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
12124         full view of the parent.
12126 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
12128         PR ada/15610
12129         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
12130         entities that are hidden, such as references to generic actuals
12131         outside an instance.
12133 2004-07-20  Javier Miranda  <miranda@gnat.com>
12135         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
12136         support to the new notation.
12137         (Analyze_Selected_Component): Add call to Try_Object_Operation.
12139 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
12141         * s-taprob.adb: Adding the elaboration code required for initializing
12142         the tasking soft links that are common to the full and the restricted
12143         run times.
12145         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
12146         restricted run time has been moved to the package
12147         System.Soft_Links.Tasking.
12149         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
12150         restricted run time has been moved to the package
12151         System.Soft_Links.Tasking.
12153         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
12155         * s-solita.ads, s-solita.adb: New files.
12157 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12159         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
12160         Case_Statement_to_gnu): Split off from gnat_to_gnu.
12161         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
12162         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
12163         Exception_Handler_to_gnu_zcx): Likewise.
12165 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
12167         * gigi.h (builtin_function): Declare.
12169 2004-07-15  Robert Dewar  <dewar@gnat.com>
12171         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
12172         reformatting
12174         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
12175         access values as an example of a warning.
12177         * gnat_rm.texi: Document new attribute Has_Access_Values
12179         * gnat-style.texi: Document that box comments belong on nested
12180         subprograms
12182         * sem_util.ads (Has_Access_Values): Improved documentation
12184         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
12186         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
12187         (Process_Interface_Name): Call to this new procedure
12188         (Set_Extended_Import_Export_External_Name): Call to this new procedure
12190         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
12192         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
12194         * einfo.ads: Minor comment typo fixed
12196 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
12198         * snames.adb: Add _atcb.
12200         * snames.ads: Add Name_uATCB.
12202         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
12203         (in the expanded code) when using the restricted run time.
12205         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
12206         a in parameter in order to allow ATCBs to be preallocated (in the
12207         expanded code).
12209         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
12210         order to allow ATCBs to be preallocated. In case of error, the ATCB is
12211         deallocated in System.Tasking.Stages.
12213         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
12214         order to allow ATCBs to be preallocated.
12216         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
12217         here. It was previously done in Initialize_ATCB.
12219         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
12221         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
12222         Restricted run time.
12224         * exp_ch3.adb: When using the Restricted run time, pass the
12225         preallocated Ada_Task_Control_Block when creating a task.
12227 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
12229         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
12230         function call that is itself an actual in an enclosing call, diagnose
12231         problem here rather than assuming that resolution will catch it.
12233         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
12234         the local copy of a generic unit for a formal package, and the generic
12235         is a child unit, install private part of ancestors before compiling
12236         private part of spec.
12238         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
12239         use scope entities rather than tree structures, to handle properly
12240         parent units that are instances rewritten as bodies for inlining
12241         purposes.
12243         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
12244         Remove_Parents): Handle properly a parent unit that is an
12245         instantiation, when the unit has been rewritten as a body for inlining
12246         purposes.
12248         * par.adb (Goto_List): Global variable to collect goto statements in a
12249         given unit, for use in detecting natural loops.
12251         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
12252         use in detecting natural loops.
12254         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
12255         backwards goto's, and rewrite as a infinite loop, to improve locality
12256         of temporaries.
12258         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
12259         subcomponent that includes an indexed reference, to prevent the
12260         generation of copies that would miscompile the desired assignment
12261         statement.
12262         (Build_Task_Image_Decls): Add a numeric suffix to
12263         generated name for string variable, to avoid spurious conflicts with
12264         the name of the type of a single protected object.
12266         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
12267         loop with an explicit exit statement, to avoid generating an
12268         out-of-range value with 'Succ leading to spurious constraint_errors
12269         when compiling with -gnatVo.
12271 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
12273         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
12274         might not be analyzed yet, even if its Etype is already set (case of an
12275         unchecked conversion built using Unchecked_Convert_To, for example).
12276         If the prefix has already been analyzed, this will be a nop anyway.
12278         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
12279         controller type, or an assignment of a record type with controlled
12280         components, copy only user data, and leave the finalization chain
12281         pointers untouched.
12283 2004-07-15  Vincent Celier  <celier@gnat.com>
12285         * make.adb (Collect_Arguments): Improve error message when attempting
12286         to compile a source not part of any project, when -x is not used.
12288         * prj.ads: (Defined_Variable_Kind): New subtype
12290         * prj-attr.adb (Register_New_Package): Two new procedures to register
12291         a package with or without its attributes.
12292         (Register_New_Attribute): Mew procedure to register a new attribute in a
12293         package.
12294         New attribute oriented subprograms: Attribute_Node_Id_Of,
12295         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
12296         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
12297         Next_Attribute.
12298         New package oriented subprograms: Package_Node_Id_Of,
12299         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
12301         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
12302         type.
12303         (Package_Node_Id): Now a private, self initialized type
12304         (Register_New_Package): New procedure to register a package with its
12305         attributes.
12306         New attribute oriented subprograms: Attribute_Node_Id_Of,
12307         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
12308         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
12309         Next_Attribute.
12310         New package oriented subprograms: Package_Node_Id_Of,
12311         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
12313         * prj-dect.adb (Parse_Attribute_Declaration,
12314         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
12316         * prj-makr.adb (Make): Parse existing project file before creating
12317         other files. Fail if there was an error during parsing.
12319         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
12320         new spec of Prj.Attr.
12322         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
12323         to new spec of Prj.Attr.
12325 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12327         * utils2.c: Fix typo in comment.
12329 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12331         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
12332         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
12334 2004-07-14  Andreas Schwab  <schwab@suse.de>
12336         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
12338 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12340         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
12341         object type.
12342         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
12343         TYPE_STUB_DECL.
12345         * misc.c (gnat_types_compatible_p): New function.
12346         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
12347         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
12349         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
12350         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
12351         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
12352         (mark_visited): Don't mark dummy type.
12353         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
12354         parameter, we must remove any LJM building from GNU_NAME.
12355         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
12356         (pos_to_constructor): Use int_const_binop.
12357         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
12358         PARM_DECL.
12360         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
12361         (gnat_pushlevel): Set TREE_USE on BLOCK node.
12362         (gnat_install_builtins): Add __builtin_memset.
12364 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
12366         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
12367         for a renaming, stabilize the initialization expression if we are at a
12368         local level.  At the local level, uses of the renaming may be performed
12369         by a direct dereference of the initializing expression, and we don't
12370         want possible variables there to be evaluated for every use.
12372         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
12373         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
12374         them on the way.  Account for the fact that we may introduce side
12375         effects in the process.
12377 2004-07-13  Richard Henderson  <rth@redhat.com>
12379         * misc.c (default_pass_by_ref): Use pass_by_reference.
12381 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12383         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
12384         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12386 2004-07-08  Richard Henderson  <rth@redhat.com>
12388         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
12389         commentary.
12391 2004-07-06  Vincent Celier  <celier@gnat.com>
12393         * vms_conv.ads: Minor reformatting.
12394         Alphabetical order for enumerated values of type Command_Type, to have
12395         the command in alphabetical order for the usage.
12397         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
12398         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
12400         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
12402         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
12403         (Add_Archive_Path): Only add the global archive if there is one.
12404         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
12405         or not any object file to put in the global archive, and don't build
12406         a global archive if there is none.
12407         (X_Switches): New table
12408         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
12409         in the X_Switches table, if any.
12410         (Initialize): Make sure the X_Switches table is empty
12411         (Scan_Arg): Record -X switches in table X_Switches
12413         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
12415         * make.adb: Minor comment fix
12417         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
12418         invoked with directory information, add the directory in front of the
12419         path.
12421         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
12422         invoked with directory information, add the directory in front of the
12423         path.
12425         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
12426         when Keep_Temporary_Files is False.
12427         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
12428         directory information, add the directory in front of the path.
12429         When not on VMS, handle new switch -dn before the command to set
12430         Keep_Temporary_Files to True.
12431         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
12432         everywhere.
12434         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
12435         invoked with directory information, add the directory in front of the
12436         path.
12438 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
12440         * snames.ads, snames.adb (Name_Stub): New name for the distributed
12441         systems annex.
12443         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
12444         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
12446         * g-socket.adb (To_Timeval): Fix incorrect conversion of
12447         Selector_Duration to Timeval for the case of 0.0.
12449         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
12450         documentation from Evolve_And_Then.
12452 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
12454         * s-taprop-tru64.adb, s-taprop-os2.adb,
12455         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
12457 2004-07-06  Robert Dewar  <dewar@gnat.com>
12459         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
12460         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
12461         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
12462         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
12463         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
12464         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
12465         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
12466         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
12467         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
12468         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
12469         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
12470         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
12471         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
12472         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
12473         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
12474         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
12475         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
12476         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
12477         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
12478         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
12479         vms_data.ads: Minor reformatting,
12480         Fix bad box comment format.
12482         * gnat_rm.texi: Fix minor grammatical error
12484         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
12486         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
12487         more cases of discriminated records to be recognized as not needing a
12488         secondary stack.
12489         (Has_Access_Values): New function.
12491         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
12493         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
12494         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
12495         with LRM terminology).
12496         Change terminology in comments primitive type => elementary type.
12498 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
12500         PR ada/15602
12501         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
12502         parameters do not impose any requirements on the presence of a body.
12504 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
12506         PR ada/15593
12507         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
12508         compilation unit and is in an open scope at the point of instantiation,
12509         assume that a body may be present later.
12511 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
12513         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
12514         Improve error message when specified size is not supported.
12516         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
12517         is never a primitive operation.
12519 2004-07-05  Andreas Schwab  <schwab@suse.de>
12521         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
12522         RECORD_OR_UNION_CHECK.
12523         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
12525 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
12527         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
12528         dependency on xgnatugn, instead build it via a submake.
12529         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
12531 2004-07-04  Richard Henderson  <rth@redhat.com>
12533         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
12535 2004-07-01  Richard Henderson  <rth@redhat.com>
12537         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
12538         * utils.c (max_size): Likewise.
12540 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12542         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
12543         and rest_of_type_compilation; add arg to create_*_decl.
12544         (annotate_decl_with_node): Deleted.
12545         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
12546         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
12547         (get_current_block_context, gnat_pushdecl): New declarations.
12548         (gnat_init_stmt_group): Likewise.
12549         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
12550         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
12551         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
12552         (gnat_init): Call gnat_init_stmt_group.
12553         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
12554         (gnu_pending_elaboration_list): Deleted.
12555         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
12556         (gigi): Rearrange initialization calls and move some to last above.
12557         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
12558         Delete calls to add_decl_expr; add arg to create_*_decl.
12559         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
12560         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
12561         begin_subprog_body and call it.
12562         Don't push and pop ggc context.
12563         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
12564         (add_stmt): Remove handling of DECL_EXPR from here.
12565         If not in function, mark visited.
12566         (add_decl_expr): Put global at top level.
12567         Check for cases of DECL_INITIAL we have to handle here.
12568         (process_type): Add extra arg to create_type_decl.
12569         (build_unit_elab): Rework to just gimplify.
12570         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
12571         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
12572         (get_pending_elaborations, pending_elaborations_p): Likewise.
12573         (push_pending_elaborations, pop_pending_elaborations): Likewise.
12574         (get_elaboration_location, insert_elaboration_list): Likewise.
12575         (gnat_binding_level): Renamed from ada_binding_level.
12576         (init_gnat_to_gnu): Don't clear pending_elaborations.
12577         (global_bindings_p): Treat as global if no current_binding_level.
12578         (set_current_block_context): New function.
12579         (gnat_pushdecl): Renamed from pushdecl; major rework.
12580         All callers changed.
12581         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
12582         (finish_record_type): Call call pushdecl for stub decl.
12583         (function_nesting_depth): Deleted.
12584         (begin_subprog_body): Delete obsolete code.
12585         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
12587 2004-06-28  Robert Dewar  <dewar@gnat.com>
12589         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12590         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12591         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
12592         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
12593         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
12595         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
12596         deal with problem of inefficient slices on machines with strict
12597         alignment, when the slice is a component of a composite.
12599         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
12600         machines, we need the check there as well.
12602 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
12604         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
12605         determine safe copying direction for overlapping slice assignments
12606         when component is controlled.
12608         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
12609         formal derived type in the actual for a formal package are visible in
12610         the enclosing instance.
12612 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
12614         PR ada/15600
12615         * sem_util.adb (Trace_Components): Diagnose properly an illegal
12616         circularity involving a private type whose completion includes a
12617         self-referential component.
12618         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
12619         renaming or an instantiation from an implicit derived operation.
12621 2004-06-28  Pascal Obry  <obry@gnat.com>
12623         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
12624         DLL.
12625         (Library_File_Name_For): Idem.
12627 2004-06-28  Matthew Gingell  <gingell@gnat.com>
12629         * g-traceb.ads: Add explanatory note on the format of addresses
12630         expected by addr2line.
12632 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
12634         * Makefile.in: Force debugging information on s-tasdeb.adb,
12635         a-except.adb and s-assert.adb needed by the debugger.
12637 2004-06-28  Vincent Celier  <celier@gnat.com>
12639         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
12640         Need_To_Build_Lib.
12641         (Gnatmake): Ditto.
12643         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
12645         * prj.adb: Minor reformatting
12646         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
12648         * prj.ads: Comment updates
12649         Minor reformatting
12650         (Project_Data): Change Flag1 to Need_To_Build_Lib.
12651         Remove Flag2: not used.
12653         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
12654         declaration.
12656         * gnat_ugn.texi: Put a "null;" declaration in one project file example
12658         * gnat_rm.texi: Document Empty declarations "null;".
12660         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
12661         front of the linker options.
12662         (Link_Foreign): Put the global archives and the libraries in front of
12663         the linker options.
12665 2004-06-28  Javier Miranda  <miranda@gnat.com>
12667         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
12668         (RTU_Loaded): Code cleanup
12669         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
12670         withed predefined units.
12672         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
12673         explicitly withed predefined units.
12674         Fix typo in comment
12676         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
12677         explicitly withed predefined units.
12679 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12681         * ada-tree.def (DECL_STMT): Deleted.
12682         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
12683         (DECL_STMT_VAR): Deleted.
12684         * decl.c: add_decl_stmt now add_decl_expr.
12685         * gigi.h: Likewise.
12686         * trans.c: Likewise.
12687         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
12688         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
12689         (add_stmt): Only handle padded type here.
12690         (add_stmt_with_node): Allow gnat_node to not be present.
12691         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
12692         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
12693         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
12694         make a SAVE_EXPR for the entire fat pointer.
12695         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
12696         (create_index_type): Make a DECL_EXPR.
12697         (end_subprog_body): Don't call allocate_struct_function here but
12698         do clear cfun.
12700 2004-06-25  Pascal Obry  <obry@gnat.com>
12702         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
12703         Relocatable from Build_Dynamic_Library call.
12705         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
12706         Relocatable are now synonym.
12708         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
12710         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
12711         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
12712         call.
12714         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
12715         Lib_Address and Relocatable.
12716         (Default_DLL_Address): Removed.
12718         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12719         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
12720         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
12721         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
12722         (Default_DLL_Address): Removed.
12724         * mlib-tgt-mingw.adb: Ditto.
12725         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
12727         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
12728         the initial thread stack size.
12730         * a-strmap.ads: Move package L to private part as it is not used in
12731         the spec. Found while reading code.
12733 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
12735         * tracebak.c: Introduce support for a GCC infrastructure based
12736         implementation of __gnat_backtrace.
12738         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
12739         any more. Use accessors instead. This eases maintenance and relaxes
12740         some alignment constraints.
12741         (_GNAT_Exception structure): Remove the Ada specific fields
12742         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
12743         a-exexpr.adb.
12744         (is_handled_by, __gnat_eh_personality): Replace component references to
12745         exception structure by use of the new accessors.
12747         * init.c (__gnat_initialize): Adjust comments to match the just
12748         reverted meaning of the -static link-time option.
12750         * adaint.c (convert_addresses): Arrange not to define a stub for
12751         mips-irix any more, as we now want to rely on a real version from a
12752         recent libaddr2line.
12754         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
12755         the personality routine can use them and not have to rely on a C
12756         counterpart of the record anymore. This simplifies maintenance and
12757         relaxes the constraint of having Standard'Maximum_Alignment match
12758         BIGGEST_ALIGNMENT.
12759         Update comments, and add a section on the common header alignment issue.
12761 2004-06-25  Geert Bosch  <bosch@gnat.com>
12763         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
12764         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
12766 2004-06-25  Robert Dewar  <dewar@gnat.com>
12768         * gnat_rm.texi: Fix section on component clauses to indicate that the
12769         restriction on byte boundary placement still applies for bit packed
12770         arrays.
12771         Add comment on stack usage from Initialize_Scalars
12773         * gnat_ugn.texi: Add documentation for -gnatyLnnn
12775         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
12776         limiting nesting level.
12778         * usage.adb: Add line for -gnatyLnnn switch
12780         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
12781         sem_ch13.adb, exp_aggr.adb: Minor reformatting
12783         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
12784         type as well as on the subtype. This corrects a problem in freeze in
12785         setting alignments of atomic types.
12787         * sem_eval.ads: Minor comment typo fixed
12789         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
12790         level.  Minor reformatting.
12792         * fname.adb (Is_Predefined_File_Name): Require a letter after the
12793         minus sign. This means that file names like a--b.adb will not be
12794         considered predefined.
12796         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
12797         record Test new flag and give diagnostic for bad component clause.
12798         (Freeze_Entity): Set alignment of array from component alignment in
12799         cases where this is safe to do.
12801         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
12802         arrays.
12804         * cstand.adb: (Create_Standard): Set alignment of String to 1
12806         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
12808         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
12809         code in the common constrained array cases.
12811         * a-storio.adb: Change implementation to avoid possible alignment
12812         problems on machines requiring strict alignment (data should be moved
12813         as type Buffer, not type Elmt).
12815         * checks.adb (Apply_Array_Size_Check): Improve these checks by
12816         killing the overflow checks which we really do not need (64-bits is
12817         enough).
12819 2004-06-25  Vincent Celier  <celier@gnat.com>
12821         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
12822         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
12823         inconditionally for the main project.
12824         (Recursive_Add_Archives.Add_Archive_Path): New procedure
12825         (Link_Executables.Check_Time_Stamps): New procedure
12826         (Link_Executables.Link_Foreign): New procedure
12827         Changes made to reduce nesting level of this package
12828         (Check): New procedure
12829         (Add_Switches): When not in quiet output, check that a switch is not
12830         the concatenation of several valid switches. If it is, issue a warning.
12831         (Build_Global_Archive): If the global archive is rebuilt, linking need
12832         to be done.
12833         (Compile_Sources): Rebuilding a library archive does not imply
12834         rebuilding the global archive.
12835         (Build_Global_Archive): New procedure
12836         (Build_Library): New name for Build_Archive, now only for library
12837         project
12838         (Check_Archive_Builder): New procedure
12839         (Create_Global_Archive_Dependency_File): New procedure
12840         (Gprmake): Call Build_Global_Archive before linking
12841         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
12842         throughout.
12843         (Scan_Arg): Display the Copyright notice when -v is used
12845         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
12846         for gnatls.
12848         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
12849         COMPILE.
12850         Add new GNAT LIST qualifier /FILES=
12851         Added qualifier /DIRECTORY= to GNAT METRIC
12852         Added qualifier /FILES= to GNAT METRIC
12853         Added qualifier /FILES to GNAT PRETTY
12855         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
12856         to take into account both versions of the switch.
12858         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
12859         always be the last switch to the gcc driver. Disable switch storing so
12860         that switches automatically added by the gcc driver are not put in the
12861         ALI file.
12863         * prj.adb (Project_Empty): Take into account changes in components of
12864         Project_Data.
12866         * prj.ads (Languages_Processed): New enumaration value All_Languages.
12868         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
12869         used. Split Boolean component Ada_Sources_Present in two Boolean
12870         components Ada_Sources_Present and Other_Sources_Present.
12871         Minor reformatting
12873         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
12874         instead of Sources_Present.
12875         (Set_Ada_Paths.Add.Recursive_Add): Ditto
12877         * prj-nmsc.adb: Minor reformatting
12878         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
12879         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
12880         Check_Ada_Naming_Scheme.
12881         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
12882         throughout.
12884         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
12885         In_Limited.
12886         Make sure that all cycles where there is at least one "limited with"
12887         are detected.
12888         (Parse_Single_Project): New Boolean parameter In_Limited
12890         * prj-proc.adb (Recursive_Check): When Process_Languages is
12891         All_Languages, call first Prj.Nmsc.Ada_Check, then
12892         Prj.Nmsc.Other_Languages_Check.
12894         * prj-proc.adb (Process): Use Ada_Sources_Present or
12895         Other_Sources_Present (instead of Sources_Present) depending on
12896         Process_Languages.
12898         * lang-specs.h: Keep -g and -m switches in the same order, and as the
12899         last switches.
12901         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
12902         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
12903         False.
12904         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
12905         False.
12907         * lib.ads (Disable_Switch_Storing): New procedure.
12909         * make.adb: Modifications to reduce nesting level of this package.
12910         (Check_Standard_Library): New procedure
12911         (Gnatmake.Check_Mains): New procedure
12912         (Gnatmake.Create_Binder_Mapping_File): New procedure
12913         (Compile_Sources.Compile): Add switch -gnatez as the last option
12914         (Display): Never display -gnatez
12916         * Makefile.generic:
12917         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
12919         * gnatcmd.adb (Check_Project): New function
12920         (Process_Link): New procedure to reduce nesting depth
12921         (Check_Files): New procedure to reduce the nesting depth.
12922         For GNAT METRIC, include the inherited sources in extending projects.
12923         (GNATCmd): When GNAT LS is invoked with a project file and no files,
12924         add the list of files from the sources of the project file. If this list
12925         is too long, put it in a temp text files and use switch -files=
12926         (Delete_Temp_Config_Files): Delete the temp text file that contains
12927         a list of source for gnatpp or gnatmetric, if one has been created.
12928         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
12929         in the project file is too large, create a temporary text file that
12930         list them and pass it to the tool with "-files=<temp text file>".
12931         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
12933         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
12934         generated file is in not in Ada.
12936         * gnatls.adb: Remove all parameters And_Save that are no longer used.
12937         (Scan_Ls_Arg): Add processing for -files=
12938         (Usage): Add line for -files=
12940         * g-os_lib.adb (On_Windows): New global constant Boolean flag
12941         (Normalize_Pathname): When on Windows and the path starts with a
12942         directory separator, make sure that the resulting path will start with
12943         a drive letter.
12945         * clean.adb (Clean_Archive): New procedure
12946         (Clean_Project): When there is non-Ada code, delete the global archive,
12947         the archive dependency files, the object files and their dependency
12948         files, if they exist.
12949         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
12951 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
12953         * sinfo.ads: Fix typo in comment.
12955         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
12956         the TSS for remote access-to-subprogram types, since these TSS are
12957         always present once the type has been analyzed.
12958         (RAS_E_Dereference): Same.
12960         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
12961         reference raises Bad_Attribute, mark the reference as analyzed so the
12962         node (and any children resulting from rewrites that could have occurred
12963         during the analysis that ultimately failed) is not analyzed again.
12965         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
12967         * exp_dist.adb: Minor comment fix.
12969         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
12970         type is an anonymous access type, no unchecked deallocation of the
12971         allocated object can occur. If the object is controlled, attach it with
12972         a count of 1. This allows attachment to the Global_Final_List, if
12973         no other relevant list is available.
12974         (Get_Allocator_Final_List): For an anonymous access type that is
12975         the type of a discriminant or record component, the corresponding
12976         finalisation list is the one of the scope of the type.
12978 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
12980         * sem_ch3.adb (Replace_Type): When computing the signature of an
12981         inherited subprogram, use the first subtype if the derived type
12982         declaration has no constraint.
12984         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
12985         before applying previous optimization. Minor code cleanup.
12987         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
12988         placed at the beginning of an unpacked record without explicit
12989         alignment, a slice of it will be aligned and does not need a copy when
12990         used as an actual.
12992 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
12994         PR ada/15591
12995         PR ada/15592
12996         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
12997         reference is written with expressions mimicking parameters.
12999 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
13001         PR ada/15589
13002         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
13003         STEP 2a. The constraints of a full type declaration of a derived record
13004         type are checked for conformance with those declared in the
13005         corresponding private extension declaration. The message
13006         "not conformant with previous declaration" is emitted if an error is
13007         detected.
13009 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
13011         * g-traceb.ads: Document the need for -E binder switch in the spec.
13013         * g-trasym.ads: Document the need for -E binder switch in the spec.
13015 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
13017         * sem_prag.adb: Add handling of pragma Detect_Blocking.
13019         * snames.h, snames.ads, snames.adb: Add entry for pragma
13020         Detect_Blocking.
13022         * s-rident.ads: Change reference to pragma Detect_Blocking.
13024         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
13025         system.ads.
13027         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
13028         to indicate whether pragma Detect_Blocking is active.
13030         * par-prag.adb: Add entry for pragma Detect_Blocking.
13032         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
13033         of not handling WITH.
13034         Note that this replaces the previous update which was incorrect.
13036 2004-06-25  Javier Miranda  <miranda@gnat.com>
13038         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
13039         use-clauses to have a clean environment.
13041         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
13042         the installation of the use-clauses to stablish a clean environment in
13043         case of compilation of a separate unit; otherwise the call to
13044         use_one_package is protected by the barrier Applicable_Use.
13046         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
13047         the installation of the use-clauses to stablish a clean environment in
13048         case of compilation of a separate unit.
13049         (End_Use_Clauses): Minor comment cleanup.
13051 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
13053         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
13055 2004-06-23  Richard Henderson  <rth@redhat.com>
13057         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
13059 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13061         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
13062         now bool instead of int.
13063         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
13064         * trans.c (gnu_switch_label_stack): New function.
13065         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
13066         elaboration of renamed entity returns.
13067         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
13068         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
13069         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
13070         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
13071         DECL_SIZE_UNIT and simplify variable-sized case.
13072         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
13073         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
13074         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
13075         (build_unit_elab): Disable for now.
13076         * utils.c (mark_visited): New function.
13077         (pushdecl): Walk tree to call it for global decl.
13078         (update_pointer_to): Update all variants of pointer and ref types.
13079         Add arg to COMPONENT_REF.
13080         (convert): Likewise.
13081         Move check for converting between variants lower down.
13082         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
13083         (build_allocator): Don't force type of MODIFY_EXPR.
13084         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
13085         put_var_into_stack.
13087 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13089         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
13090         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
13091         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
13092         subprograms.
13093         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
13094         all callers changed.
13095         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
13096         the way that EXIT_STMT finds the loop label.
13097         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
13098         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
13099         (add_stmt): Use annotate_with_locus insted of setting directly.
13100         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
13101         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
13102         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
13103         (build_vms_descriptor): Add extra args to ARRAY_REF.
13104         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
13105         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
13106         New cases.
13107         (build_binary_op): Don't make explicit CONVERT_EXPR.
13108         Add extra rgs to ARRAY_REF.
13110 2004-06-14  Pascal Obry  <obry@gnat.com>
13112         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
13113         Windows.  Fix minor typo.
13115         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
13116         which is now supported on Windows. With this implementation using the
13117         Library Project feature is no different on Windows than on UNIX.
13119 2004-06-14  Vincent Celier  <celier@gnat.com>
13121         * makegpr.adb (Compile_Sources): Nothing to do when there are no
13122         non-Ada sources.
13124         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
13126         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
13127         found, show the project name and the path of the previously parsed
13128         project file.
13130 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
13132         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
13133         array, avoid copying the actual before the call.
13135 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
13137         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
13138         Instead, allocate memory on worst-case alignment assumptions, and then
13139         return an aligned address within the allocated zone.
13141 2004-06-14  Robert Dewar  <dewar@gnat.com>
13143         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
13144         elab entities in predefined units in No_Run_Time_Mode.
13145         (Gen_Adainit_C): Same fix
13146         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
13147         units in No_Run_Time_Mode
13148         (Gen_Elab_Calls_C): Same fix
13150         * symbols-vms-alpha.adb: Minor reformatting
13152         * g-debpoo.ads: Minor reformatting
13154         * lib.adb (In_Same_Extended_Unit): Version working on node id's
13156         * lib.ads (In_Same_Extended_Unit): Version working on node id's
13158         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
13159         working on nodes.
13161         * make.adb: Minor reformatting
13163         * par-ch12.adb: Minor reformatting
13165         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
13167         * prj-strt.adb: Minor reformatting
13169         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
13170         be more general.
13172         * sem_attr.adb: Minor reformatting
13174         * sem_ch7.adb: Minor reformatting
13176         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
13177         for type in the same unit as the object declaration.
13179         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
13180         static string expressions and not just string literals.
13181         Minor reformatting
13182         (Set_Warning): Reset restriction warning flag for restriction pragma
13183         Implement pragma Profile_Warnings
13184         Implement pragma Profile (Restricted)
13185         Give obolescent messages for old restrictions and pragmas
13187         * snames.h, snames.ads, snames.adb: Add new entry for pragma
13188         Profile_Warnings.
13190         * s-rident.ads: Add declarations for restrictions required by profile
13191         Restricted and profile Ravenscar.
13193         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
13195         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
13196         configuration pragmas.
13198 2004-06-11  Vincent Celier  <celier@gnat.com>
13200         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
13201         gnatsym, when symbol policy is Restricted.
13203         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
13204         gnatsym, when symbol policy is Restricted.
13206         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
13207         read the symbol file.
13208         (Finalize): Fail in symbol policy Restricted if a symbol in the original
13209         symbol file is not in the object files. Do not create a new symbol file
13210         when symbol policy is Restricted.
13212         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
13213         in Scng.
13215         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
13216         Restricted.
13217         (Usage): Line for new switch -R
13219         * make.adb (Initialize): When the platform is not VMS, add the
13220         directory where gnatmake is invoked in the front of the path, if
13221         gnatmake is invoked with directory information.  Change the Scan_Args
13222         while loop to a for loop.
13223         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
13224         if Depth is equal or greater than the proposed depth, there is nothing
13225         to do.
13226         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
13227         instead of 0.
13229         * prj.ads: Add new symbol policy Restricted.
13231         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
13232         with the new parameters Check_All_Labels and Case_Location.
13234         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
13235         (Library_Symbol_File needs to be defined).
13237         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
13238         and Case_Location If Check_All_Labels is True, check that all values of
13239         the string type are used, and output warning(s) if they are not.
13241         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
13242         and Case_Location.
13244         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
13246         * gnat_ugn.texi: Update documentation about the library directory in
13247         Library Projects.
13249         * makegpr.adb (Display_Command): In verbose mode, also display the
13250         value of the CPATH env var, when the compiler is gcc.
13251         (Initialize): Change the Scan_Args while loop to a for loop
13252         (Compile_Individual_Sources): Change directory to object directory
13253         before compilations.
13255         * symbols.ads: New symbol policy Restricted.
13257 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
13259         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
13260         is now taken care of internally in the Exception_Propagation package
13261         and does not require clients assistance any more.
13263         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
13264         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
13265         functions. Helpers to maintain a predicate required in the handling of
13266         occurrence transfer between tasks.
13267         This is now handled internally and does not require clients assistance
13268         for the setup/propagate separation anymore.
13269         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
13270         allocation strategy, handle the Setup_And_Not_Propagated predicate and
13271         document.
13273         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
13274         raise_after_setup, now that everything is handled internally within the
13275         setup/propagation engine.
13277 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
13279         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
13280         Add additional conditions for the case of an actual being a simple
13281         name or literal. Improve inlining by preventing the generation
13282         of temporaries with a short lifetime (one use).
13284 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
13286         PR ada/15587
13288         * einfo.ads: Minor comment updates for Has_Completion and
13289         E_Constant list of flags.
13291         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
13292         and constant redeclarations now set the Has_Completion flag of their
13293         defining identifiers.
13295         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
13296         Inspect_Deferred_Constant_Completion.
13297         Used to detect private deferred constants that have not been completed
13298         either by a constant redeclaration or pragma Import. Emits error message
13299         "constant declaration requires initialization expression".
13301         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
13302         completes a deferred constant.
13304 2004-06-11  Geert Bosch  <bosch@gnat.com>
13306         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
13308         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
13309         calculating exponent for scaling denormal numbers.
13310         (Leading_Part): Properly raise Constraint_Error for zero or negative
13311         Adjustment.
13312         (Remainder): Properly raise Constraint_Error for zero divisor.
13314 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
13316         * sem_util.adb: Minor reformatting.
13318         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
13319         dereference when accessing the entry parameter record.
13320         (Check_Array_Type): Always check for possible implicit dereference.
13321         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
13322         Abort if a pointer is still present (denoting that an implicit
13323         dereference was left in the tree by the front-end).
13325         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
13326         dereference when accessing the entry parameter record.
13327         (Check_Array_Type): Always check for possible implicit dereference.
13328         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
13329         Abort if a pointer is still present (denoting that an implicit
13330         dereference was left in the tree by the front-end).
13332 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
13334         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
13335         message, like the compiler itself does. Easier to parse the output.
13337         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
13339         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
13340         be base names, and not includes directories.
13342 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
13344         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
13345         so that dependencies are properly taken into account by make.
13347 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
13349         PR ada/15622
13350         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
13351         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
13353 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
13355         * Makefile.in (install-gnatlib): install target-specific run-time files.
13357         * Make-lang.in: Remove obsolete targets.
13359 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
13361         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
13362         specification, to catch misuses of program unit names.
13364         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
13365         superfluous conversions in an instance.
13367 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
13369         PR ada/15403
13371         * sem_ch12.adb (Save_References): If operator node has been folded to
13372         enumeration literal, associated_node must be discarded.
13374 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
13376         * s-stchop-vxworks.adb: Add required pragma Convention to
13377         Task_Descriptor because it is updated by a C function.
13379 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
13381         PR ada/15568
13383         * Makefile.in: Remove target specific SO_OPT on IRIX
13385 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13387         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
13388         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
13389         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
13390         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
13391         (STMT_STMT, USE_STMT): New statement codes.
13392         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
13393         * ada-tree.h: Reflect above changes.
13394         (struct tree_loop_id): Deleted.
13395         (union lang_tree_node, struct lang_decl, struct lang_type):
13396         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
13397         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
13398         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
13399         (IS_ADA_STMT): New macro.
13400         * decl.c (annotate_decl_with_node): New function.
13401         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
13402         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
13403         Call add_stmt_with_node to do needed assignments.
13404         Add call to update setjmp buffer directly, not via EXPR_STMT.
13405         (maybe_variable): Argment GNAT_NODE deleted.
13406         * gigi.h (maybe_variable): Likewise.
13407         (make_transform, add_stmt_with_node, set_block_for_group): New.
13408         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
13409         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
13410         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
13411         (set_lineno, set_lineno_from_sloc): Likewise.
13412         (record_code_position, insert_code_for): Likewise.
13413         (gnat_poplevel): Now returns void.
13414         (end_subprog_body): Now takes argument.
13415         * misc.c (cgraph.h, tree-inline.h): New includes.
13416         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
13417         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
13418         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
13419         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
13420         (gnat_parse_file): Don't set immediate_size_expand.
13421         Call cgraph functions.
13422         (gnat_expand_expr): Remove most cases.
13423         (record_code_position, insert_code_for): Remove from here.
13424         * trans.c (toplev.h, tree-gimple.h): Now included.
13425         (discard_file_names): Deleted.
13426         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
13427         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
13428         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
13429         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
13430         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
13431         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
13432         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
13433         (set_block_for_group, add_stmt_list): Likewise.
13434         (start_stmt_group): Renamed from start_block_stmt.
13435         (end_stmt_group): Likewise, from end_block_stmt.
13436         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
13437         (gigi): Don't set discard_file_names or call set_lineno.
13438         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
13439         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
13440         Numerous changes throughout to reflect new names and complete
13441         function-at-a-time implementation.
13442         (gnat_expand_stmt): Delete or comment out all cases.
13443         (process_inlined_subprograms): Use add_stmt.
13444         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
13445         call set_lineno; also remove unneeded block handling.
13446         (process_type): Remove unneeded block handling.
13447         (build_unit_elab): Remove calls to deleted functions.
13448         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
13449         (tree-dump.h): Likewise.
13450         (struct ada_binding_level): Add field jmpbuf_decl.
13451         (gnat_define_builtin, gnat_install_builtins): New.
13452         (gnat_gimplify_function, gnat_finalize): Likewise.
13453         (gnat_poplevel): No longer return BLOCK, set it instead.
13454         Remove code dealing with nested functions.
13455         (gnat_init_decl_processing): Also set size_type_node.
13456         Call gnat_install_builtins.
13457         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
13458         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
13459         Remove special-case for "main".
13460         (end_subprog_body): Add arg and rework for tree-ssa.
13461         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
13462         Add case for BOOLEAN_TYPE.
13463         * utils2.c (rtl.h): Now include.
13464         (build_call_raise): Test Debug_Flag_NN directly.
13465         (build_call_alloc_dealloc): Don't use local stack allocation for now.
13466         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
13467         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
13469 2004-06-07  Robert Dewar  <dewar@gnat.com>
13471         * a-direct.ads, einfo.ads: Minor comment updates
13473         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
13474         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
13475         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
13476         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
13477         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
13479         * s-interr-sigaction.adb: Remove unreferenced variable
13480         (Attached_Interrupts).  Minor reformatting.
13481         Avoid use of variable I (replace by J).
13483         * par-ch10.adb: Fix text of one error message
13485         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
13486         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
13487         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
13488         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
13489         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
13490         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
13491         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
13492         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
13493         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
13494         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
13495         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
13496         2005 support.
13498 2004-06-07  Doug Rupp  <rupp@gnat.com>
13500         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
13502         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
13504         * mlib-tgt-vms-ia64.adb: New file.
13506         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
13507         Add mlib-tgt-vms-ia64.adb
13508         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
13509         Move to alpha specific ifeq section.
13510         Add VMS specific versions of symbols.adb
13511         Renaming of 5q vms files.
13513         * 5qsystem.ads renamed to system-vms_64.ads.
13515 2004-06-07  Vincent Celier  <celier@gnat.com>
13517         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
13518         explain that when a time of day corresponding to the non existing hour
13519         on the day switching to DST is specified, Split may return a different
13520         value for Seconds.
13522         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
13523         to GNAT PRETTY.
13525         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
13526         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
13528         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
13529         to False.
13530         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
13531         the linking options.
13532         (Build_Library.Check_Libs): On VMS, if there is a dependency on
13533         g-trasym.ads, set Gtrasymobj_Needed to True.
13535         * prj-attr.adb: Add new package Metrics for gnatmetric
13537         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
13538         canonical case to take into account files with upper case characters on
13539         Windows.
13540         (Ada_Check): Load the reference symbol file name in the name buffer to
13541         check it, not the symbol file name.
13543         * snames.ads, snames.adb: Add standard name Metrics (name of project
13544         file package for gnatmetric).
13546         * vms_conv.ads: Add Metric to Comment_Type
13548         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
13550         * vms_data.ads: Add qualifiers for GNAT METRIC
13552         * makegpr.adb (Link_Executables): Take into account the switches
13553         specified in package Linker of the main project.
13555 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
13557         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
13558         the index of the last element is Units.Last, not Units.Table'Last
13559         (which is usually not a valid index within the actually allocated
13560         storage for the table).
13562         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
13563         determines whether to generate a call to a checked storage pool
13564         Dereference action.
13565         Generate such a call only for a dereference that either comes from
13566         source, or is the result of rewriting a dereference that comes from
13567         source.
13569 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
13571         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
13573 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
13575         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
13576         file level, elaborate the stride for inner dimensions in alignment
13577         units, not bytes.
13579         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
13580         in a comment.
13582 2004-06-07  Javier Miranda  <miranda@gnat.com>
13584         * exp_ch6.adb: Correct wrong modification in previous patch
13586 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
13588         * g-trasym.ads: Corrected comment to properly reflect level of support
13589         on VMS.
13591 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
13593         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
13594         includes case of a variable referenced on the left hand side of an
13595         assignment, therefore remove redundant code. Variables and prefixes of
13596         indexed or selected components are now marked as referenced on left
13597         hand side. Warnings are now properly emitted when variables or prefixes
13598         are assigned but not read.
13600         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
13601         left hand side referenced variables. Private access types do not
13602         produce the warning "variable ... is assigned but never read".
13603         Add also additional checks to left hand side referenced variables.
13604         Aliased, renamed objects and access types do not produce the warning
13605         "variable ... is assigned but never read" since other entities may read
13606         the memory location.
13608 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
13610         * Makefile.in: In the powerpc/vxworks-specific section, restore
13611         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
13612         by mistake).
13614 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
13616         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
13617         predefined operators.
13618         Removes spurious type errors from g-trasym-vms.adb.
13620         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
13621         distinct from the operator appearing in the source, call appropriate
13622         routine to insert conversions when needed, and complete resolution of
13623         node.
13624         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
13625         interpretations for rewritten right operand.
13626         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
13627         the other operand is overloaded and the context is a type conversion.
13629 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13631         * ada-tree.def (BLOCK_STMT): Now has two operands.
13632         (BREAK_STMT): New.
13634         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
13636         * gigi.h: (gnat_poplevel): Now returns a tree.
13638         * trans.c (end_block_stmt): Add arg; all callers changed.
13639         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
13640         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
13641         (add_stmt): Set TREE_TYPE.
13642         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
13643         (gnat_expand_stmt, case BREAK_STMT): New case.
13645         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
13647 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
13649         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
13650         procedure Set_Stack_Size that is not needed.
13652 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
13654         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
13655         used for gnatpp input file and for the files upon which it depends
13657 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
13659         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
13661 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
13663         * gnatvsn.ads: Bump version numbers appropriately.
13664         Add new build type.
13666 2004-06-07  Pascal Obry  <obry@gnat.com>
13668         * gnat_ugn.texi: Improve comments about imported names and link names
13669         on Windows. Add a note about the requirement to use -k gnatdll's option
13670         when working with a DLL which has stripped stdcall symbols (no @nn
13671         suffix).
13673 2004-05-27  Vincent Celier  <celier@gnat.com>
13675         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
13676         COMMENTS_LAYOUT=UNTOUCHED
13678         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
13679         symbols-vms-alpha.adb
13681 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
13683         * sem.ads: Clarify documentation on checks suppression.
13685         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
13687 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
13689         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
13690         the case of multiple derivations.
13691         (Is_Object_Reference): For a selected component, verify that the prefix
13692         is itself an object and not a value.
13694         * sem_ch12.adb (Same_Instantiated_Constant): New name for
13695         Same_Instantiated_Entity.
13696         (Same_Instantiated_Variable): Subsidiary to
13697         Check_Formal_Package_Instance, to recognize actuals for in-out generic
13698         formals that are obtained from a previous formal package.
13699         (Instantiate_Subprogram_Body): Emit proper error when
13700         generating code and the proper body of a stub is missing.
13702         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
13703         has a universal interpretation, do the disambiguation here.
13705         * exp_ch4.adb (Expand_N_Type_Conversion,
13706         Expand_N_Unchecked_Type_Conversion): Special handling when target type
13707         is Address, to avoid typing anomalies when Address is a visible integer
13708         type.
13710         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
13711         to determine whether a subprogram should not be marked Pure, even when
13712         declared in a pure package.
13714 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
13716         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
13718         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
13719         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
13720         Update the documentation about the Ravenscar profile, following the
13721         definition found in AI-249.
13723         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
13724         setting the Profile (Ravenscar). This must be done in addition to
13725         setting the required restrictions.
13727         * rtsfind.ads: Add the set of operations defined in package
13728         Ada.Interrupts.
13730         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
13731         restriction.
13733 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
13735         lang-specs.h: Always require -c or -S and always redirect to /dev/null
13736         if -gnatc or -gnats is passed.
13738 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
13740         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
13741         a significant reference. Warnings are now properly emitted when a
13742         discriminated type is not referenced.
13744         * lib-xref.adb (Generate_Reference): A deferred constant completion,
13745         record representation clause or record type discriminant does not
13746         produce a reference to its corresponding entity. Warnings are now
13747         properly emitted when deferred constants and record types are not
13748         referenced.
13750 2004-05-27  Geert Bosch  <bosch@gnat.com>
13752         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
13753         Fixes ACATS Annex G tests.
13755 2004-05-27  Robert Dewar  <dewar@gnat.com>
13757         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
13758         handling WITH
13760 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
13762         * s-interr.adb (Server_Task): Take into account case of early return
13763         from sigwait under e.g. linux.
13765 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
13767         * gnat_ugn.texi: Add description for the new gnatpp options:
13768          -rnb - replace the original source without creating its backup copy
13769          -c0 - do not format comments
13771 2004-05-24  Geert Bosch  <bosch@gnat.com>
13773         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
13774         with 192 bits of precision, sufficient to reduce a double-extended
13775         arguments X with a maximum relative error of T'Machine_Epsilon, for X
13776         in -2.0**32 .. 2.0**32.
13777         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
13778         reduction by the processor, which only uses a 68-bit approximation of
13779         Pi.
13780         (Tan): Always reduce arguments and compute function either using
13781         the processor's fptan instruction, or by dividing sin and cos as needed.
13783 2004-05-24  Doug Rupp  <rupp@gnat.com>
13785         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
13786         gcc error on 32/64 bit VMS.
13788 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
13790         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
13791         since this is what we get for stack overflows although not documented
13792         as such.
13793         Document the issues which may require adjustments to our signal
13794         handlers.
13796 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
13798         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
13799         enclosing dynamic scope if the instantiation is within a generic unit.
13801 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
13803         * exp_dbug.ads: Fix typo.
13805         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
13806         Rename it to its proper name: system-linux-ia64.ads
13807         (stamp-gnatlib1): Remove extra target specific run time files when
13808         setting up the rts directory.
13810 2004-05-24  Javier Miranda  <miranda@gnat.com>
13812         * einfo.ads, einfo.adb (Limited_Views): Removed.
13813         (Limited_View): New attribute that replaces the previous one. It is
13814         now a bona fide package with the limited-view list through the
13815         first_entity and first_private attributes.
13817         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
13818         limited-private-with clause.
13819         (Install_Limited_Withed_Unit): Install the private declarations of a
13820         limited-private-withed package. Update the installation of the shadow
13821         entities according to the new structure (see Build_Limited_Views)
13822         (Build_Limited_Views): Replace the previous implementation of the
13823         limited view by a package entity that references the first shadow
13824         entity plus the first shadow private entity (required for limited-
13825         private-with clause)
13826         (New_Internal_Shadow_Entity): Code cleanup.
13827         (Remove_Limited_With_Clause): Update the implementation to undo the
13828         new work carried out by Build_Limited_Views.
13829         (Build_Chain): Complete documentation.
13830         Replace Ada0Y by Ada 0Y in comments
13831         Minor reformating
13833         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
13834         types the level of accessibility depends on the enclosing type
13835         declaration.
13837         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
13838         entities. Complete documentation of previous change.
13840 2004-05-24  Robert Dewar  <dewar@gnat.com>
13842         * namet.adb: Minor reformatting
13843         Avoid use of name I (replace by J)
13844         Minor code restructuring
13846         * sem_ch6.adb: Minor reformatting
13848         * lib-writ.adb: Do not set restriction as active if this is a
13849         Restriction_Warning case.
13851         * sem_prag.adb: Reset restriction warning flag if real pragma
13852         restriction encountered.
13854         * s-htable.adb: Minor reformatting
13855         Change rotate count to 3 in Hash (improves hash for small strings)
13857         * 5qsystem.ads: Add comments for type Address (no literals allowed).
13859         * gnat_ugn.texi: Add new section of documentation "Code Generation
13860         Control", which describes the use of -m switches.
13862 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
13864         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
13865         through the DECL_INITIAL for renamed variables.
13867 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
13869         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
13871 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
13873         * exp_dbug.ads: Correct comments concerning handling of overloading,
13874         since we no longer use $ anymore.
13876 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
13878         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
13879         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
13880         with illegal subunits.
13882 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
13884         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
13885         body with front-end inlining enabled, check whether an inline pragma
13886         appears immediately after the body and applies to it.
13888         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
13889         enabled and the pragma appears after the body of the subprogram.
13891 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13893         Part of function-at-a-time conversion
13895         * misc.c (adjust_decl_rtl): Deleted.
13896         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
13897         Define.
13899         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
13900         (add_decl_stmt, add_stmt, block_has_vars): New functions.
13901         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
13903         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
13904         when making a decl.
13905         (gnat_to_gnu_entity): Likewise.
13906         Use add_stmt to update setjmp buffer.
13907         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
13908         flush_addressof.
13909         No longer call adjust_decl_rtl.
13910         (DECL_INIT_BY_ASSIGN_P): New macro.
13911         (DECL_STMT_VAR): Likewise.
13913         * trans.c (gigi): Call start_block_stmt to make the outermost
13914         BLOCK_STMT.
13915         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
13916         Call start_block_stmt and end_block_stmt temporarily.
13917         Use gnat_expand_stmt instead of expand_expr_stmt.
13918         (add_decl_stmt): New function.
13919         (tree_transform): Call it.
13920         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
13921         (end_block_stmt): Set type and NULL_STMT.
13922         (gnat_expand_stmt): Make recursize call instead of calling
13923         expand_expr_stmt.
13924         (gnat_expand_stmt, case DECL_STMT): New case.
13925         (set_lineno_from_sloc): Do nothing if global.
13926         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
13927         (start_block_stmt, add_stmt, end_block_stmt): New functions.
13928         (build_block_stmt): Call them.
13929         (gnat_to_code): Don't expand NULL_STMT.
13930         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
13931         args.
13932         (tree_transform): Likewise.
13933         (tree_transform, case N_Null_Statement): Return NULL_STMT.
13934         (gnat_expand_stmt, case NULL_STMT): New case.
13935         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
13936         IF_STMT_TRUE.
13938         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
13939         TREE_ADDRESSABLE.
13941         * utils.c (create_var_decl): Do not call expand_decl or
13942         expand_decl_init.
13943         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
13944         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
13945         here.
13946         (struct e_stack): Add chain_next to GTY.
13947         (struct binding_level): Deleted.
13948         (struct ada_binding_level): New struct.
13949         (free_block_chain): New.
13950         (global_binding_level, clear_binding_level): Deleted.
13951         (global_bindings_p): Rework to see if no chain.
13952         (kept_level_p, set_block): Deleted.
13953         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
13954         new data structure and work directly on BLOCK node.
13955         (gnat_poplevel): Similarly.
13956         (get_decls): Look at BLOCK_VARS.
13957         (insert_block): Work directly on BLOCK node.
13958         (block_has_var): New function.
13959         (pushdecl): Rework for new binding structures.
13960         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
13961         poplevel.
13962         (build_subprog_body): Likewise.
13963         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
13965         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
13967         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
13968         (DECL_STMT_VAR): Likewise.
13970 2004-05-17  Robert Dewar  <dewar@gnat.com>
13972         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
13973         procedure
13975         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
13976         of restriction synonyums by using
13977         Restrict.Process_Restriction_Synonyms.
13979         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
13981         * s-restri.ads (Tasking_Allowed): Correct missing comment
13983         * s-rident.ads: Add entries for restriction synonyms
13985         * ali.adb: Fix some problems with badly formatted ALI files that can
13986         result in infinite loops.
13988         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
13989         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
13990         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
13991         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
13992         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
13993         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
13994         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
13995         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
13996         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
13997         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
13998         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
13999         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
14000         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
14001         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
14002         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
14003         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
14004         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
14005         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
14006         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
14007         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
14008         to Task_Id (minor cleanup).
14010 2004-05-17  Vincent Celier  <celier@gnat.com>
14012         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
14013         directory separator.
14015         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
14016         project being extended, if Languages is not declared in extending
14017         project.
14019 2004-05-17  Javier Miranda  <miranda@gnat.com>
14021         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
14022         limited view of a visible sibling.
14024 2004-05-14  Robert Dewar  <dewar@gnat.com>
14026         * gnat_ugn.texi: Minor change to -gnatS documentation
14028         * sprint.adb: Remove some instances of Assert (False) and for this
14029         purpose replace them by output of a ??? string.
14031         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
14032         Assert (False).
14034         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
14035         flag processing. This was suppressing required dependencies in
14036         No_Run_Time mode and is not needed since the binder does not generate
14037         references for things in libgnat anyway.
14039         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
14040         warning.
14042 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
14044         * gnat_ugn.texi: Document AIX-specific issue with initialization of
14045         resolver library.
14047         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
14048         action for the case of an actual parameter in an init proc call.
14050 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
14052         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
14053         subtype, check visible entities in base type.
14055         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
14056         actions if the object is a renaming.
14058         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
14059         Check_Formal_Package_Instance, to determine more precisely when the
14060         formal and the actual denote the same entity.
14062 2004-05-14  Javier Miranda  <miranda@gnat.com>
14064         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
14066         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
14067         corresponding to a private_with must be removed from visibility; it
14068         will be made visible later, just before we analyze the private part of
14069         the package.
14070         (Check_Private_Child_Unit): Allow private_with clauses in public
14071         siblings.
14072         (Install_Siblings): Make visible the private entities of private-withed
14073         siblings.
14074         (Install_Withed_Unit): Do not install the private withed unit if we
14075         are compiling a package declaration and the Private_With_OK flag was
14076         not set by the caller. These declarations will be installed later,
14077         just before we analyze the private part of the package.
14079         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
14080         during the evaluation of the expression that initializes the object,
14081         decorate it with the expected type to avoid cascade errors.
14082         Code cleanup.
14084         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
14085         subprogram we have to install the private_with clauses after its
14086         specification has been analyzed (as documented in AI-262.TXT).
14088         * sem_ch8.adb (Has_Private_With): New function. Determines if the
14089         current compilation unit has a private with on a given entity.
14090         (Find_Direct_Name): Detect the Beaujolais problem described in
14091         AI-262.TXT
14093         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
14094         provides the functionality of the function Is_Ancestor that was
14095         previously available in sem_ch10. It has been renamed to avoid
14096         overloading.
14098         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
14100 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14102         * utils.c (build_vms_descriptor): Use SImode pointers.
14104 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
14106         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
14108 2004-05-14  GNAT Script  <nobody@gnat.com>
14110         * Make-lang.in: Makefile automatically updated
14112 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
14114         Renaming of target specific files for clarity
14116         * Makefile.in: Rename GNAT target specific files.
14118         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
14119         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
14120         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
14121         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
14122         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
14123         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
14124         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
14125         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
14126         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
14127         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
14128         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
14129         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
14130         51osinte.adb, 51osinte.ads, 51system.ads,
14131         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
14132         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
14133         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
14134         56tpopsp.adb, 57system.ads, 58system.ads,
14135         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
14136         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
14137         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
14138         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
14139         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
14140         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
14141         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
14142         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
14143         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
14144         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
14145         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
14146         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
14147         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
14148         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
14149         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
14150         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
14151         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
14152         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
14153         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
14154         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
14155         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
14156         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
14157         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
14158         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
14159         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
14160         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
14161         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
14162         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
14163         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
14164         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
14165         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
14166         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
14167         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
14168         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
14169         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
14170         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
14171         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
14172         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
14173         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
14174         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
14176         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
14177         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
14178         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
14179         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
14180         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
14181         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
14182         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
14183         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
14184         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
14185         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
14186         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
14187         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
14188         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
14189         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
14190         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
14191         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
14192         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
14193         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
14194         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
14195         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
14196         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
14197         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
14198         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
14199         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
14200         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
14201         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
14202         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
14203         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
14204         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
14205         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
14206         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
14207         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
14208         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
14209         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
14210         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
14211         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
14212         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
14213         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
14214         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
14215         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
14216         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
14217         s-osinte-vms.ads, s-osinte-vxworks.adb,
14218         s-osinte-vxworks.ads, s-osprim-mingw.adb,
14219         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
14220         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14221         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
14222         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
14223         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
14224         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14225         s-stchop-vxworks.adb, s-taprop-dummy.adb,
14226         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
14227         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
14228         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
14229         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
14230         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
14231         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
14232         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
14233         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
14234         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
14235         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
14236         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
14237         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
14238         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
14239         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
14240         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
14241         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
14242         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
14243         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
14244         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
14245         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
14246         system-irix-o32.ads, system-linux-x86_64.ads,
14247         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
14248         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
14249         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
14250         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
14251         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
14252         system-vxworks-mips.ads, system-vxworks-ppc.ads,
14253         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
14254         above.
14256 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
14258         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
14260 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
14262         Merge from tree-ssa-20020619-branch.
14264         * config-lang.in (boot_language, build_by_default): Set
14265         to no.
14266         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
14267         (max_size): Add static chain op for call_expr.
14269 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
14271         PR target/15331
14272         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
14274 2004-05-11  Roger Sayle  <roger@eyesopen.com>
14276         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
14277         COND_EXPR.
14279 2004-05-10  Doug Rupp  <rupp@gnat.com>
14281         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
14282         system.aux_dec.
14284         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
14286         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
14288         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
14289         Fixes undefined symbols in IA64 gnatlib.
14291         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
14293         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
14294         Short_Address). This will be moved to system.auxdec.
14296 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
14298         * sem_util.adb: Replace test for presence of a node that is always
14299         present with a call to Discard_Node.
14301         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
14302         Analyze on the library unit node after generation of distribution stub
14303         constructs.  The call was a no-op because Unit_Node has already been
14304         Analyzed, and the tree fragments for the distribution stubs are
14305         analyzed as they are inserted in Exp_Dist.
14306         Update comment regarding to distribution stubs to reflect that we
14307         do not generate stub in separate files anymore.
14309         * einfo.ads: Clarify the fact that a tagged private type has the
14310         E_Record_Type_With_Private Ekind.
14312         * erroutc.adb: Minor reformatting
14314         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
14315         values if line length is increased using -gnatyM (noticed during code
14316         reading).
14318         * eval_fat.adb: Minor reformatting
14319         Put spaces around exponentiation operator
14321 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
14323         PR ada/15005
14324         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
14325         has been rewritten as an explicit dereference, retrieve type of
14326         original node to check for possibly unconstrained record type.
14328 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
14330         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
14331         overriding, use the operation of the parent unconditionally.
14333         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
14334         operation when either operand is a literal, to avoid further
14335         ambiguities.
14337         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
14338         overridden by a previous explicit declaration, mark the previous entity
14339         as overriding.
14341         * sem_disp.adb (Check_Dispatching_Operation): New predicate
14342         Is_Visibly_Controlled, to determine whether a declaration of a
14343         primitive control operation for a derived type overrides an inherited
14344         one. Add warning if the explicit declaration does not override.
14346 2004-05-10  Vincent Celier  <celier@gnat.com>
14348         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
14349         some cases when the sources are no longer present.
14351         * make.adb (Collect_Arguments): Fail if an external source, not part
14352         of any project need to be compiled, when switch -x has not been
14353         specified.
14355         * makeusg.adb: Document new switch -x
14357         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
14358         defaulted to False.
14360         * switch-m.adb (Scan_Make_Switches): New switch -x
14362         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
14363         gnatmake switch -x.
14365         * gnat_ugn.texi: Document new gnatmake switch -x
14367 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
14369         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
14371         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
14372         (process_attributes): Likewise.
14374 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
14376         * s-inmaop.ads: Fix spelling mistake in one of the comments.
14378 2004-05-10  Robert Dewar  <dewar@gnat.com>
14380         * gnat_ugn.texi: Document that for config pragma files, the maximum
14381         line length is always 32767.
14383         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
14384         literals is now allowed.
14386         * gnat-style.texi: Remove statement about splitting long lines before
14387         an operator rather than after, since we do not follow this rule at all.
14388         Clarify rule (really lack of rule) for spaces around exponentiation
14390         * sem_elim.adb: Allow concatenation of string literals as well as a
14391         single string literal for pragma arguments.
14393         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
14395         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
14396         written for append case.
14398         * frontend.adb: Changes to avoid checking max line length in config
14399         pragma files.
14401         * g-os_lib.ads: Minor reformatting
14403         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
14404         wrong in any case. Instead use standard value. Noticed during code
14405         reading.
14407         * opt.ads (Max_Line_Length): New field, used to implement removal of
14408         limitation on length of lines when scanning config pragma files.
14410         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
14411         makeutl.ads, makeutl.adb: Minor reformatting
14413         * scn.adb: Do not check line length while scanning config pragma files
14414         Do not check line length while scanning out license information
14416         * scng.adb: Changes to avoid line length checks while parsing config
14417         pragma files.
14419 2004-05-10  GNAT Script  <nobody@gnat.com>
14421         * Make-lang.in: Makefile automatically updated
14423 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
14425         * osint.adb (Find_Program_Name): Fix handling of VMS version
14426         number.
14428 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
14430         * g-os_lib.ads (Invalid_Time): New constant
14432         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
14433         return OS_Time instead of time_t to match what is imported by Ada.
14434         Now return -1 if the file doesn't exist, instead of a random value
14436 2004-05-05  Robert Dewar  <dewar@gnat.com>
14438         * usage.adb: Add line for -gnatR?s switch
14440         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
14442         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
14443         and for Match (Data_First, Data_last)
14445         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
14446         written when we are dealing with multi-unit files.
14448 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
14450         * Makefile.in: Remove unused targets and variables.
14452 2004-05-05  Vincent Celier  <celier@gnat.com>
14454         * switch-m.adb: New gnatmake switch -eI
14456         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
14457         of new gnatmake switch -eInnn.
14459         * makegpr.adb: Take into account new parameters Index and Src_Index in
14460         Prj.Util.
14462         * clean.adb: Implement support for multi-unit sources, including new
14463         switch -i.
14465         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
14466         Src_Index.
14468         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
14469         (Extract_From_Q): New out parameter Index
14470         (Mark, Is_Marked): Subprograms moved to Makeutl
14471         (Switches_Of): New parameter Source_Index
14472         (Add_Switch): New parameter Index
14473         (Check): New parameter Source_Index
14474         (Collect_Arguments): New parameter Source_Index
14475         (Collect_Arguments_And_Compile): New parameter Source_Index
14476         (Compile): New parameter Source_Index
14477         Put subprograms in alphabetical order
14478         Add support for multi-source sources, including in project files.
14480         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
14481         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
14482         Make.
14484         * makeusg.adb: New gnatmake switch -eInnn
14486         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
14487         Prj.Util.Value_Of.
14489         * opt.ads (Main_Index): New variable, defaulted to 0.
14491         * osint.ads, osinte.adb (Add_File): New parameter Index
14492         (Current_Source_Index): New function
14494         * prj.adb: Take into account new components Index and Src_Index
14496         * prj.ads (String_Element): New component Index
14497         (Variable_Value): New component Index
14498         (Array_Element): New component Src_Index
14500         * prj-attr.adb: Indicate that optional index may be specified for
14501         attributes Main, Executable, Spec, Body and some of Switches.
14503         * prj-attr.ads (Attribute_Kind): New values for optional indexes
14504         (Attribute_Record): New component Optional_Index
14506         * prj-com.ads (File_Name_Data): New component Index
14508         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
14510         * prj-env.adb (Put): Output optional index
14512         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
14513         attributes Spec and Body.
14515         * prj-nmsc.adb: Process optional indexes
14517         * prj-pp.adb: Ouput "at" for optional indexes
14519         * prj-proc.adb: Take into account optional indexes
14521         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
14522         Optional_Index. For string literal,
14523         process optional index when Optional_Index is True.
14524         (Parse_Expresion): New Boolean parameter Optional_Index
14526         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
14527         (Set_Source_Index_Of): New procedure
14529         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
14530         index.
14532         * prj-util.ads (Executable_Of): New parameter Index
14533         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
14534         New parameter Src_Index, defaulted to 0.
14536 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
14538         PR ada/15257
14539         * sem_ch3.adb (Access_Definition): If this is an access parameter
14540         whose designated type is imported through a limited_with clause, do
14541         not add the enclosing subprogram to the list of private dependents of
14542         the type.
14544 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
14546         PR ada/15258
14547         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
14548         a limited_with clause, and the other is its non-limited view.
14550 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
14552         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
14554         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
14555         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
14556         Stand.Boolean_Literals to produce references to entities
14557         Standard_False and Standard_True from compile-time computed boolean
14558         values.
14560         * stand.ads (Boolean_Literals): New variable, provides the entity
14561         values for False and True, for use by the expander.
14563 2004-05-05  Doug Rupp  <rupp@gnat.com>
14565         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
14566         5vinmaop.adb: Unchecked convert Short_Address vice Address
14568         * adaint.c, raise.c: Caste CRTL function return value
14569         to avoid gcc error on 32/64 bit IVMS.
14571         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
14572         target = IA64/VMS.
14574         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
14576         * 5qsystem.ads (Address): Declare as Long_Integer
14577         (Short_Address): Declare as 32 bit subtype of Address
14578         Declare  abstract address operations to avoid gratuitous ambiguities.
14580 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
14582         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
14583         instead of the old Boolean_Entry_Barriers.
14584         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
14586 2004-05-05  GNAT Script  <nobody@gnat.com>
14588         * Make-lang.in: Makefile automatically updated
14590 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
14592         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
14594 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
14596         PR ada/15152
14598         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
14599         alone. Replacing object references by literals is inappropriate in a
14600         so low level context.
14602 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
14604         * a-exexpr.adb: Add comments
14606 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
14608         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
14609         declare the Ancestor_Tags array in Type_Specific_Data with a small size
14610         without risking a bounds check error when accessing one of its
14611         components.
14612         (Type_Specific_Data): Define Ancestor_Tags as a small array.
14613         This prevents us from hitting a limitation during the debug info
14614         generation when using stabs.
14616         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
14617         small array.
14618         This prevents us from hitting a limitation during the debug info
14619         generation when using stabs.
14621 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
14623         lang-specs.h: Remove -gnatz* from specs.
14625 2004-05-03  Vincent Celier  <celier@gnat.com>
14627         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
14629         * Make-lang.in, Makefile.in: Add gprmake
14631 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
14633         * sem_aggr.adb: Fix typo in comment.
14635 2004-05-03  Robert Dewar  <dewar@gnat.com>
14637         * make.adb: Minor reformatting
14639         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
14641         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
14642         so that it works when address is not a private type.
14644         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
14645         properly with rewritten unchecked conversions. This prevents
14646         order-of-elaboration issues that can otherwise arise.
14647         (Minimum_Size): Don't check size of access types under VMS
14649         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
14650         interpretations of integer literals as type System.Address.
14652         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
14653         (Is_Descendent_Of): New function
14655 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
14657         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
14658         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
14659         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
14661         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
14662         of the old Max_Entry_Queue_Depth.
14664         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
14665         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
14666         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
14668         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
14669         New entry for proper handling of Max_Entry_Queue_Depth.
14670         New entry for proper handling of No_Dynamic_Interrupts.
14672         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
14673         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
14674         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
14675         the GNAT specific restriction Max_Entry_Queue_Depth.
14676         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
14677         the GNAT specific restriction No_Dynamic_Interrupts.
14679         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
14680         instead of the old Boolean_Entry_Barriers.
14681         Use the new restriction No_Dynamic_Attachment instead of the old
14682         No_Dynamic_Interrupts.
14684         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
14685         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
14687         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
14688         of the old Max_Entry_Queue_Depth.
14690 2004-05-03  GNAT Script  <nobody@gnat.com>
14692         * Make-lang.in: Makefile automatically updated
14694 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
14696         * checks.adb (Enable_Range_Check): If the prefix of an index component
14697         is an access to an unconstrained array, perform check unconditionally.
14699 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14701         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
14702         Component_Clause.
14704 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
14706         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
14707         alternate stack setting. There was no support for the tasking cases
14708         and the changes eventually caused a number of side-effect failures in
14709         the non-tasking case too.
14711 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
14713         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
14714         -gnats is passed.
14716 2004-04-29  Vincent Celier  <celier@gnat.com>
14718         * make.adb (Gnatmake): Increase max size of argument array for
14719         gnatbind for the potential addition of -F.
14720         If there are Stand-Alone Library projects, invoke gnatbind with -F to
14721         be sure that elaboration flags will be checked.
14723         * switch-c.adb: Correct call to Scan_Pos for -gnateI
14725 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
14727         * sem_warn.adb (Check_References): Move '<access-variable> may be
14728         null' warning out of under Warn_On_No_Value_Assigned.
14730 2004-04-29  Ed Falis  <falis@gnat.com>
14732         * gnat_ugn.texi: Fixed texi error
14734 2004-04-29  Robert Dewar  <dewar@gnat.com>
14736         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
14737         abstract operations if they come from predefined files.
14739         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
14740         Dynamic, not RM).
14742         * s-addope.adb: Correct obvious error in mod function
14744 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
14746         * Makefile.in: Add target pairs for powerpc darwin*
14747         tasking support.
14749         * a-intnam-darwin.ads, s-osinte-darwin.adb,
14750         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
14752 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
14754         * Makefile.in: Add target macro definitions for s390*-linux*.
14755         * system-linux-s390.ads: New file.
14756         * system-linux-s390x.ads: New file.
14758 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
14760         * gnat_ugn.texi: Correct argument to @setfilename.
14762 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
14764         * a-exexpr.adb (Unwind_Word): New data type.
14765         (Unwind_Exception): Use it as type of Private1 and Private2.
14767         * raise.c (db_action_for): Fix debug printf.
14769 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
14771         * a-wtmoio.ads: Formal type must be a modular type, not a signed
14772         integer type.
14774 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14776         * decl.c (gnat_to_gnu_entity, case object): Call
14777         __builtin_update_setjmp_buf.
14779         * gigi.h (update_setjmp_buf): Deleted.
14780         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
14782         * misc.c: (update_setjmp_buf): Deleted.
14784         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
14785         around block of RTL.
14787         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
14789 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
14791         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
14792         subprogram for which no pragma All_Calls_Remote applies, store the
14793         address of the real subprogram in the underlying record type, so local
14794         dereferences do not go through the PCS.
14796 2004-04-26  Robert Dewar  <dewar@gnat.com>
14798         * i-c.ads: Add some type qualifications to avoid ambiguities when
14799         compiling with s-auxdec.ads and a non-private address type.
14801 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
14803         * Makefile.rtl: Fix error in previous check-in:
14804         Add s-addope.o to non tasking object list (rather than tasking object
14805         list).
14807 2004-04-26  Javier Miranda  <miranda@gnat.com>
14809         * sem_aggr.adb: Fix typo in comments
14810         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
14811         Required to check the null-exclusion attribute.
14813         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
14814         case of anonymous access types in record and array components. For a
14815         component definition the level is the same of the enclosing composite
14816         type.
14818         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
14819         that are anonymous access types the level of accessibility depends on
14820         the enclosing type declaration. In order to have this information, set
14821         the scope of the anonymous access type to the enclosing record type
14822         declaration.
14823         (Array_Type_Declaration): In case of components that are anonymous
14824         access types the level of accessibility depends on the enclosing type
14825         declaration. In order to have this information, set the scope of the
14826         anonymous access type to the enclosing array type declaration.
14828         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
14829         access type.
14831         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
14832         renaming of anonymous access-to-constant types allowed if and only if
14833         the renamed object is access-to-constant.
14835         * sem_util.adb (Type_Access_Level): In case of anonymous access types
14836         that are component_definition or discriminants of a nonlimited type,
14837         the level is the same as that of the enclosing component type.
14839 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
14841         * sem_elim.adb: Some minor code reorganization from code reading. Fix
14842         misprint in the function name (File_Name_Match).
14844 2004-04-23  Laurent GUERBY <laurent@guerby.net>
14846         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
14847         install.
14849 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14851         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
14853 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
14855         * adaint.c (__gnat_try_lock): No longer requires that the parent
14856         directory be writable, the directory itself is enough.
14857         (gnat_is_absolute_path): Change profile, so that the call from
14858         GNAT.OS_Lib can be made more efficient.
14860         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
14861         from GNAT.OS_Lib can be made more efficient.
14863         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
14864         one copy of the file name. Found by code reading.
14866 2004-04-23  Vincent Celier  <celier@gnat.com>
14868         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
14869         Correct documentation on gnatmake switches transmitted to the compiler
14871         * ali.ads: Minor comment fix
14873 2004-04-23  Javier Miranda  <miranda@gnat.com>
14875         * sem_ch6.adb: (Confirming Types): Code cleanup
14877         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
14878         subprogram types: E_Anonymous_Access_Subprogram_Type and
14879         E_Anonymous_Access_Protected_Subprogram_Type.
14881 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
14883         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
14884         whether a pragma All_Calls_Remote applies to the subprogram on which
14885         'Access is taken.
14886         No functional change is introduced by this revision; the new parameter
14887         will be used to allow calls to local RCI subprograms to be optimized
14888         to not use the PCS in the case where no pragma All_Calls_Remote applies,
14889         as is already done in the PolyORB implementation of the DSA.
14891         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
14892         whether a pragma All_Calls_Remote applies to the subprogram on which
14893         'Access is taken.
14894         No functional change is introduced by this revision; the new parameter
14895         will be used to allow calls to local RCI subprograms to be optimized
14896         to not use the PCS in the case where no pragma All_Calls_Remote applies,
14897         as is already done in the PolyORB implementation of the DSA.
14899 2004-04-23  Robert Dewar  <dewar@gnat.com>
14901         * Makefile.rtl: Add entry for s-addope.o in run time library list
14902         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
14903         * s-addope.ads, s-addope.adb: New files.
14905         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
14906         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
14907         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
14908         System.Address to be non-private and signed.
14910         * sem_elim.adb: Minor reformatting (fairly extensive)
14911         Some minor code reorganization from code reading
14912         Add a couple of ??? comments
14914 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14916         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
14917         (tree_transform, case N_If_Statement): Remove non-determinism.
14919         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
14921 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
14923         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
14924         Eliminate' section.
14926         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
14927         no longer used as a parameter name for Eliminate pragma).
14929 2004-04-22  Laurent GUERBY <laurent@guerby.net>
14931         PR optimization/14984
14932         PR optimization/14985
14933         * trans.c (gigi): Fix non determinism leading to bootstrap
14934         comparison failures.
14936 2004-04-21  Pascal Obry  <obry@gnat.com>
14938         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
14939         passed to spawnvp() to properly handle program pathname with spaces on
14940         Win32.
14942 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
14944         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
14945         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
14946         unlocked in case of exceptions.
14948 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
14950         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
14951         This function does not exist anymore.
14953 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
14955         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
14957         * link.c: Move variables to the __gnat name space.
14959         * Makefile.in: list link.o explicitly when needed.
14961         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
14963 2004-04-21  Javier Miranda  <miranda@gnat.com>
14965         * einfo.adb (Original_Access_Type): New subprogram
14966         (Set_Original_Access_Type): New subprogram
14967         (Write_Field21_Name): Write the name of the new field
14969         * einfo.ads (Original_Access_Type): New field present in access to
14970         subprogram types.
14971         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
14972         E_Anonymous_Access_Protected_Subprogram_Type.
14974         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
14975         subprogram types.
14977         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
14978         to anonymous access to subprogram types.
14980         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
14981         to subprogram types.
14983         * sem_ch3.adb (Access_Definition): Complete decoration of entities
14984         corresponding to anonymous access to subprogram types.
14985         (Analyze_Component_Declaration): Add new actual to the call to
14986         subprogram replace_anonymous_access_to_protected_subprogram.
14987         (Array_Type_Declaration): Add new actual to the call to subprogram
14988         replace_anonymous_access_to_protected_subprogram.
14989         (Process_Discriminants): Add new actual to the call to subprogram
14990         replace_anonymous_access_to_protected_subprogram.
14991         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
14993         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
14994         formal.
14996         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
14997         access to subprogram types.
14999         * sem_util.adb (Has_Declarations): Addition of package_specification
15000         nodes.
15002 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
15004         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
15005         inlined flags to renamed entity only if in current unit.
15007 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
15009         * s-parint.ads: Add DSA implementation marker.
15011         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
15012         value of System.Partition_Interface.DSA_Implementation to determine
15013         what version of the distributed systems annex is available (no
15014         implementation, GLADE, or PolyORB).
15016 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
15018         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
15020 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15022         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
15023         with new type if alias sets differ.
15024         Fixes ACATS c41103b.
15026 2004-04-21  Vincent Celier  <celier@gnat.com>
15028         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
15029         Add array Lang_Args for the language specific compiling argument
15030         switches.
15032         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
15034 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
15036         * gnat_rm.texi: Update the descripton of the Eliminate pragma
15037         according to the recent changes in the format of the parameters of the
15038         pragma (replacing Homonym_Number with Source_Location).
15040 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
15042         * 5isystem.ads: Removed, unused.
15044         * gnat_rm.texi: Redo 1.13 change.
15046 2004-04-19  Robert Dewar  <dewar@gnat.com>
15048         * s-stoele.ads: Clean up definition of Storage_Offset (the new
15049         definition is cleaner, avoids the kludge of explicit Standard operator
15050         references, and also is consistent with a visible System.Address with
15051         no visible operations.
15053         * s-geveop.adb: Add declarations to avoid assumption of visible
15054         operations on type System.Address (since these might not be available
15055         if Address is a non-private type for which the operations
15056         are made abstract).
15058         * sem_eval.adb: Minor reformatting
15060         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
15061         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
15062         reformatting (new function spec format).
15064         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15065         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
15066         s-caun64.adb: Add declarations to avoid assumption of visible
15067         operations on type System.Address (since these might not be available
15068         if Address is a non-private type for which the operations are made
15069         abstract).
15071         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
15073         * exp_intr.adb: Minor comment update
15075         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
15077         * 5omastop.adb: Add declarations to avoid assumption of visible
15078         operations on type System.Address (since these might not be available
15079         if Address is a non-private type for which the operations
15080         are made abstract).
15082 2004-04-19  Vincent Celier  <celier@gnat.com>
15084         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
15086         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
15087         defaulted to Ada.
15089         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
15090         defaulted to Ada.
15091         Call Check with Process_Languages.
15092         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
15093         with Process_Languages.
15094         (Recursive_Check): New Boolean parameter Process_Languages. Call
15095         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
15096         Process_Languages.
15098         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
15100         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
15101         parameter Ada_Main, defaulted to True.
15102         Check for Ada specific characteristics only when Ada_Main is True.
15104         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
15106         * prj.adb: (Project_Empty): Add new Project_Data components.
15108         * prj.ads: New types and tables for non Ada languages.
15109         (Project_Data): New components Languages, Impl_Suffixes,
15110         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
15111         Include_Path, Include_Data_Set.
15113         * prj-env.ads, prj-env.adb: Minor reformatting
15115         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
15116         Put subprograms in alphabetical order
15118         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
15119         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
15120         Opt.Follow_Links.
15122         * mlib-prj.adb: Back out modification in last version, as they are
15123         incorrect.
15124         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
15126         * make.adb: (Mains): Moved to package Makeutl
15127         (Linker_Opts): Moved to package Makeutl
15128         (Is_External_Assignment): Moved to package Makeutl
15129         (Test_If_Relative_Path): Moved to package Makeutl
15130         (Gnatmake): Move sorting of linker options to function
15131         Makeutl.Linker_Options_Switches.
15133         * makeutl.ads, makeutl.adb: New files.
15135         * Makefile.in: Add makeutl.o to the object files for gnatmake
15137         * makeusg.adb: Add line for new switch -eL.
15139         * gnatls.adb (Image): New function.
15140         (Output_Unit): If in verbose mode, output the list of restrictions
15141         specified by pragmas Restrictions.
15143         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
15144         Text_IO.
15146         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
15147         needed, to put it in the range 1970 (included) - 2026 (excluded).
15148         (Time_Of): Do not shift Unix_Min_Year (1970).
15149         Shift the date by multiple of 56 years, if needed, to put it in the
15150         range 1970 (included) - 2026 (excluded).
15152         * adaint.h, adaint.c (__gnat_set_executable): New function.
15154 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15156         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
15157         and pop GC context.
15158         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
15159         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
15160         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
15161         (tree_transform, case N_Code_Statement): Likewise.
15162         (gnat_expand_stmt, case LABEL_STMT): Don't look at
15163         LABEL_STMT_FIRST_IN_EH.
15164         (gnat_expand_stmt, case ASM_STMT): New case.
15166         * utils2.c (build_unary_op): Properly set TREE_READONLY of
15167         UNCONSTRAINED_ARRAY_REF.
15169         * utils.c (poplevel): Temporarily push/pop GC context around inline
15170         function expansion.
15172         * decl.c (maybe_variable): Properly set TREE_READONLY of
15173         UNCONSTRAINED_ARRAY_REF.
15174         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
15176         * ada-tree.def: (ASM_STMT): New.
15178         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
15179         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
15180         ASM_STMT_INPUT): New.
15181         (ASM_STMT_CLOBBER): Likewise.
15183 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
15185         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
15186         general rcheck mechanism to raise Program_Error for E.4(18), instead
15187         of a custom raiser in System.Partition_Interface.
15188         Part of general cleanup work before PolyORB integration.
15190         * snames.ads, snames.adb: Add new runtime library entities and names
15191         for PolyORB DSA.
15193         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
15194         exp_dist.
15195         (Build_Subprogram_Id): New subprogram provided by exp_dist
15196         Code reorganisation in preparation for PolyORB integration.
15198         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
15199         exp_dist.
15200         (Build_Subprogram_Id): New subprogram provided by exp_dist
15202         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
15203         actual parameter types for call to dereference of an
15204         access-to-subprogram type.
15206         * rtsfind.ads: Add new runtime library entities and names for PolyORB
15207         DSA.
15209         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
15210         instead, which has the same behaviour here since we never pass it a
15211         NULL pointer.
15213         * link.c (run_path_option, Solaris case): Use -Wl, as for other
15214         platforms.
15216         * Makefile.in: adjust object file lists for gnatlink and gnatmake
15217         to account for new dependency upon Interfaces.C.Strings + link.o
15218         For x86 FreeBSD, use 86numaux.
15220         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
15221         from Mlib.Tgt to Mlib.
15223         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
15224         target-independent.
15226         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
15227         target-specific versions of this subprogram, now implemented as a
15228         target-independent function in Mlib.
15230         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
15231         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
15232         (Linker_Library_Path_Option): Remove target-specific versions of this
15233         subprogram, now implemented as a target-independent function in Mlib.
15235         * atree.adb: (Allocate_Initialize_Node): New subprogram.
15236         Factors out node table slots allocation.
15237         (Fix_Parents): New subprogram.
15238         Encapsulate the pattern of fixing up parent pointers for syntactic
15239         children of a rewritten node.
15240         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
15241         (Rewrite): Use New_Copy when creating saved copy of original node.
15242         (Replace): Use Copy_Node to copy nodes.
15244 2004-04-19  Javier Miranda  <miranda@gnat.com>
15246         * sprint.adb (Sprint_Node_Actual): Give support to the new
15247         Access_To_Subprogram node available in Access_Definition nodes. In
15248         addition, give support to the AI-231 node fields: null-exclusion,
15249         all-present, constant-present.
15251         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
15253         * sinfo.ads, sinfo.adb:
15254         New field Access_To_Subprogram_Definition in Access_Definition nodes
15256         * sem_ch6.adb (Process_Formals): Move here the code that creates and
15257         decorates internal subtype declaration corresponding to the
15258         null-excluding formal. This code was previously in Set_Actual_Subtypes.
15259         In addition, carry out some code cleanup on this code. In case of
15260         access to protected subprogram call
15261         Replace_Anonymous_Access_To_Protected_Subprogram.
15262         (Set_Actual_Subtypes): Code cleanup.
15264         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
15265         Find_Type in case of anonymous access renamings. Add warning in case of
15266         null-excluding attribute used in anonymous access renaming.
15268         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
15269         subprogram
15271         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
15272         subprogram.
15273         (Access_Definition): In case of anonymous access to subprograms call
15274         the corresponding semantic routine to decorate the node.
15275         (Access_Subprogram_Declaration): Addition of some comments indicating
15276         some code that probably should be added here. Detected by comparison
15277         with the access_definition subprogram.
15278         (Analyze_Component_Declaration): In case of access to protected
15279         subprogram call Replace_Anonymous_Access_To_Protected.
15280         (Array_Type_Declaration): In case of access to protected subprogram call
15281         Replace_Anonymous_Access_To_Protected_Subprogram.
15282         (Process_Discriminants): In case of access to protected subprogram call
15283         Replace_Anonymous_Access_To_Protected_Subprogram.
15285         * par.adb (P_Access_Definition): New formal that indicates if the
15286         null-exclusion part was present.
15287         (P_Access_Type_Definition): New formal that indicates if the caller has
15288         already parsed the null-excluding part.
15290         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
15291         (P_Identifier_Declarations): Code cleanup and give support to renamings
15292         of anonymous access to subprogram types.
15293         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
15294         (P_Array_Type_Definition): Give support to AI-254.
15295         (P_Component_Items): Give support to AI-254.
15296         (P_Access_Definition): New formal that indicates if the header was
15297         already parsed by the caller.
15298         (P_Access_Type_Definition): New formal that indicates if the caller has
15299         already parsed the null-excluding part.
15301         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
15302         call to P_Access_Definition.
15304 2004-04-19  Geert Bosch  <bosch@gnat.com>
15306         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
15307         the delicate semantics of floating-point to integer conversion.
15308         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
15310         * eval_fat.adb (Machine_Mantissa): Moved to spec.
15311         (Machine_Radix): New function.
15313         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
15314         conversion checks.
15315         (Machine_Radix): New function also for use in conversion checks.
15317 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
15319         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
15321         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
15322         to decorate the access-to-protected subprogram and the equivalent type.
15324         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
15325         to anonymous access to subprogram types.
15327         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
15328         constant-folding, for legality checks in contexts that require an RM
15329         static expression.
15331         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
15332         temporary but stack checking is not enabled, increment serial number
15333         to so that symbol generation is consistent with and without stack
15334         checking.
15336         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
15337         independent on whether stack checking is enabled, caller must check
15338         the corresponding flag.
15340         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
15341         range checks.
15342         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
15343         parent if it has discriminants.
15344         (Build_Derived_Private_Type): Constructed full view does
15345         not come from source.
15346         (Process_Discriminants): Default discriminants on a tagged type are
15347         legal if this is the internal completion of a private untagged
15348         derivation.
15350         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
15351         no constraint checks, because it corresponds to an existing object.
15353         * sem_prag.adb (Process_Convention): Pragma applies
15354         only to subprograms in the same declarative part, i.e. the same unit,
15355         not the same scope.
15357         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
15358         ignore type mismatch on a numeric conversion if expression comes from
15359         expansion.
15361 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
15363         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
15364         Homonym_Number parameter, add processing for Source_Location parameter
15365         corresponding.
15366         (Check_Eliminated): Remove the check for homonym numbers, add the check
15367         for source location traces.
15369         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
15370         with Arg_Source_Location corresponding to the changes in the format of
15371         the pragma.
15373         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
15374         Eliminate pragma corresponding to the changes in the format of the
15375         pragma: Homonym_Number is replaced with Source_Location, two ways of
15376         distinguishing homonyms are mutially-exclusive.
15378 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
15380         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
15382         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
15383         No_Dollar_In_Label, no longer necessary, as it is always True.
15384         (Strip_Suffixes): Likewise.
15386 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
15388         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
15389         modulus for compatibility with size clause on targets with 16-bit
15390         Integer.
15392         * layout.adb (Discrimify): In the case of private types, set Vtyp to
15393         full type to fix type mismatches on calls to size functions for
15394         discriminant-dependent array components.
15396 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
15398         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
15399         lib.
15401 2004-04-19  Pascal Obry  <obry@gnat.com>
15403         * mdll-utl.adb (Locate): New version is idempotent.
15405 2004-04-17  Laurent Guerby <laurent@guerby.net>
15407         PR ada/14988 (partial)
15408         * impunit.adb: Fix typo.
15410 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
15412         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
15413         and install-rts-cert targets.  Remove all gnatlib and gnattools
15414         targets and all other rts-* targets (moved to libada).  Remove (now)
15415         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
15416         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
15418 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15420         * trans.c (tree_transform): Shortcut returning error_mark_node for
15421         statements in annotate_only_mode.
15422         (tree_transform, case N_Label, case N_Return_Statement,
15423         N_Goto_Statement): Make statement tree instead of generating code.
15424         (tree_transform, case N_Assignment_Statement): No longer check
15425         type_annotate_only.
15426         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
15427         RETURN_STMT): New.
15428         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
15429         New fcns.
15430         (gnat_to_gnu): Collect any RTL generated and deal with it.
15431         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
15432         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
15433         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
15435         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
15437         * ada-tree.def (EXPR_STMT): Fix typo in name.
15438         (BLOCK_STMT, IF_STMT): New nodes.
15440         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
15441         LABEL_STMT_FIRST_IN_EH): New macros.
15442         (RETURN_STMT_EXPR): Likewise.
15444         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
15445         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
15447 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
15449         * atree.ads: Correct documentation on extended nodes.
15451         * link.c: Set run_path_option for FreeBSD.
15453 2004-04-08  Vincent Celier  <celier@gnat.com>
15455         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
15456         one of the ALI file, do not link with DEC lib.
15458         * par.adb Remove the last two characters ("%s" or "%b") when checking
15459         if a language defined unit may be recompiled.
15461 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
15463         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
15464         removal of abstract operation leaves no possible interpretation for
15465         expression.
15467         * sem_eval.adb (Eval_Qualified_Expression): Use
15468         Set_Raises_Constraint_Error on node when needed, so that it does not
15469         get optimized away by subsequent optimizations.
15471         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
15472         operands even when they are not wrapped in a type conversion.
15474 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
15476         * sem_prag.adb (Set_Exported): Warn about making static as result of
15477         export only when the export is coming from source. This may be not
15478         be true e.g. on VMS where we expand export pragmas for exception codes
15479         together with imported or exported exceptions, and we don't want the
15480         user to be warned about something he didn't write.
15482 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
15484         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
15485         duplication between normal entities and those declared as renamings.
15486         No functional change.
15488         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
15489         inline functions returning an unconstrained result.
15491 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
15493         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
15494         conform to what other front-ends do.
15496 2004-04-08  Doug Rupp  <rupp@gnat.com>
15498         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
15499         libraries.
15501 2004-04-06  Pascal Obry  <obry@gnat.com>
15503         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
15505         * osint.adb (Program_Name): Do not look past a directory separator.
15507 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
15509         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
15511         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
15512         requirement for preserving a copy of the original assignment node.
15514         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
15516 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
15518         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
15519         when supported.
15521 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
15523         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
15524         operator calls in functional notation, and apply
15525         Universal_Interpretation to operands, not to their type.
15527 2004-04-06  Robert Dewar  <dewar@gnat.com>
15529         * 5wdirval.adb: Minor reformatting
15531 2004-04-06  Ed Falis  <falis@gnat.com>
15533         * gnat_rm.texi: Improve a reference to the GCC manual
15535 2004-04-05  Vincent Celier  <celier@gnat.com>
15537         * adaint.h, adaint.c: Add function __gnat_named_file_length
15539         * impunit.adb: Add Ada.Directories to the list
15541         * Makefile.in: Add VMS and Windows versions of
15542         Ada.Directories.Validity package body.
15544         * Makefile.rtl: Add a-direct and a-dirval
15546         * mlib-tgt.ads: Minor comment update.
15548         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
15549         a-direct.ads, a-direct.adb: New files.
15551 2004-04-05  Vincent Celier  <celier@gnat.com>
15553         PR ada/13620
15554         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
15555         just to the compiler.
15557 2004-04-05  Robert Dewar  <dewar@gnat.com>
15559         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
15560         returned string is 1.
15562         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
15564         * eval_fat.ads: Minor reformatting
15566         * g-curexc.ads: Document that lower bound of returned string values
15567         is always one.
15569         * gnatlink.adb: Add ??? comment for previous change
15570         (need to document why this is VMS specific)
15572         * s-stoele.ads: Minor reformatting
15574         * tbuild.ads: Minor reformatting throughout (new function specs)
15576         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
15577         after WITH.
15579         * scng.adb: Minor reformatting
15581 2004-04-05  Geert Bosch  <bosch@gnat.com>
15583         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
15584         (Leading_Part): Still perform truncation to machine number if the
15585         specified radix_digits is greater or equal to machine_mantissa.
15587 2004-04-05  Javier Miranda  <miranda@gnat.com>
15589         * par-ch3.adb: Complete documentation of previous change
15590         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
15591         (aliased must appear before constant).
15593         * par-ch4.adb: Complete documentation of previous change.
15595         * par-ch6.adb: Complete documentation of previous change.
15597         * sinfo.ads: Fix typo in commment.
15599 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
15601         * sem_ch3.adb (Inherit_Components): If derived type is private and has
15602         stored discriminants, use its discriminants to constrain parent type,
15603         as is done for non-private derived record types.
15605         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
15606         Ada 2005 AI-310: an abstract non-dispatching operation is not a
15607         candidate interpretation in an overloaded call.
15609         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
15610         expression is Null and target type is not an access type (e.g. a
15611         non-private address type).
15613 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
15615         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
15616         statement whose right-hand side is an inlined call, save a copy of the
15617         original assignment subtree to preserve enough consistency for
15618         Analyze_Assignment to proceed.
15620         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
15621         complete assignment subtree which is now unnecessary, as the expansion
15622         of inlined call has been improved to preserve a consistent assignment
15623         tree.  Note_Possible_Modification must be called only
15624         after checks have been applied, or else unnecessary checks will
15625         be generated.
15627         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
15628         of explicit dereferences that do not Come_From_Source:
15629          - be selective on cases where we must go back to the dereferenced
15630            pointer (an assignment to an implicit dereference must not be
15631            recorded as modifying the pointer);
15632          - do not rely on Original_Node being present (Analyze_Assignment
15633            calls Note_Possible_Modification on a copied tree).
15635         * sem_warn.adb (Check_References): When an unset reference to a pointer
15636         that is never assigned is encountered, prefer '<pointer> may be null'
15637         warning over '<pointer> is never assigned a value'.
15639 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
15641         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
15642         the ABI.
15644 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
15646         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
15647         libexc. We currently don't reference anything in this library and
15648         linking it in triggers linker warnings we don't want to see.
15650         * init.c: Update comments.
15652 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15654         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
15655         * utils.c (create_field_decl): Likewise.
15656         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
15658 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
15660         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
15661         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
15662         Add info directory entry and category.
15664 2004-04-02  Jan Hubicka  <jh@suse.cz>
15666         * utils.c: Include function.h
15667         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
15669 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
15671         PR ada/14150
15672         * Make-lang.in: Clean up generation of documentation
15674         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
15676         * xgnatug.adb: Removed, replaced by xgnatugn.adb
15678         * xgnatugn.adb: Replaces xgnatug.adb
15680         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
15682         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
15684         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
15685         gnat_ug_wnt.texi: Removed.
15687 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
15689         * utils2.c: Update copyright notice.
15691 2004-04-01  Robert Dewar  <dewar@gnat.com>
15693         * checks.adb: Minor reformatting throughout
15694         Note that prev checkin added RM reference to alignment warning
15696 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
15698         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
15699         non-static when building aggregate for bit-packed array.
15701         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
15702         function call that is itself the actual in a procedure call, build
15703         temporary for it.
15705         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
15706         a string literal, create a temporary for it, constant folding only
15707         handles scalars here.
15709 2004-04-01  Vincent Celier  <celier@gnat.com>
15711         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
15712         Error_Msg_SP): New empty procedures to instantiate the Scanner.
15713         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
15714         tokens.
15715         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
15716         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
15717         and get the checksum.
15719         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
15720         already in the Q.
15721         Increase the Marking_Label at the end of the Multiple_Main_Loop,
15722         instead of at the beginning.
15724         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
15725         directly.
15726         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
15727         on VMS.
15729         * osint.ads (Multi_Unit_Index_Character): New Character global variable
15731         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
15732         not '~' directly.
15734         * par.adb: Remove test on file name to detect language defined units.
15735         Add test on unit name, after parsing, to detect language defined units
15736         that are not compiled with -gnatg (except System.RPC and its children)
15738         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
15739         following units without style checking.
15741         * switch-c.adb: Change -gnatC to -gnateI
15743         * usage.adb: Document new switch -gnateInnn
15745         * scng.adb (Accumulate_Token_Checksum): New procedure
15746         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
15747         word or literal number.
15748         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
15749         numbers.
15751 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
15753         * a-tasatt.adb,
15754         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
15755         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
15756         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
15757         5vtpopde.adb: Add missing 'constant' keywords.
15759 2004-04-01  Javier Miranda  <miranda@gnat.com>
15761         * par-ch4.adb: (P_Allocator): Code cleanup
15763         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
15764         attribute.
15766         * sinfo.ads: Complete documentation of previous change
15768 2004-04-01  Pascal Obry  <obry@gnat.com>
15770         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
15771         only on VMS.  This special handling was done because an old GNU/ld bug
15772         on Windows which has been fixed.
15774 2004-04-01  GNAT Script  <nobody@gnat.com>
15776         * Make-lang.in: Makefile automatically updated
15778 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15780         * decl.c (gnat_to_gnu_entity, make_type_from_size):
15781         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
15782         * trans.c (tree_transform, convert_with_check): Likewise.
15783         * utils.c (gnat_signed_or_unsigned_type): Likewise.
15784         (build_vms_descriptor, unchecked_convert): Likewise.
15785         * utils2.c (nonbinary_modular_operation): Likewise.
15787 2004-03-29  Javier Miranda  <miranda@gnat.com>
15789         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
15790         (Install_Null_Excluding_Check): Local subprogram that determines whether
15791         an access node requires a runtime access check and if so inserts the
15792         appropriate run-time check.
15793         (Apply_Access_Check): Call Install_Null_Excluding check if required
15794         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
15796         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
15798         * einfo.ads: Fix typo in comment
15800         * exp_ch3.adb (Build_Assignment): Generate conversion to the
15801         null-excluding type to force the corresponding run-time check.
15802         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
15803         type to force the corresponding run-time check.
15805         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
15806         the null-excluding type to force the corresponding run-time check.
15808         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
15809         case of access types unless they have the null-excluding attribute.
15811         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
15812         part.
15814         * exp_util.ads: Fix typo in comment
15816         * par.adb (P_Null_Exclusion): New subprogram
15817         (P_Subtype_Indication): New formal that indicates if the null-excluding
15818         part has been scanned-out and it was present
15820         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
15822         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
15823         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
15824         type to force the corresponding run-time check
15825         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
15826         components
15827         (Resolve_Array_Aggregate): Carry out some static checks
15828         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
15830         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
15831         attribute must be set only if specified by means of the null-excluding
15832         part. In addition, we must also propagate the access-constant attribute
15833         if present.
15834         (Access_Subprogram_Declaration, Access_Type_Declaration,
15835         Analyze_Component_Declaration, Analyze_Object_Declaration,
15836         Array_Type_Declaration, Process_Discriminants,
15837         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
15838         and carry out some static checks.
15839         (Build_Derived_Access_Type): Set the null-excluding attribute
15840         (Derived_Type_Declaration, Process_Subtype): Carry out some static
15841         checks.
15843         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
15845         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
15847         * sem_ch6.adb (Process_Formals): Carry out some static checks.
15848         (Set_Actual_Subtypes): Generate null-excluding subtype if the
15849         null-excluding part was present; it is not required to be done here in
15850         case of anonymous access types.
15851         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
15852         value.
15854         * sem_res.adb (Resolve_Actuals): Carry out some static check
15855         (Resolve_Null): Allow null in anonymous access
15857         * sinfo.adb: New subprogram Null_Exclusion_Present
15858         All_Present and Constant_Present available on access_definition nodes
15860         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
15861         object_declaration, derived_type_definition, component_definition,
15862         discriminant_specification, access_to_object_definition,
15863         access_function_definition, allocator, access_procedure_definition,
15864         access_definition, parameter_specification, All_Present and
15865         Constant_Present flags available on access_definition nodes.
15867 2004-03-29  Robert Dewar  <dewar@gnat.com>
15869         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
15870         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
15871         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
15872         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
15873         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
15874         sem_prag.adb: Updates to handle multiple units/file
15876         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
15878         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
15879         sem_util.adb: Minor reformatting
15881         * sem_ch12.adb: Add comment for previous change
15883 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
15885         * osint.adb (Executable_Prefix): Set Exec_Name to the current
15886         executable name when not initialized. Otherwise, use its current value.
15888         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
15889         initialize it to another executable name than the current one. This
15890         allows to configure paths for an executable name (gnatmake) different
15891         from the current one (gnatdist).
15893 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
15895         * exp_ch6.adb (Expand_Call): A call to a function declared in the
15896         current unit cannot be inlined if it appears in the body of a withed
15897         unit, to avoid order of elaboration problems in gigi.
15899         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
15900         information for protected (wrapper) operation as well, to simplify gdb
15901         use.
15903         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
15904         protected body, indicate that the entity for the generated spec comes
15905         from source, to ensure that references are properly generated for it.
15906         (Build_Body_To_Inline): Do not inline a function that returns a
15907         controlled type.
15909         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
15910         apply convention to homonyms that are declared explicitly.
15912         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
15913         that renames an equality operator and the operands are overloaded,
15914         resolve them with the declared formal types, before rewriting as an
15915         operator.
15917 2004-03-29  GNAT Script  <nobody@gnat.com>
15919         * Make-lang.in: Makefile automatically updated
15921 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
15923         * memtrack.adb: Log realloc calls, which are treated as free followed
15924         by alloc.
15926 2004-03-25  Vincent Celier  <celier@gnat.com>
15928         * prj-makr.adb (Process_Directories): Detect when a file contains
15929         several units. Do not include such files in the config pragmas or
15930         in the naming scheme.
15932         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
15933         Resolve links only when not in Trusted_Mode.
15934         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
15935         Do not resolve links for the display names.
15937         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
15938         resolve links when computing the display names.
15940 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
15942         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
15943         attribute reference does not denote a subtype, it can be any
15944         expression that has a classwide type, potentially after an implicit
15945         dereference.  In particular, the prefix can be a view conversion for
15946         a classwide type (for which Is_Object_Reference holds), but it can
15947         also be a value conversion for an access-to-classwide type. In the
15948         latter case, there is an implicit dereference, and the original node
15949         for the prefix does not verify Is_Object_Reference.
15951         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
15952         conversion of a discriminant-dependent component of a mutable object
15953         is one itself.
15955 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
15957         * freeze.adb (Freeze_Entity): When an inherited subprogram is
15958         inherited, has convention C, and has unconstrained array parameters,
15959         place the corresponding warning on the derived type declaration rather
15960         than the original subprogram.
15962         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
15963         indication on renaming declaration, if formal has a box and actual
15964         is absent.
15966         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
15967         determine whether to generate an implicit or explicit reference to
15968         the renamed entity.
15970         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
15971         subprogram renaming comes from a defaulted formal subprogram in an
15972         instance.
15974 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
15976         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
15977         value expressions to ensure that calls within a component definition
15978         will be checked (since those are evaluated during the record type's
15979         elaboration).
15981 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
15983         * s-tpobop.adb: Code clean up:
15984         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
15985         code.
15986         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
15988 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
15990         * Makefile.in: Clean up in the ravenscar run time.
15992 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15994         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
15995         of No_Strict_Aliasing to build_pointer_type_for_mode.
15996         * utils.c (update_pointer_to): Walk pointer and ref chains.
15998 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
16000         * ali.ads: Fix Comment about Dynamic_Elab.
16002         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
16003         Has_RACW, Is_Generic, etc.)
16004         (Output_Object, Gnatls): Take into account ALI files not attached to
16005         an object.
16007 2004-03-22  Vincent Celier  <celier@gnat.com>
16009         * gprep.adb: Change all String_Access to Name_Id
16010         (Is_ASCII_Letter): new function
16011         (Double_File_Name_Buffer): New procedure
16012         (Preprocess_Infile_Name): New procedure
16013         (Process_Files): New procedure
16014         (Gnatprep): Check if output and input are existing directories.
16015         Call Process_Files to do the real job.
16017 2004-03-22  Robert Dewar  <dewar@gnat.com>
16019         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
16020         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
16022 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
16024         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
16025         case when the source contains only comments.
16027 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
16029         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
16030         declaration for a child subprogram body that acts as a spec, indicate
16031         that the entity in the declaration needs debugging information.
16033         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
16034         full view if the subtype is created for a constrained record component;
16035         gigi has enough information to construct the record, and there is no
16036         place in the tree for the declaration.
16038         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
16039         serial number for the dummy body that is built for analysis, to avoid
16040         inconsistencies in the generation of internal names when compiling
16041         with -gnatN.
16043 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
16045         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
16046         object.
16048 2004-03-22  GNAT Script  <nobody@gnat.com>
16050         * Make-lang.in: Makefile automatically updated
16052 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16054         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
16055         * trans.c (tree_transform, emit_index_check): Likewise.
16056         * utils.c (build_template): Likewise.
16057         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
16058         (maybe_unconstrained_array, unchecked_convert): Likewise.
16059         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
16060         (build_unary_op): Likewise.
16061         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
16062         (fill_vms_descriptor): Likewise.
16063         (build_call_alloc_dealloc): Likewise.
16064         ALIGN is unsigned.
16065         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
16067 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
16069         PR other/14630
16070         * gnat_ug.texi: Add info directory category and entry.
16071         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
16072         gnat_ug_wnt.texi: Regenerate.
16074 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
16076         * ada-tree.h: Update copyright notice.
16077         Minor reformatting.
16079 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
16081         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
16082         as regular exception objects and not as mere integers representing the
16083         condition code.  The latter approach required some dynamics to mask off
16084         severity bits, which did not fit well into the GCC table based model.
16085         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
16086         exception data objects. We don't it and it would conflict with the other
16087         external symbol we have to generate for such exceptions.
16089         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
16090         the special code for VMS exceptions, since these are now represented
16091         as regular exceptions objects.
16093 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16095         * decl.c (debug_no_type_hash): Remove.
16096         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
16097         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
16099 2004-03-19  Laurent Guerby <laurent@guerby.net>
16101         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
16102         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
16104 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16106         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
16107         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
16108         (TYPE_RM_SIZE_INT): Directly use type.values.
16109         (TREE_LOOP_ID): Clean up check.
16110         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
16111         TYPE_VALUES, not TYPE_FIELDS.
16112         * trans.c (convert_with_check): Delay access of bounds of basetype
16113         until sure is numeric.
16115 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
16117         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
16119         Code clean up:
16120         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
16121         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
16122         Specific.Set instead of direct call to e.g pthread_setspecific.
16124 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
16126         * adaint.c: Update comments.
16128         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
16129         GNATLIB_SHARED for FreeBSD.
16131 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
16133         * init.c [VxWorks]: Do not fix the stack size for the environment task.
16134         When needed (stack checking) the stack size is retrieved
16135         from the VxWorks kernel.
16137         * Makefile.in: Flag -nostdinc is required when building the run time
16138         for avoiding looking for files in the base compiler.
16139         Add the VxWorks specific version of the package body for
16140         System.Stack_checking.Operations (5zstchop.adb).
16142         * Make-lang.in: Add the object file for
16143         System.Stack_Checking.Operations.
16145         * Makefile.rtl: Add object file for the package
16146         System.Stack_Checking.Operations.
16148         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
16150         * s-stache.ads, s-stache.adb: Move the operations related to stack
16151         checking from this package to package System.Stack_Checking.Operations.
16152         This way, stack checking operations are only linked in the final
16153         executable when using the -fstack-check flag.
16155 2004-03-18  Doug Rupp  <rupp@gnat.com>
16157         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
16158         Reorganize ifeq's.
16160         * 5qsystem.ads, 5xcrtl.ads: New files.
16162 2004-03-18  Vincent Celier  <celier@gnat.com>
16164         * prj.adb (Reset): Reset hash table Files_Htable
16166         * prj-env.adb (Source_Paths, Object_Paths): New tables.
16167         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
16168         the procedures Add_To_Path_File.
16169         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
16170         making sure that each directory is present only once and, for object
16171         dirs, when a directory already present is added, the duplicate is
16172         removed and the directory is always put as the last in the table.
16173         Write the path files at the end of these accumulations.
16175         * prj-nmsc.adb (Record_Source): Add source file name in hash table
16176         Files_Htable for all sources.
16178         * prj-proc.adb (Process): Remove restrictions between not directly
16179         related extending projects.
16181 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
16183         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
16184         (Find_Sources): Minor speed optimization.
16186         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
16187         parameter Trusted_Mode.
16189 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
16191         * scn.adb (Determine_License): Take into account a degenerated case
16192         when the source contains only comments.
16194 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
16196         * sem_warn.adb (Check_References): For a warning on a selected
16197         component that does not come from source, locate an uninitialized
16198         component of the record type to produce a more precise error message.
16200 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
16202         * 3zsoccon.ads: Fix multicast options.
16204         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
16205         in the spec.
16207 2004-03-15  Robert Dewar  <dewar@gnat.com>
16209         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
16210         pragma used for a private type.
16212         * lib-xref.adb (Generate_Reference): Do not generate warning if
16213         reference is in a different unit from the pragma Unreferenced.
16215         * 5vtpopde.adb: Minor reformatting
16216         Fix casing of To_Task_ID
16218         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
16219         flag if we have an unchecked conversion to an access type in the same
16220         unit.
16222 2004-03-15  Geert Bosch  <bosch@gnat.com>
16224         * a-ngcoty.adb (Modulus): In alternate formula for large real or
16225         imaginary parts, use Double precision throughout.
16227         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
16228         we want to be able to compile run-time with -gnata for testing, but
16229         this may also be instantiated in user code that is compiled with -gnata.
16231 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
16233         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
16234         codes. Having a separate type for this is useful to enforce consistency
16235         throughout the various run-time units.
16236         (Exception_Data): Use Exception_Code for Import_Code.
16238         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
16239         Natural and Integer in various places.
16240         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
16241         with the severity bits masked off.
16242         (Register_VMS_Exception): Handle the additional exception data pointer
16243         argument.
16245         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
16246         component, now reflected by an exported accessor.
16247         (is_handled_by): New routine to compute whether the propagated
16248         occurrence matches some handler choice specification. Extracted out of
16249         get_action_description_for, and expanded to take care of the VMS
16250         specifities.
16251         (get_action_description_for): Use is_handled_by instead of an explicit
16252         complex condition to decide if the current choice at hand catches the
16253         propagated occurrence.
16255         * raise.h (Exception_Code): New type for C.
16257         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
16258         System.Standard_Library.Exception_Code, to allow references from the
16259         pragma import/export expander.
16261         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
16262         New accessors to allow easy access to GNAT exception data
16263         characteristics.
16264         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
16265         redundant Handled_By_Others component, helper for the personality
16266         routine which will now be able to call the appropriate exception data
16267         accessor instead.
16269         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
16270         component of Standard_Exception_Type to be the closest possible to
16271         Exception_Code in System.Standard_Library, that we cannot get at this
16272         point. Expand a ??? comment to notify that this type node should
16273         probably be rewritten later on.
16275         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
16276         registration call to include a pointer to the exception object in the
16277         arguments.
16279         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
16280         instead of int and explicit bitmasks.
16282 2004-03-15  Vincent Celier  <celier@gnat.com>
16284         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
16285         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
16287         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
16288         longer needed now that it is in the spec of
16289         System.Tasking.Task_Attributes.
16291         * adaint.h, adaint.c: (__gnat_create_output_file): New function
16293         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
16295         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
16297         * make.adb (Gnatmake): Do not check the executable suffix; it is being
16298         taken care of in Scan_Make_Arg.
16299         (Scan_Make_Arg): Add the executable suffix only if the argument
16300         following -o, in canonical case, does not end with the executable
16301         suffix.  When in verbose mode and executable file name does not end
16302         with executable suffix, output the executable name, in canonical case.
16304         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
16305         to avoid warnings when instantiating Ada.Task_Attributes.
16306         Minor reformating.
16308         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
16309         in the correct order.
16311         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
16312         redirect standard output and error to a file for the invocation of the
16313         compiler, then read the file.
16315         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
16316         directory, instead of the Value.
16317         (Find_Source_Dirs): Remove useless code & comments.
16319 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
16321         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
16322         tagged type is inherited, and the parent operation is not frozen yet,
16323         force generation of a freeze node for the inherited operation, so the
16324         corresponding dispatch entry is properly initialized.
16325         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
16326         when looking for user-defined equality operation.
16328         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
16329         boolean when locating primitive equality of tagged component.
16331         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
16332         bit-aligned field and the right-hand side a string literal, introduce
16333         a temporary before expanding assignment into a loop.
16335         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
16336         priority in full, to ensure that any expanded subepxressions of it are
16337         elaborated in the scope of the init_proc.
16339         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
16340         after object declaration, skipping over code that may have been
16341         generated for validity checks.
16343         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
16344         discriminants, ignore the known discriminants of its full view, if
16345         any, to check legality.
16347         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
16348         component if type has unknown discriminants.
16349         (Analyze_Private_Extension_Declaration): Discriminant constraint is
16350         null if type has unknown discriminants.
16352         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
16353         for end label when present.
16355         * s-fileio.adb (Open): When called with a C_Stream, use given name for
16356         temporary file, rather than an empty string.
16358 2004-03-15  Ed Falis  <falis@gnat.com>
16360         * s-thread.adb: Removed, no longer used.
16362 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16364         * decl.c (target.h): Now include.
16365         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
16366         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
16367         (validate_size): For POINTER_TYPE, get smallest size permitted on
16368         machine.
16370         * fe.h: Sort Einfo decls and add Set_Mechanism.
16372         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
16373         (ada/decl.o): Depends on target.h.
16375         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
16376         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
16378 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
16380         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
16382         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
16383         Insert_Dereference_Action when rewriting an implicit dereference into
16384         an explicit one, this will be taken care of during expansion of the
16385         explicit dereference.
16386         (Expand_N_Slice): Same. Always do the rewriting, even for the case
16387         of non-packed slices, since the dereference action generated by
16388         expansion of the explicit dereference is needed in any case.
16389         (Expand_N_Selected_Component): When rewriting an implicit dereference,
16390         analyze and resolve the rewritten explicit dereference so it is seen
16391         by the expander.
16392         (Insert_Dereference_Action): This procedure is now called only for the
16393         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
16394         dereferences that do not come from source (including explicit
16395         dereferences resulting from rewriting implicit ones), but do not
16396         recursively insert a check for the dereference nodes contained within
16397         the check.
16398         (Insert_Dereference_Action): Clarify and correct comment.
16400 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
16402         PR ada/14131
16403         Move language detection to the top level.
16404         * config-lang.in: Build by default.
16406 2004-03-05  Robert Dewar  <dewar@gnat.com>
16408         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
16410         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
16411         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
16412         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
16413         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
16414         unchecked conversion to spec to avoid warnings.
16416         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
16417         to Task_ID
16419         * 7stpopsp.adb: Correct casing in To_Task_ID call
16421         * a-strsea.ads, a-strsea.adb: Minor reformatting
16423         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
16425         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
16426         Adjust Max_Msg_Length to be clearly large enough.
16428         * fe.h: Define In_Same_Source_Unit
16430         * osint.adb: Add pragma Warnings Off to suppress warnings
16431         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
16432         aliasing warnings.
16434         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
16436         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
16438         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
16440         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
16442         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
16444         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
16445         node. We now do generate them for gcc back end.
16447         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
16448         warning.
16450         * sinput-c.adb: Fix bad name in header.
16451         Add pragma Warnings Off to suppress aliasing warning.
16453         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
16455         * snames.h, snames.ads, snames.adb: Add entry for pragma
16456         No_Strict_Aliasing.
16458 2004-03-05  Vincent Celier  <celier@gnat.com>
16460         * prj-com.ads: Add hash table Files_Htable to check when a file name
16461         is already a source of another project.
16463         * prj-nmsc.adb (Record_Source): Before recording a new source, check
16464         if its file name is not already a source of another project. Report an
16465         error if it is.
16467         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
16468         source file name, call gnatpp with all the sources of the main project.
16470         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
16471         of file names.
16473         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
16474         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
16475         /RUNTIME_SYSTEM=, converted to --RTS=
16476         /NOTABS, converted to -notabs
16478 2004-03-05  Pascal Obry  <obry@gnat.com>
16480         * make.adb: Minor reformatting.
16482 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
16484         Part of implemention of AI-262.
16485         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
16487         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
16488         procedure.
16490         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
16491         when component type is a partially constrained class-wide subtype.
16492         (Constrain_Discriminated_Type): If parent type has unknown
16493         discriminants, a constraint is illegal, even if full view has
16494         discriminants.
16495         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
16496         with unknown discriminants whose full view is a discriminated record.
16498         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
16499         flag, to handle properly derivations of tagged types with unknown
16500         discriminants.
16501         (Analyze_Package_Spec, Analyze_Package_Body): Install
16502         Private_With_Clauses before analyzing private part or body.
16504         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
16505         Has_Discriminants can be true for a given type (documentation).
16507 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
16509         * s-restri.ads: Fix license (GPL->GMGPL).
16511         * s-tassta.adb: Minor reformatting.
16513         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
16514         by calls to Exit_One_ATC_Level, since additional clean up is performed
16515         by this function.
16517         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
16518         by calls to Exit_One_ATC_Level, since additional clean up is performed
16519         by this function.
16521 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16523         * trans.c: Reflect GCC changes to fix bootstrap problem.
16524         Add warning for suspicious aliasing unchecked conversion.
16526 2004-03-05  GNAT Script  <nobody@gnat.com>
16528         * Make-lang.in: Makefile automatically updated
16530 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
16532         * ali.adb (Read_Instantiation_Instance): Do not modify the
16533         current_file_num when reading information about instantiations, since
16534         this corrupts files in later references.
16536 2004-03-02  Vincent Celier  <celier@gnat.com>
16538         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
16539         before checking if it is read-only.
16541         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
16542         of SRC_DIRS and eliminate duplicates.
16544         * gprcmd.adb: Replace command "path" with command "path_sep" to return
16545         the path separator.
16546         (Usage): Document path_sep
16548         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
16549         C++ compiler. No need for a script.
16550         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
16551         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
16552         subst.
16554         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
16555         where there are Ada sources.
16556         (Set_Ada_Paths): Only add to the include path the source dirs of project
16557         with Ada sources.
16558         (Add_To_Path): Add the Display_Values of the directories, not their
16559         Values.
16561         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
16562         data.
16564         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
16565         is not No_Name.
16566         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
16567         Value is canonicalized.
16568         (Language_Independent_Check): Do not copy Value to Display_Value when
16569         canonicalizing Value.
16571         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
16572         path to find limited with cycles.
16573         (Parse_Single_Project): Use canonical cased path to find the end of a
16574         with cycle.
16576 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
16578         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
16579         and not a child unit.
16581         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
16582         appear in a with_clause.
16584         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
16585         only happen in type_annotate mode, do not try to elaborate it.
16587         * exp_util.adb (Force_Evaluation): If expression is a selected
16588         component on the left of an assignment, use a renaming rather than a
16589         temporary to remove side effects.
16591         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
16592         inlined instance body, which is analyzed before the end of the
16593         enclosing scope.
16595 2004-03-02  Robert Dewar  <dewar@gnat.com>
16597         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
16598         sem_ch4.adb: Use new feature for substitution of keywords in VMS
16600         * errout.ads, errout.adb: Implement new circuit for substitution of
16601         keywords in VMS.
16603         * sem_case.adb (Analyze_Choices): Place message properly when case is
16604         a subtype reference rather than an explicit range.
16606         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
16608 2004-03-02  Doug Rupp  <rupp@gnat.com>
16610         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
16612 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
16614         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
16616 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16618         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
16619         BLKmode bitfield.
16621 2004-02-25  Robert Dewar  <dewar@gnat.com>
16623         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
16624         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
16625         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
16626         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
16627         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
16628         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
16629         the defining instance of the type to avoid aliasing problems.
16630         Fix copyright header.  Fix bad comments in package header.
16632         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
16634 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
16636         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
16637         rewritten as references when aliased through an address clause.
16639         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
16640         whether call can be interpreted as an indirect call to the result of a
16641         parameterless function call returning an access subprogram.
16643 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
16645         Code clean up:
16646         * exp_ch7.adb (Make_Clean): Remove generation of calls to
16647         Unlock[_Entries], since this is now done by Service_Entries directly.
16649         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
16651         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
16652         Requeue_Call for better code readability. Change spec and update calls:
16653         PO_Service_Entries now unlock the PO on exit.
16654         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
16655         PO_Service_Entries.
16657         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
16659         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
16661 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
16663         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
16664         protected subprogram call and analyzing the result of such expanding
16665         in case when the called protected subprogram is eliminated.
16667         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
16668         names.
16670 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
16672         * Makefile.in: Clean ups.
16674 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
16676         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
16677         protected operations if original subprogram is flagged as eliminated.
16678         (Expand_N_Subprogram_Body): For a protected operation, create
16679         discriminals for next operation before checking whether the operation
16680         is eliminated.
16682         * exp_ch9.adb (Expand_N_Protected_Body,
16683         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
16684         for internal protected operations if the original subprogram is
16685         eliminated.
16687         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
16688         declared in a single protected object.
16690 2004-02-23  Vincent Celier  <celier@gnat.com>
16692         * prj-attr.adb: Make attribute Builder'Executable an associative array,
16693         case insensitive if file names are case insensitive, instead of a
16694         standard associative array.
16696         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
16697         them as case insensitive on platforms where the file names are case
16698         sensitive.
16700         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
16701         project file has already been parsed that canonical path are compared.
16703 2004-02-23  Robert Dewar  <dewar@gnat.com>
16705         * sinput-c.ads: Correct bad unit title in header
16707         * freeze.adb: Minor reformatting
16709 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16711         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
16712         nonaddressable COMPONENT_REF that is removing padding that we are
16713         taking the address of, take the address of the padded record instead
16714         if item is variable size.
16716 2004-02-20  Robert Dewar  <dewar@gnat.com>
16718         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
16720 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
16722         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
16723         itype references for the constrained designated type of a component
16724         whose base type is already frozen.
16726 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
16728         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
16729         avoid GCC warnings.
16731 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
16733         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
16734         identifier for a phantom package that rewrites the formal package
16735         declaration with a box. The Add semantic decorations for the defining
16736         identifier from the original node (that represents the formal package).
16738 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
16740         * Make-lang.in (ada/stamp-sdefault): Use the top level
16741         move-if-change.
16743 2004-02-19  Richard Henderson  <rth@redhat.com>
16745         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
16747 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
16749         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
16750         Scan_ALI can be used for multiple ALI files without reinitializing
16751         between calls.
16753 2004-02-18  Robert Dewar  <dewar@gnat.com>
16755         * debug.adb: Minor reformatting.
16757 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16759         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
16760         to zero if there is an address clause.
16762 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
16764         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
16766 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
16768         * layout.adb (Layout_Component_List): Revise generation of call to
16769         discriminant-checking function to pass selections of all of the type's
16770         discriminants rather than just the variant-controlling discriminant.
16772 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
16774         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
16775         fail in the current setup and triggers spurious system error messages.
16776         Pretend it occurred and failed instead.
16778 2004-02-18  Vincent Celier  <celier@gnat.com>
16780         * bld.adb: Mark FLDFLAGS as saved
16781         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
16782         it is not the root project.  Put each directory to be
16783         extended between double quotes to prevent it to be expanded on Windows.
16784         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
16785         the project file. Set them back to their initial values if they have not
16786         been set in the project file.
16788         * gprcmd.adb: (Gprdebug, Debug): New global variables
16789         (Display_Command): New procedure
16790         (Usage): Document new command "linkopts"
16791         Call Display_Command when env var GPRDEBUG has the value "TRUE"
16792         Implement new command "linkopts"
16793         Remove quotes that may be around arguments for "extend"
16794         Always call Normalize_Pathname with arguments formatted for the platform
16796         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
16797         Change @echo to @$(display) in target clean to be able to clean silently
16799         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
16801         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
16802         canonical case.
16804         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
16805         = Extending_All when current project is an extending all project.
16807         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
16808         set to True only for LINK command, after Unix switch -o.
16809         (Process_Arguments): Set Output_File_Expected to True for LINK command
16810         after Unix switch -o. When Output_File_Expected is True, never add an
16811         extension to a file name.
16813         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
16814         option file name, only to the --for-linker= switch.
16815         (Option_File_Name): If option file name do not end with ".opt", append
16816         "/OPTIONS".
16818 2004-02-18  GNAT Script  <nobody@gnat.com>
16820         * Make-lang.in: Makefile automatically updated
16822 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
16824         * Make-lang.in (stamp-sdefault): Do not depend on
16825         move-if-change.
16827 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
16829         * config-lang.in: Disable Ada by default until probe logic for
16830         a bootstrap Ada compiler can be moved to the top level configure
16831         script.
16833 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
16835         * decl.c (components_to_record): Don't claim that the internal fields
16836         we make to hold the variant parts are semantically addressable, because
16837         they are not.
16839         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
16840         adjust the comment describing the modular type form when we can use it.
16841         (Install_PAT): Account for the Esiz renaming.
16843         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
16844         sc_onstack context indication before raising the exception to which
16845         the signal is mapped. Allows better handling of later signals possibly
16846         triggered by the resumed user code if the exception is handled.
16848 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
16850         * 5zinit.adb: Removed, no longer used.
16852 2004-02-12  Robert Dewar  <dewar@gnat.com>
16854         * ali.adb: Remove separating space between parameters on R line. Makes
16855         format consistent with format used by the binder for Set_Globals call.
16857         * atree.ads, atree.adb: Minor reformatting (new function header format)
16859         * bindgen.adb: Add Run-Time Globals documentation section containing
16860         detailed documentation of the globals passed from the binder file to
16861         the run time.
16863         * gnatls.adb: Minor reformatting
16865         * init.c (__gnat_set_globals): Add note pointing to documentation in
16866         bindgen.
16868         * lib-writ.ads, lib-writ.adb: Remove separating space between
16869         parameters on R line.
16870         Makes format consistent with format used by the binder for Set_Globals
16871         call.
16873         * osint.ads: Add 2004 to copyright notice
16874         Minor reformatting
16876         * snames.ads: Correct capitalization of FIFO_Within_Priorities
16877         Noticed during code reading, documentation issue only
16879         * usage.adb: Remove junk line for obsolete C switch
16880         Noticed during code reading
16882 2004-02-12  Vincent Celier  <celier@gnat.com>
16884         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
16885         extend for each directory, so that multiple /** directories are
16886         extended individually.
16887         (Recursive_Process): Set the default for LANGUAGES to ada
16889         * gprcmd.adb: Define new command "ignore", to do nothing.
16890         Implement new comment "path".
16892         * Makefile.generic: Suppress output when SILENT is set
16893         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
16894         used, so that the correct compiler is invoked.
16895         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
16896         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
16898 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
16900         * Makefile.in: Clean ups and remove obsolete targets.
16902 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
16904         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
16905         predicate declared in exp_util.
16907         * exp_util.adb: Add comments.
16909         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
16910         visibility before compiling context of the subunit.
16912         * sem_res.adb (Check_Parameterless_Call): If the context expects a
16913         value but the name is a procedure, do not attempt to analyze as a call,
16914         in order to obtain more telling diagnostics.
16916         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
16917         'Access on parameterless function calls.
16918         (Normalize_Actuals): For a parameterless function call with missing
16919         actuals, defer diagnostic until resolution of enclosing call.
16921         * sem_util.adb (Wrong_Type): If the context type is an access to
16922         subprogram and the expression is a procedure name, suggest a missing
16923         'attribute.
16925 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
16926             Nathanael Nerode  <neroden@gcc.gnu.org>
16928         PR ada/6637, PR ada/5911
16929         Merge with libada-branch:
16930         * config-lang.in: Build libada only when ada is built.
16932 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
16934         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
16935         for a tagged type, verify that both formals have the same type.
16937         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
16938         temporary when the formal is an in-parameter and the actual a possibly
16939         unaligned slice.
16941         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
16942         when expansion is disabled, to ensure proper name capture with
16943         overloaded literals.  Condition can be of any boolean type, resolve
16944         accordingly.
16946         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
16947         renaming is for a formal subprogram with a default operator name, and
16948         there is a usable operator that is visible at the point of
16949         instantiation.
16951 2004-02-09  Robert Dewar  <dewar@gnat.com>
16953         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
16954         rewrite to ignore errors in ali files, intended to allow tools downward
16955         compatibility with new versions of ali files.
16957         * ali.ads: Add new parameter Ignore_Errors
16959         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
16960         duplicating the error message giving the file with restrictions.
16962         * debug.adb: Add debug flag I for gnatbind
16964         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
16965         operators for the case where the operator is a defining operator.
16967         * exp_ch3.adb: Minor reformatting (new function spec format).
16969         * exp_ch4.adb: Add comment for previous change, and make minor
16970         adjustment to loop to always check for improper loop termination.
16971         Minor reformatting throughout (new function spec format).
16973         * gnatbind.adb: Implement -di debug flag for gnatbind
16975         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
16977         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
16979         * lib-load.adb: Fix bad assertion.
16980         Found by testing and code reading.
16981         Minor reformatting.
16983         * lib-load.ads: Minor reformatting.
16985         * lib-writ.adb: There is only one R line now.
16987         * lib-writ.ads: Add documentation on making downward compatible changes
16988         to ali files so old tools work with new ali files.
16989         There is only one R line now.
16990         Add documentation on format incompatibilities (with special GPS note)
16992         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
16994         * par-load.adb: Minor reformatting
16996         * sem_ch8.adb: Fix to error message from last update
16997         Minor reformatting and restructuring of code from last update
16999         * par-prag.adb, snames.adb, snames.ads, snames.h,
17000         sem_prag.adb: Implement pragma Profile.
17002         * stylesw.adb: Implement -gnatyN switch to turn off all style check
17003         options.
17005         * usage.adb: Add line for -gnatyN switch
17007         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
17009 2004-02-09  Albert Lee  <lee@gnat.com>
17011         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
17013 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
17015         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
17016         slices.
17018         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
17019         is nested in an instance that is not frozen yet, to avoid
17020         order-of-elaboration problems in gigi.
17022         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
17023         body the attribute is legal.
17025 2004-02-09  Robert Dewar  <dewar@gnat.com>
17027         * s-rident.ads: Minor comment correction
17029         * targparm.adb: Remove dependence on uintp completely. There was
17030         always a bug in Make in that it called Targparm before initializing
17031         the Uint package. The old code appeared to get away with this, but
17032         the new code did not! This caused an assertion error in gnatmake.
17034         * targparm.ads: Fix bad comment, restriction pragmas with parameters
17035         are indeed fully supported.
17037 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
17039         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
17041 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
17043         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
17044         with targetm.calls.promote_prototypes.
17046 2004-02-04  Robert Dewar  <dewar@gnat.com>
17048         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
17049         ali.ads, gprcmd.adb: Minor reformatting
17051         * bindgen.adb: Output restrictions string for new style restrictions
17052         handling
17054         * impunit.adb: Add s-rident.ads (System.Rident) and
17055         s-restri (System.Restrictions)
17057         * lib-writ.adb: Fix bug in writing restrictions string (last few
17058         entries wrong)
17060         * s-restri.ads, s-restri.adb: Change name Restrictions to
17061         Run_Time_Restrictions to avoid conflict with package name.
17062         Add circuit to read and acquire run time restrictions.
17064 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
17066         * restrict.ads, restrict.adb: Use the new restriction
17067         No_Task_Attributes_Package instead of the old No_Task_Attributes.
17069         * sem_prag.adb: No_Task_Attributes is a synonym of
17070         No_Task_Attributes_Package.
17072         * snames.ads, snames.adb: New entry for proper handling of
17073         No_Task_Attributes.
17075         * s-rident.ads: Adding restriction No_Task_Attributes_Package
17076         (AI-00249) that supersedes the GNAT specific restriction
17077         No_Task_Attributes.
17079 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
17081         * sem_prag.adb:
17082         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
17083          body, an identifier may be wrapped in an unchecked conversion.
17085 2004-02-04  Vincent Celier  <celier@gnat.com>
17087         * lib-writ.ads: Comment update for the W lines
17089         * bld.adb: (Expression): An empty string list is static
17091         * fname-uf.adb: Minor comment update
17093         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
17095         * gnatbind.adb: Initialize Cumulative_Restrictions with the
17096         restrictions on the target.
17098 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
17100         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
17101         gen_rtx.
17103 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
17105         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
17107 2004-02-02  Vincent Celier  <celier@gnat.com>
17109         * gprcmd.adb (Check_Args): If condition is false, print the invoked
17110         comment before the usage.
17111         Gprcmd: Fail when command is not recognized.
17112         (Usage): Document command "prefix"
17114         * g-md5.adb (Digest): Process last block.
17115         (Update): Do not process last block. Store remaining characters and
17116         length in Context.
17118         * g-md5.ads (Update): Document that several call to update are
17119         equivalent to one call with the concatenated string.
17120         (Context): Add fields to allow new Update behaviour.
17122         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
17123         defaulted to False.
17124         When May_Fail is True and no existing file can be found, return No_File.
17126         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
17127         functions.
17129         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
17130         spec file name instead on the W line.
17132 2004-02-02  Robert Dewar  <dewar@gnat.com>
17134         * ali.adb: Read and acquire info from new format restrictions lines
17136         * bcheck.adb: Add circuits for checking restrictions with parameters
17138         * bindgen.adb: Output dummy restrictions data
17139         To be changed later
17141         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
17142         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
17143         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
17144         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
17145         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
17147         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
17148         the warning message on access to possibly uninitialized variable S)
17149         Minor changes for new restrictions handling.
17151         * gnatbind.adb: Minor reformatting
17152         Minor changes for new restrictions handling
17153         Move circuit for -r processing here from bcheck (cleaner)
17155         * gnatcmd.adb, gnatlink.adb: Minor reformatting
17157         * lib-writ.adb: Output new format restrictions lines
17159         * lib-writ.ads: Document new R format lines for new restrictions
17160         handling.
17162         * s-restri.ads/adb: New files
17164         * Makefile.rtl: Add entry for s-restri.ads/adb
17166         * par-ch3.adb: Fix bad error messages starting with upper case letter
17167         Minor reformatting
17169         * restrict.adb: Major rewrite throughout for new restrictions handling
17170         Major point is to handle restrictions with parameters
17172         * restrict.ads: Major changes in interface to handle restrictions with
17173         parameters. Also generally simplifies setting of restrictions.
17175         * snames.ads/adb: New entry for proper handling of No_Requeue
17177         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
17178         restriction counting.
17179         Other minor changes for new restrictions handling
17181         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
17182         Restriction_Warnings now allows full parameter notation
17183         Major rewrite of Restrictions for new restrictions handling
17185 2004-02-02  Javier Miranda  <miranda@gnat.com>
17187         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
17188         syntax rule for object renaming declarations.
17189         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
17190         component definitions.
17192         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
17193         components.
17194         (Array_Type_Declaration): Give support to access components. In addition
17195         it was also modified to reflect the name of the object in anonymous
17196         array types. The old code did not take into account that it is possible
17197         to have an unconstrained anonymous array with an initial value.
17198         (Check_Or_Process_Discriminants): Allow access discriminant in
17199         non-limited types.
17200         (Process_Discriminants): Allow access discriminant in non-limited types
17201         Initialize the new Access_Definition field in N_Object_Renaming_Decl
17202         node.  Change Ada0Y to Ada 0Y in comments
17204         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
17205         equality operators.
17206         Change Ada0Y to Ada 0Y in comments
17208         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
17209         renamings Change Ada0Y to Ada 0Y in comments
17211         * sem_type.adb (Find_Unique_Type): Give support to the equality
17212         operators for universal access types
17213         Change Ada0Y to Ada 0Y in comments
17215         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
17217         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
17218         field.
17219         (N_Object_Renaming_Declaration): Addition of Access_Definition field
17220         Change Ada0Y to Ada 0Y in comments
17222         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
17223         component definition and object renaming nodes
17224         Change Ada0Y to Ada 0Y in comments
17226 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
17228         * restrict.adb: Use the new restriction identifier
17229         No_Requeue_Statements instead of the old No_Requeue for defining the
17230         restricted profile.
17232         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
17233         No_Requeue_Statements.
17235         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
17236         that supersedes the GNAT specific restriction No_Requeue. The later is
17237         kept for backward compatibility.
17239 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
17241         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
17242         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
17243         pragma and fix incorrect ones.
17245         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
17246         warning if the pragma is redundant.
17248 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
17250         * 5staprop.adb: Add missing 'constant' keywords.
17252         * Makefile.in: use consistent value for SYMLIB on
17253         platforms where libaddr2line is supported.
17255 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17257         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
17258         annotating types.
17260 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
17262         * init.c (__gnat_install_handler): Setup an alternate stack for signal
17263         handlers in the environment thread. This allows proper propagation of
17264         an exception on stack overflows in this thread even when the builtin
17265         ABI stack-checking scheme is used without support for a stack reserve
17266         region.
17268         * utils.c (create_field_decl): Augment the head comment about bitfield
17269         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
17270         here, because the former is not accurate enough at this point.
17271         Let finish_record_type decide instead.
17272         Don't make a bitfield if the field is to be addressable.
17273         Always set a size for the field if the record is packed, to ensure the
17274         checks for bitfield creation are triggered.
17275         (finish_record_type): During last pass over the fields, clear
17276         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
17277         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
17278         from DECL_BIT_FIELD.
17280 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
17282         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
17283         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
17284         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
17286 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17288         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
17290         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
17291         (ZCX_By_Default): Likewise.
17292         (Front_End_ZCX_Support): Likewise.
17294         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
17295         (Initialize_Lock): Mark Level unreferenced.
17296         (Sleep): Mark Reason unreferenced.
17297         (Timed_Sleep): Likewise.
17298         (Wakeup): Likewise.
17299         (Exit_Task): Use Result.
17300         (Check_No_Locks): Mark Self_ID unreferenced.
17302         * 5gtasinf.adb (New_Sproc): Make Attr constant.
17303         (Bound_Thread_Attributes): Make Sproc constant.
17304         (New_Bound_Thread_Attributes): Likewise.
17306 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
17308         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
17309         one-dimensional array an slice assignments, when component type is
17310         controlled.
17312         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
17313         component type is controlled, and control_actions are in effect, use
17314         TSS procedure rather than generating inline code.
17316         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
17317         arrays with controlled components.
17319 2004-01-26  Vincent Celier  <celier@gnat.com>
17321         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
17322         command line for the non VMS case.
17324         * gnatlink.adb (Process_Binder_File): When building object file, if
17325         GNU linker is used, put all object paths between quotes, to prevent ld
17326         error when there are unusual characters (such as '!') in the paths.
17328         * Makefile.generic: When there are sources in Ada and the main is in
17329         C/C++, invoke gnatmake with -B, instead of -z.
17331         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
17332         from VMS_Conversion.
17333         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
17334         specification of argument file on the command line.
17336 2004-01-26  Bernard Banner  <banner@gnat.com>
17338         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
17340 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
17342         * snames.adb: Update copyright notice.
17343         Add info on slice assignment for controlled arrays.
17345 2004-01-23  Robert Dewar  <dewar@gnat.com>
17347         * exp_aggr.adb: Minor reformatting
17349         * exp_ch9.adb: Minor code clean up
17350         Minor reformatting
17351         Fix bad character in comment
17353         PR ada/13471
17354         * targparm.adb (Get_Target_Parameters): Give clean abort error on
17355         unexpected end of file, along with more detailed message.
17357 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17359         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
17360         PAT.
17362         * decl.c (copy_alias_set): New function.
17363         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
17365 2004-01-23  Doug Rupp  <rupp@gnat.com>
17367         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
17368         lib$${file} in case subsequent character is not a separator.
17370 2004-01-23  Vincent Celier  <celier@gnat.com>
17372         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
17373         when the GCC version is at least 3.
17375         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
17376         Remove all "Opt.", to prepare for opt split
17378         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
17379         Extends_All. Set to True when the project parsed is an extending all
17380         project. Fails for importing an extending all project only when the
17381         imported project is an extending all project.
17382         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
17383         depending on the value of Extends_All returned.
17385         * prj-proc.adb (Process): Check that no project shares its object
17386         directory with a project that extends it, directly or indirectly,
17387         including a virtual project.
17388         Check that no project extended by another project shares its object
17389         directory with another also extended project.
17391         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
17392         Kind = N_With_Clause
17394         * prj-tree.ads: Minor reformatting
17395         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
17397 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
17399         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
17400         applies to a type with an incomplete view, use full view in Name of
17401         clause, for consistency with uses of Get_Attribute_Definition_Clause.
17403 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
17405         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
17406         SCHED_RR, since other values are not supported by this policy.
17407         (Initialize): Move initialization of mutex attribute to package
17408         elaboration, to prevent early access to this variable.
17410         * Makefile.in: Remove mention of Makefile.adalib, unused.
17412         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
17413         1ssecsta.ads: Removed, unused.
17415 2004-01-21  Javier Miranda  <miranda@gnat.com>
17417         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
17418         entity if already built in the current scope.
17420         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
17421         reminder in internal scopes. Required for nested limited aggregates.
17423 2004-01-21  Doug Rupp  <rupp@gnat.com>
17425         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
17426         VMS. Replace all occurences of libgnat- and libgnarl- with
17427         libgnat$(hyphen) and libgnarl$(hyphen).
17428         Fixed shared library build problem on VMS.
17430 2004-01-21  Robert Dewar  <dewar@gnat.com>
17432         * mlib-prj.adb: Minor reformatting
17434 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
17436         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
17437         'constant' keywords for declaration of pointers that are not modified.
17439         * exp_pakd.adb: Fix English in comment.
17441 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
17443         PR ada/10889
17444         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
17445         copy all attributes of the parent, including the foreign language
17446         convention.
17448 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
17450         PR ada/10565
17451         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
17452         for 'delay until' statement.
17454 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
17456         * Make-lang.in: Replace $(docdir) with doc.
17457         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
17458         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
17459         to use consistent MAKEINFO rule.
17460         (ada.man, ada.srcman): Dummy entry.
17461         (ADA_INFOFILES): Define.
17462         (ada.info, ada.srcinfo): New rules.
17464 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
17466         * utils.c: Update copyright notice, missed in previous change.
17468 2004-01-19  Vincent Celier  <celier@gnat.com>
17470         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
17471         args if Bind is True. Set First_ALI, if not already done.
17472         (Build_Library): For Stand Alone Libraries, extract from one ALI file
17473         an eventual --RTS switch, for gnatbind, and all backend switches +
17474         --RTS, for linking.
17476 2004-01-19  Robert Dewar  <dewar@gnat.com>
17478         * sem_attr.adb, memtrack.adb: Minor reformatting
17480 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
17482         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
17483         that rename enumeration literals. This is properly done in sem_eval.
17485         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
17486         to functions that rename enumeration literals.
17488         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
17489         functions that rename enumeration literals.
17491 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
17493         * Make-lang.in (utils.o): Depend on target.h.
17494         * utils.c: Include target.h.
17495         (process_attributes): Use targetm.have_named_sections instead
17496         of ASM_OUTPUT_SECTION_NAME.
17498 2004-01-16  Andreas Jaeger  <aj@suse.de>
17500         * Makefile.in: Add $(DESTDIR).
17502 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
17504         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
17505         also when not defining if a Size clause applies. That information is
17506         not to be ignored.
17508 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
17510         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
17511         symbolic links for the shared gnat run time when needed.
17513 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
17515         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
17516         for writing, and terminate with an error message if not.
17518 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
17520         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
17521         warning on an access to subprogram in an instance, when the target
17522         type is declared in the same generic unit.
17523         (Eval_Attribute): If 'access is known to fail accessibility check,
17524         rewrite as a raise statement.
17526 2004-01-15  GNAT Script  <nobody@gnat.com>
17528         * Make-lang.in: Makefile automatically updated
17530 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
17532         * Make-lang.in (ada.srcextra): Dummy entry.
17534 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
17536         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
17538 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
17540         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
17541         components that are initialized with aggregates.
17543 2004-01-13  Vincent Celier  <celier@gnat.com>
17545         * gnatlink.adb (Process_Binder_File): To find directory of shared
17546         libgcc, if "gcc-lib" is not a subdirectory, look for the last
17547         subdirectory "lib" in the path of the shared libgnat or libgnarl.
17549         * make.adb (Gnatmake): If GCC version is at least 3, link with
17550         -shared-libgcc, when there is at least one shared library project.
17552         * opt.ads (GCC_Version): New integer constant.
17554         * adaint.c (get_gcc_version): New function.
17556 2004-01-13  Robert Dewar  <dewar@gnat.com>
17558         * sem_dist.adb, sem_res.adb, sem_util.adb,
17559         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
17560         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
17562 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
17564         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
17565         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
17566         declarations.
17568 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
17570         * misc.c: Remove trailing spaces.
17571         Update copyright notice missed in previous change.
17573         PR ada/13572
17574         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
17575         prefix/share/make
17577         * Makefile.generic: Update copyright.
17578         Add license notice.
17580         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
17581         of prefix/share/make.
17583         * Makefile.prolog: Update copyright.
17584         Add license notice.
17586 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
17588         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
17589         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
17590         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
17591         instead of String.
17593         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
17594         signature.
17596 2004-01-12  Javier Miranda  <miranda@gnat.com>
17598         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
17599         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
17600         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
17601         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
17602         Component_Definition node.
17604 2004-01-12  Ed Falis  <falis@gnat.com>
17606         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
17608 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
17610         * link.c: Change default libgnat kind to STATIC for FreeBSD.
17612 2004-01-12  Bernard Banner  <banner@gnat.com>
17614         * Makefile.in: map 86numaux to a-numaux for x86_64
17616 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
17618         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
17619         generated to rename a generic actual, go to the actual itself, the
17620         subtype is not a user-visible entity.
17622         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
17623         part is a private subtype, reset the visibility of its full view, if
17624         any, to be consistent.
17626         PR ada/13417
17627         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
17628         to use a generic package G as a formal package for another generic
17629         declared within G.
17631 2004-01-12  Robert Dewar  <dewar@gnat.com>
17633         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
17635         * usage.adb: Remove mention of obsolete -gnatwb switch
17636         Noticed during code reading
17638 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
17640         * 1ssecsta.adb: Minor changes for -gnatwa warnings
17642 2004-01-12  GNAT Script  <nobody@gnat.com>
17644         * Make-lang.in: Makefile automatically updated
17646 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
17648         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
17650 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17652         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
17654 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
17656         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
17657         Update comment and copyright date.
17658         * stamp-xgnatug: Delete.
17660 2004-01-05  Robert Dewar  <dewar@gnat.com>
17662         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
17663         be modified by the binder generated main program if the -D switch is
17664         used.
17666         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
17667         imported functions (since now we expect this to be done for imported
17668         functions)
17670         * 5vtaprop.adb: Add several ??? for sections requiring more comments
17671         Minor reformatting throughout
17673         * 5zinit.adb: Minor reformatting
17674         Add 2004 to copyright date
17675         Minor changes to avoid -gnatwa warnings
17676         Correct some instances of using OR instead of OR ELSE (noted while
17677         doing reformatting)
17679         * sprint.adb: Minor updates to avoid -gnatwa warnings
17681         * s-secsta.ads, s-secsta.adb:
17682         (SS_Get_Max): New function to obtain high water mark for ss stack
17683         Default_Secondary_Stack is not a constant since it may be modified by
17684         the binder generated main program if the -D switch is used.
17686         * switch-b.adb: New -Dnnn switch for binder
17688         * switch-c.adb:
17689         Make -gnatg imply all warnings currently in -gnatwa
17691         * vms_conv.adb: Minor reformatting
17692         Add 2004 to copyright notice
17693         Add 2004 to printed copyright notice
17695         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
17696         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
17697         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
17698         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
17699         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
17700         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
17701         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
17702         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
17703         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
17704         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
17705         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
17706         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
17707         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
17708         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
17709         checks.adb, clean.adb, cstand.adb, einfo.ads,
17710         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
17711         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
17712         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
17713         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
17714         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
17715         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
17716         Minor reformatting and code clean ups.
17717         Minor changes to prevent -gnatwa warnings
17719         * ali.adb: Minor reformatting and cleanup of code
17720         Acquire new SS indication of secondary stack use from ali files
17722         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
17723         (since now we expect this to be done for imported functions)
17725         * bindgen.adb: Generate call to modify default secondary stack size if
17726         -Dnnn switch given
17728         * bindusg.adb: Add line for new -D switch
17730         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
17731         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
17732         Add circuitry for both records and arrays to avoid gigi
17733         processing if the type involved has non-bit-aligned components
17735         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
17736         N_String_Literal node always references an E_String_Literal_Subtype
17737         entity. This may not be true in the future.
17738         (Possible_Bit_Aligned_Component): Move processing of
17739         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
17741         * exp_ch6.adb (Expand_Thread_Body): Pick up
17742         Default_Secondary_Stack_Size as variable so that we get value modified
17743         by possible -Dnnn binder parameter.
17745         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
17746         (Type_May_Have_Bit_Aligned_Components): New function.
17748         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
17749         (Type_May_Have_Bit_Aligned_Components): New function.
17751         * fe.h: (Set_Identifier_Casing): Fix prototype.
17752         Add declaration for Sem_Elim.Eliminate_Error_Msg.
17753         Minor reformatting.
17755         * freeze.adb (Freeze_Entity): Add RM reference to error message about
17756         importing constant atomic/volatile objects.
17757         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
17758         unless explicit Pure_Function pragma given, to avoid insidious bug of
17759         call to non-pure imported function getting eliminated.
17761         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
17762         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
17763         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
17764         Add 2004 to printed copyright notice
17766         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
17767         stack used.
17769         * Makefile.rtl: Add entry for g-sestin.o
17770         g-sestin.ads: New file.
17772         * mdll.adb: Minor changes to avoid -gnatwa warnings
17774         * mlib-tgt.adb: Minor reformatting
17776         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
17777         New switch Sec_Stack_Used (GNAT, GNATBIND)
17778         Make Default_Secondary_Stack_Size a variable instead of a constant,
17779         so that it can be modified by the new -Dnnn bind switch.
17781         * rtsfind.adb (Load_Fail): Give full error message in configurable
17782         run-time mode if all_errors mode is set. This was not done in the case
17783         of a file not found, which was an oversight.
17784         Note if secondary stack unit is used by compiler.
17786         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
17787         ineffective elaborate all pragmas on non-visible packages (this
17788         happened when a renamed subprogram was called). Now the elaborate all
17789         always goes on the package containing the renaming rather than the one
17790         containing the renamed subprogram.
17792         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
17793         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
17795         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
17796         has an Etype that references an E_String_Literal.
17797         (Eval_String_Literal): Avoid assumption that N_String_Literal node
17798         always references an E_String_Literal_Subtype entity. This may not
17799         be true in the future.
17801         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
17802         pragma location.
17804         * sem_res.adb (Resolve): Specialize msg for function name used in proc
17805         call.
17807 2004-01-05  Ed Falis  <falis@gnat.com>
17809         * g-debuti.adb: Replaced direct boolean operator with short-circuit
17810         form.
17812 2004-01-05  Vincent Celier  <celier@gnat.com>
17814         * bld.adb: Minor comment updates
17815         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
17816         of Item_Name).
17818         * make.adb (Gnatmake): Special process for files to compile/check when
17819         -B is specified. Fail when there are only foreign mains in attribute
17820         Main of the project file and -B is not specified. Do not skip bind/link
17821         steps when -B is specified.
17823         * makeusg.adb: Document new switch -B
17825         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
17827         * switch-m.adb: (Scan_Make_Switches): Process -B switch
17829         * vms_data.ads: Add new GNAT PRETTY qualifier
17830         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
17832 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17834         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
17835         case.
17837         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
17838         Set_Identifier_Casing.
17840         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
17841         has size that overflows.
17843 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
17845         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
17846         -gnatwa warning on static condition.
17848 2004-01-05  Doug Rupp  <rupp@gnat.com>
17850         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
17852 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
17854         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
17855         all attributes, including read-only attribute.
17857 2004-01-05  Pascal Obry  <obry@gnat.com>
17859         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
17860         library naming scheme.
17862         * mlib-prj.adb (Build_Library): Generate different names for the static
17863         or dynamic version of the GNAT runtime. This is needed to support the
17864         new shared library naming scheme.
17865         (Process_Binder_File): Add detection of shared library in binder file
17866         based on the new naming scheme.
17868         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
17869         scheme for the shared runtime libraries.
17871         * Makefile.in:
17872         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
17873         scheme.
17874         (install-gnatlib): Do not create symlinks for shared libraries.
17875         (gnatlib-shared-default): Idem.
17876         (gnatlib-shared-dual-win32): New target. Not used for now as the
17877         auto-import feature does not support arrays/records.
17878         (gnatlib-shared-win32): Do not create copy for the shared libraries.
17879         (gnatlib-shared-vms): Fix shared runtime libraries names.
17881         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
17882         dependent runtime shared library name.
17884 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
17886         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
17887         than the object.
17889 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
17891         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
17892         protected objects when allocator has a subtype indication, not a
17893         qualified expression. Note that qualified expressions may have to be
17894         checked when limited aggregates are implemented.
17896         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
17897         pure, emit warning.
17898         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
17899         subprogram is imported, remove warning.
17901 2004-01-05  Geert Bosch  <bosch@gnat.com>
17903         * s-poosiz.adb: Update copyright notice.
17904         (Allocate): Use Task_Lock to protect against concurrent access.
17905         (Deallocate): Likewise.
17907 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
17909         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
17910         comment.
17912 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
17914         * gnat_ug.texi: Force a CVS commit by updating copyright.
17915         * gnat_ug_vxw.texi: Regenerate.
17916         * gnat_ug_wnt.texi: Regenerate.
17917         * gnat_ug_vms.texi: Regenerate.
17918         * gnat_ug_unx.texi: Regenerate.
17920 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
17922         * trans.c: Remove uses of "register" specifier in
17923         declarations of local variables.
17925 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
17927         * stamp-xgnatug: New stamp file.
17928         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
17929         (ada/doctools/xgnatug): Add $(build_exeext).
17930         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
17931         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
17933 2003-12-17  Ed Falis  <falis@gnat.com>
17935         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
17936         eliminate warning.
17938         * a-exextr.adb: Add context clause for
17939         Ada.Exceptions.Last_Chance_Handler.
17941 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
17943         * cstand.adb (Create_Standard): Change the way how the declaration of
17944         the Duration type is created (making it the same way as it is for all
17945         the other standard types).
17947 2003-12-17  Robert Dewar  <dewar@gnat.com>
17949         * s-crtl.ads: Fix header format
17950         Change Pure to Preelaborate
17952 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
17954         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
17955         the expression type only if it is declared in the current unit.
17957         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
17958         are universal and already analyzed, as can occur in constrained
17959         subcomponents that depend on discriminants, when one constraint is a
17960         subtype mark.
17962         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
17963         type Any_Fixed is legal as the argument of a conversion, if only one
17964         fixed-point type is in context.
17966 2003-12-17  GNAT Script  <nobody@gnat.com>
17968         * Make-lang.in: Makefile automatically updated
17970 2003-12-15  Robert Dewar  <dewar@gnat.com>
17972         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
17973         sec stack size.
17975 2003-12-15  Vincent Celier  <celier@gnat.com>
17977         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
17978         (Gnatchop): Do not set failure status when reporting the number of
17979         warnings.
17981 2003-12-15  Doug Rupp  <rupp@gnat.com>
17983         * s-ctrl.ads: New file.
17985         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
17987         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
17988         (GNATBIND_OBJS): Add ada/s-crtl.o.
17990         * Makefile.in [VMS]: Clean up ifeq rules.
17992         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
17993         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
17994         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
17995         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
17996         s-tasdeb.adb: Update copyright.
17997         Import System.CRTL.
17998         Make minor modifications to use System.CRTL declared functions instead
17999         of importing locally.
18001 2003-12-15  GNAT Script  <nobody@gnat.com>
18003         * Make-lang.in: Makefile automatically updated
18005 2003-12-11  Ed Falis  <falis@gnat.com>
18007         * 5zinit.adb: Clean up.
18009         * 5zintman.adb (Notify_Exception): replaced case statement with a call
18010         to __gnat_map_signal, imported from init.c to support
18011         signal -> exception mappings that depend on the vxWorks version.
18013         * init.c:
18014         Created and exported __gnat_map_signal to support signal -> exception
18015         mapping that is dependent on the VxWorks version.
18016         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
18018 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
18020         * 5wosinte.ads: Link with -mthreads switch.
18022 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
18024         * init.c (__gnat_install_handler [NetBSD]): Set
18025         __gnat_handler_installed, as done on all other platforms.
18026         Remove duplicated code.
18028 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
18030         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
18032 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
18034         * sinfo.ads: Fix inconsistent example code in comment.
18036 2003-12-11  Robert Dewar  <dewar@gnat.com>
18038         * a-tiinau.adb: Add a couple of comments
18040         * sem_ch3.adb: Minor reformatting
18042         * sem_prag.adb:
18043         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
18044         Minor reformatting throughout
18046 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
18048         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
18049         bounds of a loop, create a separate block in order to generate proper
18050         cleanup actions to prevent memory leaks.
18052         * sem_res.adb (Resolve_Call): After a call to
18053         Establish_Transient_Scope, the call may be rewritten and relocated, in
18054         which case no further processing is needed.
18056         * sem_util.adb: (Wrong_Type): Refine previous fix.
18057          Fixes ACATS regressions.
18059         PR ada/13353
18061         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
18062         be inlined.
18064 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
18066         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
18067         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
18068         obsolete files.
18070         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
18071         (rts-zfp): Ditto.
18073 2003-12-08  Robert Dewar  <dewar@gnat.com>
18075         * 7sintman.adb: Minor reformatting
18077         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
18078         standard linker options to get standard libraries linked. We now plan
18079         to provide dummy versions of these libraries to match the appropriate
18080         configurable run-time (e.g. if a library is not needed at all, provide
18081         a dummy empty library).
18083         * targparm.ads: Configurable_Run_Time mode no longer affects linker
18084         options (-L parameters and standard libraries). What we plan to do is
18085         to provide dummy libraries where the libraries are not required.
18087         * gnatbind.adb: Minor comment improvement
18089 2003-12-08  Javier Miranda  <miranda@gnat.com>
18091         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
18092         aggregate in the parent. Otherwise constants with limited aggregates
18093         are not supported. Add new formal to pass the component type (Ctype).
18094         It is required to call the corresponding IP subprogram in case of
18095         default initialized components.
18096         (Gen_Assign): In case of default-initialized component, generate a
18097         call to the IP subprogram associated with the component.
18098         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
18099         of aggregate with default initialized components.
18100         (Has_Default_Init_Comps): Improve implementation to recursively check
18101         all the present expressions.
18103         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
18104         to indicate that the initialization call corresponds to a
18105         default-initialized component of an aggregate.
18106         In case of default initialized aggregate with tasks this parameter is
18107         used to generate a null string (this is just a workaround that must be
18108         improved later). In case of discriminants, this parameter is used to
18109         generate a selected component node that gives access to the discriminant
18110         value.
18112         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
18113         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
18114         allocated aggregates with default-initialized components.
18116         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
18117         the box notation is used in positional aggregates.
18119 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
18121         * lib.ads: Fix typo in comment
18123 2003-12-08  Vincent Celier  <celier@gnat.com>
18125         * prj.adb (Project_Empty): New component Unkept_Comments
18126         (Scan): Remove procedure; moved to Prj.Err.
18128         * prj.ads (Project_Data): New Boolean component Unkept_Comments
18129         (Scan): Remove procedure; moved to Prj.Err.
18131         * prj-dect.adb: Manage comments for the different declarations.
18133         * prj-part.adb (With_Record): New component Node
18134         (Parse): New Boolean parameter Store_Comments, defaulted to False.
18135         Set the scanner to return ends of line and comments as tokens, if
18136         Store_Comments is True.
18137         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
18138         comments are associated with these nodes. Store the node IDs in the
18139         With_Records.
18140         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
18141         With_Records.
18142         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
18143         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
18144         current project. Call Tree.Restore afterwards. Set the various nodes
18145         for comment storage (Next_End, End_Of_Line, Previous_Line,
18146         Previous_End).
18148         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
18149         defaulted to False.
18151         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
18152         to False. When Truncated is True, truncate the string, never go to the
18153         next line.
18154         (Write_End_Of_Line_Comment): New procedure
18155         (Print): Process comments for nodes N_With_Clause,
18156         N_Package_Declaration, N_String_Type_Declaration,
18157         N_Attribute_Declaration, N_Typed_Variable_Declaration,
18158         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
18159         Process nodes N_Comment.
18161         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
18162         without comments and there are some comments, set the flag
18163         Unkept_Comments to True.
18164         (Scan): If there are comments, set the flag Unkept_Comments to True and
18165         clear the comments.
18166         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
18167         (Next_End_Nodes: New table
18168         (Comment_Zones_Of): New function
18169         (Scan): New procedure; moved from Prj. Accumulate comments in the
18170         Comments table and set end of line comments, comments after, after end
18171         and before end.
18172         (Add_Comments): New procedure
18173         (Save, Restore, Seset_State): New procedures
18174         (There_Are_Unkept_Comments): New function
18175         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
18176         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
18177         procedures.
18178         (First_Comment_After, First_Comment_After_End): New functions
18179         (First_Comment_Before, First_Comment_Before_End): New functions
18180         (Next_Comment): New function
18181         (End_Of_Line_Comment, Follows_Empty_Line,
18182         Is_Followed_By_Empty_Line): New functions
18183         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
18184         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
18185         (Set_Next_Comment): New procedure
18186         (Default_Project_Node): Associate comment before if the node can store
18187         comments.
18189         * scans.ads (Token_Type): New enumeration value Tok_Comment
18190         (Comment_Id): New global variable
18192         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
18193         defaulted to False.
18194         (Scan): Store position of start of comment. If comments are tokens, set
18195         Comment_Id and set Token to Tok_Comment when scanning a comment.
18196         (Set_Comment_As_Token): New procedure
18198         * sinput-p.adb: Update Copyright notice
18199         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
18200         that no longer exists.
18202 2003-12-08  Javier Miranda  <miranda@gnat.com>
18204         * sem_aggr.adb: Add dependence on Exp_Tss package
18205         Correct typo in comment
18206         (Resolve_Aggregate): In case of array aggregates set the estimated
18207         type of the aggregate before calling resolve. This is needed to know
18208         the name of the corresponding IP in case of limited array aggregates.
18209         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
18210         in case of default initialized array components.
18212         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
18213         types. Required to give support to limited aggregates in generic
18214         formals.
18216 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
18218         * sem_ch3.adb (Check_Initialization): For legality purposes, an
18219         inlined body functions like an instantiation.
18220         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
18221         until bounds are analyzed, to diagnose premature use of type.
18223         * sem_util.adb (Wrong_Type): Improve error message when the type of
18224         the expression is used prematurely.
18226 2003-12-08  GNAT Script  <nobody@gnat.com>
18228         * Make-lang.in: Makefile automatically updated
18230 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
18232         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
18233         they are automatically generated by Make-lang.in and cause nothing but
18234         maintenance troubles.
18236 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
18238         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
18239         version of this unit).
18241 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
18243         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
18244         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
18245         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
18246         the body of System.Interrupt_Management common to several targets.
18247         Update copyright notice when appropriate.
18249         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
18250         constant.
18252         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
18253         to ensure that the kernel fills in the interrupted context structure
18254         before calling a signal handler, which is necessary to be able to
18255         unwind past it. Update the copyright notice.
18257 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
18259         * a-elchha.ads: New file.
18261         * a-elchha.adb: New default last chance handler. Contents taken from
18262         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
18264         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
18265         is moved to a-elchha.adb to provide a target-independent default last
18266         chance handler.
18268         * Makefile.rtl: Add a-elchha.o
18270         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
18272 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
18274         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
18275         declared in an instance, do not inline the call if the instance is not
18276         frozen yet, to prevent order of elaboration problems.
18278         * sem_prag.adb: Add comments for previous fix.
18280 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
18282         * g-table.adb: Use the right variable in Set_Item.
18283         Update copyright notice.
18285 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
18287         * Makefile.in: Remove unused rules.
18289 2003-12-05  Vincent Celier  <celier@gnat.com>
18291         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
18292         -nostdlib. Not needed here after all.
18294 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
18296         PR ada/11724
18298         * adaint.h, adaint.c, g-os_lib.ads:
18299         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
18300         on some platforms (including FreeBSD), it is a 64 bit value.
18301         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
18303 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
18305         * gnatvsn.ads (Library_Version): Now contain only the relevant
18306         version info.
18307         (Verbose_Library_Version): New constant.
18309         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
18310         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
18311         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
18313         * gnatlbr.adb: Clean up: replace Library_Version by
18314         Verbose_Library_Version.
18316         * make.adb, lib-writ.adb, exp_attr.adb:
18317         Clean up: replace Library_Version by Verbose_Library_Version.
18319         * 5lintman.adb: Removed.
18321         * Makefile.in:
18322         Update and simplify computation of LIBRARY_VERSION.
18323         Fix computation of GSMATCH_VERSION.
18324         5lintman.adb is no longer used: replaced by 7sintman.adb.
18326 2003-12-03  Robert Dewar  <dewar@gnat.com>
18328         * exp_ch5.adb:
18329         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
18330         name. Modified to consider small non-bit-packed arrays as troublesome
18331         and in need of component-by-component assigment expansion.
18333 2003-12-03  Vincent Celier  <celier@gnat.com>
18335         * lang-specs.h: Process nostdlib as nostdinc
18337         * back_end.adb: Update Copyright notice
18338         (Scan_Compiler_Arguments): Process -nostdlib directly.
18340 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
18342         * Makefile.in:
18343         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
18344         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
18345         included in HIE_NONE_TARGET_PAIRS.
18347 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
18349         * sem_attr.adb:
18350         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
18351         is legal in an instance, because legality is cheched in the template.
18353         * sem_prag.adb:
18354         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
18355         appplied to an unchecked conversion of a formal parameter.
18357         * sem_warn.adb:
18358         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
18359         variables.
18361 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
18363         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
18364         routines. The second one is new functionality to deal with backtracing
18365         through signal handlers.
18366         (unwind): Split into the two separate subroutines above.
18367         Update the documentation, and deal properly with sizeof (REG) different
18368         from sizeof (void*).
18370 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
18372         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
18373         so that the debugger can reliably access the value of the parameter,
18374         and therefore is able to display the exception name when an exception
18375         breakpoint is reached.
18377 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
18379         * fmap.adb: Fix typo in warning message.
18381         * g-socket.ads, g-socket.adb: Make Free a visible instance of
18382         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
18384 2003-12-01  Vincent Celier  <celier@gnat.com>
18386         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
18387         ther is no Afile.
18388         (Build_Library): Get the switches only if Default_Switches is declared
18389         in package Binder.
18391 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
18393         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
18394         actuals that are indexed components, reanalyze actual to ensure that
18395         packed array references are properly expanded.
18397         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
18398         attempted assignment to a discriminant.
18400 2003-12-01  Robert Dewar  <dewar@gnat.com>
18402         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
18403         reformatting.
18405         * switch-c.adb: Minor reformatting of comments
18407 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
18409         * Makefile.in: Clean ups.
18411 2003-12-01  GNAT Script  <nobody@gnat.com>
18413         * Make-lang.in: Makefile automatically updated
18415 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
18417         * 5wsystem.ads: Disable zero cost exception, not ready yet.
18419 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
18421         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
18422         to force serialization.
18424 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
18426         * g-socket.ads, g-socket.adb:
18427         Clarify documentation of function Stream. Introduce a Free procedure
18428         to release the returned Stream once it becomes unused.
18430         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
18432 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
18434         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
18435         since NT 4 cannot handle timeout values that are too large,
18436         e.g. DWORD'Last - 1.
18438 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
18440         * exp_ch4.adb:
18441         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
18442         in procedure calls and whose expansion must be deferred.
18444         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
18445         is in exp_ch4.
18447         * sem_ch3.adb:
18448         (Build_Derived_Array_Type): Create operator for unconstrained type
18449         if ancestor is unconstrained.
18451 2003-11-26  Vincent Celier  <celier@gnat.com>
18453         * make.adb (Project_Object_Directory): New global variable
18454         (Change_To_Object_Directory): New procedure
18455         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
18456         of Change_Dir directly. Do not change working directory to object
18457         directory of main project after each compilation.
18458         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
18459         directly.
18460         Change to object directory of main project before binding step.
18461         (Initialize): Initialize Project_Object_Directory to No_Project
18463         * mlib-prj.adb:
18464         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
18465         binding a Stand-Alone Library.
18467         * output.adb: Update Copyright notice
18468         (Write_Char): Output buffer when full
18470 2003-11-26  Robert Dewar  <dewar@gnat.com>
18472         * sem_ch13.adb: (Check_Size): Reset size if size is too small
18474         * sem_ch13.ads:
18475         (Check_Size): Fix documentation to include bit-packed array case
18477         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
18479         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
18481         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
18483 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
18485         PR ada/13142
18486         * utils.c (init_gigi_decls): Change name of built-in setjmp to
18487         __builtin_setjmp, since this is apparently needed by recent
18488         non Ada changes.
18490 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18492         * adadecode.c: Only include ctype.h if not IN_GCC.
18493         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
18495 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
18497         * Makefile.in:
18498         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
18499         signals and interrupts.
18501         * 5zintman.ads: New File.
18503         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
18504         add exception signals to the set of unmasked signals.
18506         * 5ztaprop.adb:
18507         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
18508         between signals and interrupts.
18509         Add to Unblocked_Signal_Mask the set of signals that are in
18510         Keep_Unmasked.
18512         * 7sinmaop.adb:
18513         Adding a check to see whether the Interrupt_ID we want to unmask is in
18514         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
18515         reason is that the index type of the Keep_Unmasked array is not always
18516         Interrupt_ID; it may be a subtype of Interrupt_ID.
18518 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
18520         * exp_util.adb:
18521         (Remove_Side_Effects): Condition constantness of object created for a
18522          an unchecked type conversion on the constantness of the expression
18523          to ensure the correct value for 'Constrained when passing components
18524          of view-converted class-wide objects.
18526 2003-11-24  Robert Dewar  <dewar@gnat.com>
18528         * par-load.adb (Load): Improve handling of misspelled and missing units
18529         Removes several cases of compilation abandoned messages
18531         * lib.adb: (Remove_Unit): New procedure
18533         * lib.ads: (Remove_Unit): New procedure
18535         * lib-load.adb: Minor reformatting
18537 2003-11-24  Vincent Celier  <celier@gnat.com>
18539         * make.adb:
18540         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
18541         (Marking_Label): Label to mark processed source files. Incremented for
18542         each executable.
18543         (Gnatmake): Increase Marking_Labet for each executable
18544         (Is_Marked): Compare against marking label
18545         (Mark): Mark with marking label
18547 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
18549         * s-thread.ads:
18550         Move the declaration of the TSD for System.Threads to System.Soft_Links.
18551         Add some comments.
18553         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
18554         (rts-cert): build a single relocatable object for the run-time lib.
18555         Fix perms.
18557 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
18559         * Make-lang.in:
18560         Use gnatls rather than gcc to obtain the location of GNAT RTL for
18561         crosstools build.
18563 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
18565         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
18566         can not use it as before (that is, as a variable) when dumping it into
18567         the tree file. Add a local variable to store the result of this
18568         function and to be used as the string to be written into the tree.
18570         * scn.adb (Initialize_Scanner): Add comments explaining the recent
18571         changes.
18573         * sinput.adb (Source_First, Source_Last): In case of
18574         Internal_Source_File, replace returning attributes of
18575         Internal_Source_Ptr (which is wrong) with returning attributes of
18576         Internal_Source.
18578 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
18580         * sem_ch3.adb:
18581         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
18582         used for implicit concatenation operators.
18583         Code cleanup.
18585         * sem_elab.adb:
18586         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
18587         task bodies that are in the scope of a Suppress pragma.
18588         (Check_A Call): Use the flag to prevent spurious elaboration checks.
18590         * sinfo.ads, sinfo.adb:
18591         New flag No_Elaboration_Check on function/procedure calls, to properly
18592         suppress checks on calls in task bodies that are within a local suppress
18593         pragma.
18595         * exp_ch4.adb:
18596         (Expand_Concatenate_Other): Use the proper integer type for the
18597         expression for the upper bound, to avoid universal_integer computations
18598         when possible.
18600 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
18602         * .cvsignore: Delete.
18604 2003-11-21  Andreas Schwab  <schwab@suse.de>
18606         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
18608 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
18610         * 5wsystem.ads: Enable zero cost exception.
18612 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
18614         * 5ztiitho.adb: Remove an unreferenced variable.
18616 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
18618         * adaint.c: For FreeBSD, use mkstemp.
18620 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
18622         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
18624 2003-11-21  Robert Dewar  <dewar@gnat.com>
18626         * bld.adb: Remove useless USE of gnatvsn
18628         * gnatchop.adb: Minor reformatting
18629         Clean up version handling to be more consistent
18631         * gnatxref.adb: Minor reformatting
18633         * gprcmd.adb: Minor reformatting
18634         Fix output of copyright to be more consistent with other tools
18636 2003-11-21  Vincent Celier  <celier@gnat.com>
18638         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
18640 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
18642         * atree.adb (Initialize): Add initializations for global variables
18643         used in New_Copy_Tree.
18645         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
18646         Internal_Source_File as the actual).
18647         Put the set of statements creating Any_Character before the set of
18648         statements creating Any_Array to have Any_Character fully initialized
18649         when it is used in creating Any_Array.
18651         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
18652         not call Scan in case if the actual is Internal_Source_File
18653         Add 2003 to copyright note.
18655         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
18656         processing Internal_Source_File.
18658         * types.ads: Add the constant Internal_Source_File representing the
18659         source buffer for artificial source-code-like strings created within
18660         the compiler (the definition of Source_File_Index is changed).
18662 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
18664         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
18665         56system.ads: New file, FreeBSD version.
18667 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
18669         * Make-lang.in (ada.extraclean): Delete.
18671 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
18673         * gnatmem.adb: Clean up verbose output.
18675         * gprcmd.adb: Change copyright to FSF.
18677 2003-11-19  Vincent Celier  <celier@gnat.com>
18679         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
18680         and Version (ignored).
18682         * symbols.ads: (Policy): New type
18683         (Initialize): New parameter Reference, Symbol_Policy and
18684         Library_Version.
18685         Remove parameter Force.
18686         Minor reformatting.
18688         * snames.ads, snames.adbadb: New standard names
18689         Library_Reference_Symbol_File and Library_Symbol_Policy
18691         * mlib-prj.adb:
18692         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
18693         project.
18695         * mlib-tgt.adb:
18696         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
18698         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
18700         * prj.adb: (Project_Empty): New component Symbol_Data
18702         * prj.ads: (Policy, Symbol_Record): New types
18703         (Project_Data): New component Symbol_Data
18705         * prj-attr.adb:
18706         New attributes Library_Symbol_File, Library_Symbol_Policy and
18707         Library_Reference_Symbol_File.
18709         * prj-nmsc.adb:
18710         (Ada_Check): When project is a Stand-Alone library project, process
18711         attribute Library_Symbol_File, Library_Symbol_Policy and
18712         Library_Reference_Symbol_File.
18714         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
18715         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
18716         5sml-tgt.adb (Build_Dynamic_Library): New parameter
18717         Symbol_Data (ignored).
18719         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
18720         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
18721         functions Option_File_Name and Version_String. Set new options of
18722         gnatsym related to symbol file, symbol policy and reference symbol
18723         file.
18725         * 5vsymbol.adb:
18726         Extensive modifications to take into account the reference symbol file,
18727         the symbol policy, the library version and to put in the symbol file the
18728         minor and major IDs.
18730         * bld.adb (Process_Declarative_Items): Put second argument of
18731         gprcmd to_absolute between single quotes, to avoid problems with
18732         Windows.
18734         * bld-io.adb: Update Copyright notice.
18735         (Flush): Remove last character of a line, if it is a back slash, to
18736         avoid make problems.
18738         * gnatsym.adb:
18739         Implement new scheme with reference symbol file and symbol policy.
18741         * g-os_lib.ads: (Is_Directory): Clarify comment
18743 2003-11-19  Robert Dewar  <dewar@gnat.com>
18745         * atree.adb: Move New_Copy_Tree global variables to head of package
18747         * errout.adb: Minor reformatting
18749 2003-11-19  Javier Miranda  <miranda@gnat.com>
18751         * sem_ch4.adb: (Diagnose_Call): Improve error message.
18752         Add reference to Ada0Y (AI-50217)
18754         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
18755         sem_util.adb: Add reference to AI-50217
18757         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
18759         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
18761         * sem_aggr.adb: Complete documentation of AI-287 changes
18763         * par-ch4.adb: Document previous changes.
18765         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
18766         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
18767         Ada0Y (AI-50217)
18769         * exp_aggr.adb: Add references to AI-287 in previous changes
18771 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
18773         * exp_ch6.adb:
18774         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
18775         in the rewriting is the result of an inlined call.
18777         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
18778         parameter is a type conversion, use original node to construct the
18779         post-call assignment, because expression may have been rewritten, e.g.
18780         if it is a packed array.
18782         * sem_attr.adb:
18783         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
18784         body, just as it is in an instance.
18785         Categorization routines
18787         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
18788         Instantiate_Object): Set proper sloc reference for message on missing
18789         actual.
18791 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
18793         * Makefile.in: Add FreeBSD libgnat pairs.
18795         * usage.adb: Fix typo in usage message.
18797 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
18799         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
18800         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
18801         pragma Thread_Body.
18802         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
18804         * s-thread.adb: This file is now a dummy implementation of
18805         System.Thread.
18807 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
18809         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
18811 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
18813         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
18814         instanciation references in the parent type description.
18816 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18818         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
18820         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
18821         TYPE_PRECISION directly from esize.
18823 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
18825         * cstreams.c:
18826         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
18828         * init.c: Initialization routines for FreeBSD
18830         * link.c: Link info for FreeBSD
18832         * sysdep.c: Add the case of FreeBSD
18834 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
18836         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
18837         already called in System.Threads.
18839         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
18840         environment task, as it has been moved to System.Threads.Initialization.
18842 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
18844         * adaint.c (__gnatlib_install_locks): Only reference
18845         __gnat_install_locks on VMS, since other platforms can avoid using
18846         --enable-threads=gnat
18848 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18850         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
18852         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
18853         TYPE_PACKED_ARRAY_TYPE_P.
18854         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
18856         Part of PR ada/12806
18857         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
18858         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
18860 2003-11-17  Vincent Celier  <celier@gnat.com>
18862         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
18863         to False.
18864         Do not set exit status to Failure when Warning is True.
18865         (Gnatchop): Make errors "no compilation units found" and
18866         "no source files written" warnings only.
18868         * make.adb (Gnatmake): When using a project file, set
18869         Look_In_Primary_Dir to False.
18870         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
18871         and Local_Configuration_Pragmas in the project where they are declared
18872         not an extending project which might have inherited them.
18874         * osint.adb (Locate_File): If Name is already an absolute path, do not
18875         look for a directory.
18877         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
18878         -gnats (Check_Syntax) is used, issue only a warning, not an error.
18880         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
18881         in objects of type Variable_Value.
18883         * prj.ads: (Variable_Value): New component Project
18885         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
18886         is in a project extended by Project.
18888         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
18889         Project of Variable_Values to this new parameter value.
18890         (Expression): Set component Project of Variable_Values.
18891         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
18892         Set the component Project in array elements.
18894 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
18896         * errout.adb: (Initialize): Add initialization for error nodes.
18898         * sem_ch12.adb (Initialize): Add missing initializations for
18899         Exchanged_Views and Hidden_Entities.
18901 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
18903         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
18904         already instantiated tree for use in subsequent inlining.
18905         (Analyze_Associations, Instantiate_Formal_Subprogram,
18906         Instantiate_Object): improve error message for mismatch in
18907         instantiations.
18909         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
18910         instantiations of subprograms declared in instances.
18912 2003-11-17  Javier Miranda  <miranda@gnat.com>
18914         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
18915         executed only under the Extensions_Allowed flag.
18917 2003-11-17  Robert Dewar  <dewar@gnat.com>
18919         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
18920         zeroes suppressed.
18921         (Address_Image): Fix bug of returning 0x instead of 0x0
18922         Minor reformatting (function specs).
18924         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
18925         (missed case of 33-63)
18927         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
18929         * s-thread.adb: Add comments for pragma Restriction
18931         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
18932         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
18934 2003-11-17  Ed Falis  <falis@gnat.com>
18936         * s-thread.adb: Added No_Tasking restriction for this implementation.
18938 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
18940         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
18941         instanciation references in the parent type description.
18943 2003-11-17  GNAT Script  <nobody@gnat.com>
18945         * Make-lang.in: Makefile automatically updated
18947 2003-11-16  Jason Merrill  <jason@redhat.com>
18949         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
18950         and TAGS files that include them for each front end.
18952 2003-11-14  Andreas Jaeger  <aj@suse.de>
18954         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
18955         is the canonical version.
18956         * misc.c (gnat_handle_option): Likewise.
18958         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
18960         * 5nsystem.ads: New file for x86_64-linux-gnu.
18962 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
18964         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
18966         * comperr.adb: Fix logic in previous change.
18968 2003-11-13  Vincent Celier  <celier@gnat.com>
18970         * 5bml-tgt.adb (Build_Dynamic_Library): Use
18971         Osint.Include_Dir_Default_Prefix instead of
18972         Sdefault.Include_Dir_Default_Name.
18974         * gnatlbr.adb: Update Copyright notice
18975         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
18976         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
18977         instead of Sdefault.Object_Dir_Default_Name
18979         * gnatlink.adb:
18980         (Process_Binder_File): Never suppress the option following -Xlinker
18982         * mdll-utl.adb:
18983         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
18984         Sdefault.Object_Dir_Default_Name.
18986         * osint.ads, osint.adb:
18987         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
18988         Minor reformatting.
18990         * vms_conv.ads: Minor reformating
18991         Remove GNAT STANDARD and GNAT PSTA
18993         * vms_conv.adb:
18994         Allow GNAT MAKE to have several files on the command line.
18995         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
18996         Sdefault.Object_Dir_Default_Name.
18997         Minor Reformating
18998         Remove data for GNAT STANDARD
19000         * vms_data.ads:
19001         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
19002         Remove data for GNAT STANDARD
19003         Remove options and documentation for -gnatwb/-gnatwB: these warning
19004         options no longer exist.
19006 2003-11-13  Ed Falis  <falis@gnat.com>
19008         * 5zthrini.adb: (Init_RTS): Made visible
19010         * 5zthrini.adb:
19011         (Register): Removed unnecessary call to taskVarGet that checked whether
19012          an ATSD was already set as a task var for the argument thread.
19014         * s-thread.adb:
19015         Updated comment to reflect that this is a VxWorks version
19016         Added context clause for System.Threads.Initialization
19017         Added call to System.Threads.Initialization.Init_RTS
19019 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
19021         * 5zthrini.adb:
19022         (Init_RTS): New procedure, for the initialization of the run-time lib.
19024         * s-thread.adb:
19025         Remove dependancy on System.Init, so that this file can be used in the
19026         AE653 sequential run-time lib.
19028 2003-11-13  Robert Dewar  <dewar@gnat.com>
19030         * bindgen.adb: Minor reformatting
19032 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
19034         * checks.adb:
19035         (Apply_Discriminant_Check): Do no apply check if target type is derived
19036         from source type with no applicable constraint.
19038         * lib-writ.adb:
19039         (Ensure_System_Dependency): Do not apply the style checks that may have
19040         been specified for the main unit.
19042         * sem_ch8.adb:
19043         (Find_Selected_Component): Further improvement in error message, with
19044         RM reference.
19046         * sem_res.adb:
19047         (Resolve): Handle properly the case of an illegal overloaded protected
19048         procedure.
19050 2003-11-13  Javier Miranda  <miranda@gnat.com>
19052         * exp_aggr.adb:
19053         (Has_Default_Init_Comps): New function to check the presence of
19054         default initialization in an aggregate.
19055         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
19056         extension aggregate of a limited record. In addition, a new formal
19057         was added to do not initialize the record controller (if any) during
19058         this recursive expansion of ancestors.
19059         (Init_Controller): Add support for limited record components.
19060         (Expand_Record_Aggregate): In case of default initialized components
19061         convert the aggregate into a set of assignments.
19063         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
19064         describing the new syntax.
19065         Nothing else needed to be done because this subprogram delegates part of
19066         its work to P_Precord_Or_Array_Component_Association.
19067         (P_Record_Or_Array_Component_Association): Give support to the new
19068         syntax for default initialization of components.
19070         * sem_aggr.adb:
19071         (Resolve_Aggregate): Relax the strictness of the frontend in case of
19072         limited aggregates.
19073         (Resolve_Record_Aggregate): Give support to default initialized
19074         components.
19075         (Get_Value): In case of default initialized components, duplicate
19076         the corresponding default expression (from the record type
19077         declaration). In case of default initialization in the *others*
19078         choice, do not check that all components have the same type.
19079         (Resolve_Extension_Aggregate): Give support to limited extension
19080         aggregates.
19082         * sem_ch3.adb:
19083         (Check_Initialization): Relax the strictness of the front-end in case
19084         of aggregate and extension aggregates. This test is now done in
19085         Get_Value in a per-component manner.
19087         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
19088         expression corresponds to a limited aggregate. This test is now done
19089         in Get_Value.
19091         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
19092         Box_Present flag.
19094         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
19095         present in an N_Component_Association node
19097 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
19099         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
19100         type-conformant entry only if they are homographs.
19102 2003-11-13  GNAT Script  <nobody@gnat.com>
19104         * Make-lang.in: Makefile automatically updated
19106 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19108         * adadecode.c: Use <> form of include for ctype.h.
19109         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
19111 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19113         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
19114         Works around PR middle-end/6552.
19116 2003-11-10  Ed Falis  <falis@gnat.com>
19118         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
19120         * 5zinit.adb: (Install_Handler): Moved back to spec
19121         (Install_Signal_Handlers): Deleted
19123         * 5zthrini.adb: Added context clause for System.Storage_Elements
19124         (Register): Only handles creation of taskVar; initialization moved to
19125         Thread_Body_Enter.
19126         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
19127         Added declaration of environment task secondary stack and
19128         initialization.
19130         * s-thread.adb: Implement bodies for thread body processing
19132         * s-thread.ads:
19133         Added comment identifying supported targets for pragma Thread_Body.
19135 2003-11-10  Pascal Obry  <obry@gnat.com>
19137         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
19138         GNAT_MAX_PATH_LEN.
19140         * s-fileio.adb:
19141         (Open): Properly check for string length before copying into the buffer.
19142         Raises Name_Error if buffer is too small. Note that this was a potential
19143         buffer overflow.
19145 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
19147         * bindgen.adb, comperr.adb: Code clean ups.
19148         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
19150 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
19152         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
19154 2003-11-10  Vincent Celier  <celier@gnat.com>
19156         * gprcmd.adb:
19157         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
19158         installation.
19160         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
19162         * prj.adb: (Project_Empty): Add new boolean component Virtual
19164         * prj.ads: (Virtual_Prefix): New constant string
19165         (Project_Data): New boolean component Virtual
19167         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
19168         a library project is extended by a virtual extending project.
19170         * prj-part.adb:
19171         Modifications throughout to implement extending-all project, including:
19172         (Virtual_Hash, Processed_Hash): New hash tables
19173         (Create_Virtual_Extending_Project): New procedure
19174         (Look_For_Virtual_Projects_For): New procedure
19176         * prj-proc.adb:
19177         (Process): After checking the projects, if main project is an
19178         extending-all project, set the object directory of all virtual extending
19179         project to the object directory of the main project.
19180         Adjust error message when a virtual extending project has the same
19181         object directory as an project being extended.
19182         (Recursive_Process): If name starts with the virtual prefix, set Virtual
19183         to True in the project data.
19185         * prj-tree.adb:
19186         (Default_Project_Node): Add new boolean component Extending_All
19187         (Is_Extending_All): New function
19188         (Set_Is_Extending_All): New procedure
19190         * prj-tree.ads: (Is_Extending_All): New function
19191         (Set_Is_Extending_All): New procedure
19192         (Project_Node_Record): New boolean component Extending_All
19194         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
19196         * vms_data.ads:
19197         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
19199         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
19200         "gprcmd prefix" to define it.
19202 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
19204         * einfo.ads: Fix a typo and remove an extraneous word in comments.
19206         * lib-load.adb:
19207         (Create_Dummy_Package_Unit): Set the scope of the entity for the
19208         created dummy package to Standard_Standard, not to itself, to
19209         defend other parts of the front-end against encoutering a cycle in
19210         the scope chain.
19212         * sem_ch10.adb:
19213         (Analyze_With_Clause): When setting the entities for the successive
19214         N_Expanded_Names that constitute the name of a child unit, do not
19215         attempt to go further than Standard_Standard in the chain of scopes.
19216         This case arises from the placeholder units created by
19217         Create_Dummy_Package_Unit in the case of a with_clause for a
19218         nonexistent child unit.
19220 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
19222         * exp_ch6.adb:
19223         (Expand_Thread_Body): Place subprogram on scope stack, so that new
19224         declarations are given the proper scope.
19226         * sem_ch13.adb:
19227         (Check_Expr_Constants): Reject an expression that contains a constant
19228         created during expansion, and that appears after the object to which
19229         the address clause applies.
19231         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
19232         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
19233         that uses 'Range of a function call with controlled components, so
19234         that the function result can be finalized before starting the loop.
19236         * sem_ch8.adb:
19237         (Find_Selected_Component): Improve error message when prefix is
19238         an implicit dereference of an incomplete type.
19240 2003-11-10  Robert Dewar  <dewar@gnat.com>
19242         * opt.ads: New Print_Standard flag for -gnatS switch
19244         * sem_ch13.adb: Remove some additional checks for unaligned arrays
19246         * cstand.adb (Create_Standard): Print out package standard if -gnatS
19247         switch set
19249         * debug.adb: Update doc for -gnatds to discuss relationship with new
19250         -gnatS flag
19252         * sinfo.adb: Add new field Entity_Or_Associated_Node
19254         * sinfo.ads: Add new field Entity_Or_Associated_Node
19255         Update documentation for Associated_Node and Entity fields to clarify
19256         relationship and usage.
19258         * sprint.adb:
19259         (Write_Id): Properly process Associated_Node field in generic template
19261         * switch-c.adb:
19262         Recognize new -gnatS switch for printing package Standard
19263         This replaces gnatpsta
19265         * usage.adb:
19266         Add line for  new -gnatS switch for printing package Standard
19267         This replaces gnatpsta
19269 2003-11-10  Andreas Jaeger  <aj@suse.de>
19271         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
19272         integer.
19274 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
19276         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
19277         by gnat1.
19279 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
19281         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
19282         no longer needed.
19284         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
19286         * sysdep.c: Add handling of cygwin.
19288 2003-11-10  GNAT Script  <nobody@gnat.com>
19290         * Make-lang.in: Makefile automatically updated
19292 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
19294         PR 12950
19295         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
19296         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
19297         Replace GNAT_ROOT by GCC_ROOT.
19299         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
19301 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
19303         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
19304         and update for changed meaning of GET_MODE_BITSIZE.
19306 2003-11-04  Doug Rupp  <rupp@gnat.com>
19308         * sysdep.c: Problem discovered during IA64 VMS port.
19309         [VMS] #include <unixio.h> to get proper prototypes.
19311         * adaint.c:
19312         Issues discovered/problems fixed during IA64 VMS port.
19313         [VMS] #define _POSIX_EXIT for proper semantics.
19314         [VMS] #include <unixio.h> for proper prototypes.
19315         [VMS] (fork): #define IA64 version.
19316         (__gnat_os_exit): Remove unnecessary VMS specific code.
19318 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19320         Part of PR ada/12806
19322         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
19323         tree, not integer.
19325         * decl.c:
19326         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
19327         not integer.
19329         * targtyps.c, decl.c, misc.c,
19330         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
19331         routines to work around change in FP sizing semantics in GCC.
19333         * utils.c:
19334         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
19336         * gigi.h: (enumerate_modes): New function.
19338         * Make-lang.in: (ada/misc.o): Add real.h.
19340         * misc.c: (enumerate_modes): New function.
19342 2003-11-04  Robert Dewar  <dewar@gnat.com>
19344         * 3vtrasym.adb: Minor reformatting
19345         Use terminology encoded/decoded name, rather than C++ specific notion
19346         of mangling (this is the terminology used throughout GNAT).
19348         * einfo.h: Regenerated
19350         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
19352         * exp_ch6.adb:
19353         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
19355         * par-prag.adb: Add dummy entry for Thread_Body pragma
19357         * rtsfind.ads:
19358         Add entries for System.Threads entities for thread body processing
19360         * sem_attr.adb:
19361         (Analyze_Pragma, Access attributes): Check these are not applied to a
19362         thread body, since this is not permitted
19364         * sem_prag.adb: Add processing for Thread_Body pragma.
19365         Minor comment fix.
19367         * sem_res.adb:
19368         (Resolve_Call): Check for incorrect attempt to call a thread body
19369          procedure with a direct call.
19371         * snames.ads, snames.adb: Add entry for Thread_Body pragma
19372         Add names associated with thread body expansion
19374         * snames.h: Add entry for Thread_Body pragma
19376         * s-thread.adb: Add entries for thread body processing
19377         These are dummy bodies so far
19379         * s-thread.ads: Add documentation on thread body handling.
19380         Add entries for thread body processing.
19382 2003-11-04  Javier Miranda  <miranda@gnat.com>
19384         * sem_ch10.adb:
19385         (Build_Limited_Views): Return after posting an error in case of limited
19386         with_clause on subprograms, generics, instances or generic renamings
19387         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
19388         on subprograms, generics, instances or generic renamings
19390 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
19392         * raise.c (setup_to_install): Correct mistake in last revision; two
19393         arguments out of order.
19395         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
19396         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
19397         notice, missed in previous change.
19398         Remove trailing blanks and other style errors introduced in previous
19399         change.
19401 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
19403         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
19404         rid of the wrapper for a LJM type, ensuring we don't do that if the
19405         field is addressable.  This avoids potential low level type view
19406         mismatches later on, for instance in a by-reference argument passing
19407         process.
19409 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19411         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
19412         aligned at byte boundary.
19414 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
19416         * decl.c (components_to_record): Do not delete the empty variants from
19417         the end of the union type.
19419 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
19421         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
19422         operation for a derived type, an explicit declaration may use a local
19423         subtype of Boolean.
19425 2003-11-04  Vincent Celier  <celier@gnat.com>
19427         * make.adb (Gnatmake): Allow main sources on the command line with a
19428         library project when it is only for compilation (no binding or
19429         linking).
19431 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19433         * Makefile.in: Remove many duplicate variables.
19435 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
19437         * Make-lang.in (dvi): Move targets to $(docobjdir).
19438         (gnat_ug_vms.dvi): Simplify rule and adjust target.
19439         (gnat_ug_wnt.dvi): Likewise.
19440         (gnat_ug_unx.dvi): Likewise.
19441         (gnat_ug_vxw.dvi): Likewise.
19442         (gnat_rm.dvi): Likewise.
19443         (gnat-style.dvi): Likewise.
19445 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
19447         * gigi.h: Missed commit from update for C90.
19449 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
19451         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
19453 2003-10-31  Andreas Schwab  <schwab@suse.de>
19455         * raise.c (get_action_description_for): Fix typo in last change.
19457 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
19459         PR ada/12761
19460         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
19461         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
19463 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
19465         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
19466         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
19467         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
19468         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
19469         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
19471 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
19473         * 3vtrasym.adb:
19474         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
19475         numbers when symbol name is too long.
19477 2003-10-30  Ed Falis  <falis@gnat.com>
19479         * g-signal.ads, g-signal.adb: New files
19481         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
19483         * Makefile.rtl: Introduce GNAT.Signals
19485 2003-10-30  Robert Dewar  <dewar@gnat.com>
19487         * freeze.adb: Minor reformatting
19489         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
19491         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
19492         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
19493         New handling of Id_Check parameter to improve recognition of keywords
19494         used as identifiers.
19495         Update copyright notice to include 2003
19497 2003-10-29  Robert Dewar  <dewar@gnat.com>
19499         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
19500         sem_ch10.adb: Minor reformatting
19502         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
19503         (Expand_Assign_Record): Test right hand side for bit unaligned as well
19505 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
19507         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
19508         Support for TBK$SYMBOLIZE-based symbolic traceback.
19510 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
19512         * exp_disp.adb:
19513         Revert previous change, that did not work well when pragma No_Run_Time
19514         was used in conjunction with a run-time other than ZFP.
19516 2003-10-29  Vincent Celier  <celier@gnat.com>
19518         * make.adb:
19519         (Gnatmake): When there are no Ada mains in attribute Main, disable the
19520          bind and link steps only is switch -z is not used.
19522 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
19524         * Makefile.generic: Remove duplicated setting of CC.
19526         * Makefile.prolog: Set CC to gcc by default, to override make's
19527         default (cc).
19529         * einfo.h: Regenerated.
19531 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
19533         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
19534         current body, after compiling subunit.
19536         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
19537         when in deleted code, because gigi needs properly ordered freeze
19538         actions to annotate types.
19540         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
19541         prevent the premature freezing of record type that contains
19542         subcomponents with a private type that does not yet have a completion.
19544 2003-10-29  Javier Miranda  <miranda@gnat.com>
19546         * sem_ch12.adb:
19547         (Analyze_Package_Instantiation): Check that instances can not be used in
19548         limited with_clauses.
19550         * sem_ch8.adb:
19551         (Analyze_Package_Renaming): Check that limited withed packages cannot
19552         be renamed. Improve text on error messages related to limited
19553         with_clauses.
19555         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
19557         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
19558         Update copyright notice.
19560         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
19561         (Install_Limited_Context_Clauses): New subprogram that isolates all the
19562         checks required for limited context_clauses and installs the limited
19563         view.
19564         (Install_Limited_Withed_Unit): Complete its documentation.
19565         (Analyze_Context): Check that limited with_clauses are only allowed in
19566         package specs.
19567         (Install_Context): Call Install_Limited_Context_Clauses after the
19568         parents have been installed.
19569         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
19570         package as 'From_With_Type'; this mark indicates that the limited view
19571         is installed. Used to check bad usages of limited with_clauses.
19572         (Build_Limited_Views): Do not add shadow entities to the scope's list
19573         of entities. Do not add real entities to the Non_Limited_Views chain.
19574         Improve error notification.
19575         (Remove_Context_Clauses): Remove context clauses in two phases:
19576         limited views first and regular views later (to maintain the
19577         stack model).
19578         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
19579         its visible entities.
19581 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
19583         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
19584         with any type that Is_Fixed_Point_Type.
19586         * sinfo.ads: Fix documentation for Associated_Node attribute.
19588 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
19590         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
19591         both '-gnatc' and '-gnatt' are specified.
19593         * atree.adb (Initialize): Add initialization for Node_Count (set to
19594         zero).
19596 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19598         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
19599         do not consider as Pure.
19601         Part of implementation of function-at-a-time:
19603         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
19604         (tree_transform): Add new argument to build_component_ref.
19605         (tree_transform, case N_Assignment_Statement): Make and return an
19606         EXPR_STMT.
19607         (tree_transform): If result IS_STMT, set flags and return it.
19608         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
19610         * utils2.c (build_simple_component_ref, build_component_ref): Add new
19611         arg, NO_FOLD_P.
19612         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
19613         (build_allocator): Likewise.
19615         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
19616         Add new arg to build_component_ref.
19617         (maybe_unconstrained_array, unchecked_convert): Likewise.
19619         * ada-tree.def (EXPR_STMT): New code.
19621         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
19623         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
19624         build_component_ref calls.
19626         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
19628         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
19629         (build_component_ref): Add new argument, NO_FOLD_P.
19631 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
19633         * Makefile.generic: Add missing substitution on object_deps handling.
19635         PR ada/5909:
19636         * Make-lang.in (check-ada): Enable ACATS test suite.
19638 2003-10-27  Robert Dewar  <dewar@gnat.com>
19640         * exp_ch3.adb:
19641         (Freeze_Array_Type): We do not need an initialization routine for types
19642         derived from String or Wide_String. They should be treated the same
19643         as String and Wide_String themselves. This caused problems with the
19644         use of Initialize_Scalars.
19646         * exp_ch5.adb:
19647         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
19648         composites. This allows use of component clauses that are not byte
19649         aligned.
19651         * sem_prag.adb:
19652         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
19653         is an attempt to pack an array of atomic objects.
19655         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
19657 2003-10-27  Pascal Obry  <obry@gnat.com>
19659         * g-dirope.adb:
19660         (Basename): Check for drive letters in a pathname only on DOS based OS.
19662 2003-10-27  Vincent Celier  <celier@gnat.com>
19664         * make.adb:
19665         (Gnatmake): When unable to change dir to the object dir, display the
19666         content of the parent dir of the obj dir, to try to understand why this
19667         happens.
19669 2003-10-27  GNAT Script  <nobody@gnat.com>
19671         * Make-lang.in: Makefile automatically updated
19673 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
19675         * sem_ch12.adb:
19676         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
19677         should not be done in Save/Restore_Scope_Stack, because it is performed
19678         locally.
19680         * sem_ch8.adb:
19681         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
19682         whether use clauses should be removed/restored.
19684         * sem_ch8.ads:
19685         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
19686         whether use clauses should be removed/restored.
19688 2003-10-26  Andreas Jaeger  <aj@suse.de>
19690         * Makefile.in: Remove duplicated lines.
19692 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
19694         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
19695         minimize the differences with ACT tree.
19697         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
19698         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
19699         Gnatvsn.Gnat_Static_Version_String to reduce differences between
19700         ACT and FSF trees.
19702 2003-10-24  Pascal Obry  <obry@gnat.com>
19704         * adadecode.c (ostrcpy): New function.
19705         (__gnat_decode): Use ostrcpy of strcpy.
19706         (has_prefix): Set first parameter a const.
19707         (has_suffix): Set first parameter a const.
19708         Update copyright notice. Fix source name in header.
19709         Removes a trailing space.
19710         PR ada/12014.
19712 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
19714         * exp_disp.adb:
19715         Remove the test against being in No_Run_Time_Mode before generating a
19716         call to Register_Tag. It is redundant with the test against the
19717         availability of the function Register_Tag.
19719 2003-10-24  Vincent Celier  <celier@gnat.com>
19721         * g-catiio.adb: (Month_Name): Correct spelling of February
19723         * make.adb: (Mains): New package
19724         (Initialize): Call Mains.Delete
19725         (Gnatmake): Check that each main on the command line is a source of a
19726         project file and, if there are several mains, each of them is a source
19727         of the same project file.
19728         (Gnatmake): When a foreign language is specified in attribute Languages,
19729         no main is specified on the command line and attribute Mains is not
19730         empty, only build the Ada main. If there is no Ada main, just compile
19731         the Ada sources and their closure.
19732         (Gnatmake): If a main is specified on the command line with directory
19733         information, check that the source exists and, if it does, that the path
19734         is the actual path of a source of a project.
19736         * prj-env.adb:
19737         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
19738         Full_Path is True, return the full path instead of the simple file name.
19739         (Project_Of): New function
19741         * prj-env.ads:
19742         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
19743         defaulted to False.
19744         (Project_Of): New function
19746 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
19748         * Makefile.generic:
19749         Ensure objects of main project are always checked and rebuilt if needed.
19750         Set CC to gcc by default.
19751         Prepare new handling of link by creating a global archive (not activated
19752         yet).
19754         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
19755         stringt.h: Update copyright notice. Remove trailing blanks.
19756         Fix source name in header.
19758 2003-10-24  Robert Dewar  <dewar@gnat.com>
19760         * sem_ch12.adb: Minor reformatting
19762         * sem_ch3.adb:
19763         Minor reformatting (including new function return style throughout)
19765         * sem_ch3.ads:
19766         Minor reformatting (including new function return style throughout)
19768 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
19770         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
19771         stringt.h: Update copyright notice. Remove trailing blanks.
19772         Fix source name in header.
19774 2003-10-24  GNAT Script  <nobody@gnat.com>
19776         * Make-lang.in: Makefile automatically updated
19778 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
19780         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
19781         stringt.h: Convert to ISO C90 declarations and definitions.
19783 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
19785         PR ada/11978:
19786         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
19787         External_Tag attribute definition clauses.
19789 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
19791         PR ada/7613:
19792         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
19793         child unit, generate a fully qualified name to avoid spurious errors
19794         when the context contains renamings of different child units with
19795         the same simple name.
19797         * exp_dbug.ads: Add documentation on name qualification for renamings
19798         of child units.
19800 2003-10-23  Robert Dewar  <dewar@gnat.com>
19802         * g-regpat.ads, g-regpat.adb: Minor reformatting
19804 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
19806         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
19808 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19810         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
19811         Machine call.
19813         * urealp.h: (Machine): Update to proper definition.
19815 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
19817         * init.c, adaint.c: Minor reformatting.
19819 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
19821         * adaint.c (w32_epoch_offset): Define static const at file level.
19822         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
19823         rather than t_create, t_access in call to GetFileTime. Use union
19824         to convert between FILETIME and  unsigned long long.
19825         (__gnat_file_time_name): Test for invalid file handle.
19826         (__gnat_set_filetime_name): Support win32 targets using
19827         w32api SetFileTime.
19829 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
19831         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
19833         * ctrl_c.c (__gnat_int_handler): Remove declaration.
19835         * decl.c (creat_concat_name):  Const-ify prefix.
19837         * adaint.c: Include ctype.h if __MINGW32__.
19838         (__gnat_readlink): Mark arguments as possibly unused.
19839         (__gnat_symlink): Likewise.
19840         (__gnat_is_symbolic_link): Likewise.
19841         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
19842         declaration
19843         (__gnat_file_time_name): Don't declare struct stat statbuf when
19844         not needed.
19845         (__gnat_is_absolute_path): Add parenthesis around condition of
19846         'if' statement to avoid warning.
19847         (__gnat_plist_init): Specify void as parameter.
19848         (plist_enter): Likewise.
19849         (plist_leave): Likewise.
19850         (remove_handle): Make static. Initialize prev.
19852 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
19854         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
19855         * cstreams.c (__gnat_full_name): Minor improvements and clean up
19856         of previous change.
19858 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19860         * tracebak.c (MAX): Avoid redefinition warning.
19862         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
19863         Change msg to const char *.
19864         (__gnat_install_handler): Remove ss, unused.
19865         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
19866         to const char *.
19867         * cstreams.c (__gnat_full_name): Declare p only when used.
19868         (__gnat_full_name) [sgi] Return buffer.
19870 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
19872         * mingw32.h: New file.
19873         * gnat_wrapper.adb: New file.
19875 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
19877         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
19878         string match a pre compiled regular expression (the corresponding
19879         version of the function working on a raw regular expression)
19880         Fix typos in various comments
19881         Update copyright notice in spec
19883 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
19885         * exp_ch3.adb:
19886         (Component_Needs_Simple_Initialization): Return False when the type is a
19887         packed bit array. Revise spec comments to document this case.
19889         * exp_prag.adb:
19890         (Expand_Pragma_Import): Set any expression on the imported object to
19891         empty to avoid initializing imported objects (in particular this
19892         covers the case of zero-initialization of bit arrays).
19893         Update copyright notice.
19895 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
19897         * sem_ch12.adb:
19898         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
19899         a subunit is missing.
19900         (Instantiate_Subprogram_Body): If body of function is missing, set type
19901         of return expression explicitly in dummy body, to prevent cascaded
19902         errors when a subunit is missing.
19903         Fixes PR 5677.
19905         * sem_ch3.adb:
19906         (Access_Subprogram_Declaration): Verify that return type is valid.
19907         Fixes PR 8693.
19909         * sem_elab.adb:
19910         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
19911         generic.
19912         Fixes PR 12318.
19914         * sem_util.adb:
19915         (Corresponding_Discriminant): If the scope of the discriminant is a
19916         private type without discriminant, use its full view.
19917         Fixes PR 8247.
19919 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
19921         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
19922         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
19923         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
19924         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
19925         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
19926         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
19927         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
19928         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
19929         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
19930         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
19931         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
19932         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
19933         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
19934         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
19935         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
19936         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
19937         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
19938         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
19939         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
19940         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
19941         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
19942         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
19943         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
19944         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
19945         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
19946         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
19947         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
19948         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
19949         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
19950         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
19951         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
19952         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
19953         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
19954         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
19955         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
19956         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
19957         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
19958         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
19959         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
19960         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
19961         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
19962         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
19963         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
19964         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
19965         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
19966         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
19967         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
19968         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
19969         vms_conv.ads, vms_conv.adb, vms_data.ads,
19970         vxaddr2line.adb: Files added. Merge with ACT tree.
19972         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
19973         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
19974         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
19975         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
19976         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
19977         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
19978         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
19979         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
19980         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
19981         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
19983         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
19984         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
19985         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
19986         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
19987         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
19988         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
19989         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
19990         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
19991         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
19992         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
19993         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
19994         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
19995         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
19996         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
19997         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
19998         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
19999         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
20000         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
20001         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
20002         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
20003         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
20004         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
20005         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
20006         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
20007         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
20008         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
20009         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
20010         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
20011         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
20012         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
20013         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
20014         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
20015         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
20016         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
20017         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
20018         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
20019         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
20020         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
20021         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
20022         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
20023         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
20024         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
20025         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
20026         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
20027         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
20028         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
20029         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
20030         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
20031         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20032         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
20033         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
20034         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
20035         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
20036         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
20037         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
20038         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
20039         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
20040         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
20041         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
20042         checks.adb, checks.ads, cio.c, comperr.adb,
20043         comperr.ads, csets.adb, cstand.adb, cstreams.c,
20044         debug_a.adb, debug_a.ads, debug.adb, decl.c,
20045         einfo.adb, einfo.ads, errout.adb, errout.ads,
20046         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
20047         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
20048         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
20049         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
20050         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
20051         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
20052         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
20053         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
20054         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
20055         fe.h, fmap.adb, fmap.ads, fname.adb,
20056         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
20057         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
20058         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20059         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
20060         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
20061         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
20062         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
20063         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
20064         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
20065         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
20066         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
20067         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
20068         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20069         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
20070         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
20071         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
20072         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
20073         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
20074         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
20075         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
20076         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
20077         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
20078         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
20079         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
20080         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
20081         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
20082         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
20083         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
20084         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
20085         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
20086         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
20087         layout.adb, lib.adb, lib.ads, lib-list.adb,
20088         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
20089         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
20090         link.c, live.adb, make.adb, make.ads,
20091         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
20092         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
20093         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
20094         misc.c, mkdir.c, mlib.adb, mlib.ads,
20095         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
20096         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
20097         namet.adb, namet.ads, namet.h, nlists.ads,
20098         nlists.h, nmake.adt, opt.adb, opt.ads,
20099         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
20100         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
20101         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
20102         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20103         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
20104         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
20105         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
20106         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
20107         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
20108         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
20109         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
20110         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
20111         prj-util.adb, prj-util.ads, raise.c, raise.h,
20112         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
20113         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
20114         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
20115         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
20116         scans.ads, scn.adb, scn.ads, s-crc32.adb,
20117         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
20118         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
20119         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
20120         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
20121         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
20122         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
20123         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
20124         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
20125         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
20126         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
20127         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
20128         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
20129         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
20130         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
20131         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
20132         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
20133         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
20134         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
20135         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
20136         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
20137         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
20138         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
20139         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
20140         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
20141         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
20142         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
20143         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
20144         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
20145         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
20146         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
20147         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
20148         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
20149         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20150         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
20151         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
20152         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
20153         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
20154         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
20155         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20156         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
20157         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
20158         stringt.adb, stringt.ads, stringt.h, style.ads,
20159         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
20160         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
20161         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
20162         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
20163         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
20164         table.adb, table.ads, targparm.adb, targparm.ads,
20165         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
20166         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
20167         ttypes.ads, types.ads, types.h, uintp.adb,
20168         uintp.ads, uintp.h, uname.adb, urealp.adb,
20169         urealp.ads, urealp.h, usage.adb, utils2.c,
20170         utils.c, validsw.adb, validsw.ads, widechar.adb,
20171         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
20172         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
20173         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
20174         gnatvsn.ads: Merge with ACT tree.
20176         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
20178 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
20180         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
20181         (gnat_ug_vmx.info): Likewise.
20182         (gnat_ug_vxw.info): Likewise.
20183         (gnat_ug_wnt.info): Likewise.
20184         (gnat_rm.info): Likewise.
20185         (gnat-style.info): Likewise.
20187         * Make-lang.in (ada.install-info): Remove target.
20188         (info): New target.
20189         (install-info): Likewise.
20190         (gnat_ug_unx.info): Simplify rule.
20191         (gnat_ug_vmx.info): Likewise.
20192         (gnat_ug_vxw.info): Likewise.
20193         (gnat_ug_wnt.info): Likewise.
20194         (gnat_rm.info): Likewise.
20195         (gnat-style.info): Likewise.
20197 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
20199         * Make-lang.in: Replace uses of $(target_alias) with
20200         $(target_noncanonical).
20201         * ada/Makefile.in: Remove unused mention of $(target_alias).
20203 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
20205         * Make-lang.in (ada.info): Replace with ...
20206         (info): ... this.
20207         (ada.dvi): Replace with ...
20208         (dvi): ... this.
20210 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
20212         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
20213         initialize dconstp5 and dconstmp5.
20215 2003-09-28  Richard Henderson  <rth@redhat.com>
20217         * trans.c (tree_transform): Update call to expand_asm_operands.
20219 2003-09-21  Richard Henderson  <rth@redhat.com>
20221         * trans.c, utils.c: Revert.
20223 2003-09-21  Richard Henderson  <rth@redhat.com>
20225         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
20226         change to const.
20228 2003-09-04  Michael Matz  <matz@suse.de>
20230         * misc.c: Include "target.h".
20231         * Make-lang.in (misc.o): Add dependency on target.h.
20233 2003-09-03  DJ Delorie  <dj@redhat.com>
20235         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
20236         hook.
20238 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
20240         * Makefile.in: Update substitutions to match changes to
20241         configure.  Use include directives instead of @-insertions
20242         to read in host and target fragments.  Add a rule to
20243         regenerate ada/Makefile.
20245 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
20247         * lang-options.h: Remove.
20248         * lang.opt: Add help text.
20250 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
20252         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
20253         calls.
20255 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
20257         * misc.c (gnat_handle_option): Don't handle filenames.
20259 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
20261         * Make-lang.in: Replace PWD with PWD_COMMAND.
20262         * Makefile.adalib: Likewise.
20263         * Makefile.in: Likewise.
20265 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
20267         * misc.c (gnat_argv): Revert last change.
20268         (gnat_handle_option, gnat_init_options): Copy arguments.
20270 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
20272         * misc.c (gnat_argv): Make const.
20274 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
20276         * misc.c (save_argc, save_argv): Keep non-static!
20278 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
20280         * misc.c (save_argc, save_argv): Make static.
20281         (gnat_init_options): New prototype.
20282         (gnat_init_options): Update.
20284 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
20286         * gnat_ug.texi: Remove unlikely characters from @vars.
20287         * gnat_ug_vms.texi: Regenerate.
20289 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
20291         * misc.c (record_code_position): Adjust emit_note call.
20293 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
20295         * misc.c (gnat_handle_option): Don't check for missing arguments.
20297 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
20299         * utils.c (end_subprog_body): Adjust expand_function_end call.
20301 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
20303         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
20304         Bind_Main_Program.
20306 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
20308         * lang.opt: Declare Ada.
20309         * misc.c (gnat_init_options): Update.
20311 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
20313         * utils.c (begin_subprog_body): Adjust init_function_start call.
20315 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
20317         * Make-lang.in: Update to use options.c and options.h.
20318         * misc.c: Include options.h not aoptions.h.
20319         (gnat_handle_option): Abort on unrecognized switch.
20320         (gnat_init_options): Request Ada switches.
20322 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
20324         * lang.opt: Add -Wall.
20325         * misc.c (gnat_handle_option): Handle it.
20327 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
20329         * misc.c (gnat_handle_option): Fix warnings.
20331 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
20333         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
20335 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
20337         * Make-lang.in: Update to handle command-line options.
20338         * lang.opt: New file.
20339         * misc.c: Include aoptions.h.
20340         (cl_options_count, cl_options): Remove.
20341         (gnat_handle_option): New.
20342         (gnat_decode_option): Remove.
20343         (LANG_HOOKS_DECODE_OPTION): Remove.
20344         (LANG_HOOKS_HANDLE_OPTION): Override.
20346 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
20348         * init.c, misc.c, trans.c, utils.c: Remove dead code.
20350 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
20352         * Makefile.in: Replace "host_canonical" with "host" for autoconf
20353         substitution.
20355 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
20357         * Make-lang.in: Update.
20358         * misc.c: Include opts.h. Define cl_options_count and cl_options.
20360 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
20362         * misc.c (gnat_init_options): Update.
20364 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
20366         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
20367         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
20368         __attribute__ ((__unused__)).
20370 2003-06-05  Jan Hubicka  <jh@suse.cz>
20372         * Make-lang.in:  Add support for stageprofile and stagefeedback
20374 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
20376         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
20377         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
20379 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
20381         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
20382         Remove non-VMS directive.
20383         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
20384         alternatives.
20385         (Examples of gnatls Usage): Remove VMS alternative.
20387 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
20389         PR ada/9953:
20390         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
20391         and turn ZCX_By_Default back to False since the underlying support
20392         is not quite there yet.
20394 2003-06-01  Andreas Jaeger  <aj@suse.de>
20396         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
20397         and ROUND_TYPE_SIZE_UNIT.
20399 2003-05-22   Geert Bosch <bosch@gnat.com>
20401         * gnat_rm.texi : Remove reference to Ada Core Technologies.
20403 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
20405         * trans.c (tree_transform): Use location_t and input_location
20406         directly.
20407         (build_unit_elab): Likewise.
20408         * utils.c (create_label_decl): Likewise.
20410 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
20412         * trans.c (tree_transform, build_unit_elab,
20413         set_lineno): Rename lineno to input_line.
20414         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
20415         end_subprog_body): Likewise.
20416         * utils2.c (build_call_raise): Likewise.
20418 2003-05-01  Laurent Guerby <guerby@acm.org>
20420         PR ada/10546
20421         * 5iosinte.ads: Increase pthread_cond_t size to match recent
20422         LinuxThread and NPTL version, merge from ACT.
20424 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
20426         * utils.c (convert): No need to clear TREE_CST_RTL.
20428 2003-04-23   Geert Bosch <bosch@gnat.com>
20430         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
20431         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
20432         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
20433         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
20434         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
20435         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
20436         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
20437         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
20438         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
20439         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
20440         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
20441         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
20442         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
20443         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
20444         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
20445         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
20446         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
20447         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
20448         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
20449         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
20450         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
20451         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
20452         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
20453         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
20454         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
20455         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
20456         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
20457         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
20458         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
20459         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
20460         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
20461         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
20462         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
20463         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
20464         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
20465         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
20466         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
20467         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
20468         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
20469         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
20470         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
20471         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
20472         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
20473         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
20474         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
20475         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
20476         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
20477         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20478         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
20479         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
20480         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20481         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20482         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
20483         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
20484         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
20485         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
20486         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
20487         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
20488         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
20489         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20490         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
20491         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
20492         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
20493         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20494         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
20495         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
20496         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
20497         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
20498         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
20499         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
20500         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
20501         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
20502         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20503         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
20504         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
20505         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
20506         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
20507         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
20508         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
20509         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
20510         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
20511         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
20512         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
20513         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
20514         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
20515         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
20516         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
20517         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20518         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
20519         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
20520         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
20521         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
20522         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
20523         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
20524         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
20525         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
20526         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
20527         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
20528         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
20529         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
20530         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
20531         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
20532         ali.adb, ali.ads, alloc.ads, argv.c,
20533         atree.adb, atree.ads, atree.h, aux-io.c,
20534         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
20535         binde.adb, binde.ads, binderr.adb, binderr.ads,
20536         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
20537         butil.adb, butil.ads, cal.c, calendar.ads,
20538         casing.adb, casing.ads, ceinfo.adb, checks.adb,
20539         checks.ads, cio.c, comperr.adb, comperr.ads,
20540         config-lang.in, csets.adb, csets.ads, csinfo.adb,
20541         cstand.adb, cstand.ads, cuintp.c, debug.adb,
20542         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
20543         dec-io.ads, dec.ads, deftarg.c, directio.ads,
20544         einfo.adb, einfo.ads, elists.adb, elists.ads,
20545         elists.h, errno.c, errout.adb, errout.ads,
20546         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
20547         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
20548         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
20549         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
20550         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
20551         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
20552         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
20553         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
20554         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
20555         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
20556         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
20557         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
20558         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
20559         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
20560         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
20561         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
20562         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
20563         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
20564         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
20565         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
20566         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
20567         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
20568         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
20569         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
20570         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
20571         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
20572         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
20573         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
20574         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
20575         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
20576         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
20577         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
20578         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
20579         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
20580         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
20581         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
20582         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
20583         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
20584         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
20585         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
20586         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
20587         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
20588         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
20589         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
20590         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
20591         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
20592         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
20593         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
20594         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
20595         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
20596         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
20597         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20598         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
20599         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
20600         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
20601         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
20602         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
20603         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
20604         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
20605         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
20606         lib.adb, lib.ads, live.adb, live.ads,
20607         machcode.ads, make.adb, make.ads, makeusg.adb,
20608         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
20609         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
20610         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
20611         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
20612         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
20613         mlib.ads, namet.adb, namet.ads, nlists.adb,
20614         nlists.ads, opt.adb, opt.ads, osint-b.adb,
20615         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
20616         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
20617         osint.ads, output.adb, output.ads, par-ch10.adb,
20618         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
20619         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
20620         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
20621         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
20622         par-tchk.adb, par-util.adb, par.adb, par.ads,
20623         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
20624         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
20625         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
20626         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
20627         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
20628         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
20629         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
20630         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
20631         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
20632         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
20633         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
20634         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
20635         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
20636         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
20637         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
20638         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
20639         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
20640         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
20641         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
20642         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
20643         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20644         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
20645         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
20646         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
20647         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
20648         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
20649         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
20650         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
20651         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
20652         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
20653         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
20654         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20655         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
20656         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
20657         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
20658         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
20659         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
20660         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
20661         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
20662         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20663         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20664         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
20665         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
20666         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
20667         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20668         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20669         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
20670         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
20671         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
20672         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20673         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20674         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
20675         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
20676         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
20677         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20678         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20679         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
20680         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
20681         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
20682         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20683         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20684         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
20685         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
20686         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
20687         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20688         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
20689         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
20690         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
20691         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
20692         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
20693         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
20694         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
20695         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
20696         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
20697         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
20698         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
20699         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
20700         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
20701         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
20702         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
20703         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
20704         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20705         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
20706         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
20707         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
20708         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
20709         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
20710         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
20711         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
20712         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
20713         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
20714         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
20715         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
20716         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
20717         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
20718         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
20719         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
20720         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20721         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
20722         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
20723         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20724         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
20725         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
20726         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
20727         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
20728         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
20729         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
20730         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
20731         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
20732         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
20733         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
20734         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
20735         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
20736         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
20737         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
20738         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20739         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
20740         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
20741         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
20742         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
20743         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
20744         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
20745         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
20746         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
20747         snames.ads, sprint.adb, sprint.ads, stand.adb,
20748         stand.ads, stringt.adb, stringt.ads, style.adb,
20749         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
20750         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
20751         switch-m.ads, switch.adb, switch.ads, system.ads,
20752         table.adb, table.ads, targparm.adb, targparm.ads,
20753         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
20754         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
20755         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
20756         ttypef.ads, ttypes.ads, types.adb, types.ads,
20757         uintp.adb, uintp.ads, uname.adb, uname.ads,
20758         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
20759         usage.adb, usage.ads, validsw.adb, validsw.ads,
20760         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
20761         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
20762         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
20763         formatting and other trivial changes from ACT.
20765 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
20767         * gigi.h, utils2.c (build_constructor):
20768         Rename gnat_build_constructor. Use build_constructor.
20769         * decl.c (gnat_to_gnu_entity)
20770         * trans.c (tree_transform, pos_to_constructor, extract_values)
20771         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
20772         (unchecked_convert)
20773         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
20774         (fill_vms_descriptor):
20775         Update to match.
20777 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
20779         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
20780         * misc.c (gnat_tree_size): New function.
20781         (LANG_HOOKS_TREE_SIZE): Override.
20783 2003-04-03  Jason Merrill  <jason@redhat.com>
20785         * misc.c (gnat_adjust_rli): #if 0.
20787 2003-03-31   Geert Bosch <bosch@gnat.com>
20789         PR ada/10020
20790         * link.c : Fix misspelled "const" keyword
20792 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
20794         PR c++/7086
20795         * utils2.c: Adjust calls to put_var_into_stack.
20797 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
20799         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
20801 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
20803         * misc.c (gnat_init): Update for new prototype.
20805 2003-03-05  Olivier Hainque  <hainque@gnat.com>
20807         ada/9961
20808         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
20809         warning, and fix return type for the IN_RTS && !SJLJ case.
20811 2003-03-04  Tom Tromey  <tromey@redhat.com>
20813         * Make-lang.in (ada.tags): New target.
20815 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
20817         ada/9911
20818         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
20819         wrapper, which name remains constant whatever underlying GCC
20820         scheme.
20822         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
20823         the stable interface needed for a-except.
20825 2003-03-02  Andreas Jaeger  <aj@suse.de>
20827         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
20828         gnat_ug_wnt.texi: Regenerate.
20830 2003-03-02  Laurent Guerby <guerby@acm.org>
20832         * Makefile.in (install-gnatlib): Match previous change there
20833         so it works.
20835 2003-02-28  Andreas Schwab  <schwab@suse.de>
20837         * Make-lang.in (install-gnatlib): Change to ada directory before
20838         running make instead of using ada/Makefile directly.
20840 2003-02-18  Ben Elliston  <bje@redhat.com>
20842         Part of fix for PR ada/9406
20843         * gnat_ug.texi (Binder output file): Grammar fix.
20845 2003-02-18  Ben Elliston  <bje@redhat.com>
20847         PR other/7350
20848         * 5qtaprop.adb (Sleep): Fix typo in comment.
20850 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
20852         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
20853         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
20854         gnat_ug_wnt.texi: Regenerate.
20856 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
20858         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
20859         be created if necessary.
20860         (ada.install-common): Let $(DESTDIR)$(bindir) be created
20861         if necessary.  Remove erroneous and redundant gnatchop
20862         installation commands.  Test for gnatdll before attempting
20863         to install it.
20864         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
20865         and gnatdll from all plausible locations.
20867 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
20869         * utils2.c (build_unary_op): Don't check flag_volatile.
20870         * gnat_ug.texi: Remove -fvolatile from example.
20871         * gnat_ug_vxw.texi: Likewise.
20873 2003-01-29  Laurent Guerby <guerby@acm.org>
20875         PR ada/8344
20876         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
20877         * Makefile.in: match previous change.
20878         * Make-lang.in: match previous change.
20880 2003-01-29      Joel Sherrill <joel@OARcorp.com>
20882         * 5rosinte.ads: Add SIGXCPU.
20883         * 5rtpopsp.adb: New file.
20884         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
20885         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
20886         specific file 5rtpopsp.adb.
20887         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
20888         is likely needed for all newlib targets.
20889         * init.c: Add RTEMS specific version of __gnat_initialize().
20891 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20893         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
20895 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20897         * init.c (__gnat_error_handler): Make msg const.
20899         * gmem.c (convert_addresses): Move declaration ...
20900         * adaint.h: ... here.
20901         * adaint.c (convert_addresses): Adapt addrs type to match
20902         prototype.
20904         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
20906 2003-01-24  Andreas Schwab  <schwab@suse.de>
20908         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
20909         size_t to avoid warning.
20911 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
20913         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
20915 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
20917         * gnat_rm.texi: Remove RCS version number.
20919         * ada-tree.h (union lang_tree_node): Add chain_next option.
20921 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
20923         * Make-lang.in (ada.install-info, ada.install-common,
20924         ada.uninstall): Prepend $(DESTDIR) to the destination
20925         directory in all (un)installation commands.
20926         * Makefile.in (install-gnatlib, install-rts): Ditto.
20928 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
20930         * gnat_rm.texi, gnat_ug.texi: Use @copying.
20931         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
20932         gnat_ug_wnt.texi: Regenerate.
20934 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
20936         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
20937         only.
20938         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
20939         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
20940         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
20941         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
20942         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
20943         $(srcdir)/doc/include/gcc-common.texi.
20945 2002-12-15   Geert Bosch <bosch@gnat.com>
20947         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
20949 2002-12-14   Geert Bosch <bosch@gnat.com>
20951         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
20952         case of a body created for a Renaming_As_Body, on which
20953         conformance checks are not performed. Fixes PR ada/5690.
20955 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
20957         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
20958         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
20959         not already included.
20960         * Make-lang.in: Update dependencies.
20962 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
20963         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
20964         solution to buffer overflow bug on GNU/Linux.
20966 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
20967         Closes PR ada/5856 and PR ada/6919 !
20968         * bindgen.adb: Remove all references to Public_Version.
20969         * comperr.adb: Remove all references to Public_Version and
20970         GNATPRO_Version; correct bug reporting instructions.
20971         * comperr.ads: Change to match bug box.
20972         * gnatvsn.ads: Remove all references to Public version and
20973         GNATPRO version.
20975 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
20976         PR ada/6919
20977         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
20978         GNU/Linux.
20980         PR ada/6558
20981         * config-lang.in: Remove diff_excludes.
20983 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
20984         PR ada/8358
20985         * trans.c (gnu_pending_elaboration_lists): New GC root.
20986         (build_unit_elab): Use..
20988 2002-10-30   Geert Bosch <bosch@gnat.com>
20989         PR ada/6558
20990         * misc.c : Include optabs.h
20992         * Make-lang.in (misc.o): Add dependency on optabs.h
20994 2002-10-29   Geert Bosch <bosch@gnat.com>
20995         PR ada/6558
20996         * Make-lang.in (gnatbind): Depend on CONFIG_H
20998 2002-10-29  Geert bosch  <bosch@gnat.com>
20999         PR ada/6558
21000         * misc.c: Unrevert misc.c (1.13)
21002 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
21004         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
21005         maintainership comments.
21007 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
21008         PR ada/5904
21009         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
21010         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
21011         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
21012         7staprop.adb: Correct statements in comments about
21013         maintainership of GNAT.
21015         PR ada/5904
21016         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
21017         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
21018         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
21019         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
21020         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
21021         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
21022         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
21023         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
21024         comments about maintainership of GNAT.
21026         PR ada/6919 (forward port of patch for PR ada/5904)
21027         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
21028         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
21029         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
21030         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
21031         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
21032         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
21033         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
21034         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
21035         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
21036         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
21037         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
21038         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
21039         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
21040         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
21041         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
21042         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
21043         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
21044         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
21045         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
21046         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
21047         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
21048         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
21049         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
21050         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
21051         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
21052         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
21053         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
21054         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
21055         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
21056         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
21057         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
21058         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
21059         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
21060         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
21061         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
21062         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
21063         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
21064         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
21065         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
21066         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
21067         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
21068         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
21069         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
21070         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
21071         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
21072         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
21073         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
21074         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
21075         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
21076         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
21077         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
21078         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
21079         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
21080         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
21081         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
21082         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
21083         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
21084         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
21085         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
21086         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
21087         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
21088         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
21089         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
21090         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
21091         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
21092         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
21093         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
21094         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
21095         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
21096         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
21097         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
21098         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
21099         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
21100         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
21101         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
21102         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
21103         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
21104         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
21105         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
21106         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
21107         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
21108         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
21109         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
21110         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
21111         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
21112         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
21113         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
21114         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
21115         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
21116         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
21117         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
21118         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
21119         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
21120         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
21121         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
21122         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
21123         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
21124         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
21125         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
21126         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
21127         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
21128         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
21129         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
21130         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
21131         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
21132         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
21133         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
21134         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
21135         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
21136         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
21137         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
21138         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
21139         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
21140         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
21141         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
21142         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
21143         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
21144         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
21145         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
21146         par-endh.adb par-labl.adb par-load.adb par-prag.adb
21147         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
21148         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
21149         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
21150         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
21151         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
21152         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
21153         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
21154         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
21155         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
21156         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
21157         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
21158         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
21159         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
21160         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
21161         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
21162         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
21163         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
21164         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
21165         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
21166         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
21167         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
21168         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
21169         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
21170         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
21171         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
21172         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
21173         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
21174         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
21175         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
21176         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
21177         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
21178         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
21179         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
21180         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
21181         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
21182         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
21183         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
21184         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
21185         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
21186         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
21187         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
21188         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
21189         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
21190         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
21191         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
21192         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
21193         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
21194         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
21195         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
21196         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
21197         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
21198         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
21199         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
21200         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
21201         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
21202         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
21203         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
21204         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
21205         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
21206         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
21207         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
21208         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
21209         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
21210         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
21211         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
21212         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
21213         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
21214         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
21215         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
21216         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
21217         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
21218         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
21219         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
21220         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
21221         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
21222         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
21223         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
21224         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
21225         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
21226         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
21227         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
21228         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
21229         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
21230         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
21231         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
21232         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
21233         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
21234         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
21235         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
21236         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
21237         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
21238         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
21239         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
21240         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
21241         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
21242         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
21243         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
21244         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
21245         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
21246         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
21247         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
21248         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
21249         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
21250         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
21251         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
21252         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
21253         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
21254         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
21255         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
21256         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
21257         stringt.ads stringt.h style.adb style.ads stylesw.adb
21258         stylesw.ads switch.adb switch.ads sysdep.c system.ads
21259         table.adb table.ads targparm.adb targparm.ads targtyps.c
21260         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
21261         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
21262         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
21263         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
21264         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
21265         usage.ads utils.c utils2.c validsw.adb validsw.ads
21266         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
21267         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
21268         xtreeprs.adb: Correct statements in comments about maintainership
21269         of GNAT.
21271 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
21273         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
21274         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
21275         * gnatvsn.ads: Gnat_Version_String is now a function.
21276         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
21277         copy the C version_string into a String and return it.
21278         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
21279         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
21280         Remove pragma Ident (Gnat_Version_String).  If this was the
21281         sole use of package Gnatvsn, remove the with statement too.
21282         * gnat1drv.adb: Tweak -gnatv output.
21284 2002-09-17  Richard Henderson  <rth@redhat.com>
21286         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
21287         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
21288         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
21289         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
21290         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
21291         and real_2expN instead of a loop.
21292         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
21293         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
21295 2002-08-25  Andre Leis <a.leis@gmx.net>
21296             David Billinghurst (David.Billinghurst@riotinto.com>
21298         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
21300 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21302         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
21303         Remove $(CONFIG_H) dependency.
21305 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
21307         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
21309 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21311         * adadecode.c (ada_demangle): Use xstrdup in lieu of
21312         xmalloc/strcpy.
21313         * misc.c (gnat_decode_option): Likewise.
21315 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
21317         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
21318         function approach did not work well because of a side effect (the
21319         function call could reallocate the table which was being indexed
21320         using its result). Fixes ada/4851. [RESURRECTED]
21322 2002-07-01  Roger Sayle  <roger@eyesopen.com>
21324         * ada/utils.c (builtin_function): Accept an additional parameter.
21326 2002-06-28  Andreas Jaeger  <aj@suse.de>
21328         PR ada/7144
21329         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
21330         <adi@thur.de>.
21332 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21334         * Makefile.in (SHELL): Set to @SHELL@.
21336 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21338         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
21339         array size calculation.
21341 2002-06-04  Andreas Jaeger  <aj@suse.de>
21343         * Make-lang.in (gnatbind): Readd rule that has been lost in last
21344         patch.
21346 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
21348         Merge from pch-branch:
21350         * config-lang.in (gtfiles): Add ada-tree.h.
21351         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
21352         (SET_TYPE_MODULUS): New.
21353         (SET_TYPE_INDEX): New.
21354         (SET_TYPE_DIGITS_VALUE): New.
21355         (SET_TYPE_RM_SIZE): New.
21356         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
21357         (SET_TYPE_ADA_SIZE): New.
21358         (SET_TYPE_ACTUAL_BOUNDS): New.
21359         (SET_DECL_CONST_CORRESPONDING_VAR): New.
21360         (SET_DECL_ORIGINAL_FIELD): New.
21361         (TREE_LOOP_ID): Correct typo.
21362         * decl.c: Use new macros.
21363         * utils.c: Include debug.h, use new macros.
21364         * utils2.c: Use new macros.
21366         * ada-tree.h: Update all macros for new tree description.
21367         (struct tree_loop_id): New.
21368         (union lang_tree_node): New.
21369         (struct lang_decl): New.
21370         (struct lang_type): New.
21371         * misc.c (gnat_mark_tree): Delete.
21372         (LANG_HOOKS_MARK_TREE): Delete.
21373         * trans.c (tree_transform): No longer any need to cast
21374         for TREE_LOOP_ID.
21376         * utils.c (struct language_function): New dummy structure.
21378         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
21379         (misc.o): Likewise.
21380         (utils.o): Likewise; also gtype-ada.h.
21381         * Make-lang.in (gnat1): Add dependency on s-gtype.
21382         (gnatbind): Add dependency on $(CONFIG_H).
21383         * utils.c: Correct last #include.
21384         (stuct e_stack): Remove unnecessary 'static'.
21385         (mark_e_stack): Remove unused prototype.
21387         * scn-nlit.adb: Remove whitespace after version number to
21388         keep lines under 80 chars.
21389         * snames.adb: Likewise.
21390         * treepr.ads: Likewise.
21392         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
21393         (misc.o): Likewise.
21394         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
21395         * config-lang.in (gtfiles): New.
21396         * decl.c: Use gengtype for roots.
21397         * gigi.h: Use gengtype for roots.
21398         * trans.c: Use gengtype for roots.
21399         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
21401 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
21403         * misc.c (gnat_init): Adjust setting of internal_error_function.
21405 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
21407         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
21408         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21409         gnat_ug_wnt.texi: Regenerate.
21411 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
21413         * 5ntaprop.adb (with System.OS_Primitives): Remove.
21415         * cstreams.c (max_path_len): Move from here ...
21416         * adaint.c (__gnat_max_path_len): ... to here.
21417         * adaint.c (__gnat_max_path_len): Declare.
21418         * g-dirope.adb (Max_Path): Adjust.
21419         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
21420         * i-cstrea.ads (max_path_len): Adjust.
21421         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
21422         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
21424         * Makefile.in, Make-lang.in: Documentation is now built in
21425         Make-lang.in.  Store Info and generated Texinfo files in the
21426         source directory.
21427         * gnat_ug.texi: Remove CVS keywords, correct version number.
21428         Set file name correctly.
21430         * gnat_ug_*.texi: Add.
21431         * .cvsignore: Ignore generated Texinfo files.
21433 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
21435         * ada.h: Add MI guard macro.
21436         (SUBTYPE): Define constants with an anonymous enum, not static
21437         const variables.
21438         (IN): Cast constants to appropriate type before use.
21440 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
21442         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
21443         (experimental)".
21445 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21447         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
21448         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
21449         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
21450         (ALL_ADA_CFLAGS): Likewise.
21451         (ADA_INCLUDES): Likewise.
21452         Adapt for new working dir.
21453         (GNATBIND): Use Makefile.in version.
21454         (.SUFFIXES): Copy from Makefile.in.
21455         (ada-warn): Define.
21456         (.adb.o, .ads.o): Copy from Makefile.in.
21457         Added $(OUTPUT_OPTION).
21458         (GNAT1_C_OBJS): Moved from Makefile.in.
21459         Prefix with ada subdir.
21460         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
21461         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
21462         Adapt for new working dir.
21463         (EXTRA_GNATBIND_OBJS): Likewise.
21464         (ADA_BACKEND): Moved from Makefile.in.
21465         Renamed to avoid conflict with global BACKEND.
21466         Use that one.
21467         (TARGET_ADA_SRCS): Moved from Makefile.in.
21468         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
21469         Use ADA_BACKEND.
21470         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
21471         (ada_extra_files): Moved from Makefile.in.
21472         Prefix with ada subdir.
21473         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
21474         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
21475         (ada/nmake.ads): Likewise.
21476         (update-sources): Moved from Makefile.in.
21477         Prefix with ada subdir.
21478         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
21479         (ADA_TREE_H): Likewise.
21480         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
21481         (ada/memtrack.o): Likewise.
21482         (ada/adadecode.o): Likewise.
21483         Update dependencies.
21484         (ada/adaint.o): New.
21485         (ada/argv.o): Moved from Makefile.in.
21486         Prefix with ada subdir.
21487         Update dependencies.
21488         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
21489         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
21490         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
21491         Prefix with ada subdir.
21492         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
21493         (GNAT DEPENDENCIES): Regenerate.
21494         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
21495         toplevel Makefile.in.
21496         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
21497         (TARGET_ADA_SRCS): Removed.
21498         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
21499         (GNATBIND_OBJS): Likewise.
21500         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
21501         (BACKEND): Removed.
21502         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
21503         (TREE_H): Likewise.
21504         (ada_extra_files): Likewise.
21505         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
21506         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
21507         (update-sources): Likewise.
21508         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
21509         (ADA_TREE_H): Likewise.
21510         (adadecoce.o): Likewise.
21511         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
21512         (GNAT DEPENDENCIES): Likewise.
21514 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21516         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
21517         * Makefile.in: Likewise.
21519 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21521         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
21522         Restore $(CONFIG_H) and prefix.o dependencies.
21523         (ada.stage[1-4]): Depend on stage?-start.
21525         * Makefile.in (b_gnatb.c): Depend on interfac.o.
21527 2002-05-02  Jim Wilson  <wilson@redhat.com>
21529         * utils.c (finish_record_type): Change record_size to record_type.
21531 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21533         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
21534         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
21535         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
21537 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
21539         * misc.c (gnat_parse_file): Update.
21541 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
21543         * misc.c (gnat_init): Don't set lang_attribute_common.
21545 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
21547         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
21549 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
21551         * gnat_ug.texi: New file.
21553         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
21554         instead of gfdl.texi
21556         * xgnatug.adb, ug_words: New files.
21558         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
21559         gnat_rm and gnat-style manuals.
21561 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
21563         * gigi.h (incomplete_type_error): Remove.
21564         * utils.c (incomplete_type_error): Remove.
21566 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
21568         * trans.c (tree_transform): Add has_scope argument to
21569         expand_start_stmt_expr.
21571 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
21573         * gigi.h (truthvalue_conversion): Rename.
21574         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
21575         * trans.c (tree_transform): Update.
21576         * utils2.c (truthvalue_conversion): Rename, update.
21577         (build_binary_op, build_unary_op): Update.
21579 2002-04-04  Laurent Guerby  <guerby@acm.org>
21581         * make.adb: Implement -margs, remove restriction about file name placement.
21582         * makeusg.adb: Documentation update.
21583         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
21584         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
21586 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
21588         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
21589         (builtin_function): Similarly.
21591 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
21593         * decl.c (gnat_to_gnu_entity): Update.
21594         * gigi.h (mark_addressable): Rename.
21595         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
21596         * trans.c (tree_transform): Update.
21597         * utils.c (create_var_decl): Update.
21598         * util2.c (build_binary_op, build_unary_op,
21599         fill_vms_descriptor): Update.
21600         (mark_addressable): Rename, update.
21602 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
21604         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
21605         Rename.
21606         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
21607         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
21608         * trans.c (tree_transform, convert_with_check): Update.
21609         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
21610         Rename.
21612 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
21614         * gigi.h (finish_incomplete_decl): Rename.
21615         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
21616         * utils.c (gnat_init_decl_processing): Don't set hook.
21617         (finish_incomplete_decl): Rename.
21619 2002-03-29  Andreas Schwab  <schwab@suse.de>
21621         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
21622         directory.
21624 2001-03-28  Robert Dewar <dewar@gnat.com>
21626         * checks.ads:
21627         (Remove_Checks): New procedure
21629         * checks.adb:
21630         (Remove_Checks): New procedure
21632         * exp_util.adb:
21633         Use new Duplicate_Subexpr functions
21634         (Duplicate_Subexpr_No_Checks): New procedure
21635         (Duplicate_Subexpr_No_Checks_Orig): New procedure
21636         (Duplicate_Subexpr): Restore original form (checks duplicated)
21637         (Duplicate_Subexpr): Call Remove_Checks
21639         * exp_util.ads:
21640         (Duplicate_Subexpr_No_Checks): New procedure
21641         (Duplicate_Subexpr_No_Checks_Orig): New procedure
21642         Add 2002 to copyright notice
21644         * sem_util.adb: Use new Duplicate_Subexpr functions
21646         * sem_eval.adb:
21647         (Eval_Indexed_Component): This is the place to call
21648         Constant_Array_Ref and to replace the value. We simply merge
21649         the code of this function in here, since it is now no longer
21650         used elsewhere. This fixes the problem of the back end not
21651         realizing we were clever enough to see that this was
21652         constant.
21653         (Expr_Val): Remove call to Constant_Array_Ref
21654         (Expr_Rep_Val): Remove call to Constant_Array_Ref
21655         Minor reformatting
21656         (Constant_Array_Ref): Deal with string literals (patch
21657         suggested by Zack Weinberg on the gcc list)
21659 2001-03-28  Ed Schonberg <schonber@gnat.com>
21661         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
21662         Duplicate_Subexpr_Move_Checks.
21664         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
21665         Duplicate_Subexpr_Move_Checks.
21667         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
21668         value of array exists before retrieving it (it may a private
21669         protected component in a function).
21671 2002-03-28   Geert Bosch <bosch@gnat.com>
21673         * prj-pp.adb : New file.
21675         * prj-pp.ads : New file.
21677 2002-03-28  Andreas Jaeger  <aj@suse.de>
21679         * Makefile.in (stamp-sdefault): Fix path for Makefile.
21681 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
21683         * misc.c (gnat_expand_expr): Move prototype.
21685 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
21687         * misc.c (insert_default_attributes): Remove.
21689 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
21691         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
21692         (gnat_init): Don't set hook.
21693         (gnat_expand_expr): Fix prototype.
21695 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
21697         * misc.c (ggc_p): Remove.
21699 2002-03-27  Geert Bosch  <bosch@gnat.com>
21701         * prj-makr.ads, prj-makr.adb : New files.
21703 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
21705         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
21706         (lang_mark_tree): Make static, rename.
21708 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
21710         * misc.c (maybe_build_cleanup): Remove.
21712 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
21714         * gigi.h (yyparse): Remove.
21716 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
21718         * gnat_rm.texi: Sync with ACT version.
21719           (From Ben Brosgol <brosgol@gnat.com>)
21721 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
21723         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
21724         (gnat_init): Remove old hook.
21726 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
21728         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
21729         (yyparse): Rename gnat_parse_file.
21731 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
21733         Delete all lines containing "$Revision:".
21734         * xeinfo.adb: Don't look for revision numbers.
21735         * xnmake.adb: Likewise.
21736         * xsinfo.adb: Likewise.
21737         * xsnames.adb: Likewise.
21738         * xtreeprs.adb: Likewise.
21740 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21742         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
21743         gnat_tree_code_name): Delete.
21744         (tree_code_type, tree_code_length, tree_code_name): Define.
21745         (gnat_init): Don't try to copy into the various tree_code
21746         arrays.
21748 2002-03-11  Richard Henderson  <rth@redhat.com>
21750         * Makefile.in (.NOTPARALLEL): Add fake tag.
21752 2002-03-07  Geert Bosch  <bosch@gnat.com>
21754         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
21755         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
21756         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
21757         switch-m.adb, switch-m.ads : New files.
21759 2002-03-07  Geert Bosch  <bosch@gnat.com>
21761         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
21762         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
21763         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
21764         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
21765         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
21766         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
21767         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
21768         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
21769         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
21770         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
21771         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
21772         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
21773         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
21774         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
21775         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
21776         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
21777         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
21778         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
21779         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
21780         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
21781         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
21782         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
21783         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
21784         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
21785         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
21786         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
21787         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
21788         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
21789         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
21790         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
21791         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
21792         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
21793         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
21794         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
21795         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
21796         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
21797         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
21798         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
21799         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
21800         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
21801         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
21802         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
21803         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
21804         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
21805         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
21806         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
21807         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
21808         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
21809         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
21810         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
21811         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
21812         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
21813         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
21814         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
21815         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
21816         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
21817         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
21818         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
21819         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
21820         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
21821         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
21822         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
21823         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
21824         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
21825         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
21826         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
21827         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
21828         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
21829         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
21830         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
21831         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
21832         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
21833         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
21834         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
21835         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
21836         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
21837         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
21838         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
21839         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
21840         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
21841         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
21842         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
21843         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
21844         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
21845         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
21846         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
21847         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
21848         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
21849         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
21850         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
21851         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
21852         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
21853         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
21854         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
21855         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
21856         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
21857         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
21859         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
21860         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
21861         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
21862         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
21864         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
21865         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
21867         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
21868         to mdll-fil.ad[bs] and mdll-util.ad[bs]
21870         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
21871         from mdllfile.ad[bs] and mdlltool.ad[bs]
21873 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21875         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
21876         lieu of explicit sizeof/sizeof.
21878 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
21880         * misc.c (copy_lang_decl): Remove.
21882 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
21884         * misc.c: Delete traditional-mode-related code copied from the
21885         C front end but not used, or used only to permit the compiler
21886         to link.
21888 2002-02-07  Richard Henderson  <rth@redhat.com>
21890         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
21891         * adaint.h (__gnat_to_gm_time): Update prototype.
21893 2002-01-30  Richard Henderson  <rth@redhat.com>
21895         * trans.c (tree_transform) [N_Loop_Statement]: Use
21896         expand_exit_loop_top_cond.
21898 2001-12-23  Richard Henderson  <rth@redhat.com>
21900         * utils.c (end_subprog_body): Push GC context around
21901         rest_of_compilation for nested functions.
21903 2001-12-23  Richard Henderson  <rth@redhat.com>
21905         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
21907 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
21909         * gnat-style.texi (Declarations and Types): Remove ancient style
21910         rule which was mandated by code generation issues.
21912         * gnat-style.texi (header): Add @dircategory, @direntry.
21913         (title page): Remove date.
21914         (general) Add @./@: where approriate, and two spaces after the
21915         full stop at the end of a sentence.  Use @samp markup when
21916         referring concrete lexical entities (keywords, attribute names
21917         etc.), and @syntax for ARM grammar elements. Use @r for English
21918         text in comments.  Use @emph for emphasis.  Change "if-statements"
21919         etc. to "if statements" (without @samp). Break long lines.  Make
21920         casing of section names consistent.
21921         (Identifiers): Use @samp markup for variable names.
21922         (Comments): Use @samp markup for comment characters. Line-end
21923         comments may follow any Ada code, not just statements.  Fix
21924         misspelling of "Integer" as "integer".
21925         (Loop statements): Do not use variable name "I", use "J".
21926         (Subprogram Declarations): Document alignment.
21927         (Subprogram Bodies, Block statements): Document empty line before
21928         "begin".
21930 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
21932         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
21933         function approach did not work well because of a side effect (the
21934         function call could reallocate the table which was being indexed
21935         using its result). Fixes ada/4851.
21937 2001-12-19  Robert Dewar <dewar@gnat.com>
21939         * bindgen.adb: Minor reformatting
21941         * cstand.adb: Minor reformatting
21943         * fmap.adb: Minor reformatting
21944         Change name from Add for Add_To_File_Map (Add is much too generic)
21945         Change Path_Name_Of to Mapped_Path_Name
21946         Change File_Name_Of to Mapped_File_Name
21947         Fix copyright dates in header
21949         * fmap.ads:
21950         Change name from Add for Add_To_File_Map (Add is much too generic)
21951         Change Path_Name_Of to Mapped_Path_Name
21952         Change File_Name_Of to Mapped_File_Name
21953         Fix copyright dates in header
21955         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
21956         Add use clause for Fmap.
21958         * make.adb: Minor reformatting
21960         * osint.adb: Minor reformatting.  Change of names in Fmap.
21961         Add use clause for Fmap.
21963         * prj-env.adb: Minor reformatting
21965         * prj-env.ads: Minor reformatting
21967         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
21968         error found (there were odd exceptions to this general rule in
21969         -gnatec/-gnatem processing)
21971 2001-12-19  Olivier Hainque <hainque@gnat.com>
21973         * raise.c (__gnat_eh_personality): Exception handling personality
21974         routine for Ada.  Still in rough state, inspired from the C++ version
21975         and still containing a bunch of debugging artifacts.
21976         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
21977         inspired from the C++ library.
21979         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
21980         exception handling integration.
21982 2001-12-19  Arnaud Charlet <charlet@gnat.com>
21984         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
21985         (HIE_SOURCES): Add s-secsta.ad{s,b}.
21986         (HIE_OBJS): Add s-fat*.o
21987         (RAVEN_SOURCES): Remove files that are no longer required. Add
21988         interrupt handling files.
21989         (RAVEN_MOD): Removed, no longer needed.
21991 2001-12-19  Robert Dewar <dewar@gnat.com>
21993         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
21994         Add 2001 to copyright date
21996         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
21997         need to force universal inlining for these cases.
21999 2001-12-19  Arnaud Charlet <charlet@gnat.com>
22001         * s-taprob.adb: Minor clean ups so that this unit can be used in
22002         Ravenscar HI.
22004         * exp_ch7.adb: Allow use of secondary stack in HI mode.
22005         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
22007 2001-12-19  Vincent Celier <celier@gnat.com>
22009         * prj-tree.ads (Project_Node_Record): Add comments for components
22010         Pkg_Id and Case_Insensitive.
22012 2001-12-19  Pascal Obry <obry@gnat.com>
22014         * g-socket.adb: Minor reformatting. Found while reading code.
22016 2001-12-19  Robert Dewar <dewar@gnat.com>
22018         * prj-tree.ads: Minor reformatting
22020 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
22022         * config-lang.in (diff_excludes): Remove.
22024 2001-12-17  Ed Schonberg <schonber@gnat.com>
22026         * sem_res.adb (Resolve_Selected_Component): do not generate a
22027         discriminant check if the selected component is a component of
22028         the argument of an initialization procedure.
22030         * trans.c (tree_transform, case of arithmetic operators): If result
22031         type is private, the gnu_type is the base type of the full view,
22032         given that the full view itself may be a subtype.
22034 2001-12-17  Robert Dewar <dewar@gnat.com>
22036         * sem_res.adb: Minor reformatting
22038         * trans.c (tree_transform, case N_Real_Literal): Add missing third
22039         parameter in call to Machine (unknown horrible effects from this
22040         omission).
22042         * urealp.h: Add definition of Round_Even for call to Machine
22043         Add third parameter for Machine
22045 2001-12-17  Ed Schonberg <schonber@gnat.com>
22047         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
22048         predefined units in No_Run_Time mode.
22050 2001-12-17  Richard Kenner <kenner@gnat.com>
22052         * misc.c (insn-codes.h): Now include.
22054 2001-12-17  Olivier Hainque <hainque@gnat.com>
22056         * a-except.adb: Preparation work for future integration of the GCC 3
22057         exception handling mechanism
22058         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
22059         to factorize previous code sequences and make them externally callable,
22060         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
22061         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
22062         Use the new notification routines.
22064 2001-12-17  Emmanuel Briot <briot@gnat.com>
22066         * prj-tree.ads (First_Choice_Of): Document the when others case
22068 2001-12-17  Arnaud Charlet <charlet@gnat.com>
22070         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
22071         HI-E mode, in order to support Ravenscar profile properly.
22073         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
22074         mode on 32 bits targets.
22076 2001-12-17  Vincent Celier <celier@gnat.com>
22078         * fmap.adb: Initial version.
22080         * fmap.ads: Initial version.
22082         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
22083         If search is successfully done, add to mapping.
22085         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
22087         * make.adb:
22088         (Gnatmake): Add new local variable Mapping_File_Name.
22089          Create mapping file when using project file(s).
22090          Delete mapping file before exiting.
22092         * opt.ads (Mapping_File_Name): New variable
22094         * osint.adb (Find_File): Use path name found in mapping, if any.
22096         * prj-env.adb (Create_Mapping_File): New procedure
22098         * prj-env.ads (Create_Mapping_File): New procedure.
22100         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
22101         (Mapping_File)
22103         * usage.adb: Add entry for new switch -gnatem.
22105         * Makefile.in: Add dependencies for fmap.o.
22107 2001-12-17  Ed Schonberg <schonber@gnat.com>
22109         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
22110         is a package instantiation rewritten as a package body.
22111         (Install_Withed_Unit): Undo previous change, now redundant.
22113 2001-12-17  Gary Dismukes <dismukes@gnat.com>
22115         * layout.adb:
22116         (Compute_Length): Move conversion to Unsigned to callers.
22117         (Get_Max_Size): Convert Len expression to Unsigned after calls to
22118         Compute_Length and Determine_Range.
22119         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
22120         Compute_Length and Determine_Range.
22121         Above changes fix problem with length computation for supernull arrays
22122         where Max (Len, 0) wasn't getting applied due to the Unsigned
22123         conversion used by Compute_Length.
22125 2001-12-17  Arnaud Charlet <charlet@gnat.com>
22127         * rtsfind.ads:
22128         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
22129          System.Secondary_Stack.
22130         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
22131          in HI-E mode.
22132         Remove unused entity RE_Exception_Data.
22134         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
22136         * rident.ads (No_Secondary_Stack): New restriction.
22138 2001-12-17  Joel Brobecker <brobecke@gnat.com>
22140         * gnat_rm.texi: Fix minor typos. Found while reading the section
22141         regarding "Bit_Order Clauses" that was sent to a customer.
22142         Very interesting documentation!
22144 2001-12-17  Robert Dewar <dewar@gnat.com>
22146         * sem_case.adb (Choice_Image): Avoid creating improper character
22147         literal names by using the routine Set_Character_Literal_Name. This
22148         fixes bombs in certain error message cases.
22150 2001-12-17  Arnaud Charlet <charlet@gnat.com>
22152         * a-reatim.adb: Minor reformatting.
22154 2001-12-17  Ed Schonberg <schonber@gnat.com>
22156         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
22157         case where the formal is an extension of another formal in the current
22158         unit or in a parent generic unit.
22160 2001-12-17  Arnaud Charlet <charlet@gnat.com>
22162         * s-tposen.adb: Update comments.  Minor reformatting.
22163         Minor code clean up.
22165         * s-tarest.adb: Update comments.  Minor code reorganization.
22167 2001-12-17  Gary Dismukes <dismukes@gnat.com>
22169         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
22170         when Java_VM.
22172 2001-12-17  Robert Dewar <dewar@gnat.com>
22174         * exp_attr.adb: Minor reformatting
22176 2001-12-17  Ed Schonberg <schonber@gnat.com>
22178         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
22179         derivations nested within a child unit: verify that the parent
22180         type is declared in an outer scope.
22182 2001-12-17  Robert Dewar <dewar@gnat.com>
22184         * sem_ch12.adb: Minor reformatting
22186 2001-12-17  Ed Schonberg <schonber@gnat.com>
22188         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
22189         warning if current unit is a predefined one, from which bodies may
22190         have been deleted.
22192 2001-12-17  Robert Dewar <dewar@gnat.com>
22194         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
22195         Fix header format. Add 2001 to copyright date.
22197         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
22198         which caused CE during compilation if checks were enabled.
22200 2001-12-17  Vincent Celier <celier@gnat.com>
22202         * make.adb:
22203         (Switches_Of): New function
22204         (Test_If_Relative_Path): New procedure
22205         (Add_Switches): Use new function Switches_Of
22206         (Collect_Arguments_And_Compile): Use new function Switches_Of.
22207         When using a project file, test if there are any relative
22208         search path. Fail if there are any.
22209         (Gnatmake): Only add switches for the primary directory when not using
22210         a project file. When using a project file, change directory to the
22211         object directory of the main project file. When using a project file,
22212         test if there are any relative search path. Fail if there are any.
22213         When using a project file, fail if specified executable is relative
22214         path with directory information, and prepend executable, if not
22215         specified as an absolute path, with the exec directory.  Make sure
22216         that only one -o switch is transmitted to the linker.
22218         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
22220         * prj-nmsc.adb:
22221         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
22222         when using a non standard naming scheme.
22223         (Check_Ada_Naming_Scheme): Make sure that error messages
22224         do not raise exceptions.
22225         (Is_Illegal_Append): Return True if there is no dot in the suffix.
22226         (Language_Independent_Check): Check the exec directory.
22228         * prj.adb (Project_Empty): Add new component Exec_Directory
22230         * prj.ads:
22231         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
22232         (Project_Data): Add component Exec_Directory
22234         * snames.adb: Updated to match snames.ads revision 1.215
22236         * snames.ads: Added Exec_Dir
22238 2001-12-17  Robert Dewar <dewar@gnat.com>
22240         * make.adb: Minor reformatting
22242         * prj-nmsc.adb: Minor reformatting
22244         * snames.adb: Updated to match snames.ads
22246         * snames.ads: Alphebetize entries for project file
22248 2001-12-17  Ed Schonberg <schonber@gnat.com>
22250         * trans.c (process_freeze_entity): Do nothing if the entity is a
22251         subprogram that was already elaborated.
22253 2001-12-17  Richard Kenner <kenner@gnat.com>
22255         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
22256         and Esize if object is referenced via pointer.
22258 2001-12-17  Ed Schonberg <schonber@gnat.com>
22260         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
22261         is discrete before analyzing choices.
22263 2001-12-17  Joel Brobecker <brobecke@gnat.com>
22265         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
22266         containing the name of the Ada Main Program. This string is mainly
22267         intended for the debugger.
22268         (Gen_Output_File_C): Do the equivalent change when generating a C file.
22270 2001-12-17  Robert Dewar <dewar@gnat.com>
22272         * ali.adb: Set new Dummy_Entry field in dependency entry
22274         * ali.ads: Add Dummy_Entry field to source dependency table
22276         * bcheck.adb (Check_Consistency): Ignore dummy D lines
22278         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
22280         * lib-writ.ads: Document dummy D lines for missing files.
22282         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
22284 2001-12-17  Robert Dewar <dewar@gnat.com>
22286         * ali.adb: Type reference does not reset current file.
22288         * ali.adb: Recognize and scan renaming reference
22290         * ali.ads: Add spec for storing renaming references.
22292         * lib-xref.ads: Add documentation for handling of renaming references
22294         * lib-xref.adb: Implement output of renaming reference.
22296         * checks.adb:
22297         (Determine_Range): Document local variables
22298         (Determine_Range): Make sure Hbound is initialized. It looks as though
22299          there could be a real problem here with an uninitialized reference
22300          to Hbound, but no actual example of failure has been found.
22302 2001-12-17  Laurent Pautet <pautet@gnat.com>
22304         * g-socket.ads:
22305         Fix comment of Shutdown_Socket and Close_Socket. These functions
22306         should not fail silently because if they are called twice, this
22307         probably means that there is a race condition in the user program.
22308         Anyway, this behaviour is consistent with the rest of this unit.
22309         When an error occurs, an exception is raised with the error message
22310         as exception message.
22312 2001-12-17  Robert Dewar <dewar@gnat.com>
22314         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
22315         that it happens before modification of Sloc values for -gnatD.
22317         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
22318         so that it happens before modification of Sloc values for -gnatD.
22320         * switch.adb: Minor reformatting
22322 2001-12-15  Richard Henderson  <rth@redhat.com>
22324         * sem_ch7.adb: Wrap comment.
22326 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
22328         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
22329         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
22330         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
22331         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
22332         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
22333         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
22334         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
22335         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
22336         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
22337         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
22338         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
22339         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
22340         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
22341         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
22342         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
22343         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
22344         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
22345         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
22346         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
22347         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
22348         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
22349         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
22350         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
22351         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
22352         spelling errors.
22354 2001-12-14  Vincent Celier <celier@gnat.com>
22356         * osint.adb(Create_Debug_File): When an object file is specified,
22357         put the .dg file in the same directory as the object file.
22359 2001-12-14  Robert Dewar <dewar@gnat.com>
22361         * osint.adb: Minor reformatting
22363         * lib-xref.adb (Output_Instantiation): New procedure to generate
22364         instantiation references.
22366         * lib-xref.ads: Add documentation of handling of generic references.
22368         * ali.adb (Read_Instantiation_Ref): New procedure to read
22369         instantiation references
22371         * ali.ads: Add spec for storing instantiation references
22373         * bindusg.adb: Minor reformatting
22375         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22377         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22379         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22381         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22383         * csets.ads:
22384         Fix header format
22385         Add 2001 to copyright date
22386         Add entry for Latin-5 (Cyrillic ISO-8859-5)
22388 2001-12-14  Matt Gingell <gingell@gnat.com>
22390         * adaint.c: mktemp is a macro on Lynx and can not be used as an
22391         expression.
22393 2001-12-14  Richard Kenner <kenner@gnat.com>
22395         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
22396         if operand is CONSTRUCTOR.
22398 2001-12-14  Ed Schonberg <schonber@gnat.com>
22400         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
22401         before emiting check on right-hand side, so that exception information
22402         is correct.
22404 2001-12-14  Richard Kenner <kenner@gnat.com>
22406         * utils.c (create_var_decl): Throw away initializing expression
22407         if just annotating types and non-constant.
22409 2001-12-14  Vincent Celier <celier@gnat.com>
22411         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
22412         Default_Ada_...
22414         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22415         Remove functions.
22416         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
22418         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22419         Remove functions.
22420         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
22422 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
22424         * ChangeLog: Remove piece of diff output.
22426 2001-12-14  Geert Bosch <bosch@gnat.com>
22428         * config-lang.in: Update copyright notice
22430         * layout.adb: Remove commented out code.
22432         * mdllfile.ads: Update copyright notice. Fix header format.
22434         * sem_case.ads: Likewise.
22436         * sem_ch3.adb: Minor reformatting.
22438 2001-12-12  Geert Bosch <bosch@gnat.com>
22440         * freeze.ads: Update copyright date.
22442         * g-comlin.ads: Minor reformatting.
22444         * gnat-style.texi: Fix typo.
22446 2001-12-12  Geert Bosch <bosch@gnat.com>
22448         *  einfo.h: Regenerate.
22450 2001-12-12  Ed Schonberg <schonber@gnat.com>
22452         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
22453         on known node types, rather than untyped fields. Further cleanups.
22455 2001-12-12  Robert Dewar <dewar@gnat.com>
22457         * sem_ch12.adb:
22458         (Save_Entity_Descendant): Minor comment update.
22459         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
22460          of an N_Attribute_Reference node. As per note below, this does not
22461         eliminate need for Associated_Node in attribute ref nodes.
22462         (Associated_Node): Documentation explicitly mentions attribute
22463         reference nodes, since this field is used in such nodes.
22465         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
22467 2001-12-12  Robert Dewar <dewar@gnat.com>
22469         * s-stalib.adb: Add more comments on with statements being needed
22471         * par-ch12.adb: Minor reformatting
22473         * prj-dect.ads: Fix copyright header
22475         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
22476         inputs fit in 32 bits, but the result still overflows.
22478         * s-fatgen.ads: Minor comment improvement
22480 2001-12-12  Ed Schonberg <schonber@gnat.com>
22482         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
22483         formal derived type, look for an inherited component from the full
22484         view of the parent, if any.
22486 2001-12-12  Robert Dewar <dewar@gnat.com>
22488         * checks.ads (Apply_Alignment_Check): New procedure.
22490         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
22491         ensure that the alignment of objects with address clauses is
22492         appropriate, and raise PE if not.
22494         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
22495         Exp_Pakd.Known_Aligned_Enough
22497         * mdllfile.ads: Minor reformatting
22499         * mlib-fil.ads: Minor reformatting
22501 2001-12-12  Ed Schonberg <schonber@gnat.com>
22503         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
22504         fix to any component reference if enclosing record has non-standard
22505         representation.
22507 2001-12-12  Vincent Celier <celier@gnat.com>
22509         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
22510         Iteration
22512 2001-12-12  Ed Schonberg <schonber@gnat.com>
22514         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
22515         sem_attr.
22517 2001-12-12  Robert Dewar <dewar@gnat.com>
22519         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
22521 2001-12-12  Emmanuel Briot <briot@gnat.com>
22523         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
22524         and it adds dependencies to system.io.
22526 2001-12-12  Pascal Obry <obry@gnat.com>
22528         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
22529         variable name.
22531 2001-12-11  Ed Schonberg <schonber@gnat.com>
22533         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
22534         that is the parent of other generics, the instance body replaces the
22535         instance node.  Retrieve the instance of the spec, which is the one
22536         that is visible in clients and within the body.
22538 2001-12-11  Vincent Celier <celier@gnat.com>
22540         * gnatmain.adb: Initial version.
22542         * gnatmain.ads: Initial version.
22544         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
22546         * snames.adb: Updated to match snames.ads.
22548         * snames.ads: Added Gnatstub.
22550 2001-12-11  Vincent Celier <celier@gnat.com>
22552         * prj-attr.adb (Initialization_Data): Change name from
22553         Initialisation_Data.
22555 2001-12-11  Emmanuel Briot <briot@gnat.com>
22557         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
22558         + and * applied to backslashed expressions like \r.
22560 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
22562         * g-os_lib.ads: String_List type added, Argument_List type is now
22563         subtype of String_List.
22565 2001-12-11  Robert Dewar <dewar@gnat.com>
22567         * g-os_lib.ads: Change copyright to FSF
22568         Add comments for String_List type
22570 2001-12-11  Vincent Celier <celier@gnat.com>
22572         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
22573         string to the buffer).
22575 2001-12-11  Ed Schonberg <schonber@gnat.com>
22577         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
22578         sem_attr.
22580         * sem_attr.adb: Simplify previous fix for Address.
22581         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
22582         to avoid anomalies where the bound of the type appears to raise
22583         constraint error.
22585 2001-12-11  Robert Dewar <dewar@gnat.com>
22587         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
22588         handled.
22590 2001-12-11  Ed Schonberg <schonber@gnat.com>
22592         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
22593         renamed unit before checking for recursive instantiations.
22595 2001-12-11  Emmanuel Briot <briot@gnat.com>
22597         * prj.ads: Add comments for some of the fields.
22599 2001-12-11  Robert Dewar <dewar@gnat.com>
22601         * lib-xref.adb (Output_Refs): Don't output type references outside
22602         the main unit if they are not otherwise referenced.
22604 2001-12-11  Ed Schonberg <schonber@gnat.com>
22606         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
22607         code and diagnose additional illegal uses
22609         * sem_util.adb (Is_Object_Reference): An indexed component is an
22610         object only if the prefix is.
22612 2001-12-11  Vincent Celier <celier@gnat.com>
22614         * g-diopit.adb: Initial version.
22616         * g-diopit.ads: Initial version.
22618         * g-dirope.adb:
22619         (Expand_Path): Avoid use of Unbounded_String
22620         (Find, Wildcard_Iterator): Moved to child package Iteration
22622         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
22624 2001-12-11  Robert Dewar <dewar@gnat.com>
22626         * sem_attr.adb: Minor reformatting
22628 2001-12-11  Ed Schonberg <schonber@gnat.com>
22630         * sem_ch3.adb: Clarify some ???.
22632 2001-12-11  Robert Dewar <dewar@gnat.com>
22634         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
22635         Exp_Pakd.Known_Aligned_Enough
22637         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
22638         version is moved to Exp_Ch13.
22640 2001-12-11  Robert Dewar <dewar@gnat.com>
22642         * einfo.ads: Minor reformatting
22644         * exp_ch5.adb: Add comment for previous.change
22646         * ali.adb: New interface for extended typeref stuff.
22648         * ali.ads: New interface for typeref stuff.
22650         * checks.adb (Apply_Alignment_Check): New procedure.
22652         * debug.adb: Add -gnatdM for modified ALI output
22654         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
22656         * lib-xref.adb: Extend generation of <..> notation to cover
22657         subtype/object types. Note that this is a complete rewrite,
22658         getting rid of the very nasty quadratic algorithm previously
22659         used for derived type output.
22661         * lib-xref.ads: Extend description of <..> notation to cover
22662         subtype/object types. Uses {..} for these other cases.
22663         Also use (..) for pointer types.
22665         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
22667         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
22668         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
22670 2001-12-11  Vincent Celier <celier@gnat.com>
22672         * gnatcmd.adb:
22673         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
22674         Changed /BIND_ONLY to /ACTIONS=BIND
22675         Changed /LINK_ONLY to /ACTIONS=LINK
22677 2001-12-11  Ed Schonberg  <schonber@gnat.com>
22679         * sem_ch8.adb (Find_Selected_Component): improved search for a
22680         candidate package in case of error.
22682         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
22683         chain back on scope stack before reinstalling use clauses.
22685         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
22686         is enabled, do not kill the code for the condition, to preserve
22687         warning.
22689 2001-12-11  Robert Dewar <dewar@gnat.com>
22691         * checks.adb (Insert_Valid_Check): Apply validity check to expression
22692         of conversion, not to result of conversion.
22694 2001-12-11  Ed Schonberg <schonber@gnat.com>
22696         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
22697         before freezing parent. If the declarations are mutually recursive,
22698         an access to the current record type may be frozen before the
22699         derivation is complete.
22701 2001-12-05  Vincent Celier <celier@gnat.com>
22703         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
22704         -c /COMPILE_ONLY, -l /LINK_ONLY
22706         * opt.ads:
22707         (Bind_Only): New Flag
22708         (Link_Only): New flag
22710         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
22711         and -l (Link_Only)
22713         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
22715         * make.adb:
22716         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
22717         (Gnatmake): Set the step flags. Only perform a step if the
22718         corresponding step flag is True.
22719         (Scan_Make_Arg): Reset the bind and link step flags when -u
22720         or -gnatc has been specified.
22722 2001-12-05  Ed Schonberg <schonber@gnat.com>
22724         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
22725         get bounds from right operand.
22727         * sem_eval.adb: Minor reformatting
22729         * exp_util.adb (Make_Literal_Range): use bound of literal rather
22730         than Index'First, its lower bound may be different from 1.
22732         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
22733         and C48009J
22735 2001-12-05  Vincent Celier <celier@gnat.com>
22737         * prj-nmsc.adb Minor reformatting
22739         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
22740         set and libraries are not supported.
22742 2001-12-05  Ed Schonberg <schonber@gnat.com>
22744         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
22745         private view explicitly, so the back-end can treat as a global
22746         when appropriate.
22748 2001-12-05  Ed Schonberg <schonber@gnat.com>
22750         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
22751          unit, always replace instance node with new body, for ASIS use.
22753 2001-12-05  Vincent Celier <celier@gnat.com>
22755         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
22756         libraries are not supported and both attributes Library_Name and
22757         Library_Dir are specified.
22759         * prj-proc.adb (Expression): Set location of Result to location of
22760         first term.
22762         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
22763         (prj-nmsc is now importing MLib.Tgt)
22765         * prj-proc.adb: Put the change indicated above that was forgotten.
22767 2001-12-05  Robert Dewar <dewar@gnat.com>
22769         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
22771 2001-12-05  Ed Schonberg <schonber@gnat.com>
22773         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
22774         constraint, introduce explicit subtype declaration and derive from it.
22776         * sem_ch3.adb: Minor reformatting
22778 2001-12-05  Robert Dewar <dewar@gnat.com>
22780         * checks.adb (Determine_Range): Increase cache size for checks.
22781         Minor reformatting
22783         * exp_ch6.adb: Minor reformatting
22784         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
22785         a parameter whose root type is System.Address, since treating such
22786         subprograms as pure in the code generator is almost surely a mistake
22787         that will lead to unexpected results.
22789         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
22790         change handling of conversions.
22792         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
22794 2001-12-05  Ed Schonberg <schonber@gnat.com>
22796         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
22797         aggregate with static wrong size, attach generated Raise node to
22798         declaration.
22800 2001-12-05  Robert Dewar <dewar@gnat.com>
22802         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
22803         Fixes compilation abandoned bomb in B24009B.
22805 2001-12-05  Ed Schonberg <schonber@gnat.com>
22807         * sem_ch12.adb:
22808         Document use of Associated_Node on Selected_Components.
22809         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
22810         to clarify use of untyped descendant fields.
22812 2001-12-05  Robert Dewar <dewar@gnat.com>
22814         * prj-dect.ads: Add ??? comment
22815         Add 2001 to copyright notice (was not done in after all)
22817         * prj-part.adb: Minor reformatting. Reword one awkward error message.
22819         * prj.ads: Minor reformatting throughout, and add some ??? comments
22821         * snames.ads: Minor reformatting
22823 2001-12-05  Geert Bosch <bosch@gnat.com>
22825         * snames.adb: Autoupdate
22827 2001-12-05  Vincent Celier <celier@gnat.com>
22829         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
22831         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
22833         * prj-env.adb: Minor comment changes (modifying -> extends).
22835         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
22837         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
22838         Tok_Extends.
22840         * prj.adb (Initialize): Change Modifying to Extends.
22842         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
22844         * prj.ads: Minor comment change (Modifying -> extending).
22846         * snames.ads: Change modifying to extends.
22848 2001-12-05  Robert Dewar <dewar@gnat.com>
22850         * sem_warn.adb: Remove stuff for conditionals, we are not going to
22851         do this after all.
22853         * sem_warn.ads: Remove stuff for conditionals, we are not going to
22854         do this after all.  Add 2001 to copyright notice
22856 2001-12-04  Geert Bosch <bosch@gnat.com>
22858         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
22860 2001-12-04  Robert Dewar <dewar@gnat.com>
22862         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
22863         location if we already have errors. Stops some cases of cascaded
22864         errors.
22866         * errout.adb: Improve comment.
22868 2001-12-04  Robert Dewar <dewar@gnat.com>
22870         * sem_ch12.adb:
22871         (Analyze_Formal_Type_Definition): Defend against Error.
22872         (Analyze_Formal_Subprogram): Defend against Error.
22874         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
22875         remove following semicolon if present. Removes cascaded error.
22877 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
22879         * bindgen.adb:
22880         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
22881          exceptions equals 0.
22882         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
22883         Fixes PIWG E tests (which have to be run with -gnatL).
22885 2001-12-04  Robert Dewar <dewar@gnat.com>
22887         * einfo.ads: Minor reformatting
22889 2001-12-04  Ed Schonberg <schonber@gnat.com>
22891         * einfo.ads: Block_Node points to the identifier of the block, not to
22892         the block node itself, to preserve the link when the block is
22893         rewritten, e.g. within an if-statement with a static condition.
22895         * inline.adb (Cleanup_Scopes): recover block statement from block
22896         entity using new meaning of Block_Node.
22898         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
22899         identifier of block node, rather than to node itself.
22901 2001-12-04  Gary Dismukes <dismukes@gnat.com>
22903         * layout.adb:
22904         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
22905         (Discrimify): Go back to setting the Etypes of the selected component
22906         because the Vname component does not exist at this point and will
22907         fail name resolution. Also set Analyzed.
22908         Remove with and use of Sem_Res.
22910 2001-12-04  Arnaud Charlet <charlet@gnat.com>
22912         * Makefile.in: (HIE_SOURCES): add s-fat*.
22914 2001-12-04  Robert Dewar <dewar@gnat.com>
22916         * sem_attr.adb:
22917         (Compile_Time_Known_Attribute): New procedure.
22918         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
22919          proper range check.
22921 2001-12-04  Ed Schonberg <schonber@gnat.com>
22923         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
22924         processing discriminants to diagnose illegal default values.
22926 2001-12-04  Ed Schonberg <schonber@gnat.com>
22928         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
22929         access discriminant within a type extension that constrains its
22930         parent discriminants.
22932 2001-12-04  Ed Schonberg <schonber@gnat.com>
22934         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
22935         is malformed, use instance of Any_Id to allow analysis to proceed.
22937         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
22938         type definition is illegal.
22939         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
22940         misplaced.
22942 2001-12-04  Ed Schonberg <schonber@gnat.com>
22944         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
22945         constants.
22947 2001-12-04  Robert Dewar <dewar@gnat.com>
22949         * errout.adb: Minor reformatting
22951 2001-12-04  Robert Dewar <dewar@gnat.com>
22953         * exp_util.adb: Minor reformatting from last change
22955         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
22956         which is a rewriting of an expression, traverse the original
22957         expression to remove warnings that may have been posted on it.
22959 2001-12-04  Ed Schonberg <schonber@gnat.com>
22961         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
22962         record that has other packed components.
22964 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
22966         * adaint.c: Minor cleanups.
22968 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
22970         * adaint.c: Do not use utime.h on vxworks.
22972 2001-12-04  Arnaud Charlet <charlet@gnat.com>
22974         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
22975         more confusion than it solves.
22977 2001-12-04  Geert bosch <bosch@gnat.com>
22979         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
22981 2001-12-04  Geert Bosch  <bosch@gnat.com>
22983         * Makefile.in (update-sources): New target.
22984         For use by gcc_release script.
22986 2001-12-04  Ed Schonberg <schonber@gnat.com>
22988         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
22989         a configuration pragma, it is now legal wherever a pragma can appear.
22991 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
22993         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
22994         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
22995         is now @CROSS@ -DIN_GCC; update comment.
22997 2001-12-04  Robert Dewar <dewar@gnat.com>
22999         * einfo.adb (Has_Pragma_Pure_Function): New flag.
23000         Fix problem that stopped ceinfo from working
23002         * einfo.ads (Has_Pragma_Pure_Function): New flag.
23004         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
23006 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
23008         * gnatchop.adb:
23009         (File_Time_Stamp): New procedure.
23010         (Preserve_Mode): New boolean.
23011         (Write_Unit): Pass time stamp.
23012         Implement -p switch (preserve time stamps).
23014         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
23016         * gnatchop.adb: Do usage info for -p switch
23018         * adaint.h (__gnat_set_file_time_name): New function
23020         * adaint.c (__gnat_set_file_time_name): Implement
23022         * adaint.h: Fix typo
23024 2001-12-03  Robert Dewar <dewar@gnat.com>
23026         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
23027         have Associated_Node.
23029 2001-12-03  Robert Dewar <dewar@gnat.com>
23031         * prj-proc.adb: Minor reformatting
23033         * make.adb: Minor reformatting
23035 2001-12-03  Geert Bosch <bosch@gnat.com>
23037         * make.adb: Minor reformatting.
23039 2001-12-03 Robert Dewar  <dewar@gnat.com>
23041         * sem_ch12.adb: Minor reformatting
23043 2001-12-03  Ed Schonberg <schonber@gnat.com>
23045         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
23046         push Standard on the stack before analyzing the instance body,
23047         in order to have a clean visibility environment.
23049         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
23051 2001-12-03  Ed Schonberg <schonber@gnat.com>
23053         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
23054         instantiation of a body that contains an inlined body.
23056 2001-12-03  Ed Schonberg <schonber@gnat.com>
23058         * sem_ch12.adb:
23059         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
23060         to prevent freezing within formal packages.
23061         (Freeze_Subprogram_Body): If body comes from another instance that
23062         appeared before its own body, place freeze node at end of current
23063         declarative part, to prevent a back-end crash.
23064         (Inline_Instance_Body): Handle properly a package instance within
23065         a subprogram instance that is a child unit.
23067 2001-12-01  Graham Stott  <grahams@redhat.com>
23069         * Makefile.in (misc.o): Add missing $(srcdir) prefix
23070         and add optabs.h dependency.
23072         * misc.c: Include optabs.h
23073         (gnat_tree_code_type): Make static and const.
23074         (gnat_tree_code_length): Likewise.
23075         (gnat_tree_code_name): Likewise.
23076         (update_setjmp_buf): Obtain operands mode from insn_data.
23078 2001-11-29  Richard Henderson  <rth@redhat.com>
23080         * init.c: Remove obsolete dwarf2 frame.h section.
23082 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
23084         * Make-lang.in (ada.generated-manpages): New dummy target.
23086 2001-11-29  Ed Schonberg <schonber@gnat.com>
23088         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
23089         into Command, an array conversion is illegal here. Uncovered by
23090         ACATS B460005.
23092 2001-11-28  Geert Bosch <bosch@gnat.com>
23094         * init.c: Minor whitespace changes.
23096 2001-11-28  Doug Rupp <rupp@gnat.com>
23098         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
23099         signal stack.
23101 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
23103         * misc.c (gnat_expand_constant): Move declaration above
23104         definition of lang_hooks.
23105         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
23106         (gnat_init): lang_expand_constant no longer exists.
23108         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
23109         always have vprintf.
23110         (gnat_init): Always call set_internal_error_function.
23112 2001-11-27  Andreas Jaeger  <aj@suse.de>
23114         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
23116 2001-11-27  Laurent Guerby  <guerby@acm.org>
23118         * Makefile.in: Regenerate Ada dependencies.
23120 2001-11-26  Richard Henderson  <rth@redhat.com>
23122         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
23123         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
23124         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
23126 2001-11-25  Laurent Guerby  <guerby@acm.org>
23128         * sysdep.c (rts_get_*): Fix style.
23130 2001-11-19  Laurent Guerby  <guerby@acm.org>
23132         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
23133         since it is of no apparent use and cause warnings.
23135 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
23137         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
23138         static too.
23139         (gnat_init): Don't return NULL.
23140         (finish_parse): Remove.
23142 2001-11-17  Laurent Guerby  <guerby@acm.org>
23144         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
23145         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
23146         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
23147         * lang-spec.h: Add missing struct field to silence warnings.
23148         * sysdep.c (rts_get_*): Provide K&R prototype.
23149         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
23150         * traceback.c (Unlock_Task, Lock_Task): Likewise.
23151         * tracebak.c (__gnat_backtrace): Remove unused variable.
23152         * utils.c (end_subprog_body): Move to K&R style.
23154 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23156         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
23158 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
23160         * misc.c (gnat_init): Change prototype.  Include the
23161         functionality of the old init_parse and init_decl_processing.
23162         (gnat_init_decl_processing): New prototype.
23163         (init_parse): Remove.
23164         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
23166 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
23168         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
23169         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
23170         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
23171         set_yydebug): Remove.
23173 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
23175         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
23176         (struct lang_hooks): Constify.
23177         (language_string, lang_identify): Remove.
23178         * utils.c (init_decl_processing): Update.
23180 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
23182         * misc.c: Include langhooks-def.h.
23183         * Makefile.in: Update.
23185 2001-10-30  Robert Dewar <dewar@gnat.com>
23187         * style.adb:
23188         (Check_Identifier): Rewrite circuit to be compatible with use of letters
23189         in the upper half of ASCII.
23190         (Check_Identifier): Minor reformatting
23192 2001-10-30  Geert Bosch <bosch@gnat.com>
23194         * (Associated_Node, Set_Associated_Node): Do not check for
23195         Freeze_Entity.
23197 2001-10-30  Robert Dewar <dewar@gnat.com>
23199         * a-reatim.ads: Minor reformatting
23201 2001-10-30  Robert Dewar <dewar@gnat.com>
23203         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
23204         undocumented declarations.
23206 2001-10-30  Pascal Obry <obry@gnat.com>
23208         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
23209         to the binder and linker.
23210         Minor style fix.
23212         * mdll.ads: Fix layout.  Update copyright notice.
23214         * mdll.adb: Fix layout.  Update copyright notice.
23216 2001-10-30  Robert Dewar <dewar@gnat.com>
23218         * usage.adb: Minor fix to output for -gnaty.
23220 2001-10-30  Ed Schonberg <schonber@gnat.com>
23222         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
23223         to accommodate all its possible values.
23225         * a-reatim.adb (Split): Special-case handling of Time_Span_First
23226         and of small absolute values of T.
23228 2001-10-30  Richard Kenner <kenner@gnat.com>
23230         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
23231         set_mem_attributes since not needed and wrong if RESULT if a REG;
23232         fixes ACATS failures.
23234 2001-10-30  Geert Bosch <bosch@gnat.com>
23236         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
23237         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
23239 2001-10-30  Robert Dewar <dewar@gnat.com>
23241         * bindusg.adb: Undocument -f switch.
23243         * gnatcmd.adb: Remove /FULL_ELABORATION.
23245         * opt.ads (Force_RM_Elaboration_Order): Document that this is
23246         obsolescent.
23248         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
23250         * gnatbind.adb: Minor update of warning msg.
23252 2001-10-30  Vincent Celier <celier@gnat.com>
23254         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
23255         for project file switches (-P (/PROJECT_FILE=),
23256          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
23257         or MEDIUM or HIGH)
23259 2001-10-30  Geert Bosch <bosch@gnat.com>
23261         * decl.c: Minor whitespace fixes.
23263 2001-10-30  Richard Kenner <kenner@gnat.com>
23265         * utils2.c (build_allocator): Test for SIZE overflow in array case too
23267 2001-10-30  Geert Bosch <bosch@gnat.com>
23269         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
23270         Found due to GCC 3.0 warning of using uninitialized value.
23272         * layout.adb:
23273         (Get_Max_Size): Use variant record for tracking value/expression.
23274          Makes logic clearer and prevents warnings for uninitialized variables.
23275         (Layout_Array_Type): Use variant record for tracking value/expression.
23276          Makes logic clearer and prevents warnings for uninitialized variables.
23278 2001-10-30  Robert Dewar <dewar@gnat.com>
23280         * lib.adb: Minor reformatting
23282         * s-taprop.ads: Minor reformatting
23284 2001-10-29  Laurent Guerby  <guerby@acm.org>
23286         * init.c:
23287         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
23288         const.
23289         (_gnat_error_handler): Make MSG const.
23291 2001-10-29  Richard Kenner <kenner@gnat.com>
23293         * sysdep.c: Fix localtime_r problem on LynxOS.
23294         Also remove #elif to avoid warnings.
23296         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
23297         used by this.
23299         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
23301 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
23303         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
23304         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
23305         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
23306         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
23307         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
23308         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
23309         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
23310         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
23311         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
23312         types.ads, urealp.adb: Fix spelling errors.
23314 2001-10-27  Laurent Guerby <guerby@acm.org>
23316         * trans.c (gigi): Fix non determinism leading to bootstrap
23317         comparison failures for debugging information.
23319 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
23321         * gnat_rm.texi: Use @./@: where appropriate.
23323 2001-10-26  Robert Dewar <dewar@gnat.com>
23325         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
23327 2001-10-26  Richard Kenner <kenner@gnat.com>
23329         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
23331 2001-10-26  Richard Kenner <kenner@gnat.com>
23333         * decl.c (validate_size): Modify message for bad size to avoid
23334         implication that compiler is modifying the size.
23336 2001-10-26  Robert Dewar <dewar@gnat.com>
23338         * prj-util.adb: Minor reformatting. Fix bad header format.
23340 2001-10-26  Robert Dewar <dewar@gnat.com>
23342         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
23344         * sinfo.ads: Clarify use of Associated_Node (documentation only).
23346         * sem_ch12.adb: Change Node4 to Associated_Node. Change
23347         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
23348         much more narrowly in places where needed. These are cleanups.
23350 2001-10-26  Joel Brobecker <brobecke@gnat.com>
23352         * 5zosinte.ads (null_pthread): new constant.
23354         * 5ztaprop.adb:
23355         (Initialize_TCB): Initialize thread ID to null, to be able to verify
23356          later that this field has been set.
23357         (Finalize_TCB): ditto.
23358         (Suspend_Task): Verify that the thread ID is not null before using it.
23359         (Resume_Task): ditto.
23361         * s-tasdeb.adb:
23362         (Resume_All_Tasks): Lock the tasks list before using it.
23363         (Suspend_All_Tasks): ditto.
23365 2001-10-26  Richard Kenner <kenner@gnat.com>
23367         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
23368         Make constant variant of designated type for Is_Access_Constant.
23369         Call update_pointer_to with main variant.
23371         * trans.c (process_freeze_entity, process_type):
23372         Call update_pointer_to on main variant.
23374         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
23375         If main variant, update all other variants.
23377         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
23378         TREE_STATIC.
23380 2001-10-26  Robert Dewar <dewar@gnat.com>
23382         * prj-util.adb: Minor reformatting
23384 2001-10-26  Robert Dewar <dewar@gnat.com>
23386         * prj-util.adb: Minor reformatting
23388 2001-10-26  Robert Dewar <dewar@gnat.com>
23390         * prj-attr.adb: Minor reformatting throughout
23392 2001-10-26  Robert Dewar <dewar@gnat.com>
23394         * prj-attr.ads: Minor reformatting
23395         Add ??? comment (this whole spec has almost no comments)
23397 2001-10-26  Vincent Celier <celier@gnat.com>
23399         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
23400         ("//") that precede the drive letter on Interix.
23402 2001-10-26  Geert Bosch <bosch@gnat.com>
23404         * gnat_rm.texi: Add GNAT Reference Manual.
23406 2001-10-25  Robert Dewar <dewar@gnat.com>
23408         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
23409         is Error. Similar change for other renaming cases.
23411 2001-10-25  Robert Dewar <dewar@gnat.com>
23413         * s-atacco.ads: Add pragma Inline_Always for functions.
23414         Fix header format. Add copyright 2001
23416 2001-10-25  Ed Schonberg <schonber@gnat.com>
23418         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
23419         return Error rather than Empty so that analysis can proceed.
23421 2001-10-25  Ed Schonberg <schonber@gnat.com>
23423         * sem_util.adb (Enter_Name): better handling of cascaded error
23424         messages when a unit appears in its own context.
23426 2001-10-25  Ed Schonberg <schonber@gnat.com>
23428         * sem_util.adb (Defining_Entity): in case of error, attach created
23429         entity to specification, so that semantic analysis can proceed.
23431 2001-10-25  Robert Dewar <dewar@gnat.com>
23433         * sem_util.adb
23434         (Defining_Entity): Deal with Error.
23435         (Process_End_Label): Deal with bad end label for.
23437 2001-10-25  Ed Schonberg <schonber@gnat.com>
23439         * sem_elab.adb (Check_A_Call): refine message when call is in an
23440         instance but callee is not declared in the generic unit.
23442 2001-10-25  Ed Schonberg <schonber@gnat.com>
23444         * sem_elab.adb (Check_A_Call): check for renaming before finding the
23445         enclosing unit, which may already be different from the calling unit.
23447 2001-10-25  Geert Bosch <bosch@gnat.com>
23449         * 4gintnam.ads: fix header format.
23451 2001-10-25  Ed Schonberg <schonber@gnat.com>
23453         * sem_res.adb (Resolve_Call): if the call is actually an indexing
23454         operation on the result of a parameterless call, perform elaboration
23455         check after the node has been properly rewritten.
23457         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
23458         inlined within the generic tree, the defining identifier is not a
23459         compilation_unit.
23461 2001-10-25  Ed Schonberg <schonber@gnat.com>
23463         * sem_res.adb (Resolve): special-case resolution of Null in an
23464          instance or an inlined body to avoid view conflicts.
23466         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
23467          compatibility by retrieving the access type of the generic copy.
23469 2001-10-25  Robert Dewar <dewar@gnat.com>
23471         * sem_ch3.adb:
23472         (Analyze_Number_Declaration): Handle error expression.
23473         (Signed_Integer_Type_Declaration): Handle error bound.
23474         (Analyze_Subtype_Indication): Handle error range.
23476         * sem_util.adb (Get_Index_Bounds): Check for Error.
23478 2001-10-25  Robert Dewar <dewar@gnat.com>
23480         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
23481         in no run time mode.
23483 2001-10-25  Pascal Obry <obry@gnat.com>
23485         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
23486         mode case for ALLOC case.
23488         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
23489         all platforms. Improvement of last change.
23491 2001-10-25  Robert Dewar <dewar@gnat.com>
23493         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
23495 2001-10-25  Geert Bosch  <bosch@gnat.com>
23497         * osint.adb (Is_Relative): Remove duplicate.
23499 2001-10-25  Pascal Obry <obry@gnat.com>
23501         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
23502         pathnames in UNIX and DOS style with drive letter.
23503         (Is_Relative): new routine.
23505         * osint.adb: Minor reformatting
23507         * osint.adb (Is_Relative): implementation using
23508         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
23510 2001-10-25  Pascal Obry <obry@gnat.com>
23512         * g-dirope.adb (Basename): correctly compute offset between the
23513         original Path and the translated one.
23515         * g-dirope.adb: (Base_Name): add some comments.
23517 2001-10-25  Robert Dewar <dewar@gnat.com>
23519         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
23520         in HIE mode, avoids compilation abandoned message
23522         * exp_imgv.adb: Correct typo in previous change
23524         * exp_imgv.adb: Correct typo in previous change (not my day!)
23526 2001-10-25  Robert Dewar <dewar@gnat.com>
23528         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
23530 2001-10-25  Pascal Obry <obry@gnat.com>
23532         * g-awk.ads: Move all pragma inlines next to the routine
23533          declarations. This is more uniform with other GNAT spec.
23535 2001-10-22  Geert Bosch  <bosch@gnat.com>
23537         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
23539 2001-10-19  Geert Bosch  <bosch@gnat.com>
23541         * Makefile.in (tools, gnattools): Remove gnatmem.
23543 2001-10-17  Richard Henderson  <rth@redhat.com>
23545         * Makefile.in (misc.o): Depend on langhooks.h.
23546         * misc.c: Include it.
23547         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
23548         (LANG_HOOKS_DECODE_OPTION): New.
23549         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
23551 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
23553         * trans.c (tree_transform): Adjust to recent change in
23554         expand_asm_operands to implement named asm operands.
23556 2001-10-11  Ed Schonberg  <schonber@gnat.com>
23558         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
23559         renaming of discriminant for mutable record type.
23561 2001-10-11  Robert Dewar  <dewar@gnat.com>
23563         * validsw.adb: Properly save -gnatVn status.
23565 2001-10-11  Robert Dewar <dewar@gnat.com>
23567         * usage.adb: Add lines for V switch.
23569         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
23570         (/VALIDITY_CHECKING).
23572 2001-10-11  Ed Schonberg <schonber@gnat.com>
23574         * sem_type.adb (Add_One_Interp): an operator for a type declared in
23575         an extension of System is known to be visible.
23577 2001-10-11  Ed Schonberg <schonber@gnat.com>
23579         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
23580         properly. Fixes regression on ACATS C34005G.
23582 2001-10-11  Robert Dewar <dewar@gnat.com>
23584         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
23585         loop in generic instance, since this is likely not very useful.
23587 2001-10-11  Robert Dewar <dewar@gnat.com>
23589         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
23590         the error message for high integrity mode.
23592         * rtsfind.adb (RTE): Give message if we try to find an entity that
23593         is not available in high integrity mode.
23595         * rtsfind.ads:
23596         (OK_To_Use_In_HIE_Mode): New array.
23597         (RTE): May return Empty in high integrity mode.
23599         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
23600         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
23602         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
23603         unit if not inlined always and in no runtime mode. Fixes problem
23604         caused by new Rtsfind changes.
23606         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
23607         body is deleted.
23609         * rtsfind.adb (RTE): Make sure we do not try to load unit after
23610         giving message for entity not available in high integrity mode.
23612 2001-10-11  Pascal Obry <obry@gnat.com>
23614         * impunit.adb: Add GNAT.CRC32.
23616 2001-10-11  Ed Schonberg <schonber@gnat.com>
23618         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
23619         properly the case where one universal operand in a non-static
23620         exponentiation of a real literal.
23622 2001-10-11  Ed Schonberg <schonber@gnat.com>
23624         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
23625         clause, return the gobal finalization list, for lack of anthing else.
23627 2001-10-11  Ed Schonberg <schonber@gnat.com>
23629         * exp_ch7.adb (Make_Transient_Block): if statement is within
23630         exception handler, always use new transient scope to place Clean
23631         procedure.
23633 2001-10-11  Pascal Obry <obry@gnat.com>
23635         * Makefile.in:
23636         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
23637         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
23638         (GNATLS_RTL_OBJS): add g-crc32.o
23639         (GNATMAKE_RTL_OBJS): add g-crc32.o
23641         * ali-util.adb:
23642         (CRC_Match): new function.
23643         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
23644         instead of the previous simple checksum algorithm.
23645         (Time_Stamp_Mismatch): use CRC_Match for comparison.
23646         (Set_Source_Table): idem.
23648         * ali-util.ads:
23649         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
23650         instead of simple checksum.
23651         (CRC_Match): new function.
23652         (CRC_Error): new constant.
23654         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
23655         a CRC now and not a simple checksum. A CRC uses lower-case hex
23656         letters, fixes ambiguity in parsing.
23658         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
23659         is what this variable will store.
23661         * bcheck.adb: Change reference to chechsum in comments by CRC.
23662         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
23663         rename All_Checksum_Match to All_CRC_Match. Change due to API
23664         renaming since now GNAT does not use a simple checksum but a
23665         CRC using GNAT.CRC32.
23667         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
23668         now and not anymore a simple checksum.
23670         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
23671         places.
23673         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
23675         * scans.adb:
23676         (Restore_Scan_State): rename Checksum to CRC.
23677         (Save_Scan_State): idem.
23679         * scans.ads:
23680         With GNAT.CRC32.
23681         (Checksum): rename to CRC.
23682         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
23684         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
23685         GNAT.CRC32).  Update copyright notice.
23687         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
23688         GNAT.CRC32).  Update copyright notice.
23690         * scn.adb:
23691         (Accumulate_Checksum): removed.
23692         (Update): new procedure. Add a wide-character into the CRC.
23694         * sinput-l.adb:
23695         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
23696         (Load_File): fix initialization of S (change Source_Checksum to
23697         Source_CRC)
23699         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
23700         Source_CRC in S initialization.
23702         * sinput.adb (Source_Checksum): renamed to Source_CRC.
23704         * sinput.ads (Source_Checksum): renamed to Source_CRC.
23705         Update comments for the CRC.
23707         * types.adb (Hex): Use lowercase for the letter part.
23709         * types.ads (Get_Hex_String): Returns the hexadecimal representation
23710         for a word. This is currently used only for CRC. In previous version,
23711         the checksum was using a representation with all letter being
23712         upper-case. With the new implementation (using CRC) we do not remove
23713         the 32th bit of the CRC, so we can have an upper-case starting letter
23714         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
23715         It is ambigous since the CRC was optional and could be followed by
23716         options like EB, EE. So now this routines uses lower-case letter for
23717         the hexadecimal representation. Strange enough only lower case letters
23718         where checked in Scan_ALI (even if this was not a possible case).
23720         * gnatvsn.ads (Library_Version): changed to 3.15a.
23722         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
23723         for the compiler.
23725         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
23726         for the compiler.
23728         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
23729         Add 2001 to copyright notice
23730         (Accumulate_Checksum): Modify to use System.CRC32.
23732         * ali-util.ads: Redo changes of previous revision to continue to use
23733         the word Checksum. Add 2001 to copyright notice.
23735         * ali.adb: Undo some of previous changes, not needed.
23736         Keep the change for lower case letters in the checksum.
23738         * ali.ads: Undo previous change not needed.
23740         * bcheck.adb: Undo most of previous change, not needed.
23741         But do use Checksums_Match for checksum comparison.
23743         * gnatls.adb: Undo most of previous change, not needed.
23744         But do use Checksums_Match for comparing checksums.
23746         * lib-load.adb: Undo previous change, not needed.
23748         * lib-writ.adb: Undo previous change, not needed.
23750         * lib-writ.ads: Document that checksums use lower case,
23751         not upper case letters.
23753         * scans.adb: Undo previous change, not needed
23755         * scans.ads: Undo previous change, not needed.
23757         * scn-nlit.adb: Undo previous changes, not needed.
23759         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
23761         * scn.adb:
23762         (Accumulate_Checksum): Use System.CRC32.
23763         (Initialize_Checksum): New procedure.
23764         Remove other changes of previous revision.
23766         * sinput-p.adb: Undo previous change, not needed.
23768         * sinput.adb: Undo previous change, not needed.
23770         * sinput-l.adb: Undo previous change, not needed.
23772         * sinput.ads: Undo previous change, not needed.  Keep only comment
23773         on new checksum algorithm
23775         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
23776         Also remove a-tags and a-stream from GNAT sources.
23778         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
23780         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
23782 2001-10-11  Geert Bosch  <bosch@gnat.com>
23784         * einfo.h: Regenerate.
23786         * nmake.ads: Regenerate.
23788         * nmake.adb: Regenerate.
23790         * sinfo.h: Regenerate.
23792         * treeprs.adb: Regenerate.
23794 2001-10-10  Geert Bosch  <bosch@gnat.com>
23796         * gnat-style.texi: New file describing coding guidelines for Ada.
23798 2001-10-10  Ed Schonberg <schonber@gnat.com>
23800         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
23801         is Flag174.
23803 2001-10-10  Geert Bosch  <bosch@gnat.com>
23805         * snames.ads: Add new names for project facility.
23807         * snames.adb: Update to reflect snames.ads changes.
23809         * snames.h: Update to reflect snames.ads changes.
23811 2001-10-10  Vincent Celier <celier@gnat.com>
23813         * make.adb:
23814         (Add_Switches): reflect the changes for the switches attributes
23815         Default_Switches indexed by the programming language,
23816         Switches indexed by the file name.
23817         (Collect_Arguments_And_Compile): Idem.
23818         Reflect the attribute name changes.
23820         * prj-attr.adb:
23821         (Initialisation_Data): Change the names of some packages and
23822         attributes.
23823         (Initialize): process case insensitive associative arrays.
23825         * prj-attr.ads:
23826         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
23828         * prj-dect.adb:
23829         (Parse_Attribute_Declaration): For case insensitive associative
23830          arrays, set the index string to lower case.
23832         * prj-env.adb:
23833         Reflect the changes of the project attributes.
23835         * prj-nmsc.adb:
23836         Replace Check_Naming_Scheme by Ada_Check and
23837         Language_Independent_Check.
23839         * prj-nmsc.ads:
23840         Replaced Check_Naming_Scheme by 2 procedures:
23841         Ada_Check and Language_Independent_Check.
23843         * prj-proc.adb:
23844         (Process_Declarative_Items): For case-insensitive associative
23845         arrays, set the index string to lower case.
23846         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
23847         Prj.Nmsc.Check_Naming_Scheme.
23849         * prj-tree.adb:
23850         (Case_Insensitive): New function
23851         (Set_Case_Insensitive): New procedure
23853         * prj-tree.ads:
23854         (Case_Insensitive): New function
23855         (Set_Case_Insensitive): New procedure
23856         (Project_Node_Record): New flag Case_Insensitive.
23858         * prj-util.adb:
23859         (Value_Of): new function to get the string value of a single
23860         string variable or attribute.
23862         * prj-util.ads:
23863         (Value_Of): new function to get the string value of a single
23864         string variable or attribute.
23866         * prj.adb:
23867         (Ada_Default_Spec_Suffix): New function
23868         (Ada_Default_Impl_Suffix): New function
23869         Change definitions of several constants to reflect
23870         new components of record types.
23872         * prj.ads:
23873         (Naming_Data): Change several components to reflect new
23874         elements of naming schemes.
23875         (Project_Data): New flags Sources_Present and
23876         Language_Independent_Checked.
23877         (Ada_Default_Spec_Suffix): New function.
23878         (Ada_Default_Impl_Suffix): New function.
23880         * snames.ads:
23881         Modification of predefined names for project manager: added
23882         Implementation, Specification_Exceptions, Implementation_Exceptions,
23883         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
23884         Default_Switches, _Languages, Builder, Cross_Reference,
23885         Finder. Removed Body_Part, Specification_Append, Body_Append,
23886         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
23887         Gnatlink.
23889         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
23890         Add comments.
23892         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
23893         not that it is Nil_Variable_Value.
23895         * prj.ads: Add ??? for uncommented declarations
23897 2001-10-10  Ed Schonberg <schonber@gnat.com>
23899         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
23900         constant, do not indicate possible modification, so that gigi can
23901         treat it as a bona fide constant.
23903 2001-10-10  Robert Dewar <dewar@gnat.com>
23905         * sem_prag.adb: Add processing for pragma External.
23907         * snames.ads: Add entry for pragma External.
23909         * par-prag.adb: Add pragma External.
23911         * snames.adb: Updated to match snames.ads.
23913 2001-10-10  Ed Schonberg <schonber@gnat.com>
23915         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
23916         a dynamic task if the allocator appears in an indexed assignment
23917         or selected component assignment.
23919         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
23920         For a dynamic task in an assignment statement, use target of
23921         assignment to generate meaningful name.
23923 2001-10-10  Ed Schonberg <schonber@gnat.com>
23925         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
23926         a generic package.
23928         * einfo.ads: Body_Entity is also defined for generic package.
23929         Documentation change only
23931         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
23932         others_choice for a discriminated component initialization,
23933         convert discriminant references into the corresponding discriminals.
23935         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
23936         only if original type is private and expression has to be wrapped
23937         in a conversion.
23939         * checks.adb:
23940         (Apply_Constraint_Check): Do not perform length check
23941         if expression is an aggregate with only an others_choice.
23942         (Length_N_Cond): two references to the same in_parameter
23943         (typically the discriminal in an init_proc) denote the same value.
23944         Two useful optimization uncovered by bugfixes above.
23946 2001-10-10  Robert Dewar <dewar@gnat.com>
23948         * xeinfo.adb: Change int to char in translation of enumeration types.
23949         This fixes a problem in the C representation of component alignment.
23950         Add 2001 to copyright notice
23952 2001-10-10  Richard Kenner <kenner@gnat.com>
23954         * decl.c: (validate_size): Do check size of object of integral type
23955         if it is a packed array type.
23957 2001-10-10  Richard Kenner <kenner@gnat.com>
23959         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
23960         VAR_DECL for constant if not Is_Public but -O0.
23962 2001-10-10  Richard Kenner  <kenner@gnat.com>
23964         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
23966 2001-10-10  Geert Bosch  <bosch@gnat.com>
23968         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
23969         use '/' as switch character, allowing for absolute file names.
23971 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
23973         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
23974         FSF address.
23976 2001-10-08  Geert Bosch  <bosch@gnat.com>
23978         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
23979         Automatically build utilities when files need to be regenerated.
23981 2001-10-08  Geert Bosch  <bosch@gnat.com>
23983         * xsnames.adb: New utility for updating snames.ads and snames.adb
23985 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
23987         * Make-lang.in (ADAFLAGS): Add -W -Wall.
23988         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
23989         (gnat1): Also depend on attribs.o.
23990         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
23991         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
23992         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
23993         (ADAFLAGS): Add -W -Wall.
23994         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
23995         take out CFLAGS.
23997         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
23998         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
23999         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
24000         Use $(ADAC), not $(CC), as compilation command.
24002         (gnattools): Depend directly on tools to build, don't use
24003         recursive make.
24004         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
24006         * einfo.h, sinfo.h: New files (autogenerated).
24008 2001-10-08  Richard Henderson  <rth@redhat.com>
24010         * comperr.adb (Abort_In_Progress): New.
24011         (Compiler_Abort): Use it to prevent recursion.
24013 2001-10-08  Robert Dewar <dewar@gnat.com>
24015         * atree.adb: Set Error_Posted in Error node, helps error recovery.
24017         * par-endh.adb (Output_End_Expected): We should also not test
24018         Error_Posted on the Error node, since now it is always set.
24020         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
24021         to help error recovery. Part of general work on 9407-004.
24023         * par.adb: Add ??? for misuse of error
24025         * sem_res.adb:
24026         (Resolve): Defend against Error, fixes 9407-003.
24027         (Resolve_Discrete_Subtype_Indication): Defend against Error.
24029         * sinfo.ads (N_Error): Now has Etype field (which will be set
24030         to Any_Type to help error recovery).
24032 2001-10-08  Richard Kenner (kenner@gnat.com)
24034         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
24035         Consistently set MEM attributes from expression; fixes
24036         bootstrap failure on x86.
24038 2001-10-08  Geert Bosch  (bosch@gnat.com)
24040         * 5oosinte.adb: Add 2001 to copyright notice.
24042 2001-10-08  Geert Bosch  (bosch@gnat.com)
24044         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
24046         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
24048 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
24050         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
24052 2001-10-05  Geert Bosch  (bosch@gnat.com)
24054         * adaint.h: Small formatting fix.
24056 2001-10-04  Geert Bosch  <bosch@gnat.com>
24058         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
24059         Arg is int, not FILE *, in dummy version of functions.
24061         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
24062         Arg is int, not FILE *.
24064 2001-10-04  Geert Bosch  <bosch@gnat.com>
24066         * 3lsoccon.ads: Added file, missed with initial check ins.
24068         * 4lintnam.ads: Fix header format.
24069         Change Linux to GNU/Linux.
24071         * 5iosinte.adb: Change Linux to GNU/Linux.
24073         * 5iosinte.ads: Change Linux to GNU/Linux.
24075         * 5itaprop.adb: Change Linux to GNU/Linux.
24077         * 5itaspri.ads: Change Linux to GNU/Linux.
24078         Update copyright notice.
24080         * 5lintman.adb: Change Linux to GNU/Linux.
24082         * 5lml-tgt.adb: Change Linux to GNU/Linux.
24084         * 5losinte.ads: Change Linux to GNU/Linux.
24086         * 5lsystem.ads: Change Linux to GNU/Linux.
24088         * 5qosinte.adb: Change Linux to GNU/Linux.
24090         * 5qosinte.ads: Change Linux to GNU/Linux.
24092         * 5qparame.ads: Change Linux to GNU/Linux.
24094         * 5qtaprop.adb: Change Linux to GNU/Linux.
24096         * 5qtaspri.ads: Change Linux to GNU/Linux.
24097         Add 2001 to copyright notice.
24099         * 5vintman.ads: Change Linux to GNU/Linux.
24100         Fix header format.  Add 2001 to copyright notice.
24102         * g-soccon.ads: Change Linux to GNU/Linux.
24104         * g-trasym.ads: Change Linux to GNU/Linux.
24105         Add 2001 to copyright notice.
24107         * memtrack.adb: Change Linux to GNU/Linux.
24109         * s-intman.ads: Change Linux to GNU/Linux.
24110         Add 2001 to copyright notice.  Fix header format.
24112         * s-stache.adb: Change Linux to GNU/Linux.
24114         * adaint.c: Change Linux to GNU/Linux.
24116         * cio.c: Change Linux to GNU/Linux.
24118         * cstreams.c: Change Linux to GNU/Linux.
24120         * init.c: Change Linux to GNU/Linux.
24122         * gmem.c: Change Linux to GNU/Linux.
24124         * tracebak.c: Change Linux to GNU/Linux.
24127 2001-10-02  Geert Bosch  <bosch@gnat.com>
24129         * misc.c (insert_default_attributes): Add dummy version.