2005-06-28 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / gcc / ada / ChangeLog
blob18b366bce898c84b90d1f65dfbff71ba76a8a15b
1 2005-06-28  Paul Brook  <paul@codesourcery.com>
3         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
5 2005-06-14  Olivier Hainque  <hainque@adacore.com>
6             Eric Botcazou  <ebotcazou@adacore.com>
8         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
9         exc_unwind, now that we are generating proper .debug_frame output for
10         that target.
12         * tracebak.c: Remove the mips-irix section, as we are now using the
13         s-mastop based unwinder again.
14         Under SPARC/Solaris, take into account the stack bias to compute the
15         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
16         ABI.
18 2005-06-14  Doug Rupp  <rupp@adacore.com>
20         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24 2005-06-14  Pascal Obry  <obry@adacore.com>
26         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
27         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
28         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
29         package name).
31         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads, 
32         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb, 
33         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads, 
34         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads, 
35         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
36         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads, 
37         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb, 
38         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, 
39         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads, 
40         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb, 
41         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb, 
42         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads, 
43         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads, 
44         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb, 
45         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb, 
46         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads, 
47         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads, 
48         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb, 
49         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads, 
50         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb, 
51         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb, 
52         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb, 
53         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb, 
54         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads, 
55         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb, 
56         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb, 
57         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb, 
58         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb, 
59         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb, 
60         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
61         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
62         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
63         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
64         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
65         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
66         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
67         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
68         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
69         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
70         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
71         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
72         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
73         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
74         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
75         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
76         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
77         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
78         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
79         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
80         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
81         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
82         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
83         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
84         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
85         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
86         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
87         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
88         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
89         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
90         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
91         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
92         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
93         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
94         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
95         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
96         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
97         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads, 
98         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb, 
99         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
100         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb, 
101         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
102         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
103         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
104         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
105         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
106         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
107         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
108         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
109         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
110         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
111         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
112         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
113         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
114         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
115         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
116         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
117         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
118         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
119         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
120         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
121         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
122         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
123         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
124         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
125         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
126         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
127         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
128         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
129         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
130         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
131         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
132         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
133         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
134         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
135         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
136         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
137         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
138         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb, 
139         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads, 
140         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb, 
141         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads, 
142         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb, 
143         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads, 
144         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads, 
145         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
146         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
147         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
148         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
149         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
150         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
151         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb, 
152         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb, 
153         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
154         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
155         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
156         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
157         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
158         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
159         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
160         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
161         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
162         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
163         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
165 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
166             Arnaud Charlet  <charlet@adacore.com>
168         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
169         longer protected objects. They have been replaced by lower-level
170         suspension objects made up by a mutex and a condition variable (or
171         their equivalent given a particular OS) plus some internal data to
172         reflect the state of the suspension object.
173         (Initialize, Finalize): Add this initialization procedure for
174         Suspension_Object, which is a controlled type.
175         (Finalize): Add the finalization procedure for Suspension_Object,
176         which is a controlled type.
178         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
179         Ada.Synchronous_Task_Control because there is no longer a need for a
180         VxWorks specific version of this package. Target dependencies
181         has been moved to System.Task_Primitives.Operations.
183         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
184         longer needed.
185         (InitializeCriticalSection, EnterCriticalSection,
186         LeaveCriticalSection, DeleteCriticalSection): Replace the type
187         pCriticalSection by an anonymous access type so that we avoid problems
188         of accessibility to local objects.
190         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
191         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
192         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
193         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
194         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
195         set the environment task mask here.
196         (Current_State): Add this function that returns the state of the
197         suspension object.
198         (Set_False): Add this procedure that sets the state of the suspension
199         object to False.
200         (Set_True): Add this procedure that sets the state of the suspension
201         object to True, releasing the task that was suspended, if any.
202         (Suspend_Until_True): Add this procedure that blocks the calling task
203         until the state of the object is True. Program_Error is raised if
204         another task is already waiting on that suspension object.
205         (Initialize): Add this procedure for initializing the suspension
206         object. It initializes the mutex and the condition variable which are
207         used for synchronization and queuing, and it sets the internal state
208         to False.
209         (Finalize): Add this procedure for finalizing the suspension object,
210         destroying the mutex and the condition variable.
212         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
213         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
214         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
215         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
216         which provides a low-level abstraction (using operating system
217         primitives) for Ada.Synchronous_Task_Control.
218         This object is made up by a mutex (for ensuring mutual exclusion), a
219         condition variable (for queuing threads until the condition is
220         signaled), a Boolean (State) indicating whether the object is open,
221         and a Boolean (Waiting) reflecting whether there is a task already
222         suspended on this object.
224         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
225         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
226         s-intman-vms.ads, s-intman-mingw.adb,
227         (Initialize_Interrupts): Removed, no longer used.
229         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
230         (Setup_Interrupt_Mask): New procedure.
232         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
234         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
236         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
237         this is no longer done in the body of s-taprop
238         (Server_Task): Explicitely test for Pending_Action in case
239         System.Parameters.No_Abort is True.
241         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
242         is no longer done in the body of s-taprop
244 2005-06-14  Robert Dewar  <dewar@adacore.com>
246         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
247         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
248         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
249         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
250         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
251         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
252         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
253         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
254         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
255         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
256         system-linux-hppa.ads, system-vms_64.ads,
257         system-vxworks-alpha.ads: Minor comment update for
258         AI-362 (unit is Pure).
260         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
261         Add pragma Pure_05 for AI-362
262         Make remaining conversion functions obsolescent in Ada 95
264         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
265         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
266         Add entries for a-wichun and a-zchuni
267         Add a-widcha a-zchara for AI-395
268         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
270         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
271         Add entries for a-wichun.o and a-zchuni.o
272         Entries for a-widcha.o and a-zchara.o
273         Add entry for a-chacon.o
275         * a-ztenau.adb: Add with of Ada.Characters.Conversions
277         * a-chacon.ads, a-chacon.adb: New files.
279         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
280         categorization violations.
282         * a-strmap.ads: Add pragma Pure_05 for AI-362
283         * a-strmap.ads: Add note on implicit categorization for AI-362
285         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
287         * par-prag.adb: Dummy entry for pragma Persistent_BSS
288         Set Ada_Version_Explicit, for implementation of AI-362
289         Add processing for pragma Pure_05 and Preelaborate_05
290         Add entry for Assertion_Policy pragma
292         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
293         when needed for proper processing of categorization stuff
295         * sem_cat.adb: 
296         For several cases, make errors in preealborate units warnings,
297         instead of errors, if GNAT_Mode is set. For AI-362.
299         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
300         preelaborate unit is now warning if in GNAT mode
302         * s-stoele.ads: Document AI-362 for pragma preelaborate
304 2005-06-14  Doug Rupp  <rupp@adacore.com>
306         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
307         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
308         Default_Exception_Msg_Max_Length: new parameter.
310         * a-except.ads: (Exception_Msg_Max_Length): Set to
311         System.Parameters.Default_Exception_Msg_Max_Length
312         Add pragma Preelaborate_05 for AI-362
313         Add warnings off to allow categorization violations for AI-362
315 2005-06-14  Vincent Celier  <celier@adacore.com>
317         * gnatsym.adb: Adapt to modification of package Symbols: procedure
318         Process is now in package Processing.
320         * symbols.ads, symbols.adb:
321         (Processing): New package, containing procedure Process
323         * symbols-vms-alpha.adb: 
324         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
326         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
327         symbols-processing-vms-ia64.adb: New files.
329 2005-06-14  Pascal Obry  <obry@adacore.com>
331         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
332         implementation. This new version generates the proper DllMain routine
333         to initialize the SAL. The DllMain is generated in Ada and compiled
334         before being added as option to the library build command.
336 2005-06-14  Doug Rupp  <rupp@adacore.com>
337             Pascal Obry  <obry@adacore.com>
339         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
340         call to decc$translate_vms.
341         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
342         need to remove those quotes before catenating the filename.
343         (__gnat_locate_exec_on_path): improvements to the Win32 section:
344         * avoid allocating the memory twice for better efficiency;
345         * allocate 32K buffer for environment expansion as suggested by MSDN;
346         * prepend ".;" to the path so that current directory is searched too.
348 2005-06-14  Robert Dewar  <dewar@adacore.com>
350         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
351         instead of raising CE (AI-241)
352         Add warnings off to allow categorization violations for AI-362
354 2005-06-14  Robert Dewar  <dewar@adacore.com>
356         * ali-util.adb, gnatbind.adb: Remove references to
357         Force_RM_Elaboration_Order.
359         * switch-b.adb: Remove recognition of -f switch
361 2005-06-14  Pascal Obry  <obry@adacore.com>
363         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
364         implementation which is slightly more efficient.
366 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
367             Javier Miranda  <miranda@adacore.com>
368             Ed Schonberg  <schonberg@adacore.com>
369             Hristian Kirtchev  <kirtchev@adacore.com>
371         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
372         allocator's designated type is a class-wide type, and compiling for
373         Ada 2005, emit a run-time check that the accessibility level of the
374         type given in the allocator's expression is not deeper than the level
375         of the allocator's access type.
377         (Tagged_Membership): Modified to gives support to abstract interface
378         types.
380         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
381         Access_Level.
382         (Descendant_Tag): New predefined function
383         (Is_Descendant_At_Same_Level): New predefined function
384         (Get_Access_Level): New private function
385         (Set_Access_Level): New private procedure
386         (IW_Membership): New function. Given the tag of an object and the tag
387         associated with an interface, evaluate if the object implements the
388         interface.
389         (Register_Interface_Tag): New procedure used to initialize the table of
390         interfaces used by the IW_Membership function.
391         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
392         of the dispatch table.
393         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
394         table of interfaces of the parent.
395         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
396         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
397         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
398         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
399         Ada 2005 semantics for the new predefined function.
401         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
402         call to Descendant_Tag rather than Internal_Tag.
403         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
404         the accessibility level of the attribute's Item parameter is not deeper
405         than the level of the attribute's prefix type. Tag_Error is raised if
406         the check fails. The check is only emitted for Ada_05.
407         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
408         requested stream attribute, use it.
409         (Expand_N_Attribute_Reference): If the designated type is an interface
410         then rewrite the referenced object as a conversion to force the
411         displacement of the pointer to the secondary dispatch table.
412         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
413         is a dereference of an object with a constrained partial view.
415         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
416         type is a class-wide type, emit a run-time check that the accessibility
417         level of the returned object is not deeper than the level of the
418         function's master (only when compiling for Ada 2005).
420         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
421         Action_Nb_Arg): Add entries for new Get_Access_Level and
422         Set_Access_Level routines in these tables.
423         (Make_DT): Generate a call to set the accessibility level of the
424         tagged type in its TSD.
425         (Make_DT): Code cleanup. The functionality of generating all the
426         secondary dispatch tables has been moved to freeze_record_type.
427         (Make_Abstract_Interface_DT): Minor code cleanup.
428         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
429         this subprogram implements a new algorithm that provides the
430         same functionality and it is more clear in case of primitives
431         associated with abstract interfaces.
432         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
433         clean up, the functionality of this subprogram is now provided
434         by Set_All_DT_Position.
435         (Write_DT): New subprogram: a debugging procedure designed to be called
436         within gdb to display the dispatch tables associated with a tagged
437         type.
438         (Collect_All_Interfaces): New subprogram that collects the whole list
439         of interfaces that are directly or indirectly implemented by a tagged
440         type.
441         (Default_Prim_Op_Position): New subprogram that returns the fixed
442         position in the dispatch table of the default primitive operations.
443         (Expand_Interface_Actuals): New subprogram to generate code that
444         displaces all the actuals corresponding to class-wide interfaces to
445         reference the interface tag of the actual object.
446         (Expand_Interface_Conversion): New subprogram. Reference the base of
447         the object to give access to the interface tag associated with the
448         secondary dispatch table.
449         (Expand_Interface_Thunk): New subprogram that generates the code of the
450         thunk. This is required for compatibility with the C+ ABI.
451         (Make_Abstract_Interface_DT): New subprogram that generate the
452         declarations for the secondary dispatch tables associated with an
453         abstract interface.
454         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
455         attribute for each primitive operation covering interface subprograms
456         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
457         These subprograms were upgraded to give support to abstract interfaces
459         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
460         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
461         RE_Set_Access_Level.
462         (RE_Unit_Table): Add entries for new Ada.Tags operations.
463         Add support to call the followig new run-time subprograms:
464         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
466         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
467         match its full declaration when both have an access definition with
468         statically matching designated subtypes.
469         (Analyze_Component_Declaration): Delete commented out code that was
470         incorrectly setting the scope of an anonymous access component's type.
471         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
472         an access discriminant when the containing type is nonlimited.
473         (Make_Incomplete_Type_Declaration): Create an incomplete type
474         declaration for a record type that includes self-referential access
475         components.
476         (Check_Anonymous_Access_Types): Before full analysis of a record type
477         declaration, create anonymous access types for each self-referential
478         access component.
479         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
480         an access component in this context is a Local_Anonymous_Access, for
481         proper accessibility checks.
482         (Access_Definition): Set properly the scope of the anonymous access type
483         created for a stand-alone access object.
484         (Find_Type_Of_Object): An object declaration may be given with an access
485         definition.
486         (Complete_Subprograms_Derivation): New subprogram used to complete
487         type derivation of private tagged types implementing interfaces.
488         In this case some interface primitives may have been overriden
489         with the partial-view and, instead of re-calculating them, they
490         are included in the list of primitive operations of the full-view.
491         (Build_Derived_Record_Type): Modified to give support to private
492         types implemening interfaces.
493         (Access_Definition): Reject ALL on anonymous access types.
494         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
495         type derivation to occur at a deeper accessibility level than the
496         parent type.
497         For the case of derivation within a generic body however, disallow the
498         derivation if the derived type has an ancestor that is a formal type
499         declared in the formal part of an enclosing generic.
500         (Analyze_Object_Declaration): For protected objects, remove the check
501         that they cannot contain interrupt handlers if not declared at library
502         level.
503         (Add_Interface_Tag_Components): New subprogram to add the tag components
504         corresponding to all the abstract interface types implemented by a
505         record type or a derived record type.
506         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
507         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
508         Process_Full_View, Record_Type_Declaration): Modified to give
509         support to abstract interface types
510         (Collect_Interfaces): New subprogram that collects the list of
511         interfaces that are not already implemented by the ancestors
512         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
513         when partial view has no discriminants and full view has defaults.
514         (Constrain_Access): Reject a constraint on a general access type
515         if the discriminants of the designated type have defaults.
516         (Access_Subprogram_Declaration): Associate the Itype node with the inner
517         full-type declaration or subprogram spec. This is required to handle
518         nested anonymous declarations.
519         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
520         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
521         Process_Full_View, Record_Type_Declaration): Modified to give
522         support to abstract interface types
523         (Derive_Subprograms): Addition of a new formal to indicate if
524         we are in the case of an abstact-interface derivation
525         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
526         to the specification because it is requied to analyze all the
527         identifiers found in a list of interfaces
529         * debug.adb: Complete documentation of flag "-gnatdZ"
531         * exp_ch3.adb: Implement config version of persistent_bss pragma
532         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
533         testing for TSS presence to properly enforce visibility rules.
534         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
535         Make_Abstract_Interfaces_DT to generate the secondary tables
536         associated with abstract interfaces.
537         (Build_Init_Procedure): Modified to initialize all the tags
538         corresponding.
539         (Component_Needs_Simple_Initialization): Similar to other tags,
540         interface tags do not need initialization.
541         (Freeze_Record_Type): Modified to give support to abstract interface
542         types.
543         (Expand_N_Object_Declaration): Do not generate an initialization for
544         a scalar temporary marked as internal.
546         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
547         in-out parameter that is a component in an initialization procedure,
548         whose constraint might depend on discriminants, and that may be
549         misaligned because of packing or representation clauses.
550         (Is_Legal_Copy): New predicate to determine whether a possibly
551         misaligned in-out actual can actually be passed by copy/return. This
552         is an error in case the type is by_reference, and a warning if this is
553         the consequence of a DEC import pragma on the subprogram.
554         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
555         interface types
556         (Expand_Inlined_Call): Mark temporary generated for the return value as
557         internal, so that no useless scalar normalization is generated for it.
558         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
559         null procedure can always be inlined.
560         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
561         procedure, generate an explicit empty body for it.
563         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
564         Given a type implementing an interface, returns the corresponding
565         access_disp_table value.
566         (Find_Interface_Tag): New subprogram. Given a type implementing an
567         interface, returns the record component containing the tag of the
568         interface.
569         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
570         previous ones that return the corresponding tag and access_disp_table
571         entities.
572         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
573         is a predefined primitive operation.
574         (Expand_Subtype_From_Expr): If the expression is a selected component
575         within an initialization procedure, compute its actual subtype, because
576         the component may depend on the discriminants of the enclosing record.
578         * i-cpp.ads, i-cpp.adb: 
579         This package has been left available for compatibility with previous
580         versions of the frontend. As part of the new layout this is now a
581         dummy package that uses declarations available at a-tags.ads
583         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
584         "constant access" and "aliased [constant] access" when not compiling
585         with -gnat05.
586         Suppress Ada 2005 keyword warning if -gnatwY used
587         (P_Identifier_Declarations): Add support for object declarations with
588         access definitions.
589         (Private_Extension_Declaration): Complete the documentation
590         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
591         attribute in case of private extension declaration
592         (P_Type_Declaration): Mark as "abstract" the type declarations
593         corresponding with protected, synchronized and task interfaces
594         (P_Declarative_Items): "not" and "overriding" are overriding indicators
595         for a subprogram or instance declaration.
597         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
598         instantiation that is a dispatching operation has controlling access
599         parameters that are null excluding.
600         Save and restore Ada_Version_Explicit, for implementation of AI-362
601         (Validate_Derived_Type_Instance): Add check for abstract interface
602         types.
603         (Analyze_Formal_Package): Establish Instantiation source for the copy of
604         the generic that is created to represent the formal package.
605         (Analyze_Package_Instantiation): Instantiate body immediately if the
606         package is a predefined unit that contains inlined subprograms, and
607         we are compiling for a Configurable_Run_Time.
608         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
609         If the program has a null default, generate an empty body for it.
611         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
612         error message condition, null procedures are correctly detected now.
613         (New_Overloaded_Entity): Bypass trivial overriding indicator check
614         for subprograms in the context of protected types. Instead, the
615         indicator is examined in Sem_Ch9 while analysing the subprogram
616         declaration.
617         (Check_Overriding_Indicator): Check consistency of overriding indicator
618         on subprogram stubs as well.
619         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
620         the library level.
621         (Analize_Subprogram_Specification): When analyzing a subprogram in which
622         the type of the first formal is a concurrent type, replace this type
623         by the corresponding record type.
624         (Analyze_Subprogram_Body): Undo the previous work.
625         (Analyze_Procedure_Call): If the call has the form Object.Op, the
626         analysis of the prefix ends up analyzing the call itself, after which
627         we are done.
628         (Has_Interface_Formals): New subprogram subsidiary to analyze
629         subprogram_specification that returns true if some non
630         class-wide interface subprogram is found
631         (New_Overloaded_Entity): Modified to give support to abstract
632         interface types
633         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
634         access to subprograms must be recursive.
635         (Is_Unchecked_Conversion): Improve the test that recognizes
636         instantiations of Unchecked_Conversion, and allows them in bodies that
637         are to be inlined by the front-end. When the body comes from an
638         instantiation, a reference to Unchecked_Conversion will be an
639         Expanded_Name, even though the body has not been analyzed yet.
640         Replace Is_Overriding and Not_Overriding in subprogram_indication with
641         Must_Override and Must_Not_Override, to better express intent of AI.
642         (Analyze_Subprogram_Body): If an overriding indicator is given, check
643         that it is consistent with the overrinding status of the subprogram
644         at this point.
645         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
646         always inlined.
647         If the subprogram is a null procedure, indicate that it does not need
648         a completion.
650         * sem_disp.adb (Check_Controlling_Type): Give support to entities
651         available through limited-with clauses.
652         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
653         allowed as the last primitive of a tagged type if it has no previous
654         spec.
655         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
656         to give support to abstract interface types
658         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
659         in the case where the target type is an anonymous access type of an
660         object or component (that is, when Is_Local_Anonymous_Access is true).
661         Prevent the special checks for conversions of access discriminants in
662         the case where the discriminant belongs to a nonlimited type, since
663         such discriminants have their accessibility level defined in the same
664         way as a normal component of an anonymous access type.
665         (Resolve_Allocator): When an allocator's designated type is a class-wide
666         type, check that the accessibility level of type given in the
667         allocator's expression or subtype indication is not statically deeper
668         than the level of the allocator's access type.
669         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
670         name in a discriminant constraint of a record component.
671         (Resolve_Explicit_Dereference): Do not check whether the type is
672         incomplete when the dereference is a use of an access discriminant in
673         an initialization procedure.
674         (Resolve_Type_Conversion): Handle conversions to abstract interface
675         types.
676         (Valid_Tagged_Conversion): The conversion of a tagged type to an
677         abstract interface type is always valid.
678         (Valid_Conversion): Modified to give support to abstract interface types
679         (Resolve_Actuals): Enable full error reporting on view conversions
680         between unrelated by_reference array types.
681         The rule for view conversions of arrays with aliased components is
682         weakened in Ada 2005.
683         Call to obsolescent subprogram is now considered to be a violation of
684         pragma Restrictions (No_Obsolescent_Features).
685         (Check_Direct_Boolean_Operator): If the boolean operation has been
686         constant-folded, there is nothing to check.
687         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
688         check on possible violation of restriction No_Direct_Boolean_Operators
689         until after expansion of operands, to prevent spurious errors when
690         operation is constant-folded.
692         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
693         Has_Compatible_Type): Modified to give support to abstract interface
694         types.
695         (Interface_Present_In_Ancestor): New function to theck if some ancestor
696         of a given type implements a given interface
698         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
699         prefix is a parameterless function that returns an access_to_procedure.
700         (Transform_Object_Operation): Handle properly function calls of the
701         form Obj.Op (X), which prior to analysis appear as indexed components.
702         (Analyze_One_Call): Complete the error notification to help new Ada
703         2005 users.
704         (Analyze_Allocator): For an allocator without an initial value, where
705         the designated type has a constrained partial view, a discriminant
706         constraint is illegal.
708 2005-06-14  Robert Dewar  <dewar@adacore.com>
710         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
711         do with treatment of Set_Col when positioned at end of line character.
713 2005-06-14  Robert Dewar  <dewar@adacore.com>
715         * atree.adb: (Elist*): Protect against uninitialized field
717 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
719         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
720         for an attribute reference that returns an access type.
721         (Apply_Discriminant_Check): No need for check if (designated) type has
722         constrained partial view.
724         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
725         both bound checks, rather than a conjunction.
726         (Insert_Valid_Check): If the expression is an actual that is an indexed
727         component of a bit-packed array, force expansion of the packed element
728         reference, because it is specifically inhibited elsewhere.
730 2005-06-14  Vincent Celier  <celier@adacore.com>
732         * clean.adb (Clean_Project): Correctly delete executable specified as
733         absolute path names.
735         * make.adb (Gnatmake): Allow relative executable path names with
736         directory information even when project files are used.
737         (Change_To_Object_Directory): Fail gracefully when unable to change
738         current working directory to object directory of a project.
739         (Gnatmake): Remove exception handler that could no longer be exercized
740         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
741         may be deallocated by Normalize_Arguments.
742         (Collect_Arguments): Eliminate empty arguments
744         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
745         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
746         (Check_Project): Return False when Project is No_Project. Return True
747         when All_Projects is True.
748         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
749         All_Projects to True.
750         Minor reformatting
752 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
753             Javier Miranda  <miranda@adacore.com>
754             Thomas Quinot  <quinot@adacore.com>
755             Robert Dewar  <dewar@adacore.com>
756             Hristian Kirtchev  <kirtchev@adacore.com>
757             Gary Dismukes  <dismukes@adacore.com>
759         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
760         anonymous access types, to indicate that the accessibility level of
761         the type is determined by that of the enclosing declaration.
762         (Has_Persistent_BSS): New flag
763         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
764         of this attribute with functions.
765         (Is_Primitive_Wrapper): Remove the barrier.
766         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
767         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
768         New subprograms.
769         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
770         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
771         New subprograms.
772         (Is_Pure_Unit_Access_Type): New flag
773         (Abstract_Interfaces): Complete the assertion to cover all usages.
774         (Set_Is_Interface): Complete the assertion to cover all usages.
775         (Is_Primitive_Wrapper): New attribute.
776         (Is_Obsolescent): Now applies to all entities (though it is only set
777         for subprograms currently)
778         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
779         which solves various problems concerning access subtypes.
780         (Has_Persistent_BSS): New flag
781         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
782         Remove these subprograms because this attribute is currently
783         not used.
784         New entity flags:
785         Has_Specified_Stream_Input (Flag190)
786         Has_Specified_Stream_Output (Flag191)
787         Has_Specified_Stream_Read (Flag192)
788         Has_Specified_Stream_Write (Flag193)
789         Present in all type and subtype entities. Set for a given view if the
790         corresponding stream-oriented attribute has been defined by an
791         attribute definition clause. When such a clause occurs, a TSS is set
792         on the underlying full view; the flags are used to track visibility of
793         the attribute definition clause for partial or incomplete views.
794         (Is_Pure_Unit_Access_Type): New flag
795         Clarify use of Is_Internal.
796         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
797         internally generated to wrap the invocation of tasks and protected
798         types that implement interfaces.
799         (Implementation_Base_Type): Documentation correction
800         (Is_Obsolescent): Now applies to all entities (though it is only set
801         for subprograms currently)
802         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
803         which solves various problems concerning access subtypes.
805         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
806         for examined parameters. Identify unequal parameter list lengths as
807         non-conformant parameters.
808         (Overriding_Possible): Do not check for "All" qualifier in declaration
809         of controlling access parameter, following prescription of AI-404.
810         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
811         that build the procedure body that wraps an entry invocation
812         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
813         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
814         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
815         give support to abstract interface types
817         * freeze.adb (Freeze_Entity): Issue error message if
818         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
819         type has no storage pool (Ada 2005) AI-366.
820         Also modified to give support to abstract interface types
821         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
822         Inline_Always pragma.
824         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
825         now begin an entry declaration.
826         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
827         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
828         a subprogram declaration preceded by an overriding indicator.
829         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
830         declarations or subprogram declarations preceded by reserved words
831         "not" or "overriding".
832         (P_Entry_Declaration): Update comment. Parse and check overriding
833         indicator, set semantic flags of entry declarations.
834         (P_Task): New error message in case of private applied
835         to a task type declaration.
836         (P_Protected): New error message in case of private applied
837         to a task type declaration.
839         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
840         in which the full view of a type implementing an interface is a
841         concurrent type.
842         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
843         Declare_Inherited_Private_Subprograms): If an explicit operation
844         overrides an operation that is inherited in the private part, mark the
845         explicit one as overriding, to enable overriding indicator checks.
846         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
847         full view to partial view, to simplify handling in back-end.
849         * sprint.adb: Print interface lists where needed: derived types,
850         protected types, task types.
851         output "is null" for null procedures. Part of implementation of
853         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
854         relaxation of rules for access types in pure, shared passive partitions.
856         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
857         first read discriminants into temporary objects, performing checks on
858         the read values, then possibly performing discriminant checks on the
859         actual (if it is constrained), and only finally reading the components
860         into a constrained temporary object.
861         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
862         case of reading discriminants of a mutable record type to recognize
863         the new form of the code generated by
864         Build_Mutable_Record_Read_Procedure.
866         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
867         of a simple call to Make_TSS_Name.
868         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
869         buffer, in order for Is_TSS to work correctly on local TSS names.
871         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
872         Is_Local_Anonymous_Access to check legaliy of attributes in the
873         context of  access components and stand-alone access objects.
874         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
875         treated as available for a limited private type if there is an
876         attribute_definition_clause that applies to its full view, but not in
877         other cases where the attribute is available for the full view
878         (specifically, the sole fact that the full view is non-limited does not
879         make the attribute available for the partial view).
880         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
881         non-overloaded intrinsic subprogram.
882         (Check_Stream_Attribute): Reject an attribute reference for an
883         unavailable stream attribute even if the prefix is not a limited type
884         (case of a 'Input attribute reference for an abstract, non-classwide
885         type)
886         (Stream_Attribute_Available): New function to determine whether a stream
887         attribute is available at a place.
888         (Check_Attribute): Use Stream_Attribute_Available instead of just
889         testing for TSS presence on the implementation base type.
890         (Analyze_Attribute): Modified to give support to task interfaces.
891         (Analyze_Access_Attribute): Add error check for use of an Access (or
892         Unrestricted_Access) attribute with a subprogram marked as
893         Inline_Always.
894         (Analyze_Attribute, case Attribute_Address): Add error check for use of
895         an Address attribute with a subprogram marked as Inline_Always.
896         Update Eval_Attribute to handle new value of Width from AI-395
898         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
899         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
900         Factor common code across the stream-oriented attribute circcuits into
901         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
902         processing is functionally identical to the previous duplicated one,
903         except that an expression that denotes an abstract subprogram will now
904         be rejected, as mandated by AI-195 item 5.
906         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
907         Is_Local_Anonymous_Access to apply accessibility checks to access
908         components and stand-alone access objects.
909         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
910         elsewhere.
911         (Is_Potentially_Persistent_Type): New function
912         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
913         a heap-object whose type has a constrained partial view, the object is
914         unconstrained and the component may depend on a discriminant, making its
915         renaming illegal.
917         * sinfo.ads, sinfo.adb
918         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
919         (Must_Override): Flag applicable to N_Entry_Declaration.
920         Indicate that interface_list can appear in single task and single
921         protected declarations.
922         Replace Is_Overriding and Not_Overriding with Must_Override and
923         Must_Not_Override, to better express intent of AI.
924         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
925         of an overriding indicator in a subprogram or instance.
926         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
927         Add the overriding indicator [[not] overriding] construct to the
928         following grammar productions:
929          ENTRY_DECLARATION
930          GENERIC_INSTANTIATION
931          SUBPROGRAM_SPECIFICATION
933         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
934         can start with an overriding indicator.
936         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
937         flags accordingly on subrogram specifications or instances.
939         * sem_ch8.adb: 
940         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
941         overriding_indicator, if present, is consistent with status of spec.
942         Improve error message for null-excluding checks on controlling access
943         parameters.
944         (Check_In_Previous_With_Clause): Protect the frontend against
945         previously reported critical errors in the context clauses.
946         Save and restore Ada_Version_Explicit, for implementation of AI-362
947         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
948         operation verify that controlling formals of the renamed entity that
949         are access parameters are explicitly non-null.
950         (Find_Expanded_Name): Improve error message when prefix is an illegal
951         reference to a private child unit.
953         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
954         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb: 
955         Rewrite to correspond to new wide character names in AI-395
957         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
958         default procedures.
960 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
961             Robert Dewar  <dewar@adacore.com>
963         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
964         code, not on the bodies of predefined operations, to cut down on
965         spurious noise.
967 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
969         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
970         be expanded in place. The size computation does not require a
971         subtraction, which would raise an exception on a compiler built with
972         assertions when the upper bound is Integer'first.
973         (Flatten): For an array of composite components, take into account the
974         size of the components to determine whether it is safe to expand the
975         array into a purely positional representation.
977 2005-06-14  Thomas Quinot  <quinot@adacore.com>
979         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
980         denoting a formal parameter into account.
982 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
984         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
985         the entry_call alternative of a conditional entry call, wrap the
986         conditional entry call itself.
988 2005-06-14  Nicolas Setton  <setton@adacore.com>
989             Ed Schonberg  <schonberg@adacore.com>
991         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
992         the "simple_choice" member in a variant record, in accordance with the
993         description in the package spec: the information output for a constant
994         should be "S number", not "SS number".
995         (Get_Encoded_Name): Return at once if not generating code. Avoids name
996         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
998 2005-06-14  Thomas Quinot  <quinot@adacore.com>
1000         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
1001         RACW without any primitives, do not generate the if statement for
1002         dispatching by name in the PolyORB/DSA case, as it would be malformed
1003         (it would have an Elsif_Parts list that is not No_List, but with a
1004         length of 0).
1006 2005-06-14  Robert Dewar  <dewar@adacore.com>
1008         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
1010 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
1012         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
1013         can determine whether pragma Suppress_Exception_Locations is in effect.
1015         * utils2.c (build_call_raise): Do not pass the file name to the
1016         exception handler if pragma Suppress_Exception_Locations is in effect.
1017         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
1019 2005-06-14  Emmanuel Briot  <briot@adacore.com>
1021         * g-debpoo.adb (Deallocate, Dereference): Improve output.
1023 2005-06-14  Nicolas Roche  <roche@adacore.com>
1025         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
1026         to ""
1027         (Next_Level): Fix minor bug in handling of ../dir case
1028         (Read): Add dir separator to Directory name so that "" is understood as
1029          "/"
1031 2005-06-14  Pascal Obry  <obry@adacore.com>
1033         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
1034         releasing the items.
1036 2005-06-14  Vincent Celier  <celier@adacore.com>
1037             Cyrille Comar  <comar@adacore.com>
1039         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
1040         with output file descriptor and with output file name.
1041         (Dup, Dup2): Now global procedures as they are used by two subprograms
1042         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
1044 2005-06-14  Thomas Quinot  <quinot@adacore.com>
1046         PR ada/6717
1048         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
1049         broadcast address.
1050         (Create_Selector): Bind listening socket used to create the signalling
1051         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
1052         Set listen backlog to 1 to ensure that we detect socket theft by a
1053         failure of our own connect(2) call.
1054         (Check_Selector): Improve documentation of the selector mechanism.
1055         (Broadcast_Inet_Addr): New constant.
1057 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
1059         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
1060         type which turns out to be an incomplete and incorrect fix.
1061         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
1062         of the type is declared in a record (for determination of insertion
1063         type).
1064         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
1065         a private type and ensure that the primary entity is used for the type
1066         of the newly created function's V formal by taking the Etype of the
1067         view.
1069 2005-06-14  Javier Miranda  <miranda@adacore.com>
1070             Jose Ruiz  <ruiz@adacore.com>
1071             Robert Dewar  <dewar@adacore.com>
1072             Ed Schonberg  <schonberg@adacore.com>
1074         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
1075         that indicates if we are parsing a compilation unit found in a
1076         limited-with clause.
1077         It is use to avoid the circularity check.
1079         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
1080         we are parsing a compilation unit found in a limited-with clause. This
1081         is use to avoid the circularity check.
1083         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
1084         unit as a consequence of parsing a limited-with clause. This is used
1085         to avoid the circularity check.
1087         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
1088         (Analyze_Context): Limited-with clauses are now allowed
1089         in more compilation units.
1090         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
1091         againts previously reported critical errors in context clauses
1092         (Install_Limited_Withed_Unit): Code cleanup plus static detection
1093         of two further errors: renamed subprograms and renamed packages
1094         are not allowed in limited with clauses.
1095         (Install_Siblings): Do not install private_with_clauses on the package
1096         declaration for a non-private child unit.
1097         (Re_Install_Parents): When a parent of the subunit is reinstalled,
1098         reset visibility of child units properly.
1099         (Install_Withed_Unit): When a child unit appears in a with_clause of its
1100         parent, it is immediately visible.
1102 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
1103             Emmanuel Briot  <briot@adacore.com>
1105         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
1106         declared within an inlined body as referenced, to prevent spurious
1107         warnings.
1108         (Output_One_Ref): If an entity renames an array component, indicate in
1109         the ALI file that this aliases (renames) the array. Capture as well
1110         function renamings that rename predefined operations.
1111         Add information about generic parent for package and subprogram
1112         instances.
1113         (Get_Type_Reference): For a subtype that is the renaming of an actual in
1114         an instantiation, use the first_subtype to ensure that we don't generate
1115         cross-reference information for internal types.
1116         For objects and parameters of a generic private type, retain the '*'
1117         indicator to distinguish such an entity from its type.
1119         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
1120         to store information about instantiated entities.
1122         * ali.adb (Scan_ALI): Add support for parsing the reference to the
1123         generic parent
1125         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
1126         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
1127         information.
1129 2005-06-10  Doug Rupp  <rupp@adacore.com>
1130             Arnaud Charlet  <charlet@adacore.com>
1131             Olivier Hainque  <hainque@adacore.com>
1132             Jose Ruiz  <ruiz@adacore.com>
1134         * Make-lang.in: Add initialize.o when needed.
1135         Remove obsolete references to RT_FLAGS.
1136         Add missing dependencies for sdefault.o
1138         * initialize.c: New file.
1140         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
1141         [VMS] cond_signal_table: Fix problem in declaration.
1142         [VMS] __gnat_error_handler: rewrite.
1143         Move all __gnat_initialize() routines to initialize.c
1144         Specialize the former "hpux" section to "hppa hpux", as this is what the
1145         section really is here for and we now have other hpux ports that need
1146         different contents.
1147         (__gnat_adjust_context_for_raise) i386-linux: First version of this
1148         function for this target. Adjust PC by one in the machine context. This
1149         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
1150         it is more reliable to do that in the signal handler itself.
1151         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
1152         flags, so that the handler is passed the context structure to adjust
1153         prior to the raise.
1154         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
1155         SA_SIGINFO sigaction should look like. Call
1156         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
1157         Machine_State_Operations stuff.
1158         Add conditional code so that the x86_64 is also supported.
1160 2005-06-14  Pascal Obry  <obry@adacore.com>
1162         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
1163         the library name.
1165 2005-06-14  Robert Dewar  <dewar@adacore.com>
1167         * opt.ads, opt.adb: New flags for persistent_bss mode
1168         Add Ada_Version_Explicit, for implementation of AI-362
1169         Add Assertions_Enabled_Config and associated handling
1170         Needed since setting can be changed with Assertion_Policy pragma
1171         Add new flag Warn_On_Ada_2005_Compatibility
1173         * switch-c.adb: Recognize -gnatwy/Y
1174         Set Ada_Version_Explicit, for implementation of AI-362
1175         The -gnatg switch now includes -gnatyu
1177         * usage.adb: Add -gnatwy/Y
1178         Remove wrong asterisk on -gnatwX line
1179         Add line for -gnatyu switch
1181 2005-06-14  Vincent Celier  <celier@adacore.com>
1183         * osint.adb (Add_Default_Search_Dirs): Put source and object
1184         directories of project files before directories coming from
1185         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
1187 2005-06-14  Robert Dewar  <dewar@adacore.com>
1189         PR ada/15613
1191         * par-ch2.adb (Scan_Pragma_Argument): New procedure
1192         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
1194 2005-06-14  Vincent Celier  <celier@adacore.com>
1196         * prep.adb (Preprocess): Ignore error when scanning the first token of
1197         a line.
1199 2005-06-14  Vincent Celier  <celier@adacore.com>
1201         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
1202         (Check_Stand_Alone_Library): If the specified reference symbol file does
1203         not exist, only issue a warning when the symbol policy is not
1204         Controlled. And, when symbol policy is Compliant, set the symbol
1205         policy to Autonomous.
1207 2005-06-14  Vincent Celier  <celier@adacore.com>
1209         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
1210         when the project file in a with clause is not the last one, that is the
1211         project file name is followed by a comma.
1212         * prj-pp.adb: (First_With_In_List): New Boolean global variable
1213         (Print): Issue list of project files separated by commas in with clauses
1214         according to the values returned by Is_Not_Last_In_List.
1215         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
1216         (Set_Is_Not_Last_In_List): New procedure
1218 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1220         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
1222 2005-06-14  Robert Dewar  <dewar@adacore.com>
1224         * scng.adb: Add call to new Check_EOF routine
1225         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
1226         Add some comments regarding wide character handling
1228         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
1230         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
1232         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
1233         characters are now considered graphic characters and hence yield false
1234         in this call.
1236         * nmake.adt: Modify header so that xnmake does not generate output
1237         files with multiple blank lines.
1239         * treeprs.adt: Remove a blank line so that output from xtreeprs does
1240         not have an extra blank line
1242 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
1244         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
1245         expression when the component type is an anonymous access type to
1246         ensure that appropriate accessibility checks are done.
1248         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
1249         expression of an assignment when the target object is of an anonymous
1250         access type. This ensures that required accessibility checks are done.
1251         (One_Bound): Move the check for type Universal_Integer to
1252         Process_Bounds.
1253         (Process_Bounds): Check whether the type of the preanalyzed range is
1254         Universal_Integer, and in that case set Typ to Integer_Type prior
1255         to setting the type of the original range and the calls to One_Bound.
1257 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
1259         * sem_case.adb (Expand_Others_Choice): Improve warning.
1261 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
1263         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
1264         constraint of full view if present, when other type is discriminated.
1265         (Eval_Relational_Op): Recognize tests of pointer values against Null,
1266         when the pointer is known to be non-null, and emit appropriate warning.
1268 2005-06-14  Robert Dewar  <dewar@adacore.com>
1269             Ed Schonberg  <schonberg@adacore.com>
1271         PR ada/10671
1273         * sem_prag.adb: Implement pragma Persistent_BSS
1274         Remove obsolete pragma Persistent_Data, Persistent_Object
1275         Set Ada_Version_Explicit, for implementation of AI-362
1276         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
1277         Add processing for pragma Pure_05 and Preelaborate_05
1278         Add processing for Assertion_Policy pragma
1279         Add pragma identifiers for Assert
1280         (Analyze_Pragma, case Assert): Check number of arguments
1281         (Process_Inline): Additional guard against an illegal program, where the
1282         argument of the pragma is undefined, and warnings on redundant
1283         constructs are enabled.
1284         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
1285         Ada_05 to this pragma, specifying that the pragma is only active in
1286         Ada_05 mode.
1287         (Check_Arg_Order): New procedure
1288         Add appropriate calls to this procedure throughout
1289         Also throughout, check entity name before doing any other checks
1291         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
1292         Remove obsolete pragma Persistent_Data, Persistent_Object
1293         Add entries for pragma Pure_05 and Preelaborate_05
1294         Add entries for Assertion_Policy pragma and associated names
1295         Add some names for pragma argument processing
1297         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
1299 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
1301         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
1302         appears within a negation (either from source or as a rewriting of
1303         inequality) adjust text of warning accordingly.
1305 2005-06-14  Thomas Quinot  <quinot@adacore.com>
1307         * s-strxdr.adb: Follow AI95-00132
1309 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
1311         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
1313 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
1314             Jose Ruiz  <ruiz@adacore.com>
1316         * s-tposen.adb, s-tpobop.adb
1317         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
1318         the exception id.
1319         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
1320         there is no violation of the Max_Entry_Queue_Length restriction (if it
1321         has been set); Program_Error is raised otherwise.
1322         (Requeue_Call): Before requeuing the task on the target entry queue we
1323         check that there is no violation of the Max_Entry_Queue_Length
1324         restriction (if it has been set); Program_Error is raised otherwise.
1326 2005-06-14  Robert Dewar  <dewar@adacore.com>
1328         * styleg.adb: Fix several remaining problems in -gnatyu switch
1329         Blank line count not reset at start
1330         Scanning outside source buffer in some cases
1331         Confusing message for blanks at end of file
1332         Non-empty blank lines not recognized
1334         * nmake.adt: Modify header so that xnmake does not generate output
1335         files with multiple blank lines.
1337         * treeprs.adt: Remove a blank line so that output from xtreeprs does
1338         not have an extra blank line
1340 2005-06-14  Sergey Rybin  <rybin@adacore.com>
1342         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
1344 2005-06-14  Doug Rupp  <rupp@adacore.com>
1345             Vincent Celier  <celier@adacore.com>
1347         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
1348         Update copyright.
1350         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
1351         Remove "Library" command.
1352         Change keyword for style check -gnatyd from NOCRLF to
1353         DOS_LINE_ENDINGS.
1354         Remove useless second style check keyword NONE
1355         Remove help documentation for inexistent style check keyword
1356         RM_COLUMN_LAYOUT.
1357         Add help documentation for style check keywords DOS_LINE_ENDINGS,
1358         UNNECESSARY_BLANK_LINES and XTRA_PARENS
1359         Add UNNECESSARY_BLANK_LINES for -gnatyu
1360         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
1362         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
1364 2005-06-14  Vincent Celier  <celier@adacore.com>
1366         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
1367         gprmake was invoked with -d.
1368         (Compile_Sources): If -d was used, output the "completed ..." message
1369         for each compilation.
1370         (Scan_Arg): Recognize new switch -d
1371         When -c and at least one main is specified, set
1372         Unique_Compile to True to guarantee that no other sources will be
1373         compiled.
1375 2005-06-14  Matthew Heaney  <heaney@adacore.com>
1377         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
1378         * a-swuwha.ads, a-swuwha.adb: New files
1380         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
1381         * a-szuzha.ads, a-szuzha.adb: New files.
1383         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
1384         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads, 
1385         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads, 
1386         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, 
1387         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
1388         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
1389         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, 
1390         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
1391         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
1392         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
1393         Ada 2005 RM.
1395 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
1396             Olivier Hainque  <hainque@adacore.com>
1397             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1398             Pascal Obry  <obry@adacore.com>
1400         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
1402         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
1403         making a temporary around a procedure call because of non-addressable
1404         actual parameter.
1405         (process_freeze_entity): If entity is a private type, capture size
1406         information that may have been computed for the full view.
1407         (tree_transform, case N_Allocator): If have initializing expression,
1408         check type for Has_Constrained_Partial_View and pass that to
1409         build_allocator.
1410         (tree_transform, case N_Return_Statement): Pass extra arg to
1411         build_allocator.
1413         * decl.c (annotate_value): Remove early return if -gnatR is not
1414         specified.
1415         (gnat_to_gnu_field): Don't make a packable type for a component clause
1416         if the position is byte aligned, the field is aliased, and the clause
1417         size isn't a multiple of the packable alignment. It serves no useful
1418         purpose packing-wise and would be rejected later on.
1419         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
1421         PR ada/20515
1422         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
1423         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
1424         instead.
1425         (create_concat_name): Idem.
1427 2005-06-10  Robert Dewar  <dewar@adacore.com>
1428             Eric Botcazou  <ebotcazou@adacore.com>
1429             Ben Brosgol  <brosgol@adacore.com>
1430             Cyrille Comar  <comar@adacore.com>
1431             Sergey Rybin  <rybin@adacore.com>
1432             Pascal Obry  <obry@adacore.com>
1434         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
1435         Document second argument (Ada_05) of pragma Obsolescent
1436         Add note that call to subprogram marked with pragma Obsolescent
1437         is now considered to be a violation of program Restrictions
1438         (No_Obsolescent_Features).
1439         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
1440         that only machine-dependent attributes are supported.
1442         * gnat_ugn.texi: 
1443         Commented out menu lines and empty section for gnatclean examples
1444         Document -gnatwy/Y
1445         Fix some over long lines
1446         Clarify and enhance documentation of ADA_PROJECT_PATH.
1447         Rework section 2.11.2(3) about linking with a non-GNU compiler.
1448         Mention new switch -fcallgraph-info.
1449         Mention new switch -fstack-usage.
1450         For gnatpp, replace '-notab' with '-N' and add this option to Index
1451         Corrected VMS example.
1452         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
1453         Minor reformatting
1454         Add documentation for -gnatyu switch (unnecessary blank lines)
1455         Document new switch -U for GNAT PRETTY and GNAT METRIC
1456         Add note about Stdcall being handled as C convention on non Windows OS.
1457         Remove some junk typo in description of gnatbind -S switch
1458         Remove reference to Extensions_Allowed pragma
1459         Document the new order of the directories to be searched (source and
1460         object directories of project files before directories in ADA_*_PATH
1461         environment variables.
1463         * g-trasym.ads: Document that IRIX is supported
1465 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
1467         * Makefile.in: Add initialize.o when needed.
1468         Adapt to new VMS package body Symbols and subunits
1469         No specialized version of a-sytaco is needed for VxWorks.
1471         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
1472         * a-zchara.ads, a-widcha.ads: New files.
1474         * system-hpux-ia64.ads: New file.
1476         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
1477         is imported from the VxWorks kernel.
1479 2005-06-14  Robert Dewar  <dewar@adacore.com>
1481         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
1482         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
1483         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
1484         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
1485         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
1486         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
1487         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
1488         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
1489         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
1490         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
1491         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
1492         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
1494 2005-06-14  Thomas Quinot  <quinot@adacore.com>
1496         * xeinfo.adb: Fix typo in comment
1498 2005-06-14  Javier Miranda  <miranda@adacore.com>
1500         * repinfo.ads: Fix typo in comment
1502 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
1504         * s-finimp.adb (Parent_Tag): Delete this imported function (function
1505         Parent_Tag is now in the visible part of Ada.Tags).
1506         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
1507         using imported function.
1509 2005-06-14  Bernard Banner  <banner@adacore.com>
1511         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
1512         also apply for handling support for VxSim 653.
1514 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1516         * xsnames.adb: Add automatic generation of snames.h.
1518 2005-06-14  Thomas Quinot  <quinot@adacore.com>
1520         * gen-soccon.c: Add IP_MULTICAST_IF constant
1521         Minor reformatting and adjustments to prevent warnings.
1523 2005-06-14  Pascal Obry  <obry@adacore.com>
1525         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
1527 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
1529         * trans.c (gnat_gimplify_expr): Call
1530         recompute_tree_invarant_for_addr_expr when we change
1531         the operand of the ADDR_EXPR.
1533 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1535         * misc.c: Don't include errors.h.
1537 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1539         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
1541 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
1543         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
1544         comment typos.
1545         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
1547 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
1549         PR ada/20270
1550         * Makefile.in: Make TGT_LIB behave correctly.
1552 2005-04-23  DJ Delorie  <dj@redhat.com>
1554         * misc.c: Adjust warning() callers.
1556 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
1558         PR ada/18847
1559         * a-nudira.adb (Value): Check for valid string.
1560         * a-nuflra.adb (Value): Likewise.
1562 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
1564         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
1566 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
1568         * adaint.c, init.c, tracebak.c: Fix comment typos.
1569         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
1571 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
1572             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1574         * Makefile.in: Add make ifeq define for hppa linux tasking support.
1575         * system-hpux.ads: Define Signed_Zeros to be True.
1576         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
1578 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
1580         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
1581         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
1582         typos.
1584 2005-03-30  Tom Tromey  <tromey@redhat.com>
1586         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
1588 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1590         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
1592 2005-03-29  Robert Dewar  <dewar@adacore.com>
1594         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
1595         fixed-point expression has value that is not a multiple of the Small
1596         value.
1598         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
1600         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
1601         nanoseconds.
1603         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
1605 2005-03-29  Vincent Celier  <celier@adacore.com>
1607         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
1608         (Build_Dynamic_Library.Version_String): Return the empty string when
1609         Lib_Version is empty or when the symbol policy is not Autonomous.
1611         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
1612         a symbol is not in the reference symbol file, increase the Major ID
1613         and set the Minor ID to 0.
1614         Use gsmatch=lequal instead of gsmatch=equal
1616 2005-03-29  Doug Rupp  <rupp@adacore.com>
1618         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
1619         name and translate.
1621 2005-03-29  Javier Miranda  <miranda@adacore.com>
1623         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
1624         (Inherit_DT): The first formal has been redefined as a Tag.
1625         This allows us the removal of the subprogram Get_TSD.
1626         (TSD): Replace the call to Get_TSD by the actual code.
1628         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
1629         (Make_DT): Upgrade the call to Inherit_TSD according to the
1630         new interface: the first formal is now a Tag.
1632         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
1633         redefined as a Tag.
1634         This change allows us to remove the subprogram Get_TSD.
1635         (CPP_Get_TSD): Subprogram removed.
1636         (TSD): Replace the call to CPP_Get_TSD by the actual code.
1638         * rtsfind.ads: Remove support to call the run-time
1639         subprogram Get_TSD
1641 2005-03-29  Robert Dewar  <dewar@adacore.com>
1643         * errutil.adb, errout.adb: 
1644         Minor comment updates on Line_Terminator references
1646         * par-ch10.adb: Add ??? comment about line terminator
1648         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
1649         (check dos line terminator).
1650         (Check_Line_Max_Length): New procedure, split off from the existing
1651         Check_Line_Terminator routine. Separating this out allows -gnatyf to
1652         be properly recognized.
1654         * styleg.adb: Add ??? comment for line terminator reference
1656         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
1657         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
1659         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
1660         (check dos line terminator).
1661         (Check_Line_Max_Length): New procedure, split off from the existing
1662         Check_Line_Terminator routine. Separating this out allows -gnatyf to
1663         be properly recognized.
1665         * stylesw.ads, stylesw.adb: 
1666         Add handling for new -gnatyd switch (check dos line terminator)
1668         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
1669         Recognize -gnatwb/-gnatwB switches
1670         Include Warn_On_Bad_Fixed_Value for -gnatg
1672         * usage.adb: 
1673         Add line for new -gnatyd switch (check dos line terminator)
1675         * usage.adb: Add lines for -gnatwb/-gnatwB
1677         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
1679         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
1681         * gnat_ugn.texi: Fix overlong lines
1682         Document new -gnatyd switch
1683         Document new -gnatwb/-gnatwB switches
1685 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
1687         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
1688         order to retrieve the component list of the type, before examining
1689         individual components.
1691         * sem_type.adb (Covers): Types are compatible if one is the base type
1692         of the other, even though their base types might differ when private
1693         views are involved.
1695 2005-03-29  Thomas Quinot  <quinot@adacore.com>
1697         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
1698         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
1699         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
1700         analyzed if expansion is disabled (which could otherwise cause spurious
1701         error messages if expansion has been disabled due to previous
1702         (unrelated) errors).
1704         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
1705         is disabled, the entity denoted by the argument is the access type
1706         itself, not an underlying record type, so there is no need to go back
1707         to the Corresponding_Remote_Type.
1709 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
1710             Robert Dewar  <dewar@adacore.com>
1712         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
1713         expand a call to an instance of
1714         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
1715         Constructor actual of the instance. A class-wide membership
1716         check is also generated, to ensure that the tag passed to the instance
1717         denotes a type in the class.
1718         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
1719         of Name_Generic_Dispatching_Constructor.
1721         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
1722         05 unit for AI-260-02).
1724         * a-tgdico.ads: New file.
1726         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
1727         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
1729         * snames.ads, snames.adb (Preset_Names): Add entry for
1730         Generic_Dispatching_Constructor.
1732         PR ada/20300
1734         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
1735         character type cases.
1736         (Analyze_Subprogram_Renaming): Add special handling for
1737         the case of renaming of stream attributes when the renaming denotes a
1738         generic formal subprogram association for an abstract formal subprogram.
1739         Check that the attribute is a primitive stream attribute (and not
1740         a class-wide stream attribute) and then rewrite the attribute name
1741         as the name of the appropriate compiler-generated stream primitive.
1743 2005-03-29  Robert Dewar  <dewar@adacore.com>
1745         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
1746         recursive calls.
1747         (Is_Possibly_Unaligned_Object): Correct typo that
1748         resulted in inaccurate result for unaligned scalars within records.
1750 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
1752         * freeze.adb (Freeze_Record_Type): If the type of the component is an
1753         itype whose parent is controlled and not yet frozen, do not create a
1754         freeze node for the itype if expansion is disabled.
1756 2005-03-29  Vincent Celier  <celier@adacore.com>
1758         * make.adb (Gnatmake): Don't fail if the main project file is declared
1759         as having no Ada sources. Do not display message "no sources to
1760         compile" in quiet output.
1762 2005-03-29  Doug Rupp  <rupp@adacore.com>
1764         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
1765         extra tools.
1767 2005-03-29  Robert Dewar  <dewar@adacore.com>
1769         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
1770         child.
1772 2005-03-29  Robert Dewar  <dewar@adacore.com>
1774         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
1775         missing TYPE Improve the error message generated when compiling a
1776         limited interface in Ada83 or Ada95 mode.
1778 2005-03-29  Robert Dewar  <dewar@adacore.com>
1780         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
1781         rather than proceed ahead using a junk attribute name.
1783 2005-03-29  Vincent Celier  <celier@adacore.com>
1785         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
1787         * prj-part.adb (Parse_Single_Project): Set the location of a project
1788         on its defining identifier, rather than on the reserved word "project".
1790         * prj-proc.adb (Expression): Adapt to the fact that default of external
1791         references may be string expressions, not always literal strings.
1792         (Recursive_Process): Set Display_Name equal to Name
1793         when Location is No_Location, that is when there is no actual file.
1794         Get the Display_Name of the project from the source, when it is not a
1795         virtual project.
1796         (Process): Use the Display_Name in error messages
1798         * prj-strt.adb (External_Reference): Allow default to be string
1799         expressions, not only literal strings.
1801 2005-03-29  Vincent Celier  <celier@adacore.com>
1803         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
1804         file and the reference symbol file to be the same file.
1806 2005-03-29  Thomas Quinot  <quinot@adacore.com>
1808         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
1809         forbid conversion of a local access-to-subprogram type to a remote one.
1811         * sem_util.adb (Wrong_Type): For a record type that is the expanded
1812         equivalent type for a remote access-to-subprogram type, go back to the
1813         original RAS entity when displaying an error message, so the casing is
1814         the original source casing.
1816 2005-03-29  Robert Dewar  <dewar@adacore.com>
1818         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
1819         on param update.
1821 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
1823         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
1824         subtype if code is being pre-analyzed, to prevent un-expanded
1825         references to protected formals, among others.
1826         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
1827         interpretation that can be a call, include the result of the call as a
1828         possible interpretation of the dereference.
1830         * sem_ch5.adb (Process_Bounds): Determine type of range by
1831         pre-analyzing a copy of the original range, and then analyze the range
1832         with the expected type.
1834         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
1835         with an overloaded prefix where not all interpretations yield an
1836         access to subprogram, do not rewrite node as a call.
1837         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
1838         the node as a call once the context identifies the interpretation of
1839         the prefix whose call yields the context type.
1840         (Valid_Conversion): For the case of a conversion between
1841         local access-to-subprogram types, check subtype conformance using
1842         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
1843         detailed error message.
1845 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
1847         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
1848         indicator, indicate that the formal can never be null.
1849         (Process_Formals): If a formal has a non_null indicator, insert the
1850         resulting subtype immediately before the enclosing subprogram decl,
1851         and not at the beginning of the corresponding declarative part, to
1852         prevent access before elaboration (Ada2005).
1854 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1856         PR ada/19956
1857         * utils.c (finish_record_type): Use variable_size when setting sizes.
1859 2005-03-29  Robert Dewar  <dewar@adacore.com>
1861         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
1862         guarantee Unix style line terminators for the output files, even when
1863         running on windows.
1865 2005-03-29  Robert Dewar  <dewar@adacore.com>
1867         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
1868         buffer if an exception is raised.
1870 2005-03-29  Ed Falis  <falis@adacore.com>
1872         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
1873         VxWorks 653 1.4
1875 2005-03-29  Robert Dewar  <dewar@adacore.com>
1877         * sem_util.ads: Minor reformatting
1878         * gnat_rm.texi: Minor editing.
1880 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
1882         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
1883         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
1885 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1887         * adaint.c (__gnat_portable_spawn): Adjust cast.
1889 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
1891         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
1893 2005-03-17  Pascal Obry  <obry@adacore.com>
1895         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
1896         used.
1898         * expect.c (__gnat_waitpid): Moved here from adaint.c.
1899         Reimplement under Win32 using Win32 API.
1901         (__gnat_kill) [Win32]: Properly close the process handle before leaving
1902         this routine.
1904 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
1906         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
1907         (DECL_RENAMED_OBJECT): New accessor macro.
1908         (SET_DECL_RENAMED_OBJECT): New setter macro.
1910         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
1911         object in all cases.  Attach the renamed object to the VAR_DECL.
1912         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
1913         field is not prescribed.
1915         * misc.c (gnat_handle_option): Handle -gnatO separately.
1916         (gnat_print_decl) <VAR_DECL>: New case.
1917         Print the DECL_RENAMED_OBJECT node.
1919         * lang.opt:  Declare separate -gnatO option.
1921         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
1922         pointer, replace it with the renamed object.
1923         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
1924         pointer type if the source is not a fat pointer type whose underlying
1925         array has the same non-zero alias set as that of the destination array.
1927 2005-03-17  Javier Miranda  <miranda@adacore.com>
1929         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
1930         (Get_Inheritance_Depth): Removed.
1931         (Set_Inheritance_Depth): Removed.
1933         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
1934         subprogram Get_Expanded_Name because it is not referenced by the
1935         frontend.
1937         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
1938         (CPP_Get_Inheritance_Depth): Removed.
1939         (CPP_Set_Inheritance_Depth): Removed.
1941         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
1943 2005-03-17  Robert Dewar  <dewar@adacore.com>
1945         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
1946         3, since we now expect GCC 3 to do all the work.
1948 2005-03-17  Javier Miranda  <miranda@adacore.com>
1950         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
1951         of one barrier to avoid wrong usage of this attribute.
1953         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
1954         First_Private_Entity.
1956         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
1957         the subprogram against wrong usage.
1958         Adapt the code to traverse the entities in the
1959         scope of a record_type because in addition to its usage regarding
1960         packages, this subprogram is also called by Expand_N_Freeze_Entity
1961         to install the visible declarations of the enclosing scope of a
1962         record_type_with_private to establish the proper visibility before
1963         freezing the entity and related subprograms.
1965 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
1967         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
1968         entry formals.
1970 2005-03-17  Thomas Quinot  <quinot@adacore.com>
1972         * exp_ch3.adb (Check_Attr): New subprogram.
1973         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
1974         into a new Check_Attr subprogram, in order to provide a more
1975         explanatory error message (including the name of the missing attribute).
1976         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
1977         subprogram determines whether a default implementation exists for a
1978         given stream attribute.
1979         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
1980         Determine whether to generate a default implementation for each stream
1981         attribute separately, as this depends on the specific attribute.
1983         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
1984         limited extension where a stream attribute is missing for a limited
1985         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
1986         generate a bogus reference to the missing attribute to prevent
1987         cascaded errors. Instead, generate a null statement.
1989         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
1990         available for a limited type if it has been specified for an ancestor
1991         of the type.
1993 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
1995         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
1996         entity is an operator.
1998 2005-03-17  Thomas Quinot  <quinot@adacore.com>
2000         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
2001         spec, to make this predicate available to other units.
2003         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
2004         reimplementing it.
2006         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
2007         when no distribution runtime library is available.
2009         * sem_res.adb, sem_dist.adb: Disable expansion of remote
2010         access-to-subprogram types when no distribution runtime library is
2011         available.
2012         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
2013         predicate available to other units.
2015         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
2016         spec, to make this predicate available to other units.
2018 2005-03-17  Vincent Celier  <celier@adacore.com>
2020         * make.adb (Insert_Project_Sources): Make sure the Q is always
2021         initialized.
2023         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
2024         the default for the tree, not the global default naming.
2026         * prj-proc.adb (Recursive_Process): No need to put the default naming
2027         in the project data, it's already there.
2029 2005-03-17  Doug Rupp  <rupp@adacore.com>
2031         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
2033         * 5xcrtl.ads: Renamed to...
2034         * s-crtl-vms64.ads: ...this new file
2036 2005-03-17  Robert Dewar  <dewar@adacore.com>
2038         PR ada/19519
2040         * namet.adb (Copy_One_Character): Set proper wide character encoding
2041         for upper half character if we have upper half encoding.
2043 2005-03-17  Robert Dewar  <dewar@adacore.com>
2045         * par.adb (Par): Improved msg for attempt to recompile predefined unit
2047 2005-03-17  Thomas Quinot  <quinot@adacore.com>
2049         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
2050         tagged limited type, the TSS is a newly built renaming declaration:
2051         insert it using Set_TSS, not Copy_TSS.
2053 2005-03-17  Javier Miranda  <miranda@adacore.com>
2055         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
2056         Try_Object_Operation): Analyze the object that is accessible
2057         through the prefix of the subprogram call before we apply
2058         the transformation of the object-operation notation.
2060 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
2062         * s-taprob.adb (Initialize_Protection): Initialize the protected
2063         object's owner to Null_Task.
2064         (Lock): If pragma Detect_Blocking is in effect and the caller of this
2065         procedure is already the protected object's owner then Program_Error
2066         is raised. In addition the protected object's owner is updated.
2067         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
2068         of this procedure is already the protected object's owner then
2069         Program_Error is raised.
2070         In addition the protected object's owner is updated.
2071         (Unlock): Remove the ownership of the protected object.
2073         * s-taprob.ads (Protection): Add the field Owner, used to store the
2074         protected object's owner.
2075         This component is needed for detecting one type of potentially blocking
2076         operations (external calls on a protected subprogram with the same
2077         target object as that of the protected action). Document the rest of
2078         the components.
2080         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
2081         Initialize the protected object's owner to Null_Task.
2082         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
2083         caller of this procedure is already the protected object's owner then
2084         Program_Error is raised.
2085         Do not raise Program_Error when this procedure is called from a
2086         protected action.
2087         (Unlock_Entries): Remove the ownership of the protected object.
2088         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
2089         of this procedure is already the protected object's owner then
2090         Program_Error is raised.
2091         Do not raise Program_Error when this procedure is called from
2092         a protected action.
2094         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
2095         used to store the protected object's owner.
2097         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
2098         effect and this procedure (a potentially blocking operation) is called
2099         from whithin a protected action, Program_Error is raised.
2100         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
2101         and this procedure (a potentially blocking operation) is called from
2102         whithin a protected action, Program_Error is raised.
2104 2005-03-17  Vincent Celier  <celier@adacore.com>
2105             Nicolas Setton  <setton@adacore.com>
2107         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
2108         switch, not supported by the linker on Darwin. Add '_' before
2109         <library>init, as this character is added unconditionally by the
2110         compiler.
2111         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
2112         correct one ".dylib". This fixes detection of the archive files when
2113         building library projects.
2115 2005-03-17  Vincent Celier  <celier@adacore.com>
2117         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
2118         -gnat83, -gnat95 and -gnat05.
2120 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
2122         * gnat_ugn.texi: Document gnatmem restriction
2124 2005-03-17  Thomas Quinot  <quinot@adacore.com>
2126         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
2127         cleanup
2129 2005-03-17  Robert Dewar  <dewar@adacore.com>
2131         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
2132         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
2133         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
2135         * casing.adb: Comment improvements
2137 2005-03-17  Pascal Obry  <obry@adacore.com>
2139         * g-expect.adb: Minor reformatting.
2141 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
2143         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
2144         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
2145         to dependencies.
2147 2005-03-15  Vincent Celier  <celier@adacore.com>
2149         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
2150         Add new parameter In_Tree to specify the project tree: needed
2151         by the project manager. Adapt to changes in project manager
2152         using new parameter In_Tree.
2154 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2156         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
2157         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
2158         ada/bldtools to avoid make -jN failures.
2160 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
2162         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
2163         to NULL_TREE on entry.
2165 2005-03-15  Robert Dewar  <dewar@adacore.com>
2167         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
2168         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
2169         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
2170         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
2171         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
2172         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
2173         system-interix.ads, system-solaris-sparc.ads,
2174         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
2175         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
2176         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
2177         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
2178         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
2179         Compiler_System_Version to be False.
2181         * opt.ads: Add new flag Opt.Address_Is_Private
2183         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
2184         Add new parameter Compiler_System_Version to avoid checking for
2185         completeness of parameters when compiler is compiling itself.
2186         Allows old versions of GNAT to be compiled with new compiler.
2188 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
2190         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
2191         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
2192         calling thread.
2193         (Stack_Base_Available): New flag.
2194         (Get_Page_Size): New overloaded functions imported from C.
2195         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
2196         PROT_ON, PROT_OFF): New constants.
2197         (mprotect): New function imported from C.
2198         (pthread_teb_t): New record type.
2200         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
2201         (Create_Task): Account for the Yellow Zone and the guard page.
2203 2005-03-15  Vincent Celier  <celier@adacore.com>
2205         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2206         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
2207         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
2208         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
2209         Library_File_Name_For): Add new parameter In_Tree
2210         to specify the project tree: needed by the project manager.
2211         Adapt to changes in project manager using new parameter In_Tree.
2212         Remove local imports, use functions in System.CRTL.
2214         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
2215         to use the project manager.
2217         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
2218         In_Tree to designate the project tree. Adapt to changes in the project
2219         manager, using In_Tree.
2221         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
2222         Copy_Interface_Sources): Add new parameter In_Tree to specify the
2223         project tree: needed by the project manager.
2224         (Build_Library): Check that Arg'Length >= 6 before checking if it
2225         contains "--RTS=...".
2227         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
2228         Library_File_Name_For): Add new parameter In_Tree to specify the
2229         project tree: needed by the project manager.
2231         * prj.ads, prj.adb: Major modifications to allow several project trees
2232         in memory at the same time.
2233         Change tables to dynamic tables and hash tables to dynamic hash
2234         tables. Move tables and hash tables from Prj.Com (in the visible part)
2235         and Prj.Env (in the private part). Move some constants from the visible
2236         part to the private part. Make other constants deferred.
2237         (Project_Empty): Make it a variable, not a function
2238         (Empty_Project): Add parameter Tree. Returns the data with the default
2239         naming data of the project tree Tree.
2240         (Initialize): After updating Std_Naming_Data, copy its value to the
2241         component Naming of Project Empty.
2242         (Register_Default_Naming_Scheme): Use and update the default naming
2243         component of the project tree, instead of the global variable
2244         Std_Naming_Data.
2245         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
2246         Tree is not defaulted, return the default naming data of the Tree.
2247         (Initial_Buffer_Size): Constant moved from private part
2248         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
2249         variables initialized in procedure Initialize.
2250         (Add_To_Buffer): Add two in out parameters to replace global variables
2251         Buffer and Buffer_Last.
2252         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
2253         functions.
2254         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
2255         hash tables.
2256         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
2257         for the project tree.
2258         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
2259         constant at the beginning of the package spec, so that they cane be used
2260         in subprograms before their full declarations.
2261         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
2262         (Empty_Project): Add parameter of type Project_Node_Ref
2263         (Private_Project_Tree_Data): Add component Default_Naming of type
2264         Naming_Data.
2265         (Buffer, Buffer_Last): remove global variables
2266         (Add_To_Buffer): Add two in out parameters to replace global variables
2267         Buffer and Buffer_Last.
2268         (Current_Packages_To_Check): Remove global variable
2269         (Empty_Name): Move to private part
2270         (No-Symbols): Make it a constant
2271         (Private_Project_Tree_Data): New type for the private part of the
2272         project tree data.
2273         (Project_Tree_Data): New type for the data of a project tree
2274         (Project_Tree_Ref): New type to designate a project tree
2275         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
2276         for the project tree.
2278         * prj-attr.ads: Add with Table; needed, as package Prj no longer
2279         imports package Table.
2281         * prj-com.adb: Remove empty, no longer needed body
2283         * prj-com.ads: Move most of the content of this package to package Prj.
2285         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
2286         designate the project node tree and Packages_To_Check to replace
2287         global variable Current_Packages_To_Check.
2288         Add new parameters In_Tree and Packages_To_Check to local subprograms,
2289         when needed. Adapt to changes in project manager with project node tree
2290         In_Tree.
2292         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
2293         project tree to most subprograms. Move tables and hash tables to
2294         private part of package Prj.
2295         Adapt to changes in project manager using project tree In_Tree.
2297         * prj-makr.adb (Tree): New constant to designate the project node tree
2298         Adapt to change in project manager using project node tree Tree
2300         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
2301         display the Library_Src_Dir and the Library_Dir.
2302         Add new parameter In_Tree to designate the project node tree to most
2303         subprograms. Adapt to changes in the project manager, using project tree
2304         In_Tree.
2305         (Check_Naming_Scheme): Do not alter the casing on platforms where
2306         the casing of file names is not significant.
2307         (Check): Add new parameter In_Tree to designate the
2309         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
2310         designate the project tree.
2311         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
2313         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
2314         to replace those that were in the private part of package Prj.
2315         Add new parameter In__Tree to designate the project node tree to most
2316         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
2317         (Post_Parse_Context_Clause): When specifying the project node of a with
2318         clause, indicate that it is a limited with only if there is "limited"
2319         in the with clause, not necessarily when In_Limited is True.
2320         (Parse): Add new parameter In_Tree to designate the project node tree
2322         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
2323         designate the project node tree. Adapt to change in Prj.Tree with
2324         project node tree In_Tree.
2326         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
2327         tree In_Tree in the call to function Empty_Process to give its initial
2328         value to the project data Processed_Data.
2329         Add new parameters In_Tree to designate the project tree and
2330         From_Project_Node_Tree to designate the project node tree to several
2331         subprograms. Adapt to change in project manager with project tree
2332         In_Tree and project node tree From_Project_Node_Tree.
2334         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
2335         to replace those that were in the private part of package Prj.
2336         Add new parameter In_Tree to designate the project node tree to most
2337         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
2339         * prj-tree.ads, prj-tree.adb: Add new parameter of type
2340         Project_Node_Tree_Ref to most subprograms.
2341         Use this new parameter to store project nodes in the designated project
2342         node tree.
2343         (Project_Node_Tree_Ref): New type to designate a project node tree
2344         (Tree_Private_Part): Change table to dynamic table and hash tables to
2345         dynamic hash tables.
2347         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
2348         the project tree to most subprograms. Adapt to changes in project
2349         manager using project tree In_Tree.
2351         * makegpr.adb (Project_Tree): New constant needed to use project
2352         manager.
2354 2005-03-15  Olivier Hainque  <hainque@adacore.com>
2356         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
2357         for sigactions with SA_SIGINFO set. Call
2358         __gnat_adjust_context_for_raise before raising, to perform the
2359         potentially required adjustments to the machine context for the GCC
2360         unwinder.
2362         * raise.h (__gnat_adjust_context_for_raise): New prototype.
2364         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
2365         Adjust PC by one in the provided machine context.
2366         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
2367         so that the handler is passed the context structure to adjust prior to
2368         the raise.
2369         (__gnat_error_handler) HPUX: Adjust the signature to match what an
2370         SA_SIGINFO sigaction should look like. Call
2371         __gnat_adjust_context_for_raise before actually raising.
2372         (__gnat_adjust_context_for_raise): Default noop to help PC
2373         adjustments before raise from signal handlers.
2374         (__gnat_error_handler): Indirectly call a predicate function to
2375         determine if a condition should be resignaled or not.
2376         (__gnat_set_resignal_predicate): User interface to modify the predicate.
2377         (__gnat_default_resignal_p): Default GNAT predicate.
2379 2005-03-15  Doug Rupp  <rupp@adacore.com>
2381         * adaint.c: Prefix #include of VMS system header files with vms/
2382         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
2383         Do not define a dummy function "convert_addresses" under Darwin,
2384         not needed.
2386         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
2387         with vms/
2389 2005-03-15  Nicolas Setton  <setton@adacore.com>
2391         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
2392         PPC/AIX.
2394 2005-03-15  Robert Dewar  <dewar@adacore.com>
2396         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
2397         AI-386.
2399         * a-retide.ads: Minor comment changes
2401 2005-03-15  Robert Dewar  <dewar@adacore.com>
2403         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
2404         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
2405         Realloc_For_Chunk to private part of package.
2406         New subprograms for AI-301
2408         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
2409         Get_Line procedure.
2410         Avoid unnecessary use of Get/Set_Wide_String
2412 2005-03-15  Robert Dewar  <dewar@adacore.com>
2414         PR ada/13470
2416         * a-stunau.ads, a-stunau.adb:
2417         Change interface to allow efficient (and correct) implementation
2418         The previous changes to allow extra space in unbounded strings had
2419         left this interface a bit broken.
2421         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
2423         * g-spipat.ads, g-spipat.adb: New interface for Get_String
2424         Minor reformatting (function specs)
2426         * g-spitbo.adb: New interface for Get_String
2428         * g-spitbo.ads: Minor reformatting
2430         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
2432         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
2434 2005-03-15  Javier Miranda  <miranda@adacore.com>
2435             Robert Dewar  <dewar@adacore.com>
2436             Thomas Quinot  <quinot@adacore.com>
2437             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2439         * atree.ads, atree.adb: Add support for Elist24 field
2441         * atree.h: Fix wrong definition of Field27
2442         Add support for Elist16 field
2443         Add support for Elist24 field
2445         * einfo.ads, einfo.adb (Abstract_Interfaces,
2446         Set_Abstract_Interfaces): New subprograms.
2447         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
2448         subprograms.
2449         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
2450         entities rather than a single node.
2451         (Is_Interface, Set_Is_Interface): New subprogram
2452         (First_Tag_Component): New syntesized attribute
2453         (Next_Tag_Component): New synthesized attribute
2454         (Write_Entity_Flags): Upgraded to write Is_Interface
2455         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
2456         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
2457         (Task_Body_Procedure): New subprogram to read this attribute.
2458         (Set_Task_Body_Procedure): New subprogram to set this attribute.
2459         (Has_Controlled_Component): Now applies to all entities.
2460         This is only a documentation change, since it always worked to apply
2461         this to other than composite types (yielding false), but now this is
2462         official.
2463         Update documentation on Must_Be_Byte_Aligned for new spec
2465         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
2466         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
2467         uses of the Access_Disp_Table attribute to reference the first dispatch
2468         table associated with a tagged type. As
2469         part of the implementation of abstract interface types,
2470         Access_Disp_Table has been redefined to contain a list of dispatch
2471         tables (rather than a single dispatch table).
2472         Similarly, upgrade all the references to Tag_Component by the
2473         new attribute First_Tag_Component.
2474         (Find_Inherited_TSS): Moved to exp_tss.
2475         Clean up test in Expand_N_Object_Declaration for cases
2476         where we need to do a separate assignment of the initial value.
2477         (Expand_N_Object_Declaration): If the expression in the
2478         declaration of a tagged type is an aggregate, no need to generate an
2479         additional tag assignment.
2480         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
2481         is to be deleted.
2482         Bit packed array ops are only called if operands are known to be
2483         aligned.
2484         (Component_Equality): When returning an N_Raise_Program_Error statement,
2485         ensure that its Etype is set to Empty to avoid confusing GIGI (which
2486         expects that only expressions have a bona fide type).
2487         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
2488         determine the amount of data to be copied.
2490         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
2491         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
2492             INTERFACE_TYPE_DEFINITION ::=
2493               [limited | task | protected | synchronized] interface
2494                 [AND interface_list]
2496         * par-ch3.adb (P_Type_Declaration): Modified to give support to
2497         interfaces.
2498         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
2499         interfaces.
2500         (P_Interface_Type_Definition): New subprogram that parses the new
2501         syntax rule of Ada 2005 interfaces
2502         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
2503         messages by the correct RENAMES (quotes removed).
2505         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
2506         attribute First_Tag_Component.
2508         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
2509         (Interface_List, Set_Interface_List): New subprograms.
2510         (Interface_Present, Set_Interface_Present): New subprograms.
2511         (Limited_Present, Set_Limited_Present): Available also in derived
2512         type definition nodes.
2513         (Protected_Present, Set_Protected_Present): Available also in
2514         record type definition and
2515         derived type definition nodes.
2516         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
2517         (Task_Present, Set_Task_Present): New subprogram.
2518         (Task_Body_Procedure): Removed.
2519         (Set_Task_Body_Procedure): Removed.
2520         These subprogram have been removed because the attribute
2521         Task_Body_Procedure has been moved to the corresponding task type
2522         or task subtype entity to leave a field free to store the list
2523         of interfaces implemented by a task (for AI-345)
2524         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
2525         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
2526         expression flag Do_Range_Check
2527         (Exception_Junk): Change to Flag7 to accomodate above change
2528         (Box_Present, Default_Name, Specification, Set_Box_Present,
2529         Set_Default_Name, Set_Specification): Expand the expression
2530         "X in N_Formal_Subprogram_Declaration" into the corresponding
2531         two comparisons. Required to use the csinfo tool.
2533         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
2534         "with string" given.
2536         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
2537         expression given.
2539         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
2540         in 2005 mode
2542         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
2543         attribute Task_Body_Procedure rather than the old semantic field that
2544         was available in the task_type_declaration node.
2546         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
2547         interface type definitions.
2548         (P_Formal_Derived_Type_Definition): Modified to handle the list of
2549         interfaces.
2551         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
2552         task type declaration.
2553         (P_Protected): Modified to handle the list of interfaces in a
2554         protected type declaration.
2556 2005-03-15  Doug Rupp  <rupp@adacore.com>
2557             Vincent Celier  <celier@adacore.com>
2559         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
2560         (Gen_Output_File_C): Likewise.
2561         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
2563 2005-03-15  Thomas Quinot  <quinot@adacore.com>
2565         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
2566         is an N_Raise_Constraint_Error node, create a new copy of it without
2567         going through a call to Duplicate_Subexpr.
2569 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
2570             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2571             Nicolas Setton  <setton@adacore.com>
2572             Ed Schonberg  <schonberg@adacore.com>
2574         PR ada/19900
2575         PR ada/19408
2576         PR ada/19140
2577         PR ada/20255
2579         * decl.c (gnat_to_gnu_field): Reject aliased components with a
2580         representation clause that prescribes a size not equal to the rounded
2581         size of their types.
2582         (gnat_to_gnu_entity, case E_Component): Always look at
2583         Original_Record_Component if Present and not the entity.
2584         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
2585         of tagged extension types by not making field for components that are
2586         inside the parent.
2587         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
2588         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
2589         expression to the type of the object when the object is constant.
2590         Reverse defer_debug_incomplete_list before traversing it, so that trees
2591         are processed in the order at which they were added to the list. This
2592         order is important when using the stabs debug format.
2593         If we are deferring the output of debug information, also defer this
2594         output for a function return type.
2595         When adding fields to a record, prevent emitting debug information
2596         for incomplete records, emit the information only when the record is
2597         complete.
2598         (components_to_record): New parameter defer_debug.
2599         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
2600         (gnat_to_gnu_field_decl): New function.
2601         (substitution_list, annotate_rep): Call it.
2602         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
2603         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
2604         No longer update discriminants to not be a COMPONENT_REF.
2605         (copy_alias_set): Strip padding from input type; also handle
2606         unconstrained arrays properly.
2608         * gigi.h (write_record_type_debug_info): New function.
2609         Convert to use ANSI-style prototypes. Remove unused
2610         declarations for emit_stack_check, elab_all_gnat and
2611         set_second_error_entity.
2612         (gnat_to_gnu_field_decl): New decl.
2614         * utils.c (write_record_type_debug_info): New function.
2615         (finish_record_type): Delegate generation of debug information to
2616         write_record_type_debug_info.
2617         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
2618         (update_pointer_to): Fix pasto.
2619         (convert) <UNION_TYPE>: Accept slight type variations when
2620         converting to an unchecked union type.
2622         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
2623         replace the N_Freeze_Entity with a null statement.
2625         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
2626         within a constrained subcomponent of an enclosing record, place the
2627         freeze nodes in the scope stack entry for the enclosing record.
2628         (Undelay_Type): New Subprogram.
2629         (Set_Small_Size): Pass T, the type to modify; all callers changed.
2630         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
2631         within records; allow them to have freeze nodes if their base types
2632         aren't frozen yet.
2634         * exp_util.adb (Remove_Side_Effects): Properly test for
2635         Expansion_Delayed and handle case when it's inside an
2636         N_Qualified_Expression.
2638         * sem_ch3.adb (Derived_Type_Declaration): New predicate
2639         Comes_From_Generic, to recognize accurately that the parent type in a
2640         derived type declaration can be traced back to a formal type, because
2641         it is one or is derived from one, or because its completion is derived
2642         from one.
2643         (Constrain_Component_Type): If component comes from source and has no
2644         explicit constraint, no need to constrain in in a subtype of the
2645         enclosing record.
2646         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
2647         Minor change to propagate Is_Ada_2005 flag
2649         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
2650         Expansion_Delayed is False.
2651         (assoc_to_constructor): Ignore fields that have a
2652         Corresponding_Discriminant.
2653         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
2654         function returns "by target", dereference the target pointer using the
2655         type of the actual return value.
2656         <all>: Be prepared for a null gnu_result.
2657         (processed_inline_subprograms): Check flag_really_no_inline
2658         instead of flag_no_inline.
2659         (set_second_error_entity): Remove unused function.
2660         (gnat_to_gnu, case N_Selected_Component): Call
2661         gnat_to_gnu_field_decl.
2662         (assoc_to_constructor): Likewise.
2664 2005-03-15  Robert Dewar  <dewar@adacore.com>
2665             Ed Schonberg  <schonberg@adacore.com>
2666             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2668         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
2669         Must_Be_Byte_Aligned for cases where we do not need to use a
2670         System.Pack_nn unit.
2672         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
2673         as procedures.
2674         Needed now that we do some processing for IN parameters as well. This
2675         may well fix some unrelated errors.
2676         (Expand_Call): Handle case of unaligned objects (in particular those
2677         that come from packed arrays).
2678         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
2679         renamed entity is an inherited operation, re-expand the call using the
2680         original operation, which is the one to call.
2681         Detect attempt to inline parameterless recursive subprogram.
2682         (Represented_As_Scalar): Fix to work properly with private types
2683         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
2684         accurate estimate. Yields True in far fewer cases than before,
2685         improving the quality of code that depends on this test.
2687         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
2688         over both visible and private declarations to remove them from tree,
2689         and mark subprograms declared in package as eliminated, to prevent
2690         spurious use in subsequent compilation of generic units in the context.
2692         * exp_util.ads: Minor cleanup in variable names
2694         * sem_eval.ads, sem_eval.adb: Minor reformatting
2695         (Compile_Time_Known_Bounds): New function
2697 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
2699         * exp_ch7.adb (Convert_View): Use base types of underlying types when
2700         determining whether an unchecked conversion is needed for the argument
2701         of an initialization call.
2703 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
2705         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
2706         that appears in the instantiation rather than the internal subtype
2707         generated in the wrapper package, to avoid anomalies in gigi when the
2708         target is derived from a private type whose full view is an access type.
2710 2005-03-15  Robert Dewar  <dewar@adacore.com>
2712         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
2713         not needed.
2714         Add documentation to replace the use of this flag
2715         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
2716         the x86_64.
2718 2005-03-15  Thomas Quinot  <quinot@adacore.com>
2720         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
2721         here from exp_attr so it can be shared between exp_attr and exp_dist.
2722         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
2723         all TSS names, not a subset thereof, and the previous name introduced
2724         an unnecessarily confusion that a distinction might exist between
2725         "OK" TSS names and some "not OK" TSS names.
2727 2005-03-15  Doug Rupp  <rupp@adacore.com>
2729         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
2730         Command_Name.
2732 2005-03-15  Pascal Obry  <obry@adacore.com>
2733             Eric Botcazou  <ebotcazou@adacore.com>
2735         PR ada/20226
2736         PR ada/20344
2738         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
2739         when IN_RTS. This is to work around a bootstrap path problem.
2741         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
2742         table and pass it to __gnat_install_SEH_handler().
2743         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
2745         * lang.opt: Fix specification of -fRTS=.
2747 2005-03-15  Doug Rupp  <rupp@adacore.com>
2748             Bernard Banner  <banner@adacore.com>
2749             Vincent Celier  <celier@adacore.com>
2750             Arnaud Charlet  <charlet@adacore.com>
2752         PR ada/6852
2753         This change works fine when gnatlib is built from the gcc directory,
2754         but does not work when using the libada Makefile, since GCC_FOR_TARGET
2755         is not passed to ada/Makefile.in, so more work is needed by a
2756         Makefile/configure expert.
2758         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
2759         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
2760         Setup gnatlink switch -M for x86_64 linux, as it is already setup
2761         for Linux x86.
2762         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
2763         Run ranlib on libgccprefix.a
2764         Define PREFIX_OBJS for Darwin, to build libgccprefix.
2765         (ADA_INCLUDE_SRCS): Split Ada packages.
2767 2005-03-15  Robert Dewar  <dewar@adacore.com>
2769         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
2771         * impunit.adb: Add GNAT.UTF_32
2773         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
2775         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
2776         now uses GNAT.UTF_32).
2778         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
2779         capabilities for categorizing characters using Unicode categories
2781 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
2783         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
2784         instantiation that has been rewritten as a package body, retrieve spec
2785         to generate proper name for implicit_with_clause.
2786         (Install_Parents): Recognize a parent that is an instantiation but has
2787         been rewritten as a package declaration during analysis.
2789 2005-03-15  Javier Miranda  <miranda@adacore.com>
2790             Ed Schonberg  <schonberg@adacore.com>
2792         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
2793         parameter reported some error we immediately return. This improves the
2794         behaviour of the frontend in case of errors.
2795         (Install_Parent, Remove_Parent): Introduce new flag
2796         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
2797         ancestor of a generic child unit, when the child is being instantiated.
2798         (Inline_Instance_Body): If we are compiling the private
2799         part or the body of a child unit, restore the proper visibility of the
2800         parents after compiling the instance body.
2802 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
2803             Javier Miranda  <miranda@adacore.com>
2805         PR ada/15608
2806         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
2807         of a private type, in which case it is underlying_type that denotes
2808         the proper task. Also modified to use the new entity attribute
2809         that is directly available in the task type and task subtype entities
2810         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
2811         arrays when other dimensions than the first are constrained by
2812         discriminants of an enclosing record.
2813         (Insert_Explicit_Dereference): If the prefix is an indexed component or
2814         a combination of indexed and selected components, find ultimate entity
2815         and generate the appropriate reference for it, to suppress spurious
2816         warnings.
2817         (Note_Possible_Modification): If an entity name has no entity, return.
2818         (Is_Variable): A function call never denotes a variable.
2819         (Requires_Transient_Scope): For record types, recurse only on
2820         components, not on internal subtypes that may have been generated for
2821         constrained components.
2823 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
2825         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
2826         Eliminated as candidates for resolution. Both efficient, and avoids
2827         anomalies with operators declared in deleted code.
2828         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
2829         expansion is disabled (as when compiling a generic) to prevent spurious
2830         warnings on prefixes of selected components.
2832 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
2834         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
2835         attached to a list before checking whether it appears in the private
2836         declarations of the current package.
2837         (Make_Inequality_Operator): Insert declaration in proper declarative
2838         list rather than just setting the Parent field, so that
2839         Is_Private_Declaration can handle it properly.
2841 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
2843         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
2844         a renaming a body, check that the renamed subprogram in not intrinsic.
2845         (Find_Direct_Name): If several use_visible entities hide
2846         each other, and the context is a predefined file compiled through
2847         rtsfind, keep only the entity that comes from a predefined file.
2849 2005-03-15  Geert Bosch  <bosch@adacore.com>
2851         * s-fatgen.adb (Valid): Extend special exceptions to account for long
2852         long float padding to also cover AMD64 and IA64.
2854 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
2856         * s-imgwch.adb: Add with and use of Interfaces.
2857         (Img_Wide_Character): Change type of Val to Unsigned_16.
2858         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
2860 2005-03-15  Matthew Gingell  <gingell@adacore.com>
2862         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
2864 2005-03-15  Robert Dewar  <dewar@adacore.com>
2866         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
2868         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
2870         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
2872 2005-03-15  Robert Dewar  <dewar@adacore.com>
2874         * s-bitops.adb, s-bitops.ads,
2875         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
2876         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
2877         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
2878         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
2879         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
2880         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
2881         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
2882         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
2883         reformatting.
2885 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
2887         * utils2.c (build_binary_op): Fix typo.
2889 2005-03-15  Doug Rupp  <rupp@adacore.com>
2891         * s-crtl.ads (popen,pclose): New imports.
2893 2005-03-15  Cyrille Comar  <comar@adacore.com>
2895         * comperr.adb (Compiler_Abort): remove references to obsolete
2896         procedures in the bug boxes for various GNAT builds.
2898 2005-03-15  Vincent Celier  <celier@adacore.com>
2900         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
2902 2005-03-15  Geert Bosch  <bosch@adacore.com>
2903             Arnaud Charlet  <charlet@adacore.com>
2904             Robert Dewar  <dewar@adacore.com>
2905             Cyrille Comar  <comar@adacore.com>
2906             Sergey Rybin  <rybin@adacore.com>
2908         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
2909         too specific and long-winded to be appropriate for the GNAT User's
2910         Guide.
2911         Warn about use of GCC switches not documented in the GNAT User's Guide,
2912         as these may cause generated code to not conform to Ada semantics.
2913         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
2914         Add documentation for -gnat95 and -gnat05 switches
2915         Remove paragraph documenting obsolete way to refer to third party
2916         libraries.
2917         Add a few references to Ada_05 that were missing.
2918         Update documentation on -gnatZ/-gnatL.
2919         Document limitation when using -m64 under Solaris.
2920         Change the "Name Casing" subsection of the pretty-printer section
2921         according to the changes in the dictionary processing.
2923         * gnat_rm.texi: Document the Ada_05 pragma.
2924         Section on record representation clauses describes the new more
2925         relaxed rules about placement of large packed bit array components.
2926         Add documentation of GNAT.UTF_32
2928 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
2930         * misc.c (gnat_post_options): Turn off structural
2931         aliasing for now.
2933 2005-03-08  Laurent Guerby <laurent@guerby.net>
2935         * system-linux-sparc.ads: Fix typo in previous commit.
2937 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
2938             Laurent Guerby <laurent@guerby.net>
2940         PR ada/20035
2941         * system-linux-sparc.ads: New.
2942         * Makefile.in: Add sparc linux entry.
2944 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
2946         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
2947         parameters as unused.
2949 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2950         Partial merge from libada-gnattools-branch:
2952         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
2953         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
2954         into code in gnattools/Makefile.in.  Remove direct dependencies on
2955         stamp-tools by tools clauses.
2956         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
2957         * config-lang.in: Add gnattools to $lang_dirs.
2959 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
2961         PR ada/19942
2962         * utils.c (gnat_type_for_mode): Return null instead of ICE because
2963         we asked for an unknown mode.
2965 2005-02-12  Richard Henderson  <rth@redhat.com>
2967         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
2968         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
2970 2005-02-10  Andreas Jaeger  <aj@suse.de>
2972         * init.c (__gnat_initialize): Mark parameter as unused.
2974 2005-02-09  Doug Rupp  <rupp@adacore.com>
2976         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
2977         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
2979 2005-02-09  Doug Rupp  <rupp@adacore.com>
2981         * gnatchop.adb (dup, dup2),
2982         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
2984         * gnatlbr.adb (mkdir),
2985         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
2987         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
2989 2005-02-09  Doug Rupp  <rupp@adacore.com>
2991         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
2993 2005-02-09  Robert Dewar  <dewar@adacore.com>
2994             Thomas Quinot  <quinot@adacore.com>
2995             Javier Miranda  <miranda@adacore.com>
2996             Pascal Obry  <obry@adacore.com>
2997             Ed Schonberg  <schonberg@adacore.com>
2998             Doug Rupp  <rupp@adacore.com>
2999             Gary Dismukes  <dismukes@adacore.com>
3000             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3002         * g-zstspl.ads: New file.
3004         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
3006         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
3007         Ada 95 mode
3008         Add definition of Wide_Wide_Space for AI-285
3010         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
3011         interface (to support Ada 95 and Ada 2005 units).
3012         Add Unbounded_IO files
3013         Add entries for Wide_Wide packages for AI-285
3014         Add list of containers packages to Ada 2005 unit list
3016         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
3017         support new Unbounded_IO package cleanly.
3019         * g-utf_32.ads, g-utf_32.adb: New files.
3021         * Makefile.rtl: Add entry for g-utf_32
3022         Add new files for Unbounded_IO
3023         Adjust make file for new AI-285 wide wide packages
3024         Add AI-302 containers to the run time.
3026         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
3027         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
3028         subprograms for AI-301.
3030         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
3032         * a-stunau.ads: Minor comment correction
3034         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
3035         etc.
3036         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
3037         (Check_RPC): Update to match changes in expanded code.
3038         Clean up unused entity.
3040         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
3041         was not taken into account.
3042         This includes proper initialization with Normalize_Scalars.
3043         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
3044         normalize scalars cases (particularly the latter) to do a better job
3045         of finding invalid representations.
3047         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
3049         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
3050         used
3052         * exp_dist.adb: Add support for wide wide character type
3053         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
3054         private part, generate stub bodies at the end of the private part,
3055         not the visible part.
3056         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
3057         PolyORB support.
3058         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
3059         generic wrapper to execute final processing after completing the
3060         expansion of the RPC receiver for an RACW.
3062         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
3063         packages and attributes.
3064         (Preset_Names): Addition of the new reserved words of Ada 2005,
3065         that is interface, overriding and synchronized.
3066         (Get_Pragma_Id): Give support to the use of the new reserved word
3067         "interface" as a pragma name.
3068         (Is_Pragma_Name): Give support to the use of the new reserved word
3069         "interface" as a pragma name.
3070         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
3071         attribute implementation.
3073         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
3074         checks to entities that are output parameters of Asm operations.
3075         Handle the Stream_Size attribute.
3076         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
3078         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
3080         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
3081         for second parameter being 0.0.
3082         Add support for wide wide character type.
3083         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
3085         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
3086         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
3087         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
3088         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
3089         for wide wide character cases.
3091         * cstand.adb: Create entities for Wide_Wide_Character and
3092         Wide_Wide_String.
3094         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
3095         accordance with AI-258.
3096         Add new declarations for 16/32 bit C character types (Part of AI285)
3098         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
3099         (Obsolescent_Warning): New field
3100         (Rep_Clause): New local subprogram used to share code. Returns the rep
3101         clause for which the name is given in parameter.
3102         (Has_Stream_Size_Clause): New routine.
3103         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
3104         (Address_Clause): Implementation is now using Rep_Clause.
3105         (Alignment_Clause): Idem.
3106         (Size_Clause): Idem.
3108         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
3109         entity in non-Ada 2005 mode and generate warning.
3111         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
3112         (Prag): Code cleanup. Remove old gnat pragma "overriding"
3114         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
3115         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
3116         on the named unit if the pragma is not in the current compilation unit,
3117         so that elaboration calls in the current unit can set up an elaboration
3118         dependency on the named unit, as needed.
3119         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
3120         subprogram as well as for subprograms declared within a package.
3121         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
3122         pragma overriding.
3124         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
3125         to z) to avoid some instances of duplication for Wide_Wide packages.
3127         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
3128         characters.
3130         * scn.adb: Char_Literal_Value field is now a Uint
3132         * scng.adb: Significant rewrite to handle new Ada 2005 features
3133         allowing wide and wide wide characters in program text, e.g. for
3134         identifiers, as described in AI-285.
3135         (Set_Reserved): New procedure, makes setting up keywords cleaner.
3136         (Initialize_Scanner): Register the new reserved words of Ada 2005.
3137         (Scan): Give support to the new reserved words.
3139         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
3140         warning notifying that interface, overriding, and synchronized are
3141         new reserved words.
3142         (P_Pragma): Allow the use of the new reserved word "interface" as
3143         a pragma name.
3145         * gnatls.adb, gnatbind.adb,
3146         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
3147         identifiers named "interface" to "SAL_Interface".
3149         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
3150         (Structured Exception handling).
3151         (Gen_Main_C): Idem.
3153         * bindgen.adb:
3154         (Gen_Main_Ada): Set the default exit code if specified.
3155         (Gen_Main_C): Likewise.
3156         Part of *DC20-006.
3157         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
3158         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
3160         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
3161         new -Xnnn switch.
3163         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
3164         has a collision with the new Ada 2005 "interface" reserved word.
3166         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
3167         generate a warning notifying that interface, overriding, and
3168         synchronized are new reserved words.
3170         * scans.ads (Token_Type): Addition of the tokens corresponding to the
3171         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
3172         and Tok_Synchronized.
3174         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
3175         "dispatching" rather than "primitive" operations, since dispatching
3176         calls are now allowed to abstract formal subprograms (which are not
3177         primitive).
3178         Char_Literal_Value field is now a Uint
3179         (Resolve_Slice): If the prefix is an access to an unconstrained array,
3180         compute the actual subtype of the designated object to impose the proper
3181         index constraints.
3182         (Resolve_Selected_Component): Do not insert an access check if the
3183         prefix is an access type: such a node is expanded into an explicit
3184         dereference, on which the access check is performed anyway. Removes
3185         expensive duplicate checks.
3186         (Resolve_Call): Use new flag Is_Obsolescent and field
3187         Obsolescent_Warning so that pragma Obsolescent works on library
3188         subprograms.
3189         Add support for wide wide character type
3190         (Resolve_Allocator): Replace the error message on wrong null-exclusion
3191         value by a warning message.
3192         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
3193         as fixed-point, and one of the operands is non-static and universal, it
3194         can only be an illegal exponentiation operation, in which case there is
3195         no real value to retrieve.
3197         * exp_strm.adb: Add support for wide wide character type
3198         (Build_Elementary_Input_Call): Compute the size of the stream element by
3199         querying the rep chain to find the Stream_Attribute attribute value.
3200         (Build_Elementary_Write_Call): Ditto.
3202         * sem_aggr.adb: Char_Literal_Value field is now a Uint
3203         Add support for wide wide character type
3204         Replace the error messages on wrong null-exclusion value by warnings
3205         as described in Ada 2005.
3206         (Resolve_Extension_Aggregate): Document the fact that the error
3207         message on class-wide expressions in extensions aggregates.
3209         * sem_case.adb: Add support for wide wide character type
3211         * sem_ch13.adb: Add support for wide wide character type
3212         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
3214         * sem_ch3.adb: Add support for wide wide character type
3215         (Process_Subtype): If constraint is illegal for the type, set Ekind of
3216         now-useless Itype, to prevent cascaded errors on a compiler built
3217         without -gnatp.
3219         * sem_ch8.adb: Add with and use of Sem_Disp.
3220         (Analyze_Subprogram_Renaming): Replace unclean uses of
3221         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
3222         of Corresponding_Spec to Empty).
3223         (Attribute_Renaming): Replace use of Corresponding_Spec with
3224         Corresponding_ Formal_Spec and simplify condition.
3225         (Use_One_Package): Check that scope of homonym of identifier is defined,
3226         before checking whether it is a wrapper package.
3227         Add support for wide wide character type
3229         * sem_eval.adb: Add support for wide wide character type.
3230         (Eval_Arithmetic_Op): Check for compile time known signed integer
3231         overflow in the non-static case.
3232         (Subtypes_Statically_Match): A formal scalar type and its base type do
3233         not statically match.
3235         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
3236         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
3237         subtype).
3238         (Unit_Declaration_Node): Ditto.
3239         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
3240         has a packed array type, the prefix has been rewritten into a type
3241         conversion. Determine variable-ness from the converted expression.
3242         Handle wide wide character cases.
3244         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
3246         * stringt.ads, stringt.adb: Handle full UTF-32 range.
3247         Remove ["0A"] from comment, since it can look like a line terminator.
3248         Currently we don't permit this, but this is under discussion by the
3249         ARG, and it is easy enough to use a different example.
3251         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
3252         handling UTF-32 encoding for wide wide character.
3253         Implement new brackets coding ["hhhhhhhh"]
3254         Add UTF-8 encodings for full UTF-32 range
3256         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
3258         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
3259         bit range Add full UTF-32 support.
3260         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
3261         notify that constraint error will be raised at run-time
3262         because a null value is assigned to a null-excluding object.
3263         Remove some obsolete declarations and make Char_Code
3264         unsigned.
3266         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
3267         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
3268         Rcheck subprograms.
3270         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
3271         wrong null-exclusion value by a warning message.
3272         (Enable_Range_Check): Do range check if the prefix is an
3273         explicit dereference whose designated object is an unconstrained array.
3274         Current algorithm for removing duplicate checks is over-eager in this
3275         case.
3277         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
3278         null-exclusion value by a warning message
3280         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
3281         completely. Add support for Uint2 field
3283         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
3284         exp_prag.adb: Char_Literal_Value field is now a Uint.
3286         * exp_util.adb (Insert_Actions): Replace
3287         N_Formal_Subprogram_Declaration by
3288         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
3289         Char_Literal_Value field is now a Uint.
3291         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
3292         defined for subprogram renaming declarations. When set, the field
3293         indicates the defining entity of a corresponding formal subprogram
3294         when the renaming corresponds to a formal subprogram association in an
3295         instantiation.
3296         (Set_Corresponding_Formal_Spec): New procedure to return
3297         Corresponding_Formal_Spec field.
3298         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
3299         (which is now a subtype).
3300         Char_Literal_Value field is now a Uint
3302         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
3303         pointer to the base of the dispatch table.
3304         Minor changes to comments.
3305         (Controlling_Type): New function for determining the tagged type
3306         associated with a tagged primitive subprogram.
3307         (Expand_Dispatching_Call): Add support for a controlling actual that is
3308         directly a value of type Ada.Tag rather than a tagged object.
3310         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
3311         describing the new layout.
3312         (Dispatch_Table): The expander computes the actual array size, allocates
3313         the Dispatch_Table record accordingly, and generates code that displaces
3314         the base of the record after the Typeinfo_Ptr component. The access to
3315         these components is done by means of local functions.
3316         (Offset_To_Top): New function.
3317         (Typeinfo_Ptr): New function.
3318         (Get_TSD): Modified to access the new position of the TSD.
3319         (Set_TSD): Modified to save the TSD in its new position.
3321         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
3322         case of formal abstract subprograms. Add check and message for -gnat05.
3323         Update comments.
3325         * sem_ch12.adb: Add with and use for Sem_Disp.
3326         (Analyze_Associations): Minor change from "=" to "in" for use of
3327         N_Formal_Subtype_Declaration (which is now a subtype).
3328         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
3329         N_Formal_Subtype_Declaration (which is now a subtype).
3330         (Analyze_Formal_Subprogram): Add handling for
3331         N_Formal_Abstract_Subprogram, marking the formal as abstract and
3332         dispatching, setting the controlling status of the formal parameters
3333         and result, and issuing an error if there is no controlling type for
3334         the formal subprogram.
3335         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
3336         which is an unclean use of that field, we set the new field
3337         Corresponding_Formal_Spec to make the formal subprogram available to
3338         processing in Analyze_Subprogram_Declaration.
3339         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
3340         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
3341         Constrained, so that it is is does not statically match its anonymous
3342         base type.
3344         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
3345         abstract formal subprograms in error check for functions returning
3346         abstract types. Set scope of new designator for
3347         a parameterless subprogram, so that it is available when checking the
3348         body for nested subprograms, before full analysis of said body.
3349         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
3350         subprogram only if inner one comes from source.
3351         (Analyze_Function_Call): If the call is given in object notation, the
3352         analysis of the name rewrites the node and analyzes it with the proper
3353         argument list. After analyzing the name, if the call has been rewritten
3354         and the result type is set, no further analysis is needed.
3355         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
3356         mark in function specification, in a context where the formals are
3357         visible and hide outer homographs.
3359         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
3360         as the tagged type for the cases of abstract formal subprograms and
3361         renamings of those.  Clean up spec comments.
3362         (Check_Dispatching_Context): Add error message to indicate "abstract
3363         procedure", covering the case of a call to a formal abstract procedure
3364         that has statically tagged operands.
3365         (Check_Dispatching_Call): Check for the case of an actual given by
3366         a tag-indeterminate function call whose type is an ancestor of the
3367         containing call's associated tagged type. This situation can occur
3368         for inherited primitives with function defaults. In this case we
3369         use the tagged type's tag directly as the controlling argument for
3370         the calls.
3371         (Expand_Call): Name change on call to Expand_Dispatch_Call.
3373         * sprint.adb (Sprint_Node_Actual): Split
3374         N_Formal_Subprogram_Declaration into two alternatives for the new
3375         cases N_Formal_Abstract_Subprogram_Declaration and
3376         N_Formal_Concrete_Subprogram_Declaration.
3377         Char_Literal_Value field is now a Uint.
3379         * trans.c: Get rid of junk Uint2 reference.
3380         Char_Literal_Value field is now a Uint.
3381         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
3382         (gigi): Correct third arg to gimplify_body.
3384         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
3385         (TYPE_LANG_FLAG_0): Check for record or union.
3387         * treepr.adb: Char_Literal_Value field is now a Uint
3389         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
3390         UI_From_CC.
3392         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
3393         Add full UTF-32 support
3394         Char_Code is now 32 bits
3396         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
3397         wide character UTF_32 line terminators.
3398         Initialize Main_Source_File to avoid error when no main
3399         source is loaded.
3401         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
3402         (Main_Source_File) when no main source has been loaded, to avoid
3403         potential crash.
3405 2005-02-09  Robert Dewar  <dewar@adacore.com>
3407         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
3408         Fix name of Set routine
3410         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
3411         fixed packages.
3413         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
3414         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
3415         fixed packages
3417         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
3418         forms of Get_Line subprograms for AI-301.
3420         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
3421         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
3422         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
3423         a-stwima.ads: Minor reformatting.
3425 2005-02-09  Doug Rupp  <rupp@adacore.com>
3426             Thomas Quinot  <quinot@adacore.com>
3428         * adaint.c, adaint.h
3429         [VMS] (to_ptr32): New function.
3430         (MAYBE_TO_PTR32): New macro.
3431         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
3432         for pointer size.
3433         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
3434         [VMS] (#define fork()): Remove since unneccessary.
3435         (__gnat_set_close_on_exec): New routine to support
3436         GNAT.OS_Lib.Set_Close_On_Exec.
3438         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
3439         the parent side as close-on-exec so that they are not inherited by the
3440         child.
3442         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
3443         set or clear the FD_CLOEXEC flag on a file descriptor.
3445 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
3446             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3448         Fix for c330001 - PR ada/19386
3450         * decl.c:
3451         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
3452         on the field if Pragma Component_Alignment (Storage_Unit).
3453         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
3454         side-effects as if it were a constant; also make SAVE_EXPR to protect
3455         side-effects.
3456         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
3457         UNION_TYPE.
3458         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
3459         (components_to_record): Test it.
3460         Fix improper usage of REFERENCE_CLASS_P.
3462         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
3463         RECORD_TYPE.
3465         * utils2.c: Minor reformatting.
3467         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
3468         handle other cases like RECORD_TYPE.
3470         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
3472 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
3474         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
3475         component of an array of arrays in an assignment context, and the
3476         aggregate has component associations that require sliding on
3477         assignment, force reanalysis of the aggregate to generate a temporary
3478         before the assignment.
3479         (Must_Slide): Make global to the package, for use in Gen_Assign.
3481 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
3483         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
3484         unchecked union with no inferable discriminants, return a
3485         Raise_Program_Error node, rather than inserting it at the point the
3486         type is frozen.
3487         (Expand_Record_Equality, Component_Equality): Handle properly the case
3488         where some subcomponent is an unchecked union whose generated equality
3489         code raises program error.
3491 2005-02-09  Doug Rupp  <rupp@adacore.com>
3493         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
3494         [VMS] (#define exit hack): Remove.
3496 2005-02-09  Pascal Obry  <obry@adacore.com>
3497             Arnaud Charlet <charlet@adacore.com>
3499         * init.c (__gnat_initialize): Add a new parameter eh which contains the
3500         address of the exception registration. The Win32 version of this
3501         routine calls __gnat_install_SEH_handler() to initialize the SEH
3502         (Structured Exception Handling) handler.
3503         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
3504         SEH (Structured Exception Handling) now.
3505         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
3506         (__gnat_initialize for ppc-vxworks): Adjust comments and the
3507         preprocessor condition protecting the call to the extra eh setup
3508         subprogram, which is only available for the ppc target.
3509         (__gnat_clear_exception_count): replaced reference to
3510         variable taskIdCurrent by call to taskIdSelf(), cleaner.
3512         * seh_init.c: New file.
3514         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
3515         (GNATBIND_OBJS): Idem.
3517         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
3518         routine takes a new parameter (a pointer to the exception registration
3519         for the SEH (Structured Exception Handling) support.
3521         * raise.h: (__gnat_install_SEH_handler): New prototype.
3522         Update copyright notice.
3524         * s-tassta.adb (Task_Wrapper): Declare the exception registration
3525         record and initialize it by calling __gnat_install_SEH_handler.
3527 2005-02-09  Vincent Celier  <celier@adacore.com>
3529         * make.adb (Gnatmake): Do not fail when the main project has no object
3530         directory.
3532 2005-02-09  Doug Rupp  <rupp@adacore.com>
3534         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
3535         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
3536         [VMS]: Add translations for g-enblsp.adb.
3538         * s-asthan-vms.adb: Removed.
3539         * s-asthan-vms-alpha.adb: Added.
3541 2005-02-09  Pascal Obry  <obry@adacore.com>
3543         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
3544         (LIBGNAT_OBJS): Add seh_init.o.
3546 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
3548         PR ada/16592
3550         * Makefile.in: Link all gnat tools with -static-libgcc, since
3551         -shared-libgcc is now used by default on some systems (e.g. linux with
3552         recent binutils).
3553         Remove references to Makefile.prolog/generic, no longer used.
3555 2005-02-09  Vincent Celier  <celier@adacore.com>
3557         * prj-makr.adb (Process_Directory): Put file name in canonical case
3558         before matching against the patterns.
3559         If gnatname has been invoked as <prefix>-gnatname
3560         then invoke the compiler as <prefix>-gcc, not just "gcc".
3562 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
3564         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
3565         with expansion disabled. The actual subtype is needed among other
3566         places when the selected component appears in the context of a loop
3567         bound, and denotes a packed array.
3568         (Operator_Check): Always use the first subtype in the
3569         error message, to avoid the appearance of internal base types.
3570         (Transform_Object_Operation): Copy each actual in full
3571         to the parameter associations of the constructed call, rather than
3572         using the shallow copy mechanism of New_Copy_List. This ensures that
3573         the chaining of named associations is done properly.
3574         (Complete_Object_Operation): Rewrite node, rather than
3575         replacing it, so that we can trace back to the original selected
3576         component.
3578         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
3579         and calls that use object notation, if the called function is not
3580         declared  in a withed unit, place the elaboration constraint on the
3581         unit in the context that makes the function accessible.
3582         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
3583         imposes an elaboration constraint between two packages.
3585 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
3587         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
3588         views of a private type after handling its private dependents, to
3589         maintain proper stack discipline between entry and exit from the
3590         package.
3592 2005-02-09  Cyrille Comar  <comar@adacore.com>
3594         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
3595         Minor reformatting.
3597 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
3599         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
3600         fields for foreign threads.
3602 2005-02-09  Doug Rupp  <rupp@adacore.com>
3604         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
3605         recursion warnings when compiled with -gnatdm.
3607 2005-02-09  Robert Dewar  <dewar@adacore.com>
3609         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
3610         Slight fix to documentation of -gnaty with no parameters
3612         * xr_tabls.ads: Add ??? comment for missing overall comment
3614         * xsinfo.adb: Make default file name be sinfo.h, since this is what
3615         we now use by default.
3617         * xsnames.adb: Adjust end of file test to look for five space followed
3618         by '#' instead of six spaces. The format of xsnames.adb was modified
3619         in the last update.
3621         * a-numeri.ads: Add reference to AI-388 for greek letter pi
3622         identifier.
3624         * clean.adb: Minor reformatting.
3626         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
3627         gnatname.adb: Minor reformatting
3628         Add 2005 to copyright output when utility is run
3630         * csets.adb: Eliminate obsolete comment
3632         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
3633         Update comments.
3635         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
3637 2005-02-09  Sergey Rybin  <rybin@adacore.com>
3639         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
3640         the difference between compact and incompact layout and add the record
3641         representation clause to the example illustrating different layouts.
3642         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
3643         component clauses").
3645 2005-02-09  Florian Villoing  <villoing@adacore.com>
3647         * gnat_ugn.texi: Fix typos.
3648         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
3649         @file.
3650         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
3651         in the generated documentation.
3653 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
3655         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
3656         longer supported.
3657         Update linker wrapper when linking with non GNU C++.
3659 2005-02-09  Pascal Obry  <obry@adacore.com>
3661         * gnat_ugn.texi:
3662         Document the procedure to debug the DllMain routine on Windows.
3663         Add note about -funwind-tables and mixed Ada and C/C++ programming in
3664         ZCX mode.
3665         Document new BIND qualifer /RETURN_CODES=VMS.
3667 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
3669         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
3670         Edited gnatmetric chapter
3672 2005-02-09  Robert Dewar  <dewar@adacore.com>
3674         * gnat_rm.texi:
3675         Changes to document new wide wide character support
3676         For AI-285
3677         Update documentation on Normalize_Scalars and Initialize_Scalars
3679 2005-02-09  Pascal Obry  <obry@adacore.com>
3681         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
3683 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
3685         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
3686         from the VxWorks kernel) that is needed for getting the active
3687         priority of the different tasks.
3689         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
3690         Use a pragma Elaborate_Body in the spec file instead.
3691         Noticed by code reading.
3693 2005-02-09  Thomas Quinot  <quinot@adacore.com>
3695         * exp_util.ads: Minor correction in comment.
3697 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
3699         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
3700         since this procedure is now too complex to be worth inlining.
3702 2005-02-09  Richard Henderson  <rth@redhat.com>
3704         * utils.c (gnat_define_builtin): Remove.
3705         (gnat_install_builtins): Use build_common_builtin_nodes.
3707 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
3709         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
3710         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
3711         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
3712         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
3713         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
3714         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
3715         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
3716         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
3717         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
3718         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
3719         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
3720         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
3721         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
3722         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
3723         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
3724         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
3725         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
3726         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
3727         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
3728         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
3729         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
3730         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
3731         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
3732         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
3733         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
3734         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
3735         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
3736         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
3737         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
3738         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
3739         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
3740         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
3741         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
3742         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
3743         library.
3745 2005-01-27  Laurent GUERBY <laurent@guerby.net>
3747         * Makefile.in: Fix a-intnam.ads from previous commit,
3748         add 2005 to copyright.
3749         * a-intman-rtems.ads: Renamed to...
3750         * a-intnam-rtems.ads:
3752 2005-01-27  Laurent GUERBY <laurent@guerby.net>
3754         * Makefile.in: Rename GNAT RTEMS specific files.
3755         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
3756         5rosinte.ads, 5rparame.adb: Replaced by files below.
3757         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
3758         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
3760 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
3761             Laurent GUERBY <laurent@guerby.net>
3763         PR ada/19488
3764         * 5rosinte.ads: Add No_Key constant.
3765         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
3766         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
3768 2005-01-26  Laurent GUERBY <laurent@guerby.net>
3770         PR ada/19414
3771         * i-cobol.adb (Valid_Numeric): Handle zero length case.
3773 2005-01-20  Richard Henderson  <rth@redhat.com>
3775         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
3776         a-intnam-linux.ads and system-linux-alpha.ads.
3777         * a-intnam-linux-alpha.ads: Remove file.
3778         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
3779         * system-linux-alpha.ads: New file.
3781 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
3783         PR ada/13470
3784         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
3785         set to the new string.
3787 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
3789         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
3790         to True.
3792 2005-01-18  Richard Henderson  <rth@redhat.com>
3794         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
3795         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
3796         for alpha-linux.
3797         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
3799 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
3801         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
3802         (GCC_ZCX_Support): Likewise.
3804 2005-01-11  Bastian Blank  <waldi@debian.org>
3806         * system-linux-s390.ads: Define Preallocated_Stacks.
3807         * system-linux-s390x.ads: Likewise.
3809 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
3811         * gnat_ugn.texi: Fix texi errors with null variables.
3813 2005-01-03  Thomas Quinot  <quinot@adacore.com>
3815         * gen-soccon.c: New utility program to generate g-soccon.ads
3816         automatically.
3818         * socket.c, gsocket.h: Split inclusion of system header files into a
3819         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
3821         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
3822         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
3823         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
3824         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
3825         should not be edited by hand anymore, but should be regenerated using
3826         gen-soccon.
3828 2005-01-03  Robert Dewar  <dewar@adacore.com>
3829             Ed Schonberg  <schonberg@adacore.com>
3830             Vincent Celier  <celier@adacore.com>
3832         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
3833         on/off, since this is an obsolescent feature, for which we now generate
3834         a warning.
3836         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
3837         warning mode is set and obsolescent usage of this attribute occurs.
3838         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
3839         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
3840         predates, and partly motivates, the adoption of the AI.
3841         Implement new Ada 2005 attribute Mod
3843         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
3844         attribute Mod.
3846         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
3848         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
3849         pragma restrictions.
3850         New entry for Ada 2005 attribute Mod.
3852         * par-prag.adb:
3853         Add recognition of new pragma Restrictions No_Dependence
3854         Recognize restriction No_Obsolescent_Features at parse time
3856         * bcheck.adb: Add circuitry for checking for consistency of
3857         No_Dependence restrictions.
3859         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
3860         restrictions.
3862         * restrict.ads, restrict.adb: Add subprograms to deal with
3863         No_Dependence restrictions.
3865         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
3866         restrictions.
3868         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
3869         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
3871         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
3872         dummy parameter to scng instantiation.
3873         Needed for new restriction No_Obsolescent_Features
3875         * scn.adb: (Obsolescent_Check): New procedure
3876         Needed for new restriction No_Obsolescent_Features
3878         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
3879         specified by AI-285, needed for implementation of AI-388 (adding greek
3880         pi to Ada.Numerics).
3881         Add new generic formal to scng, needed for new restriction
3882         No_Obsolescent_Features.
3884         * s-rident.ads: Add new restriction No_Obsolescent_Features.
3886         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
3887         restrictions lines.
3888         (Scan_ALI): When finding an unexpected character on an R line, raise
3889         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
3890         Ignore_Errors is True, default restrictions are set and scanning of the
3891         ALI file continues with the next line. Also, when Bad_R_Line is raised
3892         and Ignore_Errors is True, skip to the end of le line.
3894         * sem_ch10.adb: Check that explicit with's do not violate
3895         No_Dependence restrictions.
3896         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
3897         illegal context clauses containing child units of instance.
3899         * sem_prag.adb: Processing and checking for new No_Dependence
3900         restrictions.
3901         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
3902         analyze and check the External argument.
3904         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
3906 2005-01-03  Robert Dewar  <dewar@adacore.com>
3908         * atree.adb: Add a fifth component to entities
3909         This allows us to add 32 flags and four new fields
3911         * atree.ads: Add a fifth component to entities
3912         This allows us to add 32 flags and four new fields
3914         * einfo.ads, einfo.adb: Document new fields and new flags now available
3915         Add routines for printing new fields
3917         * treepr.adb: Call routines to print out additional fields if present
3919 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
3921         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
3922         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
3924         * Makefile.in: Add support to build shared Ada libraries on solaris x86
3925         Remove gpr2make, replaced by gprmake.
3926         Remove references to gnatmem and libaddr2line.
3927         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
3928         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
3929         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
3930         a-numaux-darwin.ads and a-numaux-darwin.adb
3931         Enable mlib-tgt-lynxos.adb on lynxos.
3933         * Make-lang.in: Remove rules for gpr2make.
3934         When generating sdefault.adb, do not call Relocate_Path
3935         on S3 for function Target_Name, as it is not a path.
3936         Remove references to gnatmem and libaddr2line.
3938         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
3939         files.
3941 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
3943         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
3944         address is incompatible with its base type alignment constraints when
3945         this can be decided statically.
3947 2005-01-03  Olivier Hainque  <hainque@adacore.com>
3949         * decl.c (compatible_signatures_p): New function. The intended purpose
3950         is to check if two function signatures for a call-site and a callee are
3951         compatible enough for the call to be valid. The underlying purpose is
3952         to check if a call to a mapped builtin is using the right interface.
3953         The current code actually does not check antyhing - this a placeholder
3954         for future refinements.
3955         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
3956         builtin calls for convention Intrinsic.
3958         * gigi.h (builtin_decl_for): Declare (new function).
3960         * utils.c (gnat_install_builtins): Install the target specific builtins.
3961         (builtin_decl_for): New function, provide a dummy body for now.
3963 2005-01-03  Geert Bosch  <bosch@adacore.com>
3965         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
3966         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
3967         (Pred): Implement in terms of Succ.
3969         * trans.c (convert_with_check): Reimplement conversion of float to
3970         integer.
3972 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
3973             Vincent Celier  <celier@adacore.com>
3975         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
3976         bounds can be negative, and must be declared Int, not Nat.
3978         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
3979         array is checked after using the index in the array.
3981         * makegpr.adb (Add_Switches): Check if there is a package for the
3982         processor. If there is no package, do not look for switches.
3984 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
3986         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
3987         generation of predefined stream operations (specs and bodies) should
3988         proceed. Under various restrictions these subprograms must not be
3989         generated.
3991 2005-01-03  Thomas Quinot  <quinot@adacore.com>
3993         * exp_dist.adb:
3994         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
3995         amount of PCS-specific code in RACW stubs generation.
3996         (Copy_Specification): Set Etype on copied formal parameter entities, as
3997         this information is needed for PolyORB stubs generation.
3998         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
3999         variable Dynamic_Async.
4000         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
4001         (Build_RPC_Receiver_Specification): Make generic again, as recent
4002         changes have allowed RPC receivers to have the same profile for both
4003         variants of the PCS.
4004         Reorganise RPC receiver generation to reduce differences between the
4005         structure of GARLIC and PolyORB RPC receivers.
4006         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
4007         PCS-specific.
4008         Simplify elaboration code for RCI packages.
4010         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
4011         generation to reduce differences between the structure of GARLIC and
4012         PolyORB RPC receivers.
4014         * s-stratt.adb: Fix typo in comment.
4016 2005-01-03  Thomas Quinot  <quinot@adacore.com>
4018         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
4019         copied from Make_Init_Call).
4021         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
4022         reads and assignments on a temporary variable declared with appropriate
4023         discriminants.
4025 2005-01-03  Robert Dewar  <dewar@adacore.com>
4027         * i-c.adb (To_C): Raise CE if string is null and Append_Null
4029 2005-01-03  Robert Dewar  <dewar@adacore.com>
4031         * i-cstrin.adb (Update): Do not append a null in form called with a
4032         String. This avoids unintended behavior.
4034 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
4036         PR ada/17527
4037         * init.c: Fix warnings on Free BSD section.
4039 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
4041         PR ada/16949
4042         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
4043         xsinfo.adb).
4045 2005-01-03  Vincent Celier  <celier@adacore.com>
4047         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
4048         libraries when Unique_Compile is True (-u switch).
4049         (Gnatmake): ditto.
4051 2005-01-03  Robert Dewar  <dewar@adacore.com>
4053         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
4054         upper case letter or underscore after W, as allowed by spec.
4056 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
4058         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
4059         darwin port by using proper type definitions from header files.
4060         Use SIGTERM instead of SIGABRT for SIGADAABORT.
4062 2005-01-03  Robert Dewar  <dewar@adacore.com>
4064         * par.adb: Enhance error message handling for configuration file
4065         pragmas.
4067 2005-01-03  Robert Dewar  <dewar@adacore.com>
4069         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
4070         removed during the previous update (test properly for case of dividing
4071         largest negative number by -1, which generates overflow).
4073 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
4074             Sergey Rybin  <rybin@adacore.com>
4076         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
4077         to use as the defining identifier for a formal package.
4078         (Remove_Parent): If the instance takes place within (an instance of)
4079         a sibling, preserve private declarations of common parent.
4081 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
4083         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
4084         to determine whether one of the operands is a fixed-point type for
4085         which a user-defined multiplication or division operation might be
4086         defined.
4088         * sem_res.adb (Valid_Conversion): The legality rules for conversions
4089         of access types are symmetric in Ada 2005: either designated type can
4090         be unconstrained.
4092 2005-01-03  Vincent Celier  <celier@adacore.com>
4094         * s-fileio.adb (Temp_File_Record): Change length of string component
4095         Name from L_tmpnam + 1 to max_path_len + 1.
4097 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
4099         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
4100         Self_Id.Deferral_Level = 0.
4101         (Do_Pending_Action): Move this function to the spec.
4103         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
4104         Do_Pending_Action explicitely when needed, in case we're using
4105         No_Abort restrictions.
4107         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
4108         deferral level since it will not get changed by the generated code.
4109         Keeping a default value of 1 would prevent some operations (e.g.
4110         select or delay) to proceed successfully.
4112 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
4113             Robert Dewar  <dewar@adacore.com>
4114             Cyrille Comar  <comar@adacore.com>
4116         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
4117         porting guide chapter (vms version).
4118         Revised doc title (removed "for native platforms") and subtitle.
4119         Add discussion on warning flag for obsolescent features. First we
4120         note that it applies to obsolete GNAT features, which was previously
4121         omitted. Second we contrast the behavior with that of the new
4122         Ada 2005 AI-368 restriction No_Obsolescent_Features.
4123         Preliminary rewriting of GNAT & libraries chapter in order to take
4124         into account default project locations & new project manager
4125         capabilities.
4127 2005-01-03  Robert Dewar  <dewar@adacore.com>
4129         * cstand.adb (Create_Operators): Clean up format and documentation of
4130         unary and binary operator result tables. No change in code, just
4131         reformatting and addition of comments.
4133         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
4134         sem_ch2.adb: Minor reformatting
4136         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
4137         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
4138         comments for Tree_Read and Tree_Write.
4140 2005-01-03  Pascal Obry  <obry@adacore.com>
4142         * exp_attr.ads: Minor reformatting.
4144 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
4146         * comperr.adb (Compiler_Abort): Add specialized message for GAP
4147         versions.
4149 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
4151         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
4152         whether the ancestor type is private, as may be the case with nested
4153         instantiations.
4155 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
4157         PR ada/19128
4158         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
4160 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
4162         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
4163         * utils2.c (build_unary_op): Likewise.
4165 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4167         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
4169 2004-12-19  Richard Henderson  <rth@redhat.com>
4171         * trans.c (gigi): Update gimplify_body call.
4173 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
4175         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
4177 2004-12-07  Ed Falis  <falis@adacore.com>
4179         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
4180         current task being suspended.
4182         * init.c (__gnat_clear_exception): added to reset VxWorks exception
4183         count.
4184         (__gnat_map_signal): removed test for current task being suspended.
4186 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
4188         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
4189         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
4190         targets (such as AAMP).
4192 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
4194         * atree.adb (Visit_Itype): Create a new name for the generated itype,
4195         because the back-end may otherwise treat it as a redefinition of the
4196         old symbol.
4198 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
4200         * back_end.adb (Scan_Back_End_Switches): Accept --param.
4202         * lang-specs.h: Accept --param.
4204 2004-12-07  Vincent Celier  <celier@adacore.com>
4206         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
4207         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
4208         Current_Body_Suffix => Ada_Body_Suffix).
4209         Take into account Externally_Built attribute.
4211         * clean.adb (In_Extension_Chain): Always return False when one of the
4212         parameter is No_Project.
4213         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
4214         Ada_Language_Index).
4215         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
4216         Process_Languages for procedure Parse).
4218         * gnatcmd.adb (Carg_Switches): New table.
4219         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
4220         Adapt to name changes in package Prj (Current_Spec_Suffix =>
4221         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
4223         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
4224         Header_Num and function Hash are now declared in package Prj,
4225         not Prj.Com.
4227         * prj.adb (Suffix_Of): New function.
4228         (Set (Suffix)): New procedure.
4229         (Hash): One function moved from Prj.Com
4230         (Is_Present, Language_Processing_Data_Of): New functions
4231         (Set): Two new procedures
4232         (Add_Language_Name, Display_Language_Name): New procedures
4234         * prj.ads: (Suffix_Of): New function
4235         (Set (Suffix)): New procedure
4236         Add several types and tables for multi-language support.
4237         (Header_Num): Type moved from Prj.Com
4238         (Hash): Two functions moved from Prj.Com
4239         (Is_Present, Language_Processing_Data_Of): New functions
4240         (Set): Two new procedures
4241         (Add_Language_Name, Display_Language_Name): New procedures
4242         (Naming): Component name changes:
4243         Current_Spec_Suffix => Ada_Spec_Suffix,
4244         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
4245         Impl_Suffixes, Supp_Suffixes.
4246         (Project_Data): New components: Externally_Built, Supp_Languages,
4247         First_Language_Processing, Supp_Language_Processing, Default_Linker,
4248         Default_Linker_Path.
4250         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
4251         new package Language_Processing with its attributes (Compiler_Driver,
4252         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
4253         Binder_Driver, Default_Linker).
4255         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
4256         (Header_Num): Type moved to package Prj
4258         * prj-env.adb: Adapt to name changes in package Prj
4259         (Current_Spec_Suffix => Ada_Spec_Suffix,
4260         Current_Body_Suffix => Ada_Body_Suffix).
4262         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
4263         default to the project path, except the "-" is one of the directories
4264         in env var ADA_PROJECT_PATH.
4265         (Current_Project_Path): Global variable, replacing Project_Path
4266         that was in the body of Prj.Part.
4267         (Project_Path): New function
4268         (Set_Project_Path): New procedure
4269         Initialize Current_Project_Path during elaboration of the package
4270         Remove dependency on Prj.Com, no longer needed
4272         * prj-ext.ads (Project_Path): New function
4273         (Set_Project_Path): New procedure
4275         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
4276         suffix is defined for language <lang>.
4277         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
4278         accessing directly the components of Naming.
4279         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
4280         Reorganise of this package.
4281         Break procedure Check in several procedures.
4283         * prj-nmsc.ads: Replace all procedures (Ada_Check,
4284         Other_Languages_Check and Language_Independent_Check) with a single
4285         procedure Check.
4287         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
4288         Process_Languages, no longer needed.
4290         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
4291         Current_Project_Path.
4292         Remove elaboration code, moved to the body of Prj.Ext
4293         Use new function Prj.Ext.Project_Path instead of old variable
4294         Project_Path.
4295         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
4296         When comparing with project paths on the stack, first put the resolved
4297         path in canonical case.
4298         (Parse_Single_Project): Set the path name of the project file in the
4299         tree to the normalized path.
4301         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
4302         parameter Process_Languages, no longer needed.
4303         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
4304         Other_Languages_Check.
4306         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
4307         to store the resolved canonical path of the project file.
4308         Remove dependency to Prj.Com, no longer needed
4310         * prj-util.adb: Adapt to name changes in package Prj
4311         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
4312         Ada_Body_Suffix).
4314         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
4315         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
4316         Externally_Built, Include_Option, Language_Processing.
4318         * makegpr.adb: Numerous changes due to changes in packages
4319         Prj and Prj.Nmsc.
4321         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
4322         default to the project path, except whe "-" is one of the directories
4323         in env var ADA_PROJECT_PATH.
4324         (Gnatls): In verbose mode, add the new section "Project Search Path:"
4326 2004-12-07  Robert Dewar  <dewar@adacore.com>
4328         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
4330         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
4331         set -gnatR3m mode.
4333         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
4334         flag. No longer needed now that we handle this in gnat1drv.adb.
4336         * repinfo.ads: Minor reformatting
4338 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4339             Olivier Hainque  <hainque@adacore.com>
4340             Eric Botcazou  <ebotcazou@adacore.com>
4342         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
4343         TYPE_SIZE_UNIT of result type if SIZE is not specified.
4344         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
4345         of a bitfield, which we know is useless and causes trouble because of
4346         alignment implications.
4348         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
4349         BSS sections.
4350         (process_attributes): Clear DECL_COMMON again when a section attribute
4351         is present.
4352         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
4353         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
4354         (create_field_decl): Special case ADDRESSABLE negative to mean
4355         "no bitfield creation", to be used by make_aligning_type. Don't
4356         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
4357         fields claimed addressable still have to be bitfields. Use
4358         value_factor_p instead of a raw binop construction to check for the
4359         position's alignment.
4361 2004-12-07  Geert Bosch  <bosch@adacore.com>
4363         * eval_fat.adb: Revert previous change.
4365 2004-12-07  Thomas Quinot  <quinot@adacore.com>
4366             Ed Schonberg  <schonberg@adacore.com>
4368         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
4369         with an implicit dereference as its prefix, use
4370         Insert_Explicit_Dereference instead of merely rewriting the prefix into
4371         an explicit dereference. This ensures that a reference to the original
4372         prefix is generated, if appropriate.
4374         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
4375         dereference is rewritten to an explicit one, generate a reference to
4376         the entity denoted by its prefix using the original prefix node, so
4377         the dereference can be properly recorded as a read of the denoted
4378         access value, if appropriate.
4380         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
4381         emitting 'assigned but never read' warning on a variable on the basis
4382         that it has an access type.
4383         (Check_References): Emit unreferenced warning when the scope is a
4384         subprogram body.
4386 2004-12-07  Robert Dewar  <dewar@adacore.com>
4387             Ed Schonberg  <schonberg@adacore.com>
4389         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
4390         intrinsic
4392         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
4393         leaving call unchanged.
4394         This deals with the case where the pragma Import specified
4395         an external name, to be handled by the back end.
4397         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
4398         subprogram which is Imported with convention Intrinsic if an
4399         External_Name argument is specified.
4400         (Process_Import_Or_Interface): Properly diagnose link name argument.
4401         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
4402         with Sem_Ch6.Cannot_Inline.
4403         (Process_Inline): Provide separate warning for inapplicable inline
4404         pragma.
4405         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
4406         treatment is uniform on different targets.
4408 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
4410         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
4411         construct is rewritten, preserve end label to permit source navigation.
4413 2004-12-07  Thomas Quinot  <quinot@adacore.com>
4415         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
4416         Specific_Build_Stub_Target): New subprograms.
4417         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
4418         the PCS implementation used, using the above PCS-customized subprograms.
4419         Minor reformatting.
4420         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
4421         for generation of DSA code targeted to the PolyORB PCS.
4422         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
4423         implementation of the partition communication subsystem in ancillary
4424         subprograms.
4425         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
4426         PolyORB_Support.Build_Stub_Type): New subrograms containing the
4427         PCS-specific part of Add_Stub_Type.
4428         (Insert_Partition_Check): Use runtime library function to perform
4429         E.4(19) check.
4431         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
4432         (RE_Same_Partition): New entity, from s-parint.
4434         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
4436 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
4438         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
4439         Output the copyright message on a separate line from the version
4440         message.
4442 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
4444         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
4445         compile-time warning.
4447 2004-12-07  Robert Dewar  <dewar@adacore.com>
4449         * g-regpat.adb: (Match): Change a misuse of or to or else
4451 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
4453         * lib-xref.adb:
4454         (Generate_Reference): Handle properly a reference to an entry formal,
4455          when an accept statement has a pragma Unreferenced for it.
4457         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
4458         and the Has_Pragma_Unreferenced flag for each formal before analyzing
4459         the body, to ensure that warnings are properly emitted for each accept
4460         statement of a given task entry.
4462 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
4464         * Makefile.in: Add support for foreign threads on VMS.
4466 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4468         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
4469         Remove.
4470         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
4472         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
4474         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
4475         exception.
4476         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
4478 2004-12-07  Robert Dewar  <dewar@adacore.com>
4480         * nlists.adb (Prepend_Debug): Remove parameters and nest within
4481         Prepend.
4482         (Remove_Next_Debug): Same fix
4484         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
4485         maintain back pointers now, though we did not used to, and comments
4486         were out of date).
4487         (Prepend): Remove pragma Inline.
4488         (Remove_Next): Same cleanup
4490 2004-12-07  Thomas Quinot  <quinot@adacore.com>
4492         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
4493         used to record an implicit dereference as a read operation on its
4494         prefix when operating under -gnatc. Necessary to avoid spurious
4495         'variable assigned but never read' warnings in that mode.
4496         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
4497         is a non-overloaded implicit dereference, call the above subprogram to
4498         ensure proper recording of references.
4500 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
4502         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
4503         to be resolved later as part of Analyze_Iteration_Scheme's call to
4504         Make_Index.
4506 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
4508         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
4509         prefix is not a scalar type, place error message on prefix, not on
4510         type entity.
4512 2004-12-07  Bernard Banner  <banner@adacore.com>
4514         * vxaddr2line.adb: Add support for x86 vxworks
4516 2004-12-07  Thomas Quinot  <quinot@adacore.com>
4518         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
4519         documentation of the behaviour of these functions when passed an IP
4520         address that has no record in the system hosts database and no reverse
4521         record in the DNS.
4523         * cstand.adb, a-tags.ads: Fix typos in comment.
4525 2004-12-07  Robert Dewar  <dewar@adacore.com>
4527         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
4528         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
4529         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
4530         s-poosiz.ads: Minor reformatting
4532         * make.adb: Minor reformatting
4533         Add some ??? comments asking for more comments
4535         * s-poosiz.adb: Minor reformatting
4536         Add comments on alignment requirement
4538         * sinfo.ads: Remove obsolete comment and fix typo.
4540 2004-12-07  Vincent Celier  <celier@adacore.com>
4541             Sergey Rybin  <rybin@adacore.com>
4543         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
4544         Files" with the new tool and package names.
4545         Reformatting to suppress most of the warnings for line too long
4546         Document the new section "Project Search Path:" in the output of
4547         gnatls -v.
4548         Add gnatmetric section
4550 2004-12-07  Vincent Celier  <celier@adacore.com>
4552         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
4553         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
4554         and -eit to -ept. Added qualifier
4555         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
4557 2004-11-27  Andreas Schwab  <schwab@suse.de>
4559         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
4561 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
4563         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
4564         internal implementation unit GNAT.Sockets.Thin,
4565         as their usage for sockets is non-portable (using the read and write
4566         functions from the system runtime library is fine on UNIX but won't
4567         work under Windows).
4569         * mingw32.h: Update copyright notice.
4571 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
4573         * ada-tree.h: Minor reformatting of previous change to avoid lines
4574         longer than 79 characters.
4576 2004-11-25  Olivier Hainque  <hainque@adacore.com>
4578         * tb-gcc.c: GCC infrastructure based implementation of
4579         __gnat_backtrace.
4581 2004-11-24  Steven Bosscher  <stevenb@suse.de>
4583         * misc.c (gnat_post_options): Don't clear
4584         flag_inline_functions.
4586 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
4588         PR ada/17986
4589         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
4590         tree.
4592 2004-11-21  Andreas Jaeger  <aj@suse.de>
4594         * stylesw.adb: Change Style_Check_Subprogram_Order to
4595         Style_Check_Order_Subprograms.
4597 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
4599         * adaint.h, adaint.c
4600         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
4601         to avoid warnings.
4602         Add also a cast to kill another warning.
4603         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
4604         parameter with the priority class of the parent process instead of
4605         always using the NORMAL_PRIORITY_CLASS.
4606         (__gnat_dup): New function.
4607         (__gnat_dup2): New function.
4608         (__gnat_is_symbolic_link): Enable the effective body of this
4609         function when __APPLE__ is defined.
4611         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
4612         Update comments.
4614 2004-11-18  Olivier Hainque  <hainque@adacore.com>
4616         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
4617         address of which may be used to represent "others" and "all others"
4618         choices in exception tables, instead of the current harcoded
4619         (void *)0 and (void *)1.
4620         (Setup_Exception): Do nothing in the GNAT SJLJ case.
4622         * gigi.h (others_decl, all_others_decl): New decls representing the
4623         new Others_Value and All_Others_Value objects.
4624         (struct attrib): Rename "arg" component as "args", since GCC expects a
4625         list of arguments in there.
4627         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
4628         corresponding objects exported by a-exexpr, instead of hardcoded dummy
4629         addresses.
4631         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
4632         others_decl and all_others_decl instead of hardcoded dummy addresses
4633         to represent "others" and "all others" choices, which is cleaner and
4634         more flexible with respect to the possible eh pointer encoding policies.
4636         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
4637         (process_attributes): Account for the naming change of the "args"
4638         attribute list entry component.
4640         * decl.c (build_attr_list): Rename into prepend_attributes to allow
4641         cumulating attributes for different entities into a single list.
4642         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
4643         attributes for the current entity and propagate first subtype
4644         attributes to other subtypes.
4645         <E_Procedure>: Attribute arguments are attr->args and not
4646         attr->arg any more.
4647         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
4648         argument provided, as this is what GCC expects. Use NULL_TREE instead
4649         of 0 for trees.
4651 2004-11-18  Robert Dewar  <dewar@adacore.com>
4653         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
4654         Minor reformatting througout (including new function specs)
4655         Add ??? comments asking for clarification.
4657 2004-11-18  Thomas Quinot  <quinot@adacore.com>
4659         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
4660         incomplete duplicate implementation of this subprogram from butil.
4662 2004-11-18  Thomas Quinot  <quinot@adacore.com>
4664         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
4665         procedures factors the common processing for building an RPC receiver
4666         for an RCI package or an RACW type.
4667         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
4668         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
4669         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
4670         in use.
4671         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
4672         Add_RACW_Features.
4673         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
4674         Add_RAST_Features.
4675         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
4676         distribution subprogram identifiers that are either subprogram numbers
4677         or strings.
4678         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
4679         string distribution identifiers assigned to a given subprogram.
4680         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
4681         (Add_RAS_Dereference_TSS): Add comments.
4682         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
4683         is not referenced yet because it will be used by the PolyORB DSA
4684         implementation.
4685         (Insert_Partition_Check): Remove fossile code.
4686         (First_RCI_Subprogram_Id): Document this constant.
4687         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
4688         RAS_Access TSS.
4689         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
4690         replaced with calls to Get_Library_Unit_Name_String. Previously there
4691         were several instances of the same code in different locations in the
4692         compiler; this checkin completes the replacement of all of these
4693         instances with calls to a common subprogram.
4694         Minor reformatting.
4696         * sem_dist.adb: Remove comment noting that RPC receiver generation
4697         should be disabled for RACWs that implement RASs.
4698         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
4700         * sem_util.ads, sem_util.adb (Has_Stream): New function
4701         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
4702         qualified name of a library unit into the name buffer.
4703         (Note_Possible_Modification): Generate a reference only
4704         if the context comes from source.
4706         * snames.ads (PCS_Names): New subtype corresponding to names of
4707         supported implementations of the Partition Communication Subsystem
4708         (PCS) (i.e. the runtime library support modules for the distributed
4709         systems annex).
4711 2004-11-18  Robert Dewar  <dewar@adacore.com>
4712             Ed Schonberg  <schonberg@adacore.com>
4714         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
4715         (Has_Rep_Pragma): New function
4716         (Has_Attribute_Definition_Clause): New function
4717         (Record_Rep_Pragma): Moved here from sem_ch13.adb
4718         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
4720         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
4722         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
4723         (Expand_Pragma_Psect_Object): New procedure
4724         These procedures contain the revised and cleaned up processing for
4725         these two pragmas. This processing was formerly in Sem_Prag, but
4726         is more appropriately moved here. The cleanup involves making sure
4727         that the pragmas are properly attached to the tree, and that no
4728         nodes are improperly shared.
4730         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
4731         pragmas to Exp_Prag, which is more appropriate.
4732         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
4733         check for duplicates Remove use of Is_Psected flag, no longer needed.
4734         Use new Make_String_Literal function with string.
4736         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
4737         that are functions return universal values, that have to be converted
4738         to the context type.
4739         Use new Make_String_Literal function with string.
4740         (Get_Stream_Convert_Pragma): New function, replaces the use of
4741         Get_Rep_Pragma, which had to be kludged to work in this case.
4743         * freeze.adb: Use new Has_Rep_Pragma function
4745         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
4746         function with string.
4747         Use new Has_Rep_Pragma function.
4749         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
4750         string argument.
4752 2004-11-18  Robert Dewar  <dewar@adacore.com>
4754         * errout.ads, errout.adb: (First_Sloc): New function
4756         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
4757         check (-gnatyx) instead of being included as a redundant construct
4758         warning.
4760         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
4761         Style_Check_Order_Subprograms.
4763         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
4764         stylesw.adb: Add Style_Check_Xtra_Parens
4766         * usage.adb: Add line for -gnatyx (check extra parens)
4768         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
4770 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
4771             Robert Dewar  <dewar@adacore.com>
4773         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
4774         discriminant of a constrained subtype, analyze the copy of the
4775         corresponding constraint, because in some cases it may be only
4776         partially analyzed.
4777         Removes long-lived ??? comments.
4779         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
4780         handled controlled or secondary-stack expressions within the
4781         iteration_scheme of a loop.
4783         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
4784         bounds that may contain functions calls, to prevent memory leaks when
4785         the bound contains a call to a function that uses the secondary stack.
4786         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
4787         generate temporaries for loop bounds that might contain function calls
4788         that require secondary stack and/or finalization actions.
4790         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
4791         selected component and the selector is overloadable (not just a
4792         function) treat as function call, Analyze_Call will disambiguate if
4793         necessary.
4794         (Analyze_Selected_Component): Do not generate an actual subtype for the
4795         selected component if expansion is disabled. The actual subtype is only
4796         needed for constraint checks.
4797         (Analyze_Allocator): If restriction No_Streams is set, then do
4798         not permit objects to be declared of a stream type, or of a
4799         composite type containing a stream.
4801         * restrict.ads: Remove the a-stream entry from Unit_Array, since
4802         No_Streams no longer prohibits with'ing this package.
4804         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
4805         discriminants, but the parent base has unknown discriminants, there is
4806         no discriminant constraint to inherit. Such a discrepancy can arise
4807         when the actual for a formal type with unknown discriminants is a
4808         similar private type whose full view has discriminants.
4809         (Analyze_Object_Declaration): If restriction No_Streams is set, then
4810         do not permit objects to be declared of a stream type, or of a
4811         composite type containing a stream.
4813 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
4815         * exp_dbug.ads: Update documentation to reflect simpler encoding for
4816         protected operations.
4818         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
4819         generated name, it complicates decoding in gdb and hinders debugging
4820         of protected operations.
4821         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
4822         flag for the protected entry barrier function.
4823         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
4824         flag for the protected entry function.
4826 2004-11-18  Nicolas Setton  <setton@adacore.com>
4828         * expect.c: Define __unix__ when __APPLE__ is defined.
4830         * Makefile.in: Inform the value of the variable GMEM_LIB in the
4831         Darwin-specific section.
4833         * lang-specs.h: Change the placement of the %1 marker.
4834         Works around the fact that gcc adds -fPIC by default under Darwin.
4836 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
4838         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
4839         type of the object with the packed array type, set the Analyzed flag
4840         on the object if it is an entity or simple indexed component, to avoid
4841         spurious type errors.
4843 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
4845         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
4846         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
4847         separate line from the version message.
4849 2004-11-18  Ed Falis  <falis@adacore.com>
4851         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
4852         vthreads.
4853         (init_float): Eliminate initialization of floating point status for
4854         AE653. The instructions have no effect for vThreads.
4856 2004-11-18  Vincent Celier  <celier@adacore.com>
4858         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
4859         gnatbind is invoked with -shared.
4861 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
4863         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
4864         for Detect_Blocking which is redundant with the check done within the
4865         procedure Protected_Single_Entry_Call.
4866         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
4867         Detect_Blocking which is redundant with the check done within the
4868         procedure Protected_Single_Entry_Call.
4870 2004-11-18  Vincent Celier  <celier@adacore.com>
4872         * makegpr.adb (Compile): Put the compiling switches (in package
4873         Compiler and on the command line) immediately after "-c", instead of
4874         at the end of the command line invocation of the compiler, when
4875         compiling a non-Ada file.
4876         (Build_Global_Archive): When there is no need to rebuild the archive,
4877         set Global_Archive_Exists, so that the archive is passed to the linker
4878         if one is needed.
4880 2004-11-18  Robert Dewar  <dewar@adacore.com>
4881             Sergey Rybin  <rybin@adacore.com>
4883         * gnat_ugn.texi:
4884         Remove extra paren check from list of checks for redundant constructs
4885         Add documentation of new -gnatyx style check (check extra parens)
4886         Remove paragraph about gnatelim debug options.
4888         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
4889         objects rather than forbidding dependencies on the package Ada.Streams.
4891         * sinfo.ads: Add ??? note that we should document pragmas passed to
4892         back end.
4894         * g-expect.ads: Fix a few typos in the comments.
4896 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4898         * misc.c (gnat_handle_option): Use %< and %> for quoting in
4899         warning message.
4901 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4903         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
4905 2004-11-07  Andreas Schwab  <schwab@suse.de>
4907         * Makefile.in (install-gnatlib): Remove spurious hyphen.
4909 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
4911         PR ada/18228
4912         * Makefile.in (darwin): Set soext to .dylib.
4914 2004-10-26  Vincent Celier  <celier@gnat.com>
4915             Thomas Quinot   <quinot@act-europe.fr>
4917         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
4918         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
4919         there is no use of GNAT.Sockets.Constants.
4920         Remove remaining pragma Import for C_Write
4921         Remove C_Read and C_Write from internal implementation unit
4922         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
4923         the read and write functions from the system runtime library is fine
4924         on UNIX but won't work under Windows).
4926         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
4927         (Check_Selector): Use C_Recv instead of C_Read.
4928         Selectors are the GNAT.Sockets abstraction to perform a select()
4929         call on a set of descriptors. To allow abortion of an ongoing
4930         select operation, some data is written to a dedicated socket that
4931         is always monitored.
4932         Under Windows, the write and read library functions cannot operate
4933         on sockets, so we need to use send and recv instead, which is portable
4934         across all supported platforms.
4936         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
4937         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
4938         (using the read and write functions from the system runtime library is
4939         fine on UNIX but won't work under Windows).
4941 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
4943         * mlib-tgt-darwin.adb: New file.
4945         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
4946         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
4947         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4948         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
4949         subprogram body.
4951         * Makefile.in: Add support for building shared libraries under Darwin.
4952         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
4953         the low level EH init subprogram to be called from __gnat_initialize.
4955         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
4956         indicates which options to pass to the archive indexer.
4958         * mlib-utl.adb: Add support for calling ranlib with additional
4959         options. This is needed for instance under Mac OS X.
4960         (Ranlib_Options): New global variable, used to store the potential
4961         options to pass to ranlib.
4962         (Ar): Use Ranlib_Options when spawning ranlib.
4963         (Initialize): Set the value of ranlib option.
4965 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
4967         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
4968         instead of 8K, to reflect the real potential needs for stack-checking
4969         in the ZCX case.
4971 2004-10-26  Pascal Obry  <obry@gnat.com>
4973         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
4975         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
4976         Windows only the initial thread stack size can be set so it is good to
4977         start we a low stack size.
4978         The OS will adjust the size as needed.
4980 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
4981             Nicolas Setton  <setton@act-europe.fr>
4983         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
4984         "__unix__" instead of "unix".
4985         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
4986         sections were just mistakenly ignored. The former is
4987         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
4988         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
4989         of hpux. This prevents an unwanted definition of the symbol
4990         convert_addresses in adaint.o.
4992 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
4994         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
4995         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
4997 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
4999         * a-filico.ads, a-filico.adb: fix incorrect header.
5001 2004-10-26  Javier Miranda  <miranda@gnat.com>
5003         * a-ststio.ads: Fix typo in identifier
5005 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
5007         * sem_ch4.adb: Minor reformatting.
5009 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5011         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
5012         enabled, check the result of unary and binary operations when the
5013         expression is the right-hand side of an assignment.
5015 2004-10-26  Vincent Celier  <celier@gnat.com>
5017         * clean.adb (Delete): Do not output warnings when in quiet output and
5018         not in verbose mode.
5019         (Force_Deletions): New Boolean flag, defaulted to False
5020         (Delete): Only delete a file if it is writable, and when
5021         Force_Deletions is True.
5022         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
5023         (Usage): Line for new switch -f
5024         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
5025         own.
5027 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
5029         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
5030         JM type only if its size matches that of the wrapper.  When a size is
5031         prescribed and the field is not aliased, remove the wrapper of a JM
5032         type only if the size is not greater than that of the packed array.
5033         (gnat_to_gnu_entity): Change the extension of packed array wrappers
5034         from LJM to JM.
5036 2004-10-26  Geert Bosch  <bosch@gnat.com>
5038         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
5039         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
5040         (Pred): Implement in terms of Succ.
5042 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5044         * exp_aggr.adb (Safe_Component): An aggregate component that is an
5045         unchecked conversion is safe for in-place use if the expression of the
5046         conversion is safe.
5047         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
5048         be expandable in place even if the aggregate does not come from source.
5049         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
5050         designated object of an allocator in place, rather than building it
5051         first on the stack. The previous scheme forces a full copy of the array,
5052         and may be altogether unsusable if the size of the array is too large
5053         for stack allocation.
5055 2004-10-26  Robert Dewar  <dewar@gnat.com>
5057         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
5058         compares if the component is atomic.
5060         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
5061         array assignment if the component type is atomic.
5063 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5064             Eric Botcazou  <ebotcazou@act-europe.fr>
5066         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
5067         is aliased and is a by_reference type, do not pass by copy.
5068         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
5069         detect whether the call is in the right side of an assignment or
5070         the expression of an object declaration.  Recurse on component
5071         association within aggregates.
5072         Call it in the condition that determines whether the temporary is
5073         necessary for correct stack-checking.
5075 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
5077         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
5078         RACW_Type, used in the PolyORB version.
5079         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
5080         version and the GARLIC version.
5082         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
5083         Rename RCI_Info to RCI_Locator for better consistency between the
5084         GARLIC and PolyORB versions of the distributed systems annex.
5085         (DSA_Implementation_Name): This enumeration lists the possible
5086         implementations of the Partition Communication Subsystem for the
5087         Distributed Systems Annex (DSA). The three available implementations
5088         are the dummy stub implementation (No_DSA), and two versions based on
5089         two different distribution runtime libraries: GARLIC and PolyORB. Both
5090         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
5091         technology.
5092         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
5093         that organization.
5095         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
5096         between the GARLIC and PolyORB versions of the distributed systems
5097         annex.
5098         Remove RE_Unbounded_Reclaim_Pool since it is unused.
5100 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
5102         * gnat1drv.adb: Suppress calling the back end when
5103         Frontend_Layout_On_Target is true.
5105 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
5107         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
5108         Set_Read_Only): New subprograms.
5109         These new routines allow the user to set or unset the Owner execute
5110         and Owner write permission flags on a file.
5112         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
5113         GNAT.OS_Lib.Set_Executable instead of rolling our own.
5115 2004-10-26  Matthew Gingell  <gingell@gnat.com>
5117         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
5119 2004-10-26  Pascal Obry  <obry@gnat.com>
5121         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
5122         memory before the faulting page we properly test the process read
5123         access for this address using appropriate Win32 routine.
5124         (HPUX sections): guard with "__hpux__" instead of "hpux".
5126 2004-10-26  Robert Dewar  <dewar@gnat.com>
5128         * lib-xref.adb (Generate_Reference): Don't complain about reference to
5129         entry parameter if pragma Unreferenced set, since we do not properly
5130         handle the case of multiple parameters.
5132 2004-10-26  Vincent Celier  <celier@gnat.com>
5134         * prj-env.adb: (Contains_ALI_Files): New Boolean function
5135         (Ada_Objects_Path.Add): For a library project, add to the object path
5136         the library directory only if there is no object directory or if the
5137         library directory contains ALI files.
5138         (Set_Ada_Paths.Add.Recursive_Add): Ditto
5140 2004-10-26  Vincent Celier  <celier@gnat.com>
5142         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
5143         extension of library projects.
5145         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
5146         path defaults to ".:<prefix>/lib/gnat".
5147         (Parse): For an extending all project, allow direct import of a project
5148         that is virtually extended.
5150         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
5151         the specified name is directly imported, return its ID. Otherwise, if
5152         an extension of this project is imported, return the ID of the
5153         extension.
5155 2004-10-26  Robert Dewar  <dewar@gnat.com>
5157         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
5158         (Sub3): New procedure, used by Scaled_Divide
5159         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
5160         correct more than one instance of failure to propagate carries
5161         correctly.
5162         (Double_Divide): Handle overflow case of largest negative number
5163         divided by minus one.
5165         * s-arit64.ads (Double_Divide): Document that overflow can occur in
5166         the case of a quotient value out of range.
5167         Fix comments.
5169 2004-10-26  Robert Dewar  <dewar@gnat.com>
5171         * s-bitops.adb (Bit_Eq): Remove redundant check.
5173         * s-bitops.ads: Minor comment updates
5174         Change some occurrences of Address to System.Address
5176         * s-carsi8.ads: Fix minor cut-and-paste error in comments
5178 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5180         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
5181         accessibility check to prefix that is a protected operation.
5183 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5185         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
5186         empty, post message on stub.
5188 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5189             Javier Miranda  <miranda@gnat.com>
5191         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
5192         current instance appears within a unit that is directly in the context
5193         of the main unit.
5194         Used to determine whether the body of the instance should be analyzed
5195         immediately after its spec, to make its subprogram bodies available
5196         for front-end inlining.
5197         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
5198         constraint is not allowed on the component type (AARM 12.5.3(3))
5200 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
5202         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
5203         'Storage_Pool): enhance, document & limit detection of non-sharable
5204         internal pools.
5206         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
5208         * s-pooglo.ads: Add more documentation now that this pool is properly
5209         documented.
5211 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5213         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
5214         or protected type with discriminants, do not constrain the
5215         corresponding record type if the subtype declaration has no
5216         discriminant constraints. This can be the case in source code, or in
5217         the subtype declaration created to rename an actual type within an
5218         instantiation.
5220 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5222         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
5223         different kind of stub (possibly wrong name for file), do not check
5224         for conformance.
5225         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
5226         includes call to some function that returns an unconstrained type, do
5227         not inline.
5229 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
5231         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
5232         appear in the code for the main unit. Dependencies among units in the
5233         context of the main unit are established when those other units are
5234         compiled. Otherwise spurious elaboration constraints can generate
5235         incorrect elaboration circularities.
5237 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
5238             Ed Schonberg   <schonberg@gnat.com>
5240         * sem_util.adb (Is_Aliased_View): Defend against the case where this
5241         subprogram is called with a parameter that is not an object name. This
5242         situation arises for some cases of illegal code, which is diagnosed
5243         later, and in this case it is wrong to call Is_Aliased, as that might
5244         cause a compiler crash.
5245         (Explain_Limited_Type): Refine previous fix to include
5246         inherited components of derived types, to provide complete information.
5248         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
5249         is the prival for a protected object.
5250         It is necessary to mark this entity as a variable, in addition to
5251         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
5252         modified to avoid checking the Aliased flag on entities that are not
5253         objects. (Checking that flag for non-objects is erroneous and could
5254         lead to a compiler crash).
5256 2004-10-26  Robert Dewar  <dewar@gnat.com>
5258         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
5259         X_Frac = 0.5, then we know that the number X must be positive.
5260         (Succ): Remove the same redundant test, and also fix the primary test
5261         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
5262         Minor reformatting
5263         (Decompose): Add fuller comments to spec
5265 2004-10-26  Pascal Obry  <obry@gnat.com>
5267         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
5268         validity (process must have read access). Set to 0 in all other cases.
5269         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
5270         violation on Win32.
5271         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
5272         segmentation violation.
5274 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
5276         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
5277         whose type is a constructed subtype of an aliased object with an
5278         unconstrained nominal subtype, convert the actual to the constructed
5279         subtype before taking its address.
5281 2004-10-26  Vincent Celier  <celier@gnat.com>
5283         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
5284         (Is_Path_Name_Case_Sensitive): New function
5286         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
5287         (Base_Name, Simple_Name, Current_Directory, Compose,
5288         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
5289         the result.
5291 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
5292             Vasiliy Fofanov  <fofanov@act-europe.fr>
5293             Vincent Celier   <celier@gnat.com>
5295         * gnat_ugn.texi: Generalize "finding memory problems" section into a
5296         "memory management issues" section and document some of the useful
5297         memory pools provided as part of the GNAT library.
5298         Remove "virtual" from declaration of A::method2 in
5299         the simple example of Ada/C++ mixed system.
5300         Library Projects may be virtually extended: their virtual extensions
5301         are not Library Projects.
5302         Added section on extending project hierarchies.
5304 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5306         * adaint.c (__gnat_get_libraries_from_registry): Cast value
5307         to LPBYTE.
5308         (__gnat_portable_spawn): Remove const.
5310         * mingw32.h (MAXPATHLEN): Check for previous definition.
5312 2004-10-17  Matthias Klose  <doko@debian.org>
5314         * gnatvsn.ads: Set gnat library version to 4.0.
5316 2004-10-05  Vincent Celier  <celier@gnat.com>
5318         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
5320 2004-10-04  Laurent GUERBY <laurent@guerby.net>
5322         PR ada/15156
5323         * Makefile.in: Define and use RANLIB_FLAGS.
5325 2004-10-04  Pascal Obry  <obry@gnat.com>
5327         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
5328         other x86 platforms).
5330 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
5332         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
5333         in general and triggers stack alignment adjustment for thread entry
5334         points on targets where this is necessary.
5336 2004-10-04  Bernard Banner  <banner@gnat.com>
5338         PR ada/13897
5340         * Makefile.in: Add section for powerpc linux
5341         Add variant i-vxwork-x86.ads
5343         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
5345 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
5347         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
5348         table registration calls when need be. Ensures no reference to the crt
5349         ctors symbol are issued in the SJLJ case, which avoids possible
5350         undefined symbol errors in the case of modules to be statically linked
5351         with the kernel.
5353 2004-10-04  Javier Miranda  <miranda@gnat.com>
5355         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
5356         in-line the code corresponding to subprogram Analyze_Actuals. In
5357         addition, analyze the actuals only in case of subprogram call.
5359 2004-10-04  Ed Falis  <falis@gnat.com>
5361         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
5363 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
5365         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
5366         in the documentation.
5368 2004-10-04  Robert Dewar  <dewar@gnat.com>
5370         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
5371         IF and CASE.
5372         (Analyze_Block_Statement): Add circuitry to detect following dead code
5373         (Check_Unreachable_Code): Handle case of block exit
5375 2004-10-04  Robert Dewar  <dewar@gnat.com>
5377         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
5378         (XMatchD): Avoid warning for Logic_Error call
5380 2004-10-04  Robert Dewar  <dewar@gnat.com>
5382         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
5383         consider expressions buried within a procedure actual to be an actual.
5384         This caused some blowups with uses of packed slices within a procedure
5385         actual.
5387 2004-10-04  Robert Dewar  <dewar@gnat.com>
5389         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
5390         longer need to be initialized to zero.
5391         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
5392         initialized to zero.
5394         * checks.adb (Expr_Known_Valid): Packed arrays are now always
5395         considered valid, even if the representation is modular. That's correct
5396         now that we no longer initialize packed modular arrays to zero.
5398         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
5399         suffixes. These are now documented as the only cases in which the
5400         debugger ignores outer records.
5401         Previously, the spec allowed arbitrary suffixes for this purpose.
5402         Change name of LJM to JM for packed array pad records
5403         Create separate section on packed array handling, and add a whole new
5404         set of comments to this section describing the situation with packed
5405         modular types and justification requirements depending on endianness.
5407 2004-10-04  Robert Dewar  <dewar@gnat.com>
5409         * a-except.adb: Add a comment for last change
5411         * einfo.ads: Minor spelling correction in comment
5413         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
5415         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
5416         messages.
5418         * sem_util.ads: Minor comment update
5420 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
5422         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
5423         Inline_Always when in Configurable_Run_Time mode.
5425         * sem_prag.adb (Process_Convention): If entity is an inherited
5426         subprogram, apply convention to parent subprogram if in same scope.
5427         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
5428         when in Configurable_Run_Time mode.
5430 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
5432         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
5433         class_wide type after component list has been inherited.
5435 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
5437         * sem_ch12.adb (Check_Generic_Actuals): New predicate
5438         Denotes_Previous_Actual, to handle properly the case of a private
5439         actual that is also the component type of a subsequent array actual.
5440         The visibility status of the first actual is not affected when the
5441         second is installed.
5442         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
5443         make fully recursive the treatment of formals of packages declared
5444         with a box.
5445         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
5446         the above on exit from an instantiation.
5447         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
5448         current instantiation which is now complete.
5449         (Analyze_Package_Instantiation): No instantiated body is needed if the
5450         main unit is generic. Efficient, and avoid anomalies when a instance
5451         appears in a package accessed through rtsfind.
5453 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
5455         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
5456         do not generate a declaration for a temporary if the call is part of a
5457         library-level instantiation.
5459 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
5461         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
5462         searching for a limited component to flag.
5464         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
5465         expansion of Input, to account for the fact that the implicit call
5466         generated by the attribute reference must freeze the user-defined
5467         stream subprogram. This is only relevant to 'Input, because it can
5468         appear in an object declaration, prior to the body of the subprogram.
5470         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
5471         expansion can proceed and further errors uncovered.
5472         (Minor clean up): Fix cases of using | instead of \ for continuation
5473         messages.
5475 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5477         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
5479         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
5480         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
5481         Use gcc_assert and gcc_unreachable.
5483         * decl.c (gnat_to_gnu_entity, case object): Check and process a
5484         specified alignment before validating size.
5485         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
5486         stripped-down declaration for the type of the inner field when making
5487         a JM type.
5489         * utils.c (finish_record_type): Do not compute the size in units
5490         incrementally. Instead compute it once for the rep clause case.
5491         Use gcc_assert and gcc_unreachable.
5493 2004-10-04  Vincent Celier  <celier@gnat.com>
5495         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
5496         in file name.
5497         (Is_Valid_Path_Name): Take '/' as a directory separator.
5499 2004-10-04  Vincent Celier  <celier@gnat.com>
5501         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
5502         (Extended_Project) only if Extended_Project is defined, to avoid
5503         assertion error.
5504         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
5505         resolved path.
5506         (Parse_Single_Project): Ditto.
5508         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
5509         Add_To_Project_Path for virtual projects.
5511 2004-10-04  Vincent Celier  <celier@gnat.com>
5513         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5514         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5515         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
5516         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
5517         parameter Options_2.
5519         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
5520         Build_Dynamic_Library with an empty Options_2.
5522         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
5523         default anymore.
5525         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
5526         directory separator, if any.
5527         (Gprmake): Do not allow mains on the command line for library projects.
5528         Do not attempt to link when the project is a library project.
5529         (Library_Opts): New table to store Library_Options.
5530         (Build_Library): If Library_Options is specified, pass these options
5531         when building a shared library.
5533 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
5535         * s-tposen.adb (Service_Entry): The object must be always unlocked at
5536         the end of this procedure now that the unlock operation was inserted
5537         by the expander.
5539 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
5541         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
5542         corresponding to the Preallocated_Stacks flags in System.
5543         (Get_Target_Parameters): Including the processing for
5544         Preallocated_Stacks.
5546         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
5547         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
5548         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
5549         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
5550         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
5551         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
5552         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
5553         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
5554         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5555         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5556         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
5557         used to signal whether the compiler creates the required stacks and
5558         descriptors for the different tasks (when True) or it is done by the
5559         underlying operating system at run time (when False).
5560         It is initially set to False in all targets.
5562         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
5563         if it is supported by the target.
5564         (Make_Task_Create_Call): Pass the stack address if it has been
5565         previously created. Otherwise pass a Null_Address.
5567         * snames.adb: Add _stack.
5569         * snames.ads: Add Name_uStack. Required to allow the expander to
5570         statically allocated task stacks.
5572         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
5573         Stack_Address argument.
5574         Check that its value is equal to Null_Address because this target does
5575         not support the static stack allocation.
5577 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
5579         * usage.adb: Change "pragma inline" to "pragma Inline" in information
5580         and error messages
5582 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
5584         * exp_dist.adb: Split declaration of asynchronous flag out of
5585         Add_RACW_Read_Attribute.
5586         Minor reformatting for better alignment with PolyORB version.
5587         Store the entity for the asynchronous flag of an RACW, rather than the
5588         expression, in the asynchronous flags table. This will allow this flag
5589         to be used in other subprograms beside Add_RACW_Read_Attribute.
5591 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
5593         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
5594         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
5595         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
5596         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
5597         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
5598         sockets constant MSG_NOSIGNAL (Linux-specific).
5599         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
5600         all Send operations.
5601         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
5602         from trigerring SIGPIPE.
5603         Rename components to avoid clash with Ada 2005 possible reserved
5604         word 'interface'.
5605         (Check_Selector): When the select system call returns with an error
5606         condition, propagate Socket_Error to the caller.
5608 2004-10-01  Jan Hubicka  <jh@suse.cz>
5610         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
5612 2004-09-23  Robert Dewar  <dewar@gnat.com>
5614         PR ada/17540
5616         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
5617         instead do this at freeze time (we won't do it if there is an address
5618         clause).
5619         Change "pragma inline" to "pragma Inline" in information and error
5620         messages.
5621         Minor reformatting.
5623         * freeze.adb (Check_Address_Clause): Remove previous change, not the
5624         right way of doing things after all.
5625         (Freeze_Entity): For object, set Is_Public for imported entities
5626         unless there is an address clause present.
5628 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
5630         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
5631         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
5632         ensures proper handling of types with rep clauses, which might have
5633         their TYPE_SIZE set already.
5635 2004-09-21  Robert Dewar  <dewar@gnat.com>
5637         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
5638         packed array types in both little- and big-endian cases. This change
5639         ensures that we no longer count on the unused bits being initialized
5640         for such types (and in particular ensures that equality testing will
5641         only read the relevant bits).
5642         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
5643         These changes mean that we no longer need to initialize small packed
5644         arrays.
5645         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
5646         optimization to an LJM field as to its parent field.
5648         * ada-tree.h, trans.c, utils.c, utils2.c:
5649         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
5651 2004-09-20  Jan Hubicka  <jh@suse.cz>
5653         * utils.c (gnat_finalize): Remove.
5654         (end_subprog_body): Directly call cgraph_finalize_function;
5655         do not lower the nested functions.
5657 2004-09-20  Robert Dewar  <dewar@gnat.com>
5659         PR ada/17540
5661         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
5662         if an address clause is present, since that means that the Import
5663         should be ignored.
5665 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
5667         * 5tsystem.ads: Removed, no longer used.
5669 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
5670             Zack Weinberg  <zack@codesourcery.com>
5672         * ada-tree.def: Use tree_code_class enumeration constants
5673         instead of code letters.
5674         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
5675         Update for new tree-class enumeration constants.
5677 2004-09-17  Vincent Celier  <celier@gnat.com>
5679         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
5680         capabilities of the general project manager.
5682 2004-09-09  Vincent Celier  <celier@gnat.com>
5684         * a-direct.ads: Add pragma Ada_05
5685         (Directory_Entry_Type): Give default value to component Kind to avoid
5686         not initialized warnings.
5688         * a-direct.adb (Current_Directory): Remove directory separator at the
5689         end.
5690         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
5691         an existing directory.
5692         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
5693         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
5694         Convert the result to File_Size.
5696         * prj.ads: (Project_Error): New exception
5698         * prj-attr.adb: Except in procedure Initialize, Fail comes from
5699         Prj.Com, not from Osint.
5700         (Attrs, Package_Attributes): Tables moved to private part of spec
5701         (Add_Attribute, Add_Unknown_Package): Moved to new child package
5702         Prj.Attr.PM.
5703         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
5704         Prj.Project_Error after call to Fail.
5705         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
5706         Fail. Check that package name is not already in use.
5708         * prj-attr.ads: Comment updates to indicate that all subprograms may be
5709         used by tools, not only by the project manager, and to indicate that
5710         exception Prj.Prj_Error may be raised in case of problem.
5711         (Add_Unknown_Package, Add_Attribute): Moved to new child package
5712         Prj.Attr.PM.
5713         (Attrs, Package_Attributes): Table instantiations moved from the body to
5714         the private part to be accessible from Prj.Attr.PM body.
5716         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
5717         from new package Prj.Attr.PM.
5718         (Parse_Attribute_Declaration): Call Add_Attribute from new package
5719         Prj.Attr.PM.
5721         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
5723         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
5724         instead of Elaboration_Checks).
5726         * a-calend.adb: Minor reformatting
5728 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5730         * gigi.h (maybe_pad_type): New declaration.
5731         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
5733         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
5735         * cuintp.c: Convert to use buildN.
5737         * decl.c (maybe_pad_type): No longer static.
5738         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
5739         target pointer.
5740         Convert to use buildN.
5742         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
5743         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
5744         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
5745         RHS.
5746         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
5747         (gnat_gimplify_expr, case ADDR_EXPR): New case.
5748         Convert to use buildN.
5750         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
5751         TREE_READONLY for const.
5752         Convert to use buildN.
5754         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
5755         (create_var_decl): Refine when TREE_STATIC is set.
5756         Convert to use buildN.
5758 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
5760         * gnat_ugn.texi: Delete text relating to checking of ali and object
5761         consistency.
5763         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
5764         routines.
5766 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
5768         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
5769         pragmas recognized by GNAT.
5771         * gnat_rm.texi: Document pragma Detect_Blocking.
5773         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
5774         raise Program_Error if called from a protected operation.
5776         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
5777         the protected action nesting level.
5778         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
5779         protected action nesting level.
5780         (Unlock): When pragma Detect_Blocking is active decrease the protected
5781         action nesting level.
5783         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
5784         Protected_Action_Nesting.
5786         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
5787         Common_ATCB record. It contains the dynamic level of protected action
5788         nesting for each task. It is needed for checking whether potentially
5789         blocking operations are called from protected operations.
5790         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
5791         Detect_Blocking is active or not in the partition.
5793         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
5794         raise Program_Error if called from a protected operation.
5795         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
5796         Program_Error if called from a protected operation.
5797         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
5798         Program_Error if called from a protected operation.
5800         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
5801         raise Program_Error if called from a protected operation.
5803         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
5804         raise Program_Error if called from a protected operation, and increase
5805         the protected action nesting level.
5806         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
5807         Program_Error if called from a protected operation, and increase the
5808         protected action nesting level.
5809         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
5810         protected action nesting level.
5812         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
5813         raise Program_Error if called from a protected operation, and increase
5814         the protected action nesting level.
5815         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
5816         Program_Error if called from a protected operation, and increase the
5817         protected action nesting level.
5818         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
5819         raise Program_Error if called from a protected operation.
5820         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
5821         active, raise Program_Error if called from a protected operation.
5822         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
5823         protected action nesting level.
5825         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
5826         insertion of the statement raising Program_Error. The run time
5827         contains the required machinery for handling that.
5829         * sem_util.ads: Change comment associated to procedure
5830         Check_Potentially_Blocking_Operation.
5831         This procedure does not insert a call for raising the exception because
5832         that is currently done by the run time.
5834         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
5836         * init.c: Add the global variable __gl_detect_blocking that indicates
5837         whether pragma Detect_Blocking is active (1) or not (0). Needed for
5838         making the pragma available at run time.
5839         (__gnat_set_globals): Pass and update the detect_blocking parameter.
5841         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
5842         pragma Detect_Blocking is active.
5844         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
5846         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
5847         DB is found in the ali file. Any unit compiled with pragma
5848         Detect_Blocking active forces its effect in the whole partition.
5850         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
5851         Detect_Blocking is active and delay is called from a protected
5852         operation.
5854         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
5855         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
5856         Detect_Blocking is active (0 otherwise).
5857         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
5858         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
5859         otherwise).
5861 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
5863         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
5864         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
5865         package.
5867         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
5868         (Register_Receiving_Stub): Add Subp_Info formal parameter.
5869         Update API in placeholder implemetation of s-parint to reflect changes
5870         in distribution runtime library.
5872         * sem_ch3.adb (Expand_Derived_Record): Rename to
5873         Expand_Record_Extension.
5875         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
5876         primitive operations of potentially distributed object types that have
5877         non-controlling anonymous access formals.
5879         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
5880         subprogram.
5881         New implementation of expansion for remote access-to-subprogram types,
5882         based on the RACW infrastructure.
5883         This version of sem_dist is compatible with PolyORB/DSA as well as
5884         GLADE.
5886         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
5887         Asynchrronous that applies to a remote access-to-subprogram type, mark
5888         the underlying RACW type as asynchronous.
5890         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
5891          __gnat_using_gnu_linker to 1.
5893         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
5894         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
5895         GNAT.Perfect_Hash_Generators, and remove the empty
5896         GNAT.Perfect_Hash package.
5898         * atree.adb: Minor reformatting
5900         * exp_ch3.adb (Expand_Derived_Record): Rename to
5901         Expand_Record_Extension.
5902         (Build_Record_Init_Proc.Build_Assignment): The default expression in
5903         a component declaration must remain attached at that point in the
5904         tree so New_Copy_Tree copies it if the enclosing record type is derived.
5905         It is therefore necessary to take a copy of the expression when building
5906         the corresponding assignment statement in the init proc.
5907         As a side effect, in the case of a derived record type, we now see the
5908         original expression, without any rewriting that could have occurred
5909         during expansion of the ancestor type's init proc, and we do not need
5910         to go back to Original_Node.
5912         * exp_ch3.ads (Expand_Derived_Record): Rename to
5913         Expand_Record_Extension.
5915         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
5916         Returns the RACW type used to implement a remote access-to-subprogram
5917         type.
5918         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
5919         New subprograms. Used to create a proxy tagged object for a remote
5920         subprogram. The proxy object is used as the designated object
5921         for RAS values on the same partition (unless All_Calls_Remote applies).
5922         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
5923         System.Partition_Interface.Get_Unique_Remote_Pointer.
5924         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
5925         Renamed from Add_RAS_*_Attribute.
5926         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
5927         subprograms.
5928         New implementation of expansion for remote access-to-subprogram types,
5929         based on the RACW infrastructure.
5931         * exp_dist.ads (Copy_Specification): Update comment to note that this
5932         function can copy the specification from either a subprogram
5933         specification or an access-to-subprogram type definition.
5935 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
5937         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
5938         in an instance, between an explicit subprogram an one inherited from a
5939         type derived from an actual.
5941         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
5942         add a polling call if the subprogram is to be inlined by the back-end,
5943         to avoid repeated calls with multiple inlinings.
5945         * checks.adb (Apply_Alignment_Check): If the expression in the address
5946         clause is a call whose name is not a static entity (e.g. a dispatching
5947         call), treat as dynamic.
5949 2004-09-09  Robert Dewar  <dewar@gnat.com>
5951         * g-trasym.ads: Minor reformatting
5953         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
5954         packed arrays, since unused bits are expected to be zero for a
5955         comparison.
5957 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
5959         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
5960         comment.
5962 2004-09-09  Pascal Obry  <obry@gnat.com>
5964         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
5965         enable map file generation. Add the right option to generate the map
5966         file if Map_File is set to True.
5968         * gnatdll.adb (Gen_Map_File): New variable.
5969         (Syntax): Add info about new -m (Map_File) option.
5970         (Parse_Command_Line): Add support for -m option.
5971         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
5972         Minor reformatting.
5974 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
5976         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
5977         new gnatdist implementation.
5978         Define a subpackage isolating the output routines specific to this
5979         verbose mode.
5981 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
5983         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
5985         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
5987 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
5989         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
5990         internal unit.
5992         * opt.ads: Add Ada_Version_Runtime constant used to decide which
5993         version of the language is used to compile the run time.
5995 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
5997         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
5998         of variable length temporaries for function return now that the
5999         back-end and gigi support it.
6001 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6003         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
6005         * trans.c (struct stmt_group): Delete field GLOBAL.
6006         (gnat_init_stmt_group): Do not initialize it.
6007         (call_to_gnu): Use save_expr, not protect_multiple_eval.
6008         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
6009         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
6010         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
6011         (start_stmt_group): Likewise.
6012         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
6014         * utils2.c (ggc.h): Include.
6015         (build_call_raise): Call build_int_cst, not build_int_2.
6017         * utils.c (gnat_init_decl_processing): Fix arg to
6018         build_common_tree_nodes.
6019         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
6020         (gnat_define_builtin): Set built_in_decls.
6021         (init_gigi_decls): Call build_int_cst, not build_int_2.
6023         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
6024         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
6025         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
6026         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
6027         SET_TYPE_MODULE): Use them.
6028         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
6029         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
6030         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
6031         SET_TYPE_ADA_SIZE): Likewise.
6032         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
6033         (DECL_CONST_CORRESPONDING_VAR,
6034         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
6035         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
6036         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
6037         (TYPE_RM_SIZE_NUM): New macro.
6038         (TYPE_RM_SIZE): Modified to use above.
6040         * cuintp.c: (build_cst_from_int): New function.
6041         (UI_To_gnu): Use it.
6043         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
6044         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
6045         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
6046         MIN_EXPR for the size, copy it into new.
6048 2004-09-01  Robert Dewar  <dewar@gnat.com>
6050         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
6051         packed indexed component where array is an IN OUT formal. This
6052         generated garbage code previously.
6054         * gnat_ugn.texi: Document -fverbose-asm
6056         * gnat-style.texi: Minor updates (note that boolean constants and
6057         variables are joined with AND/OR rather than short circuit forms).
6059 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
6061         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
6062         it is an upward conversion of an untagged type with no representation
6063         change.
6065 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
6067         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
6068         System.Partition_Interface.
6070         * checks.adb (Apply_Access_Checks): Do not generate checks when
6071         expander is not active (but check for unset reference to prefix of
6072         dereference).
6074         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
6075         pragma Debug as an if statement with a constant condition, for
6076         consistent treatment of entity references contained within the
6077         enclosed procedure call.
6079 2004-09-01  Vincent Celier  <celier@gnat.com>
6081         * bindgen.adb: (Set_EA_Last): New procedure
6082         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
6083         Set_EA_Last.
6084         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
6085         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
6086         linked without errors.
6087         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
6088         ST and EA.
6089         (Gen_Exception_Table_C): Correct same bugs
6091         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
6093         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
6094         on Windows, make sure that the drive letter is in upper case.
6096         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
6097         Windows, when the drive letter is added and Case_Sensitive is True, the
6098         drive letter is forced to upper case.
6100         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
6101         to Options_2 for the call to MLib.Utl.Gcc.
6103         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
6104         directory separator when defining BASE_DIR.
6106 2004-09-01  Pascal Obry  <obry@gnat.com>
6108         * gprcmd.adb (Extend): Do not output trailing directory separator. This
6109         is not needed and it confuses Windows GNU/make which does not report
6110         directory terminated by a slash as a directory.
6111         (gprcmd): Idem for "pwd" internal command.
6113         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
6114         target names rewrite to fix regressions with recent version of
6115         GNU/make. Starting with GNU/make 3.80 the pipe character was not
6116         handled properly anymore.
6118 2004-09-01  Andreas Schwab  <schwab@suse.de>
6120         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
6121         * raise.c [!IN_RTS]: Undef abort.
6123 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
6125         * utils2.c (build_allocator): Use ssize_int.
6127         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
6129 2004-08-27  Andreas Schwab  <schwab@suse.de>
6131         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
6133 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
6134             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6136         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
6138 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
6140         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
6141         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
6142         * utils.c (init_gigi_decls): Likewise.
6143         * utils2.c (build_call_raise, build_allocator): Likewise.
6145 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
6147         * utils.c (gnat_init_decl_processing): Adjust
6148         build_common_tree_nodes call.
6150 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
6152         * utils2.c (build_allocator): Use build_int_cst for negative
6153         size types.
6155 2004-08-18  Richard Henderson  <rth@redhat.com>
6157         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
6159 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
6161         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
6162         call.s
6163         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
6164         (gnat_to_gnu): Likewise.
6166 2004-08-16  Pascal Obry  <obry@gnat.com>
6168         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
6169         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
6170         option and not mdll anymore. Update comment.
6172 2004-08-16  Pascal Obry  <obry@gnat.com>
6174         * bld.adb (Put_Include_Project): Properly handle directory separators
6175         on Windows.
6177 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
6179         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
6180         decreasing the number of allocated junk nodes while searching for the
6181         appropriate subprogram.
6183 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
6185         * cuintp.c (UI_To_gnu): Use build_int_cst..
6186         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
6187         * utils.c (init_gigi_decls): Likewise.
6188         * utils2.c (build_call_raise): Likewise.
6190 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
6192         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
6193         for a global aliased object with a variable size and an unconstrained
6194         nominal subtype, pretend there is no initializer if the one we have is
6195         incomplete, and avoid referencing an inexistant component in there. The
6196         part we have will be rebuilt anyway and the reference may confuse
6197         further operations.
6199 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
6201         * einfo.ads: Minor reformatting
6203         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
6204         restrictions in the ALI if we only want to warn about violations.
6206 2004-08-13  Vincent Celier  <celier@gnat.com>
6208         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
6209         when creating a new Unit_Record in table Units.
6211         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
6212         that are violated, if any.
6214         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
6215         add directory separator if path already ends with a directory separator.
6217 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
6219         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
6220         unit, this is an attempt to inline a construct that is not available in
6221         the current restricted mode, so abort rather than trying to continue.
6223         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
6224         discriminants that rename those of the parent, recover names of
6225         original discriminants for the constraint on the full view of the
6226         parent.
6227         (Complete_Private_Subtype): Do not create a subtype declaration if the
6228         subtype is an itype.
6230         * gnat_rm.texi: Added section on implementation of discriminated
6231         records with default values for discriminants.
6233 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
6235         PR ada/15601
6236         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
6237         the second operand is overloaded.
6239 2004-08-10  Richard Henderson  <rth@redhat.com>
6241         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
6242         add __builtin_alloca.
6244 2004-08-10  Richard Henderson  <rth@redhat.com>
6246         * config-lang.in (boot_language): Yes.
6248 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
6250         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
6251         from complaining on potential uninitialized reference.
6252         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
6253         new specification and test explicitly for non-zero return value.
6255         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
6256         returning C.int, to avoid using a derived boolean type.
6258         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
6259         Duplicate_Subexpr_No_Checks in preference to direct use of
6260         Remove_Side_Effects and New_Copy_Tree.
6261         Clear Comes_From_Source on prefix of 'Size attribute reference.
6263         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
6264         g-socthi-vxworks.adb: Change calls to
6265         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
6266         and test explicitly for non-zero return value.
6268         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
6269         (Is_Socket_In_Set): Declare imported function as returning C.int, to
6270         avoid using a derived boolean type.
6272 2004-08-09  Albert Lee  <lee@gnat.com>
6274         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
6276 2004-08-09  Pascal Obry  <obry@gnat.com>
6278         * gnat_ugn.texi: Document new way to build DLLs on Windows using
6279         GCC's -shared option.
6281         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
6282         Options_2 parameter (options put after object files).
6284 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
6286         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
6287         ignore overflows on low and high bounds of an index to also account for
6288         differences in signedness between sizetype and gnu_index_subtype.
6289         These are as legitimate as the ones caused by a lower TYPE_PRECISION
6290         on sizetype.
6292 2004-08-09  Robert Dewar  <dewar@gnat.com>
6294         * s-solita.ads, s-solita.adb: Minor reformatting
6296         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
6297         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
6298         obsolescent section
6299         Add note that No_Implicit_Conditionals does not suppress
6300         run time constraint checks.
6302         * vms_conv.ads: Minor reformatting
6304         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
6305         and necessary for following change).
6306         (Mark): Return new format Mark_Id containing sec stack address
6307         (Release): Use sec stack address from Mark_Id avoiding Self call
6309         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
6310         pointer (cleanup and necessary for following change).
6311         Define Mark_Id as record containing address of secondary stack, that way
6312         Release does not need to find the stack again, decreasing the number of
6313         calls to Self and improving efficiency.
6315         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
6317         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
6318         case variable into the individual case branches when possible.
6320         * sem_ch11.adb: Minor reformatting
6322         * prj.ads: Correct spelling of suffixs
6324         * prj-nmsc.adb: Minor reformatting
6325         Correct spelling suffixs throughout (also in identifiers)
6327         * freeze.adb: Minor spelling correction
6329         * exp_ch2.adb: Cleanups to handling of Current_Value
6330         (no functional effect).
6332         * bld.adb: Correct spelling of suffixs
6334         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
6336 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
6338         PR ada/15408
6340         * sem_ch7.adb (Install_Private_Declarations): In the body of the
6341         package or of a child, private entities are both immediately_visible
6342         and not hidden.
6344 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
6346         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
6347         there are no range checks on the value of the literal.
6349         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
6350         wrapped is the triggering alternative of an asynchronous select, action
6351         statements mustbe inserted before the select itself.
6353         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
6354         case where the prefix is a protected function call.
6355         (Resolve_Attribute, case 'Access): The attribute reference on a
6356         subprogram is legal in a generic body if the subprogram is declared
6357         elsewhere.
6359 2004-08-09  Vincent Celier  <celier@gnat.com>
6361         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
6362         languages, otherwise building the library may fail with unresolved
6363         symbols.
6364         (Compile_Sources): Do not build libraries if -c switch is used
6366         * gnatlink.adb (Process_Args): New switches -M and -Mmap
6367         (Write_Usage): If map file creation is supported, output new switches
6368         -M and -Mmap.
6369         (Gnatlink): When -M is specified, add the necessary switch(es) to the
6370         gcc call, when supported.
6372         * Makefile.in: Added indepsw.o to the object list for gnatlink
6373         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
6375         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
6376         indepsw.adb, indepsw.ads: New files.
6378 2004-08-09  Bernard Banner  <banner@gnat.com>
6380         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
6382         * Makefile.in: add section for vxworks x86
6384 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
6386         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
6387         per-object constrained components where the discriminant is of an
6388         Access type.
6389         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
6390         the parent initialization procedure for derived Unchecked_Unions.
6391         Instead, derived Unchecked_Unions build their own initialization
6392         procedure.
6393         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
6394         Check the body of the subprogram for details.
6395         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
6396         functions for derived Unchecked_Union types by introducing a condition.
6397         Allow the creation of TSS equality functions for Unchecked_Unions.
6398         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
6399         Add formal parameter Discr to function signature. Discr is used to
6400         control the generated case statement for Unchecked_Union types.
6401         (Make_Eq_If): Rename formal parameter Node to E in function signature.
6403         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
6404         Unchecked_Unions.
6405         Check the body of the subprogram for details.
6406         (Expand_Composite_Equality): Augment composite type equality to include
6407         correct handling of Unchecked_Union components.
6408         (Expand_N_In): Add condition to detect illegal membership tests when the
6409         subtype mark is a constrained Unchecked_Union and the expression lacks
6410         inferable discriminants, and build a Raise_Program_Error node.
6411         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
6412         to detect types that contain components of unconstrained Unchecked_Union
6413         subtype. Add condition to detect equality between types that have an
6414         unconstrained Unchecked_Union component, and build a Raise_Program_Error
6415         node. Add condition to detect equality between Unchecked_Union types
6416         that lack inferable discriminants, and build a Raise_Program_Error node.
6417         Otherwise build a TSS equality function call.
6418         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
6419         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
6420         with the operand lacking inferable discriminants, and build a Raise_
6421         Program_Error node.
6422         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
6423         composite equality.
6424         (Has_Inferable_Discriminants): Implement new predicate for objects and
6425         expressions of Unchecked_Union type. Check the body of subprogram for
6426         details.
6427         (Has_Unconstrained_UU_Components): Add function
6428         Component_Is_Unconstrained_UU. It is used to detect whether a single
6429         component is of an unconstrained Unchecked_Union subtype. Add function
6430         Variant_Is_Unconstrained_UU. It is used to detect whether a single
6431         component inside a variant is of an unconstrained Unchecked_Union type.
6433         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
6434         inferred discriminant values. Add condition to generate a case
6435         statement with an inferred discriminant as the switch.
6436         (Make_Component_List_Assign): Introduce a Boolean flag that determines
6437         the behaviour of the subprogram in the presence of an Unchecked_Union.
6438         Add condition to trigger the usage of the inferred discriminant value
6439         as the generated case statement switch.
6440         (Make_Field_Assign): Introduce a Boolean flag that determines the
6441         behaviour of the subprogram in the presence of an Unchecked_Union. Add
6442         condition to trigger the usage of the inferred discriminant value as
6443         the right-hand side of the generated assignment.
6445         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
6446         parameter generation when dealing with Unchecked_Unions.
6448         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
6449         checks for Unchecked_Unions.
6451         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
6453         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
6454         Raise_Program_Error nodes for the execution of Read and Write
6455         attributes of Unchecked_Union types and the execution of Input and
6456         Output attributes of Unchecked_Union types that lack default
6457         discriminant values.
6459         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
6460         Unchecked_Union. Add procedure Check_Component. It is used to inspect
6461         per-object constrained components of Unchecked_Unions for being
6462         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
6463         check individual components withing a variant.
6465         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
6466         comparison of Unchecked_Unions.
6467         (Resolve_Equality_OP): Remove guard that prevents equality between
6468         Unchecked_Unions.
6470         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
6471         of component subtypes for Unchecked_Union components.
6472         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
6473         since it is the actual subtype.
6475         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
6476         pass of Unchecked_Union subtypes as generic actuals to formal types
6477         that lack known_discriminant_parts or that are derived Unchecked_Union
6478         types, and do nothing. In any other case, produce an error message.
6480         * sem_ch3.adb (Analyze_Component_Declaration): Add function
6481         Contains_POC. It determines whether a constraint uses the discriminant
6482         of an enclosing record type.
6483         Add condition to detect per-object constrained component and set the
6484         appropriate flag.
6485         (Derived_Type_Declaration): Remove guard that prevents derivation from
6486         Unchecked_Union types.
6487         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
6488         Union subtypes.
6490         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
6491         references to Unchecked_Union discriminants.
6493         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
6494         formal generation when dealing with Unchecked_Unions.
6495         (Set_Actual_Subtypes): Add condition to prevent generation of actual
6496         subtypes for Unchecked_Unions.
6498         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
6499         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
6500         completions of discriminated partial views by Unchecked_Unions and
6501         produce an error message.
6503 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6505         * trans.c (struct stmt_group): New field, GLOBAL.
6506         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
6507         (struct elab_info): New struct.
6508         (elab_info_list, gnu_elab_proc_stack): New variables.
6509         (Compilation_Unit_to_gnu): New procedure.
6510         (gigi): Call it and also handle elaboration procs we've saved.
6511         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
6512         global field from parent.
6513         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
6514         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
6515         (start_stmt_group): Initialize global field from parent.
6516         (add_decl_expr): Set to global for current statement group.
6517         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
6518         post.
6520         * utils.c (global_bindings_p): True when no current_function_decl; no
6521         longer check current_binding_level.
6523 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
6525         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
6526         choice.
6528         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
6530 2004-08-06  Andreas Schwab  <schwab@suse.de>
6532         * utils.c (gnat_define_builtin): Remove second parameter of
6533         make_decl_rtl.
6534         (begin_subprog_body): Likewise.
6536 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
6538         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
6539         optimization, not supported by the tree-ssa back-end.
6541 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
6543         * s-mastop-irix.adb: Update comments.
6545         * a-except.adb (Exception_Information): Raise Constraint_Error if
6546         exception Id is Null_Id.
6547         This is required behavior, which is more reliably and clearly checked
6548         at the top level interface level.
6550 2004-07-26  Javier Miranda  <miranda@gnat.com>
6552         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
6553         call if a component has no default_expression and the box is used.
6555         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
6556         default_expression and you use box, it behaves as if you had declared a
6557         stand-alone object.
6558         (Resolve_Record_Aggregate): If a component has no default_expression and
6559         you use box, it behaves as if you had declared a stand-alone object.
6561         * sem_ch10.adb (Install_Siblings): Do not make visible the private
6562         entities of private-with siblings.
6564 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
6566         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
6567         for a component of an itype, set the parent pointer for analysis,
6568         there is no list in which to insert it.
6570         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
6571         bona-fide renamings, not for inherited operations.
6573         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
6574         actual for a formal that is an access parameter, create local
6575         finalization list even if the expression is not an aggregate.
6577 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
6579         PR ada/16213
6580         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
6581         Diagnose properly illegal subprogram renamings that are library units.
6583 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
6585         PR ada/15588
6586         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
6587         conversion rewritten as an unchecked conversion, check that original
6588         expression is a variable.
6590         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
6591         unchecked_conversion, create new node rather than rewriting in place,
6592         to preserve original construct.
6594 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6596         * gigi.h (gnat_expand_body): Deleted.
6598         * Make-lang.in: (trans.o): Depends on function.h.
6600         * misc.c: (gnat_expand_body): Moved to here.
6602         * trans.c (gnat_expand_body_1): Deleted.
6603         (gnat_expand_body): Moved from here.
6604         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
6605         (add_stmt): Check for marked visited with global_bindings_p.
6606         (gnat_gimplify_expr, case COMPONENT_REF): New case.
6607         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
6609         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
6610         VIEW_CONVERT_EXPR if not operation type.
6612         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
6613         fat pointer.
6615         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
6616         changes: reformatting of negation operators, removing unneeded
6617         inequality comparison with zero, converting equality comparisons with
6618         zero to negations, changing int/0/1 to bool/false/true, replace calls
6619         to gigi_abort with abort, and various other similar changes.
6621 2004-07-26  Vincent Celier  <celier@gnat.com>
6623         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
6624         "setup".
6626         * make.adb (Gnatmake): Fail when a library is not present and there is
6627         no object directory.
6629         * mlib-prj.adb (Check_Library): No need to check if the library needs
6630         to be rebuilt if there is no object directory, hence no object files
6631         to build the library.
6633         * opt.ads (Setup_Projects): New Boolean flag.
6635         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
6636         Location.
6637         Create directory when Kind /= "" and in "gnat setup". Report error if
6638         directory cannot be created.
6639         (Ada_Check): Create library interface copy dir if it does not exist
6640         and we are in "gnat setup".
6641         (Find_Sources): No error if in "gnat setup" and no Ada sources were
6642         found.
6643         (Language_Independent_Check): Create object directory, exec directory
6644         and/or library directory if they do not exist and we are in
6645         "gnat setup".
6647         * vms_conv.ads: (Command_Type): New command Setup.
6649         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
6651         * vms_data.ads: Add qualifiers/switches for new built-in command
6652         "setup".
6654 2004-07-25  Richard Henderson  <rth@redhat.com>
6656         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
6657         DECL_IGNORED_P on RESULT_DECL.
6659 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
6661         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
6662         allocation and potentially overflowing update with
6663         Tailored_Exception_Information. Use the sec-stack free procedural
6664         interface to output Exception_Information instead.
6666         * a-except.adb (To_Stderr): New subprogram for character, and string
6667         version moved from a-exextr to be visible from other separate units.
6668         (Tailored_Exception_Information): Remove the procedural version,
6669         previously used by the default Last_Chance_Handler and not any more.
6670         Adjust various comments.
6672         * a-exexda.adb: Generalize the exception information procedural
6673         interface, to minimize the use of secondary stack and the need for
6674         local buffers when the info is to be output to stderr:
6675         (Address_Image): Removed.
6676         (Append_Info_Character): New subprogram, checking for overflows and
6677         outputing to stderr if buffer to fill is of length 0.
6678         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
6679         (Append_Info_Address, Append_Info_Exception_Name,
6680         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
6681         Append_Info_Basic_Exception_Traceback,
6682         Append_Info_Exception_Information): New subprograms.
6683         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
6684         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
6685         Exception_Info_Maxlength, Exception_Name_Length,
6686         Exception_Message_Length): New subprograms.
6687         (Exception_Information): Use Append_Info_Exception_Information.
6688         (Tailored_Exception_Information): Use
6689         Append_Info_Basic_Exception_Information.
6690         Export services for the default Last_Chance_Handler.
6692         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
6693         other separate units.
6695 2004-07-20  Vincent Celier  <celier@gnat.com>
6697         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
6699 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
6701         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
6702         emit itype references for the designated types of component types that
6703         are declared outside of the full record declaration, and that may
6704         denote a partial view of that record type.
6706 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
6708         PR ada/15607
6709         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
6710         which is the designated type in an access component declaration, to the
6711         list of incomplete dependents of the parent type, to avoid elaboration
6712         issues with out-of-scope subtypes.
6713         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
6714         full view of the parent.
6716 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
6718         PR ada/15610
6719         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
6720         entities that are hidden, such as references to generic actuals
6721         outside an instance.
6723 2004-07-20  Javier Miranda  <miranda@gnat.com>
6725         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
6726         support to the new notation.
6727         (Analyze_Selected_Component): Add call to Try_Object_Operation.
6729 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
6731         * s-taprob.adb: Adding the elaboration code required for initializing
6732         the tasking soft links that are common to the full and the restricted
6733         run times.
6735         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
6736         restricted run time has been moved to the package
6737         System.Soft_Links.Tasking.
6739         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
6740         restricted run time has been moved to the package
6741         System.Soft_Links.Tasking.
6743         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
6745         * s-solita.ads, s-solita.adb: New files.
6747 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6749         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
6750         Case_Statement_to_gnu): Split off from gnat_to_gnu.
6751         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
6752         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
6753         Exception_Handler_to_gnu_zcx): Likewise.
6755 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
6757         * gigi.h (builtin_function): Declare.
6759 2004-07-15  Robert Dewar  <dewar@gnat.com>
6761         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
6762         reformatting
6764         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
6765         access values as an example of a warning.
6767         * gnat_rm.texi: Document new attribute Has_Access_Values
6769         * gnat-style.texi: Document that box comments belong on nested
6770         subprograms
6772         * sem_util.ads (Has_Access_Values): Improved documentation
6774         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
6776         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
6777         (Process_Interface_Name): Call to this new procedure
6778         (Set_Extended_Import_Export_External_Name): Call to this new procedure
6780         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
6782         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
6784         * einfo.ads: Minor comment typo fixed
6786 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
6788         * snames.adb: Add _atcb.
6790         * snames.ads: Add Name_uATCB.
6792         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
6793         (in the expanded code) when using the restricted run time.
6795         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
6796         a in parameter in order to allow ATCBs to be preallocated (in the
6797         expanded code).
6799         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
6800         order to allow ATCBs to be preallocated. In case of error, the ATCB is
6801         deallocated in System.Tasking.Stages.
6803         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
6804         order to allow ATCBs to be preallocated.
6806         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
6807         here. It was previously done in Initialize_ATCB.
6809         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
6811         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
6812         Restricted run time.
6814         * exp_ch3.adb: When using the Restricted run time, pass the
6815         preallocated Ada_Task_Control_Block when creating a task.
6817 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
6819         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
6820         function call that is itself an actual in an enclosing call, diagnose
6821         problem here rather than assuming that resolution will catch it.
6823         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
6824         the local copy of a generic unit for a formal package, and the generic
6825         is a child unit, install private part of ancestors before compiling
6826         private part of spec.
6828         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
6829         use scope entities rather than tree structures, to handle properly
6830         parent units that are instances rewritten as bodies for inlining
6831         purposes.
6833         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
6834         Remove_Parents): Handle properly a parent unit that is an
6835         instantiation, when the unit has been rewritten as a body for inlining
6836         purposes.
6838         * par.adb (Goto_List): Global variable to collect goto statements in a
6839         given unit, for use in detecting natural loops.
6841         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
6842         use in detecting natural loops.
6844         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
6845         backwards goto's, and rewrite as a infinite loop, to improve locality
6846         of temporaries.
6848         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
6849         subcomponent that includes an indexed reference, to prevent the
6850         generation of copies that would miscompile the desired assignment
6851         statement.
6852         (Build_Task_Image_Decls): Add a numeric suffix to
6853         generated name for string variable, to avoid spurious conflicts with
6854         the name of the type of a single protected object.
6856         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
6857         loop with an explicit exit statement, to avoid generating an
6858         out-of-range value with 'Succ leading to spurious constraint_errors
6859         when compiling with -gnatVo.
6861 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
6863         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
6864         might not be analyzed yet, even if its Etype is already set (case of an
6865         unchecked conversion built using Unchecked_Convert_To, for example).
6866         If the prefix has already been analyzed, this will be a nop anyway.
6868         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
6869         controller type, or an assignment of a record type with controlled
6870         components, copy only user data, and leave the finalization chain
6871         pointers untouched.
6873 2004-07-15  Vincent Celier  <celier@gnat.com>
6875         * make.adb (Collect_Arguments): Improve error message when attempting
6876         to compile a source not part of any project, when -x is not used.
6878         * prj.ads: (Defined_Variable_Kind): New subtype
6880         * prj-attr.adb (Register_New_Package): Two new procedures to register
6881         a package with or without its attributes.
6882         (Register_New_Attribute): Mew procedure to register a new attribute in a
6883         package.
6884         New attribute oriented subprograms: Attribute_Node_Id_Of,
6885         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
6886         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
6887         Next_Attribute.
6888         New package oriented subprograms: Package_Node_Id_Of,
6889         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
6891         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
6892         type.
6893         (Package_Node_Id): Now a private, self initialized type
6894         (Register_New_Package): New procedure to register a package with its
6895         attributes.
6896         New attribute oriented subprograms: Attribute_Node_Id_Of,
6897         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
6898         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
6899         Next_Attribute.
6900         New package oriented subprograms: Package_Node_Id_Of,
6901         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
6903         * prj-dect.adb (Parse_Attribute_Declaration,
6904         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
6906         * prj-makr.adb (Make): Parse existing project file before creating
6907         other files. Fail if there was an error during parsing.
6909         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
6910         new spec of Prj.Attr.
6912         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
6913         to new spec of Prj.Attr.
6915 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6917         * utils2.c: Fix typo in comment.
6919 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6921         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
6922         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
6924 2004-07-14  Andreas Schwab  <schwab@suse.de>
6926         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
6928 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6930         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
6931         object type.
6932         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
6933         TYPE_STUB_DECL.
6935         * misc.c (gnat_types_compatible_p): New function.
6936         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
6937         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
6939         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
6940         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
6941         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
6942         (mark_visited): Don't mark dummy type.
6943         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
6944         parameter, we must remove any LJM building from GNU_NAME.
6945         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
6946         (pos_to_constructor): Use int_const_binop.
6947         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
6948         PARM_DECL.
6950         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
6951         (gnat_pushlevel): Set TREE_USE on BLOCK node.
6952         (gnat_install_builtins): Add __builtin_memset.
6954 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
6956         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
6957         for a renaming, stabilize the initialization expression if we are at a
6958         local level.  At the local level, uses of the renaming may be performed
6959         by a direct dereference of the initializing expression, and we don't
6960         want possible variables there to be evaluated for every use.
6962         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
6963         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
6964         them on the way.  Account for the fact that we may introduce side
6965         effects in the process.
6967 2004-07-13  Richard Henderson  <rth@redhat.com>
6969         * misc.c (default_pass_by_ref): Use pass_by_reference.
6971 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
6973         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
6974         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
6976 2004-07-08  Richard Henderson  <rth@redhat.com>
6978         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
6979         commentary.
6981 2004-07-06  Vincent Celier  <celier@gnat.com>
6983         * vms_conv.ads: Minor reformatting.
6984         Alphabetical order for enumerated values of type Command_Type, to have
6985         the command in alphabetical order for the usage.
6987         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
6988         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
6990         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
6992         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
6993         (Add_Archive_Path): Only add the global archive if there is one.
6994         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
6995         or not any object file to put in the global archive, and don't build
6996         a global archive if there is none.
6997         (X_Switches): New table
6998         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
6999         in the X_Switches table, if any.
7000         (Initialize): Make sure the X_Switches table is empty
7001         (Scan_Arg): Record -X switches in table X_Switches
7003         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
7005         * make.adb: Minor comment fix
7007         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
7008         invoked with directory information, add the directory in front of the
7009         path.
7011         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
7012         invoked with directory information, add the directory in front of the
7013         path.
7015         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
7016         when Keep_Temporary_Files is False.
7017         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
7018         directory information, add the directory in front of the path.
7019         When not on VMS, handle new switch -dn before the command to set
7020         Keep_Temporary_Files to True.
7021         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
7022         everywhere.
7024         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
7025         invoked with directory information, add the directory in front of the
7026         path.
7028 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
7030         * snames.ads, snames.adb (Name_Stub): New name for the distributed
7031         systems annex.
7033         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
7034         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
7036         * g-socket.adb (To_Timeval): Fix incorrect conversion of
7037         Selector_Duration to Timeval for the case of 0.0.
7039         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
7040         documentation from Evolve_And_Then.
7042 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
7044         * s-taprop-tru64.adb, s-taprop-os2.adb,
7045         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
7047 2004-07-06  Robert Dewar  <dewar@gnat.com>
7049         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
7050         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
7051         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
7052         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
7053         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
7054         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
7055         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
7056         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
7057         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
7058         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
7059         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
7060         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
7061         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
7062         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
7063         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
7064         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
7065         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
7066         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
7067         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
7068         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
7069         vms_data.ads: Minor reformatting,
7070         Fix bad box comment format.
7072         * gnat_rm.texi: Fix minor grammatical error
7074         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
7076         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
7077         more cases of discriminated records to be recognized as not needing a
7078         secondary stack.
7079         (Has_Access_Values): New function.
7081         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
7083         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
7084         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
7085         with LRM terminology).
7086         Change terminology in comments primitive type => elementary type.
7088 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
7090         PR ada/15602
7091         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
7092         parameters do not impose any requirements on the presence of a body.
7094 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
7096         PR ada/15593
7097         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
7098         compilation unit and is in an open scope at the point of instantiation,
7099         assume that a body may be present later.
7101 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
7103         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
7104         Improve error message when specified size is not supported.
7106         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
7107         is never a primitive operation.
7109 2004-07-05  Andreas Schwab  <schwab@suse.de>
7111         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
7112         RECORD_OR_UNION_CHECK.
7113         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
7115 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
7117         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
7118         dependency on xgnatugn, instead build it via a submake.
7119         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
7121 2004-07-04  Richard Henderson  <rth@redhat.com>
7123         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
7125 2004-07-01  Richard Henderson  <rth@redhat.com>
7127         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
7128         * utils.c (max_size): Likewise.
7130 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7132         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
7133         and rest_of_type_compilation; add arg to create_*_decl.
7134         (annotate_decl_with_node): Deleted.
7135         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
7136         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
7137         (get_current_block_context, gnat_pushdecl): New declarations.
7138         (gnat_init_stmt_group): Likewise.
7139         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
7140         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
7141         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
7142         (gnat_init): Call gnat_init_stmt_group.
7143         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
7144         (gnu_pending_elaboration_list): Deleted.
7145         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
7146         (gigi): Rearrange initialization calls and move some to last above.
7147         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
7148         Delete calls to add_decl_expr; add arg to create_*_decl.
7149         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
7150         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
7151         begin_subprog_body and call it.
7152         Don't push and pop ggc context.
7153         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
7154         (add_stmt): Remove handling of DECL_EXPR from here.
7155         If not in function, mark visited.
7156         (add_decl_expr): Put global at top level.
7157         Check for cases of DECL_INITIAL we have to handle here.
7158         (process_type): Add extra arg to create_type_decl.
7159         (build_unit_elab): Rework to just gimplify.
7160         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
7161         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
7162         (get_pending_elaborations, pending_elaborations_p): Likewise.
7163         (push_pending_elaborations, pop_pending_elaborations): Likewise.
7164         (get_elaboration_location, insert_elaboration_list): Likewise.
7165         (gnat_binding_level): Renamed from ada_binding_level.
7166         (init_gnat_to_gnu): Don't clear pending_elaborations.
7167         (global_bindings_p): Treat as global if no current_binding_level.
7168         (set_current_block_context): New function.
7169         (gnat_pushdecl): Renamed from pushdecl; major rework.
7170         All callers changed.
7171         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
7172         (finish_record_type): Call call pushdecl for stub decl.
7173         (function_nesting_depth): Deleted.
7174         (begin_subprog_body): Delete obsolete code.
7175         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
7177 2004-06-28  Robert Dewar  <dewar@gnat.com>
7179         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7180         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7181         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
7182         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7183         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
7185         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
7186         deal with problem of inefficient slices on machines with strict
7187         alignment, when the slice is a component of a composite.
7189         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
7190         machines, we need the check there as well.
7192 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
7194         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
7195         determine safe copying direction for overlapping slice assignments
7196         when component is controlled.
7198         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
7199         formal derived type in the actual for a formal package are visible in
7200         the enclosing instance.
7202 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
7204         PR ada/15600
7205         * sem_util.adb (Trace_Components): Diagnose properly an illegal
7206         circularity involving a private type whose completion includes a
7207         self-referential component.
7208         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
7209         renaming or an instantiation from an implicit derived operation.
7211 2004-06-28  Pascal Obry  <obry@gnat.com>
7213         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
7214         DLL.
7215         (Library_File_Name_For): Idem.
7217 2004-06-28  Matthew Gingell  <gingell@gnat.com>
7219         * g-traceb.ads: Add explanatory note on the format of addresses
7220         expected by addr2line.
7222 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
7224         * Makefile.in: Force debugging information on s-tasdeb.adb,
7225         a-except.adb and s-assert.adb needed by the debugger.
7227 2004-06-28  Vincent Celier  <celier@gnat.com>
7229         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
7230         Need_To_Build_Lib.
7231         (Gnatmake): Ditto.
7233         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
7235         * prj.adb: Minor reformatting
7236         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
7238         * prj.ads: Comment updates
7239         Minor reformatting
7240         (Project_Data): Change Flag1 to Need_To_Build_Lib.
7241         Remove Flag2: not used.
7243         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
7244         declaration.
7246         * gnat_ugn.texi: Put a "null;" declaration in one project file example
7248         * gnat_rm.texi: Document Empty declarations "null;".
7250         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
7251         front of the linker options.
7252         (Link_Foreign): Put the global archives and the libraries in front of
7253         the linker options.
7255 2004-06-28  Javier Miranda  <miranda@gnat.com>
7257         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
7258         (RTU_Loaded): Code cleanup
7259         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
7260         withed predefined units.
7262         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
7263         explicitly withed predefined units.
7264         Fix typo in comment
7266         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
7267         explicitly withed predefined units.
7269 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7271         * ada-tree.def (DECL_STMT): Deleted.
7272         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
7273         (DECL_STMT_VAR): Deleted.
7274         * decl.c: add_decl_stmt now add_decl_expr.
7275         * gigi.h: Likewise.
7276         * trans.c: Likewise.
7277         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
7278         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
7279         (add_stmt): Only handle padded type here.
7280         (add_stmt_with_node): Allow gnat_node to not be present.
7281         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
7282         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
7283         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
7284         make a SAVE_EXPR for the entire fat pointer.
7285         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
7286         (create_index_type): Make a DECL_EXPR.
7287         (end_subprog_body): Don't call allocate_struct_function here but
7288         do clear cfun.
7290 2004-06-25  Pascal Obry  <obry@gnat.com>
7292         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
7293         Relocatable from Build_Dynamic_Library call.
7295         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
7296         Relocatable are now synonym.
7298         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
7300         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
7301         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
7302         call.
7304         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
7305         Lib_Address and Relocatable.
7306         (Default_DLL_Address): Removed.
7308         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7309         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7310         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
7311         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
7312         (Default_DLL_Address): Removed.
7314         * mlib-tgt-mingw.adb: Ditto.
7315         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
7317         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
7318         the initial thread stack size.
7320         * a-strmap.ads: Move package L to private part as it is not used in
7321         the spec. Found while reading code.
7323 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
7325         * tracebak.c: Introduce support for a GCC infrastructure based
7326         implementation of __gnat_backtrace.
7328         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
7329         any more. Use accessors instead. This eases maintenance and relaxes
7330         some alignment constraints.
7331         (_GNAT_Exception structure): Remove the Ada specific fields
7332         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
7333         a-exexpr.adb.
7334         (is_handled_by, __gnat_eh_personality): Replace component references to
7335         exception structure by use of the new accessors.
7337         * init.c (__gnat_initialize): Adjust comments to match the just
7338         reverted meaning of the -static link-time option.
7340         * adaint.c (convert_addresses): Arrange not to define a stub for
7341         mips-irix any more, as we now want to rely on a real version from a
7342         recent libaddr2line.
7344         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
7345         the personality routine can use them and not have to rely on a C
7346         counterpart of the record anymore. This simplifies maintenance and
7347         relaxes the constraint of having Standard'Maximum_Alignment match
7348         BIGGEST_ALIGNMENT.
7349         Update comments, and add a section on the common header alignment issue.
7351 2004-06-25  Geert Bosch  <bosch@gnat.com>
7353         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
7354         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
7356 2004-06-25  Robert Dewar  <dewar@gnat.com>
7358         * gnat_rm.texi: Fix section on component clauses to indicate that the
7359         restriction on byte boundary placement still applies for bit packed
7360         arrays.
7361         Add comment on stack usage from Initialize_Scalars
7363         * gnat_ugn.texi: Add documentation for -gnatyLnnn
7365         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
7366         limiting nesting level.
7368         * usage.adb: Add line for -gnatyLnnn switch
7370         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
7371         sem_ch13.adb, exp_aggr.adb: Minor reformatting
7373         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
7374         type as well as on the subtype. This corrects a problem in freeze in
7375         setting alignments of atomic types.
7377         * sem_eval.ads: Minor comment typo fixed
7379         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
7380         level.  Minor reformatting.
7382         * fname.adb (Is_Predefined_File_Name): Require a letter after the
7383         minus sign. This means that file names like a--b.adb will not be
7384         considered predefined.
7386         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
7387         record Test new flag and give diagnostic for bad component clause.
7388         (Freeze_Entity): Set alignment of array from component alignment in
7389         cases where this is safe to do.
7391         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
7392         arrays.
7394         * cstand.adb: (Create_Standard): Set alignment of String to 1
7396         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
7398         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
7399         code in the common constrained array cases.
7401         * a-storio.adb: Change implementation to avoid possible alignment
7402         problems on machines requiring strict alignment (data should be moved
7403         as type Buffer, not type Elmt).
7405         * checks.adb (Apply_Array_Size_Check): Improve these checks by
7406         killing the overflow checks which we really do not need (64-bits is
7407         enough).
7409 2004-06-25  Vincent Celier  <celier@gnat.com>
7411         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
7412         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
7413         inconditionally for the main project.
7414         (Recursive_Add_Archives.Add_Archive_Path): New procedure
7415         (Link_Executables.Check_Time_Stamps): New procedure
7416         (Link_Executables.Link_Foreign): New procedure
7417         Changes made to reduce nesting level of this package
7418         (Check): New procedure
7419         (Add_Switches): When not in quiet output, check that a switch is not
7420         the concatenation of several valid switches. If it is, issue a warning.
7421         (Build_Global_Archive): If the global archive is rebuilt, linking need
7422         to be done.
7423         (Compile_Sources): Rebuilding a library archive does not imply
7424         rebuilding the global archive.
7425         (Build_Global_Archive): New procedure
7426         (Build_Library): New name for Build_Archive, now only for library
7427         project
7428         (Check_Archive_Builder): New procedure
7429         (Create_Global_Archive_Dependency_File): New procedure
7430         (Gprmake): Call Build_Global_Archive before linking
7431         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
7432         throughout.
7433         (Scan_Arg): Display the Copyright notice when -v is used
7435         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
7436         for gnatls.
7438         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
7439         COMPILE.
7440         Add new GNAT LIST qualifier /FILES=
7441         Added qualifier /DIRECTORY= to GNAT METRIC
7442         Added qualifier /FILES= to GNAT METRIC
7443         Added qualifier /FILES to GNAT PRETTY
7445         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
7446         to take into account both versions of the switch.
7448         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
7449         always be the last switch to the gcc driver. Disable switch storing so
7450         that switches automatically added by the gcc driver are not put in the
7451         ALI file.
7453         * prj.adb (Project_Empty): Take into account changes in components of
7454         Project_Data.
7456         * prj.ads (Languages_Processed): New enumaration value All_Languages.
7458         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
7459         used. Split Boolean component Ada_Sources_Present in two Boolean
7460         components Ada_Sources_Present and Other_Sources_Present.
7461         Minor reformatting
7463         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
7464         instead of Sources_Present.
7465         (Set_Ada_Paths.Add.Recursive_Add): Ditto
7467         * prj-nmsc.adb: Minor reformatting
7468         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
7469         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
7470         Check_Ada_Naming_Scheme.
7471         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
7472         throughout.
7474         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
7475         In_Limited.
7476         Make sure that all cycles where there is at least one "limited with"
7477         are detected.
7478         (Parse_Single_Project): New Boolean parameter In_Limited
7480         * prj-proc.adb (Recursive_Check): When Process_Languages is
7481         All_Languages, call first Prj.Nmsc.Ada_Check, then
7482         Prj.Nmsc.Other_Languages_Check.
7484         * prj-proc.adb (Process): Use Ada_Sources_Present or
7485         Other_Sources_Present (instead of Sources_Present) depending on
7486         Process_Languages.
7488         * lang-specs.h: Keep -g and -m switches in the same order, and as the
7489         last switches.
7491         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
7492         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
7493         False.
7494         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
7495         False.
7497         * lib.ads (Disable_Switch_Storing): New procedure.
7499         * make.adb: Modifications to reduce nesting level of this package.
7500         (Check_Standard_Library): New procedure
7501         (Gnatmake.Check_Mains): New procedure
7502         (Gnatmake.Create_Binder_Mapping_File): New procedure
7503         (Compile_Sources.Compile): Add switch -gnatez as the last option
7504         (Display): Never display -gnatez
7506         * Makefile.generic:
7507         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
7509         * gnatcmd.adb (Check_Project): New function
7510         (Process_Link): New procedure to reduce nesting depth
7511         (Check_Files): New procedure to reduce the nesting depth.
7512         For GNAT METRIC, include the inherited sources in extending projects.
7513         (GNATCmd): When GNAT LS is invoked with a project file and no files,
7514         add the list of files from the sources of the project file. If this list
7515         is too long, put it in a temp text files and use switch -files=
7516         (Delete_Temp_Config_Files): Delete the temp text file that contains
7517         a list of source for gnatpp or gnatmetric, if one has been created.
7518         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
7519         in the project file is too large, create a temporary text file that
7520         list them and pass it to the tool with "-files=<temp text file>".
7521         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
7523         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
7524         generated file is in not in Ada.
7526         * gnatls.adb: Remove all parameters And_Save that are no longer used.
7527         (Scan_Ls_Arg): Add processing for -files=
7528         (Usage): Add line for -files=
7530         * g-os_lib.adb (On_Windows): New global constant Boolean flag
7531         (Normalize_Pathname): When on Windows and the path starts with a
7532         directory separator, make sure that the resulting path will start with
7533         a drive letter.
7535         * clean.adb (Clean_Archive): New procedure
7536         (Clean_Project): When there is non-Ada code, delete the global archive,
7537         the archive dependency files, the object files and their dependency
7538         files, if they exist.
7539         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
7541 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
7543         * sinfo.ads: Fix typo in comment.
7545         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
7546         the TSS for remote access-to-subprogram types, since these TSS are
7547         always present once the type has been analyzed.
7548         (RAS_E_Dereference): Same.
7550         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
7551         reference raises Bad_Attribute, mark the reference as analyzed so the
7552         node (and any children resulting from rewrites that could have occurred
7553         during the analysis that ultimately failed) is not analyzed again.
7555         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
7557         * exp_dist.adb: Minor comment fix.
7559         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
7560         type is an anonymous access type, no unchecked deallocation of the
7561         allocated object can occur. If the object is controlled, attach it with
7562         a count of 1. This allows attachment to the Global_Final_List, if
7563         no other relevant list is available.
7564         (Get_Allocator_Final_List): For an anonymous access type that is
7565         the type of a discriminant or record component, the corresponding
7566         finalisation list is the one of the scope of the type.
7568 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
7570         * sem_ch3.adb (Replace_Type): When computing the signature of an
7571         inherited subprogram, use the first subtype if the derived type
7572         declaration has no constraint.
7574         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
7575         before applying previous optimization. Minor code cleanup.
7577         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
7578         placed at the beginning of an unpacked record without explicit
7579         alignment, a slice of it will be aligned and does not need a copy when
7580         used as an actual.
7582 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
7584         PR ada/15591
7585         PR ada/15592
7586         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
7587         reference is written with expressions mimicking parameters.
7589 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
7591         PR ada/15589
7592         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
7593         STEP 2a. The constraints of a full type declaration of a derived record
7594         type are checked for conformance with those declared in the
7595         corresponding private extension declaration. The message
7596         "not conformant with previous declaration" is emitted if an error is
7597         detected.
7599 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
7601         * g-traceb.ads: Document the need for -E binder switch in the spec.
7603         * g-trasym.ads: Document the need for -E binder switch in the spec.
7605 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
7607         * sem_prag.adb: Add handling of pragma Detect_Blocking.
7609         * snames.h, snames.ads, snames.adb: Add entry for pragma
7610         Detect_Blocking.
7612         * s-rident.ads: Change reference to pragma Detect_Blocking.
7614         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
7615         system.ads.
7617         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
7618         to indicate whether pragma Detect_Blocking is active.
7620         * par-prag.adb: Add entry for pragma Detect_Blocking.
7622         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
7623         of not handling WITH.
7624         Note that this replaces the previous update which was incorrect.
7626 2004-06-25  Javier Miranda  <miranda@gnat.com>
7628         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
7629         use-clauses to have a clean environment.
7631         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
7632         the installation of the use-clauses to stablish a clean environment in
7633         case of compilation of a separate unit; otherwise the call to
7634         use_one_package is protected by the barrier Applicable_Use.
7636         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
7637         the installation of the use-clauses to stablish a clean environment in
7638         case of compilation of a separate unit.
7639         (End_Use_Clauses): Minor comment cleanup.
7641 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
7643         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
7645 2004-06-23  Richard Henderson  <rth@redhat.com>
7647         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
7649 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7651         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
7652         now bool instead of int.
7653         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
7654         * trans.c (gnu_switch_label_stack): New function.
7655         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
7656         elaboration of renamed entity returns.
7657         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
7658         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
7659         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
7660         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
7661         DECL_SIZE_UNIT and simplify variable-sized case.
7662         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
7663         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
7664         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
7665         (build_unit_elab): Disable for now.
7666         * utils.c (mark_visited): New function.
7667         (pushdecl): Walk tree to call it for global decl.
7668         (update_pointer_to): Update all variants of pointer and ref types.
7669         Add arg to COMPONENT_REF.
7670         (convert): Likewise.
7671         Move check for converting between variants lower down.
7672         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
7673         (build_allocator): Don't force type of MODIFY_EXPR.
7674         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
7675         put_var_into_stack.
7677 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7679         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
7680         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
7681         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
7682         subprograms.
7683         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
7684         all callers changed.
7685         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
7686         the way that EXIT_STMT finds the loop label.
7687         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
7688         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
7689         (add_stmt): Use annotate_with_locus insted of setting directly.
7690         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
7691         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
7692         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
7693         (build_vms_descriptor): Add extra args to ARRAY_REF.
7694         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
7695         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
7696         New cases.
7697         (build_binary_op): Don't make explicit CONVERT_EXPR.
7698         Add extra rgs to ARRAY_REF.
7700 2004-06-14  Pascal Obry  <obry@gnat.com>
7702         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
7703         Windows.  Fix minor typo.
7705         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
7706         which is now supported on Windows. With this implementation using the
7707         Library Project feature is no different on Windows than on UNIX.
7709 2004-06-14  Vincent Celier  <celier@gnat.com>
7711         * makegpr.adb (Compile_Sources): Nothing to do when there are no
7712         non-Ada sources.
7714         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
7716         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
7717         found, show the project name and the path of the previously parsed
7718         project file.
7720 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
7722         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
7723         array, avoid copying the actual before the call.
7725 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
7727         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
7728         Instead, allocate memory on worst-case alignment assumptions, and then
7729         return an aligned address within the allocated zone.
7731 2004-06-14  Robert Dewar  <dewar@gnat.com>
7733         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
7734         elab entities in predefined units in No_Run_Time_Mode.
7735         (Gen_Adainit_C): Same fix
7736         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
7737         units in No_Run_Time_Mode
7738         (Gen_Elab_Calls_C): Same fix
7740         * symbols-vms-alpha.adb: Minor reformatting
7742         * g-debpoo.ads: Minor reformatting
7744         * lib.adb (In_Same_Extended_Unit): Version working on node id's
7746         * lib.ads (In_Same_Extended_Unit): Version working on node id's
7748         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
7749         working on nodes.
7751         * make.adb: Minor reformatting
7753         * par-ch12.adb: Minor reformatting
7755         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
7757         * prj-strt.adb: Minor reformatting
7759         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
7760         be more general.
7762         * sem_attr.adb: Minor reformatting
7764         * sem_ch7.adb: Minor reformatting
7766         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
7767         for type in the same unit as the object declaration.
7769         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
7770         static string expressions and not just string literals.
7771         Minor reformatting
7772         (Set_Warning): Reset restriction warning flag for restriction pragma
7773         Implement pragma Profile_Warnings
7774         Implement pragma Profile (Restricted)
7775         Give obolescent messages for old restrictions and pragmas
7777         * snames.h, snames.ads, snames.adb: Add new entry for pragma
7778         Profile_Warnings.
7780         * s-rident.ads: Add declarations for restrictions required by profile
7781         Restricted and profile Ravenscar.
7783         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
7785         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
7786         configuration pragmas.
7788 2004-06-11  Vincent Celier  <celier@gnat.com>
7790         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
7791         gnatsym, when symbol policy is Restricted.
7793         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
7794         gnatsym, when symbol policy is Restricted.
7796         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
7797         read the symbol file.
7798         (Finalize): Fail in symbol policy Restricted if a symbol in the original
7799         symbol file is not in the object files. Do not create a new symbol file
7800         when symbol policy is Restricted.
7802         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
7803         in Scng.
7805         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
7806         Restricted.
7807         (Usage): Line for new switch -R
7809         * make.adb (Initialize): When the platform is not VMS, add the
7810         directory where gnatmake is invoked in the front of the path, if
7811         gnatmake is invoked with directory information.  Change the Scan_Args
7812         while loop to a for loop.
7813         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
7814         if Depth is equal or greater than the proposed depth, there is nothing
7815         to do.
7816         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
7817         instead of 0.
7819         * prj.ads: Add new symbol policy Restricted.
7821         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
7822         with the new parameters Check_All_Labels and Case_Location.
7824         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
7825         (Library_Symbol_File needs to be defined).
7827         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
7828         and Case_Location If Check_All_Labels is True, check that all values of
7829         the string type are used, and output warning(s) if they are not.
7831         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
7832         and Case_Location.
7834         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
7836         * gnat_ugn.texi: Update documentation about the library directory in
7837         Library Projects.
7839         * makegpr.adb (Display_Command): In verbose mode, also display the
7840         value of the CPATH env var, when the compiler is gcc.
7841         (Initialize): Change the Scan_Args while loop to a for loop
7842         (Compile_Individual_Sources): Change directory to object directory
7843         before compilations.
7845         * symbols.ads: New symbol policy Restricted.
7847 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
7849         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
7850         is now taken care of internally in the Exception_Propagation package
7851         and does not require clients assistance any more.
7853         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
7854         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
7855         functions. Helpers to maintain a predicate required in the handling of
7856         occurrence transfer between tasks.
7857         This is now handled internally and does not require clients assistance
7858         for the setup/propagate separation anymore.
7859         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
7860         allocation strategy, handle the Setup_And_Not_Propagated predicate and
7861         document.
7863         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
7864         raise_after_setup, now that everything is handled internally within the
7865         setup/propagation engine.
7867 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
7869         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
7870         Add additional conditions for the case of an actual being a simple
7871         name or literal. Improve inlining by preventing the generation
7872         of temporaries with a short lifetime (one use).
7874 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
7876         PR ada/15587
7878         * einfo.ads: Minor comment updates for Has_Completion and
7879         E_Constant list of flags.
7881         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
7882         and constant redeclarations now set the Has_Completion flag of their
7883         defining identifiers.
7885         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
7886         Inspect_Deferred_Constant_Completion.
7887         Used to detect private deferred constants that have not been completed
7888         either by a constant redeclaration or pragma Import. Emits error message
7889         "constant declaration requires initialization expression".
7891         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
7892         completes a deferred constant.
7894 2004-06-11  Geert Bosch  <bosch@gnat.com>
7896         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
7898         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
7899         calculating exponent for scaling denormal numbers.
7900         (Leading_Part): Properly raise Constraint_Error for zero or negative
7901         Adjustment.
7902         (Remainder): Properly raise Constraint_Error for zero divisor.
7904 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
7906         * sem_util.adb: Minor reformatting.
7908         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
7909         dereference when accessing the entry parameter record.
7910         (Check_Array_Type): Always check for possible implicit dereference.
7911         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
7912         Abort if a pointer is still present (denoting that an implicit
7913         dereference was left in the tree by the front-end).
7915         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
7916         dereference when accessing the entry parameter record.
7917         (Check_Array_Type): Always check for possible implicit dereference.
7918         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
7919         Abort if a pointer is still present (denoting that an implicit
7920         dereference was left in the tree by the front-end).
7922 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
7924         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
7925         message, like the compiler itself does. Easier to parse the output.
7927         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
7929         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
7930         be base names, and not includes directories.
7932 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
7934         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
7935         so that dependencies are properly taken into account by make.
7937 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
7939         PR ada/15622
7940         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
7941         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
7943 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
7945         * Makefile.in (install-gnatlib): install target-specific run-time files.
7947         * Make-lang.in: Remove obsolete targets.
7949 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
7951         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
7952         specification, to catch misuses of program unit names.
7954         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
7955         superfluous conversions in an instance.
7957 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
7959         PR ada/15403
7961         * sem_ch12.adb (Save_References): If operator node has been folded to
7962         enumeration literal, associated_node must be discarded.
7964 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
7966         * s-stchop-vxworks.adb: Add required pragma Convention to
7967         Task_Descriptor because it is updated by a C function.
7969 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
7971         PR ada/15568
7973         * Makefile.in: Remove target specific SO_OPT on IRIX
7975 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7977         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
7978         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
7979         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
7980         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
7981         (STMT_STMT, USE_STMT): New statement codes.
7982         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
7983         * ada-tree.h: Reflect above changes.
7984         (struct tree_loop_id): Deleted.
7985         (union lang_tree_node, struct lang_decl, struct lang_type):
7986         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
7987         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
7988         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
7989         (IS_ADA_STMT): New macro.
7990         * decl.c (annotate_decl_with_node): New function.
7991         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
7992         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
7993         Call add_stmt_with_node to do needed assignments.
7994         Add call to update setjmp buffer directly, not via EXPR_STMT.
7995         (maybe_variable): Argment GNAT_NODE deleted.
7996         * gigi.h (maybe_variable): Likewise.
7997         (make_transform, add_stmt_with_node, set_block_for_group): New.
7998         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
7999         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
8000         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
8001         (set_lineno, set_lineno_from_sloc): Likewise.
8002         (record_code_position, insert_code_for): Likewise.
8003         (gnat_poplevel): Now returns void.
8004         (end_subprog_body): Now takes argument.
8005         * misc.c (cgraph.h, tree-inline.h): New includes.
8006         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
8007         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
8008         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
8009         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
8010         (gnat_parse_file): Don't set immediate_size_expand.
8011         Call cgraph functions.
8012         (gnat_expand_expr): Remove most cases.
8013         (record_code_position, insert_code_for): Remove from here.
8014         * trans.c (toplev.h, tree-gimple.h): Now included.
8015         (discard_file_names): Deleted.
8016         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
8017         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
8018         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
8019         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
8020         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
8021         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
8022         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
8023         (set_block_for_group, add_stmt_list): Likewise.
8024         (start_stmt_group): Renamed from start_block_stmt.
8025         (end_stmt_group): Likewise, from end_block_stmt.
8026         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
8027         (gigi): Don't set discard_file_names or call set_lineno.
8028         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
8029         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
8030         Numerous changes throughout to reflect new names and complete
8031         function-at-a-time implementation.
8032         (gnat_expand_stmt): Delete or comment out all cases.
8033         (process_inlined_subprograms): Use add_stmt.
8034         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
8035         call set_lineno; also remove unneeded block handling.
8036         (process_type): Remove unneeded block handling.
8037         (build_unit_elab): Remove calls to deleted functions.
8038         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
8039         (tree-dump.h): Likewise.
8040         (struct ada_binding_level): Add field jmpbuf_decl.
8041         (gnat_define_builtin, gnat_install_builtins): New.
8042         (gnat_gimplify_function, gnat_finalize): Likewise.
8043         (gnat_poplevel): No longer return BLOCK, set it instead.
8044         Remove code dealing with nested functions.
8045         (gnat_init_decl_processing): Also set size_type_node.
8046         Call gnat_install_builtins.
8047         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
8048         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
8049         Remove special-case for "main".
8050         (end_subprog_body): Add arg and rework for tree-ssa.
8051         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
8052         Add case for BOOLEAN_TYPE.
8053         * utils2.c (rtl.h): Now include.
8054         (build_call_raise): Test Debug_Flag_NN directly.
8055         (build_call_alloc_dealloc): Don't use local stack allocation for now.
8056         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
8057         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
8059 2004-06-07  Robert Dewar  <dewar@gnat.com>
8061         * a-direct.ads, einfo.ads: Minor comment updates
8063         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8064         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
8065         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
8066         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
8067         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
8069         * s-interr-sigaction.adb: Remove unreferenced variable
8070         (Attached_Interrupts).  Minor reformatting.
8071         Avoid use of variable I (replace by J).
8073         * par-ch10.adb: Fix text of one error message
8075         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
8076         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
8077         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
8078         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
8079         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
8080         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
8081         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
8082         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
8083         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
8084         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
8085         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
8086         2005 support.
8088 2004-06-07  Doug Rupp  <rupp@gnat.com>
8090         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
8092         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
8094         * mlib-tgt-vms-ia64.adb: New file.
8096         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
8097         Add mlib-tgt-vms-ia64.adb
8098         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
8099         Move to alpha specific ifeq section.
8100         Add VMS specific versions of symbols.adb
8101         Renaming of 5q vms files.
8103         * 5qsystem.ads renamed to system-vms_64.ads.
8105 2004-06-07  Vincent Celier  <celier@gnat.com>
8107         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
8108         explain that when a time of day corresponding to the non existing hour
8109         on the day switching to DST is specified, Split may return a different
8110         value for Seconds.
8112         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
8113         to GNAT PRETTY.
8115         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
8116         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
8118         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
8119         to False.
8120         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
8121         the linking options.
8122         (Build_Library.Check_Libs): On VMS, if there is a dependency on
8123         g-trasym.ads, set Gtrasymobj_Needed to True.
8125         * prj-attr.adb: Add new package Metrics for gnatmetric
8127         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
8128         canonical case to take into account files with upper case characters on
8129         Windows.
8130         (Ada_Check): Load the reference symbol file name in the name buffer to
8131         check it, not the symbol file name.
8133         * snames.ads, snames.adb: Add standard name Metrics (name of project
8134         file package for gnatmetric).
8136         * vms_conv.ads: Add Metric to Comment_Type
8138         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
8140         * vms_data.ads: Add qualifiers for GNAT METRIC
8142         * makegpr.adb (Link_Executables): Take into account the switches
8143         specified in package Linker of the main project.
8145 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
8147         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
8148         the index of the last element is Units.Last, not Units.Table'Last
8149         (which is usually not a valid index within the actually allocated
8150         storage for the table).
8152         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
8153         determines whether to generate a call to a checked storage pool
8154         Dereference action.
8155         Generate such a call only for a dereference that either comes from
8156         source, or is the result of rewriting a dereference that comes from
8157         source.
8159 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
8161         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
8163 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
8165         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
8166         file level, elaborate the stride for inner dimensions in alignment
8167         units, not bytes.
8169         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
8170         in a comment.
8172 2004-06-07  Javier Miranda  <miranda@gnat.com>
8174         * exp_ch6.adb: Correct wrong modification in previous patch
8176 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
8178         * g-trasym.ads: Corrected comment to properly reflect level of support
8179         on VMS.
8181 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
8183         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
8184         includes case of a variable referenced on the left hand side of an
8185         assignment, therefore remove redundant code. Variables and prefixes of
8186         indexed or selected components are now marked as referenced on left
8187         hand side. Warnings are now properly emitted when variables or prefixes
8188         are assigned but not read.
8190         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
8191         left hand side referenced variables. Private access types do not
8192         produce the warning "variable ... is assigned but never read".
8193         Add also additional checks to left hand side referenced variables.
8194         Aliased, renamed objects and access types do not produce the warning
8195         "variable ... is assigned but never read" since other entities may read
8196         the memory location.
8198 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
8200         * Makefile.in: In the powerpc/vxworks-specific section, restore
8201         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
8202         by mistake).
8204 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
8206         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
8207         predefined operators.
8208         Removes spurious type errors from g-trasym-vms.adb.
8210         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
8211         distinct from the operator appearing in the source, call appropriate
8212         routine to insert conversions when needed, and complete resolution of
8213         node.
8214         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
8215         interpretations for rewritten right operand.
8216         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
8217         the other operand is overloaded and the context is a type conversion.
8219 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8221         * ada-tree.def (BLOCK_STMT): Now has two operands.
8222         (BREAK_STMT): New.
8224         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
8226         * gigi.h: (gnat_poplevel): Now returns a tree.
8228         * trans.c (end_block_stmt): Add arg; all callers changed.
8229         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
8230         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
8231         (add_stmt): Set TREE_TYPE.
8232         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
8233         (gnat_expand_stmt, case BREAK_STMT): New case.
8235         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
8237 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
8239         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
8240         procedure Set_Stack_Size that is not needed.
8242 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
8244         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
8245         used for gnatpp input file and for the files upon which it depends
8247 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
8249         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
8251 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
8253         * gnatvsn.ads: Bump version numbers appropriately.
8254         Add new build type.
8256 2004-06-07  Pascal Obry  <obry@gnat.com>
8258         * gnat_ugn.texi: Improve comments about imported names and link names
8259         on Windows. Add a note about the requirement to use -k gnatdll's option
8260         when working with a DLL which has stripped stdcall symbols (no @nn
8261         suffix).
8263 2004-05-27  Vincent Celier  <celier@gnat.com>
8265         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
8266         COMMENTS_LAYOUT=UNTOUCHED
8268         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
8269         symbols-vms-alpha.adb
8271 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
8273         * sem.ads: Clarify documentation on checks suppression.
8275         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
8277 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
8279         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
8280         the case of multiple derivations.
8281         (Is_Object_Reference): For a selected component, verify that the prefix
8282         is itself an object and not a value.
8284         * sem_ch12.adb (Same_Instantiated_Constant): New name for
8285         Same_Instantiated_Entity.
8286         (Same_Instantiated_Variable): Subsidiary to
8287         Check_Formal_Package_Instance, to recognize actuals for in-out generic
8288         formals that are obtained from a previous formal package.
8289         (Instantiate_Subprogram_Body): Emit proper error when
8290         generating code and the proper body of a stub is missing.
8292         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
8293         has a universal interpretation, do the disambiguation here.
8295         * exp_ch4.adb (Expand_N_Type_Conversion,
8296         Expand_N_Unchecked_Type_Conversion): Special handling when target type
8297         is Address, to avoid typing anomalies when Address is a visible integer
8298         type.
8300         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
8301         to determine whether a subprogram should not be marked Pure, even when
8302         declared in a pure package.
8304 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
8306         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
8308         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
8309         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
8310         Update the documentation about the Ravenscar profile, following the
8311         definition found in AI-249.
8313         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
8314         setting the Profile (Ravenscar). This must be done in addition to
8315         setting the required restrictions.
8317         * rtsfind.ads: Add the set of operations defined in package
8318         Ada.Interrupts.
8320         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
8321         restriction.
8323 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
8325         lang-specs.h: Always require -c or -S and always redirect to /dev/null
8326         if -gnatc or -gnats is passed.
8328 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
8330         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
8331         a significant reference. Warnings are now properly emitted when a
8332         discriminated type is not referenced.
8334         * lib-xref.adb (Generate_Reference): A deferred constant completion,
8335         record representation clause or record type discriminant does not
8336         produce a reference to its corresponding entity. Warnings are now
8337         properly emitted when deferred constants and record types are not
8338         referenced.
8340 2004-05-27  Geert Bosch  <bosch@gnat.com>
8342         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
8343         Fixes ACATS Annex G tests.
8345 2004-05-27  Robert Dewar  <dewar@gnat.com>
8347         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
8348         handling WITH
8350 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
8352         * s-interr.adb (Server_Task): Take into account case of early return
8353         from sigwait under e.g. linux.
8355 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
8357         * gnat_ugn.texi: Add description for the new gnatpp options:
8358          -rnb - replace the original source without creating its backup copy
8359          -c0 - do not format comments
8361 2004-05-24  Geert Bosch  <bosch@gnat.com>
8363         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
8364         with 192 bits of precision, sufficient to reduce a double-extended
8365         arguments X with a maximum relative error of T'Machine_Epsilon, for X
8366         in -2.0**32 .. 2.0**32.
8367         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
8368         reduction by the processor, which only uses a 68-bit approximation of
8369         Pi.
8370         (Tan): Always reduce arguments and compute function either using
8371         the processor's fptan instruction, or by dividing sin and cos as needed.
8373 2004-05-24  Doug Rupp  <rupp@gnat.com>
8375         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
8376         gcc error on 32/64 bit VMS.
8378 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
8380         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
8381         since this is what we get for stack overflows although not documented
8382         as such.
8383         Document the issues which may require adjustments to our signal
8384         handlers.
8386 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
8388         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
8389         enclosing dynamic scope if the instantiation is within a generic unit.
8391 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
8393         * exp_dbug.ads: Fix typo.
8395         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
8396         Rename it to its proper name: system-linux-ia64.ads
8397         (stamp-gnatlib1): Remove extra target specific run time files when
8398         setting up the rts directory.
8400 2004-05-24  Javier Miranda  <miranda@gnat.com>
8402         * einfo.ads, einfo.adb (Limited_Views): Removed.
8403         (Limited_View): New attribute that replaces the previous one. It is
8404         now a bona fide package with the limited-view list through the
8405         first_entity and first_private attributes.
8407         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
8408         limited-private-with clause.
8409         (Install_Limited_Withed_Unit): Install the private declarations of a
8410         limited-private-withed package. Update the installation of the shadow
8411         entities according to the new structure (see Build_Limited_Views)
8412         (Build_Limited_Views): Replace the previous implementation of the
8413         limited view by a package entity that references the first shadow
8414         entity plus the first shadow private entity (required for limited-
8415         private-with clause)
8416         (New_Internal_Shadow_Entity): Code cleanup.
8417         (Remove_Limited_With_Clause): Update the implementation to undo the
8418         new work carried out by Build_Limited_Views.
8419         (Build_Chain): Complete documentation.
8420         Replace Ada0Y by Ada 0Y in comments
8421         Minor reformating
8423         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
8424         types the level of accessibility depends on the enclosing type
8425         declaration.
8427         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
8428         entities. Complete documentation of previous change.
8430 2004-05-24  Robert Dewar  <dewar@gnat.com>
8432         * namet.adb: Minor reformatting
8433         Avoid use of name I (replace by J)
8434         Minor code restructuring
8436         * sem_ch6.adb: Minor reformatting
8438         * lib-writ.adb: Do not set restriction as active if this is a
8439         Restriction_Warning case.
8441         * sem_prag.adb: Reset restriction warning flag if real pragma
8442         restriction encountered.
8444         * s-htable.adb: Minor reformatting
8445         Change rotate count to 3 in Hash (improves hash for small strings)
8447         * 5qsystem.ads: Add comments for type Address (no literals allowed).
8449         * gnat_ugn.texi: Add new section of documentation "Code Generation
8450         Control", which describes the use of -m switches.
8452 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
8454         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
8455         through the DECL_INITIAL for renamed variables.
8457 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
8459         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
8461 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
8463         * exp_dbug.ads: Correct comments concerning handling of overloading,
8464         since we no longer use $ anymore.
8466 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
8468         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
8469         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
8470         with illegal subunits.
8472 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
8474         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
8475         body with front-end inlining enabled, check whether an inline pragma
8476         appears immediately after the body and applies to it.
8478         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
8479         enabled and the pragma appears after the body of the subprogram.
8481 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8483         Part of function-at-a-time conversion
8485         * misc.c (adjust_decl_rtl): Deleted.
8486         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
8487         Define.
8489         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
8490         (add_decl_stmt, add_stmt, block_has_vars): New functions.
8491         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
8493         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
8494         when making a decl.
8495         (gnat_to_gnu_entity): Likewise.
8496         Use add_stmt to update setjmp buffer.
8497         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
8498         flush_addressof.
8499         No longer call adjust_decl_rtl.
8500         (DECL_INIT_BY_ASSIGN_P): New macro.
8501         (DECL_STMT_VAR): Likewise.
8503         * trans.c (gigi): Call start_block_stmt to make the outermost
8504         BLOCK_STMT.
8505         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
8506         Call start_block_stmt and end_block_stmt temporarily.
8507         Use gnat_expand_stmt instead of expand_expr_stmt.
8508         (add_decl_stmt): New function.
8509         (tree_transform): Call it.
8510         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
8511         (end_block_stmt): Set type and NULL_STMT.
8512         (gnat_expand_stmt): Make recursize call instead of calling
8513         expand_expr_stmt.
8514         (gnat_expand_stmt, case DECL_STMT): New case.
8515         (set_lineno_from_sloc): Do nothing if global.
8516         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
8517         (start_block_stmt, add_stmt, end_block_stmt): New functions.
8518         (build_block_stmt): Call them.
8519         (gnat_to_code): Don't expand NULL_STMT.
8520         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
8521         args.
8522         (tree_transform): Likewise.
8523         (tree_transform, case N_Null_Statement): Return NULL_STMT.
8524         (gnat_expand_stmt, case NULL_STMT): New case.
8525         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
8526         IF_STMT_TRUE.
8528         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
8529         TREE_ADDRESSABLE.
8531         * utils.c (create_var_decl): Do not call expand_decl or
8532         expand_decl_init.
8533         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
8534         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
8535         here.
8536         (struct e_stack): Add chain_next to GTY.
8537         (struct binding_level): Deleted.
8538         (struct ada_binding_level): New struct.
8539         (free_block_chain): New.
8540         (global_binding_level, clear_binding_level): Deleted.
8541         (global_bindings_p): Rework to see if no chain.
8542         (kept_level_p, set_block): Deleted.
8543         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
8544         new data structure and work directly on BLOCK node.
8545         (gnat_poplevel): Similarly.
8546         (get_decls): Look at BLOCK_VARS.
8547         (insert_block): Work directly on BLOCK node.
8548         (block_has_var): New function.
8549         (pushdecl): Rework for new binding structures.
8550         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
8551         poplevel.
8552         (build_subprog_body): Likewise.
8553         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
8555         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
8557         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
8558         (DECL_STMT_VAR): Likewise.
8560 2004-05-17  Robert Dewar  <dewar@gnat.com>
8562         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
8563         procedure
8565         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
8566         of restriction synonyums by using
8567         Restrict.Process_Restriction_Synonyms.
8569         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
8571         * s-restri.ads (Tasking_Allowed): Correct missing comment
8573         * s-rident.ads: Add entries for restriction synonyms
8575         * ali.adb: Fix some problems with badly formatted ALI files that can
8576         result in infinite loops.
8578         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
8579         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
8580         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
8581         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
8582         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
8583         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
8584         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
8585         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
8586         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
8587         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
8588         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
8589         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
8590         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
8591         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
8592         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
8593         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
8594         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
8595         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
8596         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
8597         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
8598         to Task_Id (minor cleanup).
8600 2004-05-17  Vincent Celier  <celier@gnat.com>
8602         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
8603         directory separator.
8605         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
8606         project being extended, if Languages is not declared in extending
8607         project.
8609 2004-05-17  Javier Miranda  <miranda@gnat.com>
8611         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
8612         limited view of a visible sibling.
8614 2004-05-14  Robert Dewar  <dewar@gnat.com>
8616         * gnat_ugn.texi: Minor change to -gnatS documentation
8618         * sprint.adb: Remove some instances of Assert (False) and for this
8619         purpose replace them by output of a ??? string.
8621         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
8622         Assert (False).
8624         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
8625         flag processing. This was suppressing required dependencies in
8626         No_Run_Time mode and is not needed since the binder does not generate
8627         references for things in libgnat anyway.
8629         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
8630         warning.
8632 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
8634         * gnat_ugn.texi: Document AIX-specific issue with initialization of
8635         resolver library.
8637         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
8638         action for the case of an actual parameter in an init proc call.
8640 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
8642         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
8643         subtype, check visible entities in base type.
8645         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
8646         actions if the object is a renaming.
8648         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
8649         Check_Formal_Package_Instance, to determine more precisely when the
8650         formal and the actual denote the same entity.
8652 2004-05-14  Javier Miranda  <miranda@gnat.com>
8654         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
8656         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
8657         corresponding to a private_with must be removed from visibility; it
8658         will be made visible later, just before we analyze the private part of
8659         the package.
8660         (Check_Private_Child_Unit): Allow private_with clauses in public
8661         siblings.
8662         (Install_Siblings): Make visible the private entities of private-withed
8663         siblings.
8664         (Install_Withed_Unit): Do not install the private withed unit if we
8665         are compiling a package declaration and the Private_With_OK flag was
8666         not set by the caller. These declarations will be installed later,
8667         just before we analyze the private part of the package.
8669         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
8670         during the evaluation of the expression that initializes the object,
8671         decorate it with the expected type to avoid cascade errors.
8672         Code cleanup.
8674         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
8675         subprogram we have to install the private_with clauses after its
8676         specification has been analyzed (as documented in AI-262.TXT).
8678         * sem_ch8.adb (Has_Private_With): New function. Determines if the
8679         current compilation unit has a private with on a given entity.
8680         (Find_Direct_Name): Detect the Beaujolais problem described in
8681         AI-262.TXT
8683         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
8684         provides the functionality of the function Is_Ancestor that was
8685         previously available in sem_ch10. It has been renamed to avoid
8686         overloading.
8688         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
8690 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8692         * utils.c (build_vms_descriptor): Use SImode pointers.
8694 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
8696         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
8698 2004-05-14  GNAT Script  <nobody@gnat.com>
8700         * Make-lang.in: Makefile automatically updated
8702 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
8704         Renaming of target specific files for clarity
8706         * Makefile.in: Rename GNAT target specific files.
8708         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
8709         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
8710         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
8711         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
8712         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
8713         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
8714         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
8715         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
8716         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
8717         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
8718         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
8719         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
8720         51osinte.adb, 51osinte.ads, 51system.ads,
8721         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
8722         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
8723         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
8724         56tpopsp.adb, 57system.ads, 58system.ads,
8725         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
8726         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
8727         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
8728         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
8729         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
8730         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
8731         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
8732         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
8733         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
8734         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
8735         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
8736         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
8737         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
8738         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
8739         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
8740         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
8741         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
8742         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
8743         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
8744         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
8745         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
8746         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
8747         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
8748         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
8749         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
8750         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
8751         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
8752         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
8753         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
8754         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
8755         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
8756         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
8757         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
8758         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
8759         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
8760         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
8761         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
8762         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
8763         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
8764         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
8766         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
8767         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
8768         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
8769         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
8770         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
8771         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
8772         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
8773         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
8774         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
8775         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
8776         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
8777         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
8778         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
8779         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
8780         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
8781         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
8782         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
8783         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
8784         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
8785         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
8786         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
8787         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
8788         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
8789         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
8790         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
8791         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
8792         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
8793         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
8794         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
8795         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
8796         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
8797         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
8798         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
8799         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
8800         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
8801         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
8802         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
8803         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
8804         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
8805         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
8806         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
8807         s-osinte-vms.ads, s-osinte-vxworks.adb,
8808         s-osinte-vxworks.ads, s-osprim-mingw.adb,
8809         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
8810         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
8811         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
8812         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
8813         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
8814         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
8815         s-stchop-vxworks.adb, s-taprop-dummy.adb,
8816         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
8817         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8818         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
8819         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8820         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
8821         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
8822         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
8823         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
8824         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
8825         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
8826         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
8827         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
8828         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
8829         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
8830         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
8831         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
8832         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
8833         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
8834         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
8835         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
8836         system-irix-o32.ads, system-linux-x86_64.ads,
8837         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
8838         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
8839         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
8840         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
8841         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
8842         system-vxworks-mips.ads, system-vxworks-ppc.ads,
8843         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
8844         above.
8846 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
8848         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
8850 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
8852         Merge from tree-ssa-20020619-branch.
8854         * config-lang.in (boot_language, build_by_default): Set
8855         to no.
8856         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
8857         (max_size): Add static chain op for call_expr.
8859 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
8861         PR target/15331
8862         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
8864 2004-05-11  Roger Sayle  <roger@eyesopen.com>
8866         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
8867         COND_EXPR.
8869 2004-05-10  Doug Rupp  <rupp@gnat.com>
8871         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
8872         system.aux_dec.
8874         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
8876         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
8878         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
8879         Fixes undefined symbols in IA64 gnatlib.
8881         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
8883         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
8884         Short_Address). This will be moved to system.auxdec.
8886 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
8888         * sem_util.adb: Replace test for presence of a node that is always
8889         present with a call to Discard_Node.
8891         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
8892         Analyze on the library unit node after generation of distribution stub
8893         constructs.  The call was a no-op because Unit_Node has already been
8894         Analyzed, and the tree fragments for the distribution stubs are
8895         analyzed as they are inserted in Exp_Dist.
8896         Update comment regarding to distribution stubs to reflect that we
8897         do not generate stub in separate files anymore.
8899         * einfo.ads: Clarify the fact that a tagged private type has the
8900         E_Record_Type_With_Private Ekind.
8902         * erroutc.adb: Minor reformatting
8904         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
8905         values if line length is increased using -gnatyM (noticed during code
8906         reading).
8908         * eval_fat.adb: Minor reformatting
8909         Put spaces around exponentiation operator
8911 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
8913         PR ada/15005
8914         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
8915         has been rewritten as an explicit dereference, retrieve type of
8916         original node to check for possibly unconstrained record type.
8918 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
8920         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
8921         overriding, use the operation of the parent unconditionally.
8923         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
8924         operation when either operand is a literal, to avoid further
8925         ambiguities.
8927         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
8928         overridden by a previous explicit declaration, mark the previous entity
8929         as overriding.
8931         * sem_disp.adb (Check_Dispatching_Operation): New predicate
8932         Is_Visibly_Controlled, to determine whether a declaration of a
8933         primitive control operation for a derived type overrides an inherited
8934         one. Add warning if the explicit declaration does not override.
8936 2004-05-10  Vincent Celier  <celier@gnat.com>
8938         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
8939         some cases when the sources are no longer present.
8941         * make.adb (Collect_Arguments): Fail if an external source, not part
8942         of any project need to be compiled, when switch -x has not been
8943         specified.
8945         * makeusg.adb: Document new switch -x
8947         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
8948         defaulted to False.
8950         * switch-m.adb (Scan_Make_Switches): New switch -x
8952         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
8953         gnatmake switch -x.
8955         * gnat_ugn.texi: Document new gnatmake switch -x
8957 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
8959         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
8961         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
8962         (process_attributes): Likewise.
8964 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
8966         * s-inmaop.ads: Fix spelling mistake in one of the comments.
8968 2004-05-10  Robert Dewar  <dewar@gnat.com>
8970         * gnat_ugn.texi: Document that for config pragma files, the maximum
8971         line length is always 32767.
8973         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
8974         literals is now allowed.
8976         * gnat-style.texi: Remove statement about splitting long lines before
8977         an operator rather than after, since we do not follow this rule at all.
8978         Clarify rule (really lack of rule) for spaces around exponentiation
8980         * sem_elim.adb: Allow concatenation of string literals as well as a
8981         single string literal for pragma arguments.
8983         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
8985         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
8986         written for append case.
8988         * frontend.adb: Changes to avoid checking max line length in config
8989         pragma files.
8991         * g-os_lib.ads: Minor reformatting
8993         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
8994         wrong in any case. Instead use standard value. Noticed during code
8995         reading.
8997         * opt.ads (Max_Line_Length): New field, used to implement removal of
8998         limitation on length of lines when scanning config pragma files.
9000         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
9001         makeutl.ads, makeutl.adb: Minor reformatting
9003         * scn.adb: Do not check line length while scanning config pragma files
9004         Do not check line length while scanning out license information
9006         * scng.adb: Changes to avoid line length checks while parsing config
9007         pragma files.
9009 2004-05-10  GNAT Script  <nobody@gnat.com>
9011         * Make-lang.in: Makefile automatically updated
9013 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
9015         * osint.adb (Find_Program_Name): Fix handling of VMS version
9016         number.
9018 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
9020         * g-os_lib.ads (Invalid_Time): New constant
9022         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
9023         return OS_Time instead of time_t to match what is imported by Ada.
9024         Now return -1 if the file doesn't exist, instead of a random value
9026 2004-05-05  Robert Dewar  <dewar@gnat.com>
9028         * usage.adb: Add line for -gnatR?s switch
9030         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
9032         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
9033         and for Match (Data_First, Data_last)
9035         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
9036         written when we are dealing with multi-unit files.
9038 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
9040         * Makefile.in: Remove unused targets and variables.
9042 2004-05-05  Vincent Celier  <celier@gnat.com>
9044         * switch-m.adb: New gnatmake switch -eI
9046         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
9047         of new gnatmake switch -eInnn.
9049         * makegpr.adb: Take into account new parameters Index and Src_Index in
9050         Prj.Util.
9052         * clean.adb: Implement support for multi-unit sources, including new
9053         switch -i.
9055         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
9056         Src_Index.
9058         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
9059         (Extract_From_Q): New out parameter Index
9060         (Mark, Is_Marked): Subprograms moved to Makeutl
9061         (Switches_Of): New parameter Source_Index
9062         (Add_Switch): New parameter Index
9063         (Check): New parameter Source_Index
9064         (Collect_Arguments): New parameter Source_Index
9065         (Collect_Arguments_And_Compile): New parameter Source_Index
9066         (Compile): New parameter Source_Index
9067         Put subprograms in alphabetical order
9068         Add support for multi-source sources, including in project files.
9070         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
9071         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
9072         Make.
9074         * makeusg.adb: New gnatmake switch -eInnn
9076         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
9077         Prj.Util.Value_Of.
9079         * opt.ads (Main_Index): New variable, defaulted to 0.
9081         * osint.ads, osinte.adb (Add_File): New parameter Index
9082         (Current_Source_Index): New function
9084         * prj.adb: Take into account new components Index and Src_Index
9086         * prj.ads (String_Element): New component Index
9087         (Variable_Value): New component Index
9088         (Array_Element): New component Src_Index
9090         * prj-attr.adb: Indicate that optional index may be specified for
9091         attributes Main, Executable, Spec, Body and some of Switches.
9093         * prj-attr.ads (Attribute_Kind): New values for optional indexes
9094         (Attribute_Record): New component Optional_Index
9096         * prj-com.ads (File_Name_Data): New component Index
9098         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
9100         * prj-env.adb (Put): Output optional index
9102         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
9103         attributes Spec and Body.
9105         * prj-nmsc.adb: Process optional indexes
9107         * prj-pp.adb: Ouput "at" for optional indexes
9109         * prj-proc.adb: Take into account optional indexes
9111         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
9112         Optional_Index. For string literal,
9113         process optional index when Optional_Index is True.
9114         (Parse_Expresion): New Boolean parameter Optional_Index
9116         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
9117         (Set_Source_Index_Of): New procedure
9119         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
9120         index.
9122         * prj-util.ads (Executable_Of): New parameter Index
9123         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
9124         New parameter Src_Index, defaulted to 0.
9126 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
9128         PR ada/15257
9129         * sem_ch3.adb (Access_Definition): If this is an access parameter
9130         whose designated type is imported through a limited_with clause, do
9131         not add the enclosing subprogram to the list of private dependents of
9132         the type.
9134 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
9136         PR ada/15258
9137         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
9138         a limited_with clause, and the other is its non-limited view.
9140 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
9142         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
9144         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
9145         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
9146         Stand.Boolean_Literals to produce references to entities
9147         Standard_False and Standard_True from compile-time computed boolean
9148         values.
9150         * stand.ads (Boolean_Literals): New variable, provides the entity
9151         values for False and True, for use by the expander.
9153 2004-05-05  Doug Rupp  <rupp@gnat.com>
9155         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
9156         5vinmaop.adb: Unchecked convert Short_Address vice Address
9158         * adaint.c, raise.c: Caste CRTL function return value
9159         to avoid gcc error on 32/64 bit IVMS.
9161         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
9162         target = IA64/VMS.
9164         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
9166         * 5qsystem.ads (Address): Declare as Long_Integer
9167         (Short_Address): Declare as 32 bit subtype of Address
9168         Declare  abstract address operations to avoid gratuitous ambiguities.
9170 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
9172         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
9173         instead of the old Boolean_Entry_Barriers.
9174         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
9176 2004-05-05  GNAT Script  <nobody@gnat.com>
9178         * Make-lang.in: Makefile automatically updated
9180 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
9182         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
9184 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
9186         PR ada/15152
9188         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
9189         alone. Replacing object references by literals is inappropriate in a
9190         so low level context.
9192 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
9194         * a-exexpr.adb: Add comments
9196 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
9198         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
9199         declare the Ancestor_Tags array in Type_Specific_Data with a small size
9200         without risking a bounds check error when accessing one of its
9201         components.
9202         (Type_Specific_Data): Define Ancestor_Tags as a small array.
9203         This prevents us from hitting a limitation during the debug info
9204         generation when using stabs.
9206         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
9207         small array.
9208         This prevents us from hitting a limitation during the debug info
9209         generation when using stabs.
9211 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
9213         lang-specs.h: Remove -gnatz* from specs.
9215 2004-05-03  Vincent Celier  <celier@gnat.com>
9217         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
9219         * Make-lang.in, Makefile.in: Add gprmake
9221 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
9223         * sem_aggr.adb: Fix typo in comment.
9225 2004-05-03  Robert Dewar  <dewar@gnat.com>
9227         * make.adb: Minor reformatting
9229         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
9231         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
9232         so that it works when address is not a private type.
9234         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
9235         properly with rewritten unchecked conversions. This prevents
9236         order-of-elaboration issues that can otherwise arise.
9237         (Minimum_Size): Don't check size of access types under VMS
9239         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
9240         interpretations of integer literals as type System.Address.
9242         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
9243         (Is_Descendent_Of): New function
9245 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
9247         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
9248         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
9249         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
9251         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
9252         of the old Max_Entry_Queue_Depth.
9254         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
9255         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
9256         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
9258         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
9259         New entry for proper handling of Max_Entry_Queue_Depth.
9260         New entry for proper handling of No_Dynamic_Interrupts.
9262         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
9263         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
9264         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
9265         the GNAT specific restriction Max_Entry_Queue_Depth.
9266         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
9267         the GNAT specific restriction No_Dynamic_Interrupts.
9269         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
9270         instead of the old Boolean_Entry_Barriers.
9271         Use the new restriction No_Dynamic_Attachment instead of the old
9272         No_Dynamic_Interrupts.
9274         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
9275         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
9277         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
9278         of the old Max_Entry_Queue_Depth.
9280 2004-05-03  GNAT Script  <nobody@gnat.com>
9282         * Make-lang.in: Makefile automatically updated
9284 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
9286         * checks.adb (Enable_Range_Check): If the prefix of an index component
9287         is an access to an unconstrained array, perform check unconditionally.
9289 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9291         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
9292         Component_Clause.
9294 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
9296         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
9297         alternate stack setting. There was no support for the tasking cases
9298         and the changes eventually caused a number of side-effect failures in
9299         the non-tasking case too.
9301 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
9303         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
9304         -gnats is passed.
9306 2004-04-29  Vincent Celier  <celier@gnat.com>
9308         * make.adb (Gnatmake): Increase max size of argument array for
9309         gnatbind for the potential addition of -F.
9310         If there are Stand-Alone Library projects, invoke gnatbind with -F to
9311         be sure that elaboration flags will be checked.
9313         * switch-c.adb: Correct call to Scan_Pos for -gnateI
9315 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
9317         * sem_warn.adb (Check_References): Move '<access-variable> may be
9318         null' warning out of under Warn_On_No_Value_Assigned.
9320 2004-04-29  Ed Falis  <falis@gnat.com>
9322         * gnat_ugn.texi: Fixed texi error
9324 2004-04-29  Robert Dewar  <dewar@gnat.com>
9326         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
9327         abstract operations if they come from predefined files.
9329         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
9330         Dynamic, not RM).
9332         * s-addope.adb: Correct obvious error in mod function
9334 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
9336         * Makefile.in: Add target pairs for powerpc darwin*
9337         tasking support.
9339         * a-intnam-darwin.ads, s-osinte-darwin.adb,
9340         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
9342 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
9344         * Makefile.in: Add target macro definitions for s390*-linux*.
9345         * system-linux-s390.ads: New file.
9346         * system-linux-s390x.ads: New file.
9348 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
9350         * gnat_ugn.texi: Correct argument to @setfilename.
9352 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
9354         * a-exexpr.adb (Unwind_Word): New data type.
9355         (Unwind_Exception): Use it as type of Private1 and Private2.
9357         * raise.c (db_action_for): Fix debug printf.
9359 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
9361         * a-wtmoio.ads: Formal type must be a modular type, not a signed
9362         integer type.
9364 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9366         * decl.c (gnat_to_gnu_entity, case object): Call
9367         __builtin_update_setjmp_buf.
9369         * gigi.h (update_setjmp_buf): Deleted.
9370         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
9372         * misc.c: (update_setjmp_buf): Deleted.
9374         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
9375         around block of RTL.
9377         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
9379 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
9381         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
9382         subprogram for which no pragma All_Calls_Remote applies, store the
9383         address of the real subprogram in the underlying record type, so local
9384         dereferences do not go through the PCS.
9386 2004-04-26  Robert Dewar  <dewar@gnat.com>
9388         * i-c.ads: Add some type qualifications to avoid ambiguities when
9389         compiling with s-auxdec.ads and a non-private address type.
9391 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
9393         * Makefile.rtl: Fix error in previous check-in:
9394         Add s-addope.o to non tasking object list (rather than tasking object
9395         list).
9397 2004-04-26  Javier Miranda  <miranda@gnat.com>
9399         * sem_aggr.adb: Fix typo in comments
9400         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
9401         Required to check the null-exclusion attribute.
9403         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
9404         case of anonymous access types in record and array components. For a
9405         component definition the level is the same of the enclosing composite
9406         type.
9408         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
9409         that are anonymous access types the level of accessibility depends on
9410         the enclosing type declaration. In order to have this information, set
9411         the scope of the anonymous access type to the enclosing record type
9412         declaration.
9413         (Array_Type_Declaration): In case of components that are anonymous
9414         access types the level of accessibility depends on the enclosing type
9415         declaration. In order to have this information, set the scope of the
9416         anonymous access type to the enclosing array type declaration.
9418         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
9419         access type.
9421         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
9422         renaming of anonymous access-to-constant types allowed if and only if
9423         the renamed object is access-to-constant.
9425         * sem_util.adb (Type_Access_Level): In case of anonymous access types
9426         that are component_definition or discriminants of a nonlimited type,
9427         the level is the same as that of the enclosing component type.
9429 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
9431         * sem_elim.adb: Some minor code reorganization from code reading. Fix
9432         misprint in the function name (File_Name_Match).
9434 2004-04-23  Laurent GUERBY <laurent@guerby.net>
9436         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
9437         install.
9439 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9441         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
9443 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
9445         * adaint.c (__gnat_try_lock): No longer requires that the parent
9446         directory be writable, the directory itself is enough.
9447         (gnat_is_absolute_path): Change profile, so that the call from
9448         GNAT.OS_Lib can be made more efficient.
9450         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
9451         from GNAT.OS_Lib can be made more efficient.
9453         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
9454         one copy of the file name. Found by code reading.
9456 2004-04-23  Vincent Celier  <celier@gnat.com>
9458         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
9459         Correct documentation on gnatmake switches transmitted to the compiler
9461         * ali.ads: Minor comment fix
9463 2004-04-23  Javier Miranda  <miranda@gnat.com>
9465         * sem_ch6.adb: (Confirming Types): Code cleanup
9467         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
9468         subprogram types: E_Anonymous_Access_Subprogram_Type and
9469         E_Anonymous_Access_Protected_Subprogram_Type.
9471 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
9473         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
9474         whether a pragma All_Calls_Remote applies to the subprogram on which
9475         'Access is taken.
9476         No functional change is introduced by this revision; the new parameter
9477         will be used to allow calls to local RCI subprograms to be optimized
9478         to not use the PCS in the case where no pragma All_Calls_Remote applies,
9479         as is already done in the PolyORB implementation of the DSA.
9481         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
9482         whether a pragma All_Calls_Remote applies to the subprogram on which
9483         'Access is taken.
9484         No functional change is introduced by this revision; the new parameter
9485         will be used to allow calls to local RCI subprograms to be optimized
9486         to not use the PCS in the case where no pragma All_Calls_Remote applies,
9487         as is already done in the PolyORB implementation of the DSA.
9489 2004-04-23  Robert Dewar  <dewar@gnat.com>
9491         * Makefile.rtl: Add entry for s-addope.o in run time library list
9492         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
9493         * s-addope.ads, s-addope.adb: New files.
9495         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
9496         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9497         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
9498         System.Address to be non-private and signed.
9500         * sem_elim.adb: Minor reformatting (fairly extensive)
9501         Some minor code reorganization from code reading
9502         Add a couple of ??? comments
9504 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9506         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
9507         (tree_transform, case N_If_Statement): Remove non-determinism.
9509         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
9511 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
9513         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
9514         Eliminate' section.
9516         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
9517         no longer used as a parameter name for Eliminate pragma).
9519 2004-04-22  Laurent GUERBY <laurent@guerby.net>
9521         PR optimization/14984
9522         PR optimization/14985
9523         * trans.c (gigi): Fix non determinism leading to bootstrap
9524         comparison failures.
9526 2004-04-21  Pascal Obry  <obry@gnat.com>
9528         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
9529         passed to spawnvp() to properly handle program pathname with spaces on
9530         Win32.
9532 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
9534         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
9535         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
9536         unlocked in case of exceptions.
9538 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
9540         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
9541         This function does not exist anymore.
9543 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
9545         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
9547         * link.c: Move variables to the __gnat name space.
9549         * Makefile.in: list link.o explicitly when needed.
9551         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
9553 2004-04-21  Javier Miranda  <miranda@gnat.com>
9555         * einfo.adb (Original_Access_Type): New subprogram
9556         (Set_Original_Access_Type): New subprogram
9557         (Write_Field21_Name): Write the name of the new field
9559         * einfo.ads (Original_Access_Type): New field present in access to
9560         subprogram types.
9561         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
9562         E_Anonymous_Access_Protected_Subprogram_Type.
9564         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
9565         subprogram types.
9567         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
9568         to anonymous access to subprogram types.
9570         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
9571         to subprogram types.
9573         * sem_ch3.adb (Access_Definition): Complete decoration of entities
9574         corresponding to anonymous access to subprogram types.
9575         (Analyze_Component_Declaration): Add new actual to the call to
9576         subprogram replace_anonymous_access_to_protected_subprogram.
9577         (Array_Type_Declaration): Add new actual to the call to subprogram
9578         replace_anonymous_access_to_protected_subprogram.
9579         (Process_Discriminants): Add new actual to the call to subprogram
9580         replace_anonymous_access_to_protected_subprogram.
9581         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
9583         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
9584         formal.
9586         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
9587         access to subprogram types.
9589         * sem_util.adb (Has_Declarations): Addition of package_specification
9590         nodes.
9592 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
9594         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
9595         inlined flags to renamed entity only if in current unit.
9597 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
9599         * s-parint.ads: Add DSA implementation marker.
9601         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
9602         value of System.Partition_Interface.DSA_Implementation to determine
9603         what version of the distributed systems annex is available (no
9604         implementation, GLADE, or PolyORB).
9606 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
9608         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
9610 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9612         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
9613         with new type if alias sets differ.
9614         Fixes ACATS c41103b.
9616 2004-04-21  Vincent Celier  <celier@gnat.com>
9618         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
9619         Add array Lang_Args for the language specific compiling argument
9620         switches.
9622         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
9624 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
9626         * gnat_rm.texi: Update the descripton of the Eliminate pragma
9627         according to the recent changes in the format of the parameters of the
9628         pragma (replacing Homonym_Number with Source_Location).
9630 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
9632         * 5isystem.ads: Removed, unused.
9634         * gnat_rm.texi: Redo 1.13 change.
9636 2004-04-19  Robert Dewar  <dewar@gnat.com>
9638         * s-stoele.ads: Clean up definition of Storage_Offset (the new
9639         definition is cleaner, avoids the kludge of explicit Standard operator
9640         references, and also is consistent with a visible System.Address with
9641         no visible operations.
9643         * s-geveop.adb: Add declarations to avoid assumption of visible
9644         operations on type System.Address (since these might not be available
9645         if Address is a non-private type for which the operations
9646         are made abstract).
9648         * sem_eval.adb: Minor reformatting
9650         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
9651         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
9652         reformatting (new function spec format).
9654         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9655         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
9656         s-caun64.adb: Add declarations to avoid assumption of visible
9657         operations on type System.Address (since these might not be available
9658         if Address is a non-private type for which the operations are made
9659         abstract).
9661         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
9663         * exp_intr.adb: Minor comment update
9665         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
9667         * 5omastop.adb: Add declarations to avoid assumption of visible
9668         operations on type System.Address (since these might not be available
9669         if Address is a non-private type for which the operations
9670         are made abstract).
9672 2004-04-19  Vincent Celier  <celier@gnat.com>
9674         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
9676         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
9677         defaulted to Ada.
9679         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
9680         defaulted to Ada.
9681         Call Check with Process_Languages.
9682         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
9683         with Process_Languages.
9684         (Recursive_Check): New Boolean parameter Process_Languages. Call
9685         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
9686         Process_Languages.
9688         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
9690         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
9691         parameter Ada_Main, defaulted to True.
9692         Check for Ada specific characteristics only when Ada_Main is True.
9694         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
9696         * prj.adb: (Project_Empty): Add new Project_Data components.
9698         * prj.ads: New types and tables for non Ada languages.
9699         (Project_Data): New components Languages, Impl_Suffixes,
9700         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
9701         Include_Path, Include_Data_Set.
9703         * prj-env.ads, prj-env.adb: Minor reformatting
9705         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
9706         Put subprograms in alphabetical order
9708         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
9709         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
9710         Opt.Follow_Links.
9712         * mlib-prj.adb: Back out modification in last version, as they are
9713         incorrect.
9714         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
9716         * make.adb: (Mains): Moved to package Makeutl
9717         (Linker_Opts): Moved to package Makeutl
9718         (Is_External_Assignment): Moved to package Makeutl
9719         (Test_If_Relative_Path): Moved to package Makeutl
9720         (Gnatmake): Move sorting of linker options to function
9721         Makeutl.Linker_Options_Switches.
9723         * makeutl.ads, makeutl.adb: New files.
9725         * Makefile.in: Add makeutl.o to the object files for gnatmake
9727         * makeusg.adb: Add line for new switch -eL.
9729         * gnatls.adb (Image): New function.
9730         (Output_Unit): If in verbose mode, output the list of restrictions
9731         specified by pragmas Restrictions.
9733         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
9734         Text_IO.
9736         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
9737         needed, to put it in the range 1970 (included) - 2026 (excluded).
9738         (Time_Of): Do not shift Unix_Min_Year (1970).
9739         Shift the date by multiple of 56 years, if needed, to put it in the
9740         range 1970 (included) - 2026 (excluded).
9742         * adaint.h, adaint.c (__gnat_set_executable): New function.
9744 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9746         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
9747         and pop GC context.
9748         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
9749         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
9750         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
9751         (tree_transform, case N_Code_Statement): Likewise.
9752         (gnat_expand_stmt, case LABEL_STMT): Don't look at
9753         LABEL_STMT_FIRST_IN_EH.
9754         (gnat_expand_stmt, case ASM_STMT): New case.
9756         * utils2.c (build_unary_op): Properly set TREE_READONLY of
9757         UNCONSTRAINED_ARRAY_REF.
9759         * utils.c (poplevel): Temporarily push/pop GC context around inline
9760         function expansion.
9762         * decl.c (maybe_variable): Properly set TREE_READONLY of
9763         UNCONSTRAINED_ARRAY_REF.
9764         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
9766         * ada-tree.def: (ASM_STMT): New.
9768         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
9769         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
9770         ASM_STMT_INPUT): New.
9771         (ASM_STMT_CLOBBER): Likewise.
9773 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
9775         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
9776         general rcheck mechanism to raise Program_Error for E.4(18), instead
9777         of a custom raiser in System.Partition_Interface.
9778         Part of general cleanup work before PolyORB integration.
9780         * snames.ads, snames.adb: Add new runtime library entities and names
9781         for PolyORB DSA.
9783         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
9784         exp_dist.
9785         (Build_Subprogram_Id): New subprogram provided by exp_dist
9786         Code reorganisation in preparation for PolyORB integration.
9788         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
9789         exp_dist.
9790         (Build_Subprogram_Id): New subprogram provided by exp_dist
9792         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
9793         actual parameter types for call to dereference of an
9794         access-to-subprogram type.
9796         * rtsfind.ads: Add new runtime library entities and names for PolyORB
9797         DSA.
9799         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
9800         instead, which has the same behaviour here since we never pass it a
9801         NULL pointer.
9803         * link.c (run_path_option, Solaris case): Use -Wl, as for other
9804         platforms.
9806         * Makefile.in: adjust object file lists for gnatlink and gnatmake
9807         to account for new dependency upon Interfaces.C.Strings + link.o
9808         For x86 FreeBSD, use 86numaux.
9810         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
9811         from Mlib.Tgt to Mlib.
9813         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
9814         target-independent.
9816         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
9817         target-specific versions of this subprogram, now implemented as a
9818         target-independent function in Mlib.
9820         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
9821         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
9822         (Linker_Library_Path_Option): Remove target-specific versions of this
9823         subprogram, now implemented as a target-independent function in Mlib.
9825         * atree.adb: (Allocate_Initialize_Node): New subprogram.
9826         Factors out node table slots allocation.
9827         (Fix_Parents): New subprogram.
9828         Encapsulate the pattern of fixing up parent pointers for syntactic
9829         children of a rewritten node.
9830         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
9831         (Rewrite): Use New_Copy when creating saved copy of original node.
9832         (Replace): Use Copy_Node to copy nodes.
9834 2004-04-19  Javier Miranda  <miranda@gnat.com>
9836         * sprint.adb (Sprint_Node_Actual): Give support to the new
9837         Access_To_Subprogram node available in Access_Definition nodes. In
9838         addition, give support to the AI-231 node fields: null-exclusion,
9839         all-present, constant-present.
9841         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
9843         * sinfo.ads, sinfo.adb:
9844         New field Access_To_Subprogram_Definition in Access_Definition nodes
9846         * sem_ch6.adb (Process_Formals): Move here the code that creates and
9847         decorates internal subtype declaration corresponding to the
9848         null-excluding formal. This code was previously in Set_Actual_Subtypes.
9849         In addition, carry out some code cleanup on this code. In case of
9850         access to protected subprogram call
9851         Replace_Anonymous_Access_To_Protected_Subprogram.
9852         (Set_Actual_Subtypes): Code cleanup.
9854         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
9855         Find_Type in case of anonymous access renamings. Add warning in case of
9856         null-excluding attribute used in anonymous access renaming.
9858         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
9859         subprogram
9861         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
9862         subprogram.
9863         (Access_Definition): In case of anonymous access to subprograms call
9864         the corresponding semantic routine to decorate the node.
9865         (Access_Subprogram_Declaration): Addition of some comments indicating
9866         some code that probably should be added here. Detected by comparison
9867         with the access_definition subprogram.
9868         (Analyze_Component_Declaration): In case of access to protected
9869         subprogram call Replace_Anonymous_Access_To_Protected.
9870         (Array_Type_Declaration): In case of access to protected subprogram call
9871         Replace_Anonymous_Access_To_Protected_Subprogram.
9872         (Process_Discriminants): In case of access to protected subprogram call
9873         Replace_Anonymous_Access_To_Protected_Subprogram.
9875         * par.adb (P_Access_Definition): New formal that indicates if the
9876         null-exclusion part was present.
9877         (P_Access_Type_Definition): New formal that indicates if the caller has
9878         already parsed the null-excluding part.
9880         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
9881         (P_Identifier_Declarations): Code cleanup and give support to renamings
9882         of anonymous access to subprogram types.
9883         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
9884         (P_Array_Type_Definition): Give support to AI-254.
9885         (P_Component_Items): Give support to AI-254.
9886         (P_Access_Definition): New formal that indicates if the header was
9887         already parsed by the caller.
9888         (P_Access_Type_Definition): New formal that indicates if the caller has
9889         already parsed the null-excluding part.
9891         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
9892         call to P_Access_Definition.
9894 2004-04-19  Geert Bosch  <bosch@gnat.com>
9896         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
9897         the delicate semantics of floating-point to integer conversion.
9898         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
9900         * eval_fat.adb (Machine_Mantissa): Moved to spec.
9901         (Machine_Radix): New function.
9903         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
9904         conversion checks.
9905         (Machine_Radix): New function also for use in conversion checks.
9907 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
9909         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
9911         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
9912         to decorate the access-to-protected subprogram and the equivalent type.
9914         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
9915         to anonymous access to subprogram types.
9917         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
9918         constant-folding, for legality checks in contexts that require an RM
9919         static expression.
9921         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
9922         temporary but stack checking is not enabled, increment serial number
9923         to so that symbol generation is consistent with and without stack
9924         checking.
9926         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
9927         independent on whether stack checking is enabled, caller must check
9928         the corresponding flag.
9930         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
9931         range checks.
9932         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
9933         parent if it has discriminants.
9934         (Build_Derived_Private_Type): Constructed full view does
9935         not come from source.
9936         (Process_Discriminants): Default discriminants on a tagged type are
9937         legal if this is the internal completion of a private untagged
9938         derivation.
9940         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
9941         no constraint checks, because it corresponds to an existing object.
9943         * sem_prag.adb (Process_Convention): Pragma applies
9944         only to subprograms in the same declarative part, i.e. the same unit,
9945         not the same scope.
9947         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
9948         ignore type mismatch on a numeric conversion if expression comes from
9949         expansion.
9951 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
9953         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
9954         Homonym_Number parameter, add processing for Source_Location parameter
9955         corresponding.
9956         (Check_Eliminated): Remove the check for homonym numbers, add the check
9957         for source location traces.
9959         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
9960         with Arg_Source_Location corresponding to the changes in the format of
9961         the pragma.
9963         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
9964         Eliminate pragma corresponding to the changes in the format of the
9965         pragma: Homonym_Number is replaced with Source_Location, two ways of
9966         distinguishing homonyms are mutially-exclusive.
9968 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
9970         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
9972         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
9973         No_Dollar_In_Label, no longer necessary, as it is always True.
9974         (Strip_Suffixes): Likewise.
9976 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
9978         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
9979         modulus for compatibility with size clause on targets with 16-bit
9980         Integer.
9982         * layout.adb (Discrimify): In the case of private types, set Vtyp to
9983         full type to fix type mismatches on calls to size functions for
9984         discriminant-dependent array components.
9986 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
9988         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
9989         lib.
9991 2004-04-19  Pascal Obry  <obry@gnat.com>
9993         * mdll-utl.adb (Locate): New version is idempotent.
9995 2004-04-17  Laurent Guerby <laurent@guerby.net>
9997         PR ada/14988 (partial)
9998         * impunit.adb: Fix typo.
10000 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10002         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
10003         and install-rts-cert targets.  Remove all gnatlib and gnattools
10004         targets and all other rts-* targets (moved to libada).  Remove (now)
10005         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
10006         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
10008 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10010         * trans.c (tree_transform): Shortcut returning error_mark_node for
10011         statements in annotate_only_mode.
10012         (tree_transform, case N_Label, case N_Return_Statement,
10013         N_Goto_Statement): Make statement tree instead of generating code.
10014         (tree_transform, case N_Assignment_Statement): No longer check
10015         type_annotate_only.
10016         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
10017         RETURN_STMT): New.
10018         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
10019         New fcns.
10020         (gnat_to_gnu): Collect any RTL generated and deal with it.
10021         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
10022         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
10023         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
10025         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
10027         * ada-tree.def (EXPR_STMT): Fix typo in name.
10028         (BLOCK_STMT, IF_STMT): New nodes.
10030         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
10031         LABEL_STMT_FIRST_IN_EH): New macros.
10032         (RETURN_STMT_EXPR): Likewise.
10034         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
10035         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
10037 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
10039         * atree.ads: Correct documentation on extended nodes.
10041         * link.c: Set run_path_option for FreeBSD.
10043 2004-04-08  Vincent Celier  <celier@gnat.com>
10045         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
10046         one of the ALI file, do not link with DEC lib.
10048         * par.adb Remove the last two characters ("%s" or "%b") when checking
10049         if a language defined unit may be recompiled.
10051 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
10053         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
10054         removal of abstract operation leaves no possible interpretation for
10055         expression.
10057         * sem_eval.adb (Eval_Qualified_Expression): Use
10058         Set_Raises_Constraint_Error on node when needed, so that it does not
10059         get optimized away by subsequent optimizations.
10061         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
10062         operands even when they are not wrapped in a type conversion.
10064 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
10066         * sem_prag.adb (Set_Exported): Warn about making static as result of
10067         export only when the export is coming from source. This may be not
10068         be true e.g. on VMS where we expand export pragmas for exception codes
10069         together with imported or exported exceptions, and we don't want the
10070         user to be warned about something he didn't write.
10072 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
10074         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
10075         duplication between normal entities and those declared as renamings.
10076         No functional change.
10078         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
10079         inline functions returning an unconstrained result.
10081 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
10083         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
10084         conform to what other front-ends do.
10086 2004-04-08  Doug Rupp  <rupp@gnat.com>
10088         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
10089         libraries.
10091 2004-04-06  Pascal Obry  <obry@gnat.com>
10093         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
10095         * osint.adb (Program_Name): Do not look past a directory separator.
10097 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
10099         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
10101         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
10102         requirement for preserving a copy of the original assignment node.
10104         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
10106 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
10108         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
10109         when supported.
10111 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
10113         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
10114         operator calls in functional notation, and apply
10115         Universal_Interpretation to operands, not to their type.
10117 2004-04-06  Robert Dewar  <dewar@gnat.com>
10119         * 5wdirval.adb: Minor reformatting
10121 2004-04-06  Ed Falis  <falis@gnat.com>
10123         * gnat_rm.texi: Improve a reference to the GCC manual
10125 2004-04-05  Vincent Celier  <celier@gnat.com>
10127         * adaint.h, adaint.c: Add function __gnat_named_file_length
10129         * impunit.adb: Add Ada.Directories to the list
10131         * Makefile.in: Add VMS and Windows versions of
10132         Ada.Directories.Validity package body.
10134         * Makefile.rtl: Add a-direct and a-dirval
10136         * mlib-tgt.ads: Minor comment update.
10138         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
10139         a-direct.ads, a-direct.adb: New files.
10141 2004-04-05  Vincent Celier  <celier@gnat.com>
10143         PR ada/13620
10144         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
10145         just to the compiler.
10147 2004-04-05  Robert Dewar  <dewar@gnat.com>
10149         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
10150         returned string is 1.
10152         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
10154         * eval_fat.ads: Minor reformatting
10156         * g-curexc.ads: Document that lower bound of returned string values
10157         is always one.
10159         * gnatlink.adb: Add ??? comment for previous change
10160         (need to document why this is VMS specific)
10162         * s-stoele.ads: Minor reformatting
10164         * tbuild.ads: Minor reformatting throughout (new function specs)
10166         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
10167         after WITH.
10169         * scng.adb: Minor reformatting
10171 2004-04-05  Geert Bosch  <bosch@gnat.com>
10173         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
10174         (Leading_Part): Still perform truncation to machine number if the
10175         specified radix_digits is greater or equal to machine_mantissa.
10177 2004-04-05  Javier Miranda  <miranda@gnat.com>
10179         * par-ch3.adb: Complete documentation of previous change
10180         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
10181         (aliased must appear before constant).
10183         * par-ch4.adb: Complete documentation of previous change.
10185         * par-ch6.adb: Complete documentation of previous change.
10187         * sinfo.ads: Fix typo in commment.
10189 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
10191         * sem_ch3.adb (Inherit_Components): If derived type is private and has
10192         stored discriminants, use its discriminants to constrain parent type,
10193         as is done for non-private derived record types.
10195         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
10196         Ada 2005 AI-310: an abstract non-dispatching operation is not a
10197         candidate interpretation in an overloaded call.
10199         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
10200         expression is Null and target type is not an access type (e.g. a
10201         non-private address type).
10203 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
10205         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
10206         statement whose right-hand side is an inlined call, save a copy of the
10207         original assignment subtree to preserve enough consistency for
10208         Analyze_Assignment to proceed.
10210         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
10211         complete assignment subtree which is now unnecessary, as the expansion
10212         of inlined call has been improved to preserve a consistent assignment
10213         tree.  Note_Possible_Modification must be called only
10214         after checks have been applied, or else unnecessary checks will
10215         be generated.
10217         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
10218         of explicit dereferences that do not Come_From_Source:
10219          - be selective on cases where we must go back to the dereferenced
10220            pointer (an assignment to an implicit dereference must not be
10221            recorded as modifying the pointer);
10222          - do not rely on Original_Node being present (Analyze_Assignment
10223            calls Note_Possible_Modification on a copied tree).
10225         * sem_warn.adb (Check_References): When an unset reference to a pointer
10226         that is never assigned is encountered, prefer '<pointer> may be null'
10227         warning over '<pointer> is never assigned a value'.
10229 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
10231         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
10232         the ABI.
10234 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
10236         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
10237         libexc. We currently don't reference anything in this library and
10238         linking it in triggers linker warnings we don't want to see.
10240         * init.c: Update comments.
10242 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10244         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
10245         * utils.c (create_field_decl): Likewise.
10246         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
10248 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
10250         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
10251         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
10252         Add info directory entry and category.
10254 2004-04-02  Jan Hubicka  <jh@suse.cz>
10256         * utils.c: Include function.h
10257         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
10259 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
10261         PR ada/14150
10262         * Make-lang.in: Clean up generation of documentation
10264         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
10266         * xgnatug.adb: Removed, replaced by xgnatugn.adb
10268         * xgnatugn.adb: Replaces xgnatug.adb
10270         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
10272         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
10274         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10275         gnat_ug_wnt.texi: Removed.
10277 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
10279         * utils2.c: Update copyright notice.
10281 2004-04-01  Robert Dewar  <dewar@gnat.com>
10283         * checks.adb: Minor reformatting throughout
10284         Note that prev checkin added RM reference to alignment warning
10286 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
10288         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
10289         non-static when building aggregate for bit-packed array.
10291         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
10292         function call that is itself the actual in a procedure call, build
10293         temporary for it.
10295         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
10296         a string literal, create a temporary for it, constant folding only
10297         handles scalars here.
10299 2004-04-01  Vincent Celier  <celier@gnat.com>
10301         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
10302         Error_Msg_SP): New empty procedures to instantiate the Scanner.
10303         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
10304         tokens.
10305         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
10306         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
10307         and get the checksum.
10309         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
10310         already in the Q.
10311         Increase the Marking_Label at the end of the Multiple_Main_Loop,
10312         instead of at the beginning.
10314         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
10315         directly.
10316         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
10317         on VMS.
10319         * osint.ads (Multi_Unit_Index_Character): New Character global variable
10321         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
10322         not '~' directly.
10324         * par.adb: Remove test on file name to detect language defined units.
10325         Add test on unit name, after parsing, to detect language defined units
10326         that are not compiled with -gnatg (except System.RPC and its children)
10328         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
10329         following units without style checking.
10331         * switch-c.adb: Change -gnatC to -gnateI
10333         * usage.adb: Document new switch -gnateInnn
10335         * scng.adb (Accumulate_Token_Checksum): New procedure
10336         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
10337         word or literal number.
10338         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
10339         numbers.
10341 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
10343         * a-tasatt.adb,
10344         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
10345         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
10346         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
10347         5vtpopde.adb: Add missing 'constant' keywords.
10349 2004-04-01  Javier Miranda  <miranda@gnat.com>
10351         * par-ch4.adb: (P_Allocator): Code cleanup
10353         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
10354         attribute.
10356         * sinfo.ads: Complete documentation of previous change
10358 2004-04-01  Pascal Obry  <obry@gnat.com>
10360         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
10361         only on VMS.  This special handling was done because an old GNU/ld bug
10362         on Windows which has been fixed.
10364 2004-04-01  GNAT Script  <nobody@gnat.com>
10366         * Make-lang.in: Makefile automatically updated
10368 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10370         * decl.c (gnat_to_gnu_entity, make_type_from_size):
10371         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
10372         * trans.c (tree_transform, convert_with_check): Likewise.
10373         * utils.c (gnat_signed_or_unsigned_type): Likewise.
10374         (build_vms_descriptor, unchecked_convert): Likewise.
10375         * utils2.c (nonbinary_modular_operation): Likewise.
10377 2004-03-29  Javier Miranda  <miranda@gnat.com>
10379         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
10380         (Install_Null_Excluding_Check): Local subprogram that determines whether
10381         an access node requires a runtime access check and if so inserts the
10382         appropriate run-time check.
10383         (Apply_Access_Check): Call Install_Null_Excluding check if required
10384         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
10386         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
10388         * einfo.ads: Fix typo in comment
10390         * exp_ch3.adb (Build_Assignment): Generate conversion to the
10391         null-excluding type to force the corresponding run-time check.
10392         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
10393         type to force the corresponding run-time check.
10395         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
10396         the null-excluding type to force the corresponding run-time check.
10398         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
10399         case of access types unless they have the null-excluding attribute.
10401         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
10402         part.
10404         * exp_util.ads: Fix typo in comment
10406         * par.adb (P_Null_Exclusion): New subprogram
10407         (P_Subtype_Indication): New formal that indicates if the null-excluding
10408         part has been scanned-out and it was present
10410         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
10412         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
10413         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
10414         type to force the corresponding run-time check
10415         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
10416         components
10417         (Resolve_Array_Aggregate): Carry out some static checks
10418         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
10420         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
10421         attribute must be set only if specified by means of the null-excluding
10422         part. In addition, we must also propagate the access-constant attribute
10423         if present.
10424         (Access_Subprogram_Declaration, Access_Type_Declaration,
10425         Analyze_Component_Declaration, Analyze_Object_Declaration,
10426         Array_Type_Declaration, Process_Discriminants,
10427         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
10428         and carry out some static checks.
10429         (Build_Derived_Access_Type): Set the null-excluding attribute
10430         (Derived_Type_Declaration, Process_Subtype): Carry out some static
10431         checks.
10433         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
10435         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
10437         * sem_ch6.adb (Process_Formals): Carry out some static checks.
10438         (Set_Actual_Subtypes): Generate null-excluding subtype if the
10439         null-excluding part was present; it is not required to be done here in
10440         case of anonymous access types.
10441         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
10442         value.
10444         * sem_res.adb (Resolve_Actuals): Carry out some static check
10445         (Resolve_Null): Allow null in anonymous access
10447         * sinfo.adb: New subprogram Null_Exclusion_Present
10448         All_Present and Constant_Present available on access_definition nodes
10450         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
10451         object_declaration, derived_type_definition, component_definition,
10452         discriminant_specification, access_to_object_definition,
10453         access_function_definition, allocator, access_procedure_definition,
10454         access_definition, parameter_specification, All_Present and
10455         Constant_Present flags available on access_definition nodes.
10457 2004-03-29  Robert Dewar  <dewar@gnat.com>
10459         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
10460         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
10461         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
10462         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
10463         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
10464         sem_prag.adb: Updates to handle multiple units/file
10466         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
10468         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
10469         sem_util.adb: Minor reformatting
10471         * sem_ch12.adb: Add comment for previous change
10473 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
10475         * osint.adb (Executable_Prefix): Set Exec_Name to the current
10476         executable name when not initialized. Otherwise, use its current value.
10478         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
10479         initialize it to another executable name than the current one. This
10480         allows to configure paths for an executable name (gnatmake) different
10481         from the current one (gnatdist).
10483 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
10485         * exp_ch6.adb (Expand_Call): A call to a function declared in the
10486         current unit cannot be inlined if it appears in the body of a withed
10487         unit, to avoid order of elaboration problems in gigi.
10489         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
10490         information for protected (wrapper) operation as well, to simplify gdb
10491         use.
10493         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
10494         protected body, indicate that the entity for the generated spec comes
10495         from source, to ensure that references are properly generated for it.
10496         (Build_Body_To_Inline): Do not inline a function that returns a
10497         controlled type.
10499         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
10500         apply convention to homonyms that are declared explicitly.
10502         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
10503         that renames an equality operator and the operands are overloaded,
10504         resolve them with the declared formal types, before rewriting as an
10505         operator.
10507 2004-03-29  GNAT Script  <nobody@gnat.com>
10509         * Make-lang.in: Makefile automatically updated
10511 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
10513         * memtrack.adb: Log realloc calls, which are treated as free followed
10514         by alloc.
10516 2004-03-25  Vincent Celier  <celier@gnat.com>
10518         * prj-makr.adb (Process_Directories): Detect when a file contains
10519         several units. Do not include such files in the config pragmas or
10520         in the naming scheme.
10522         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
10523         Resolve links only when not in Trusted_Mode.
10524         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
10525         Do not resolve links for the display names.
10527         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
10528         resolve links when computing the display names.
10530 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
10532         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
10533         attribute reference does not denote a subtype, it can be any
10534         expression that has a classwide type, potentially after an implicit
10535         dereference.  In particular, the prefix can be a view conversion for
10536         a classwide type (for which Is_Object_Reference holds), but it can
10537         also be a value conversion for an access-to-classwide type. In the
10538         latter case, there is an implicit dereference, and the original node
10539         for the prefix does not verify Is_Object_Reference.
10541         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
10542         conversion of a discriminant-dependent component of a mutable object
10543         is one itself.
10545 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
10547         * freeze.adb (Freeze_Entity): When an inherited subprogram is
10548         inherited, has convention C, and has unconstrained array parameters,
10549         place the corresponding warning on the derived type declaration rather
10550         than the original subprogram.
10552         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
10553         indication on renaming declaration, if formal has a box and actual
10554         is absent.
10556         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
10557         determine whether to generate an implicit or explicit reference to
10558         the renamed entity.
10560         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
10561         subprogram renaming comes from a defaulted formal subprogram in an
10562         instance.
10564 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
10566         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
10567         value expressions to ensure that calls within a component definition
10568         will be checked (since those are evaluated during the record type's
10569         elaboration).
10571 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
10573         * s-tpobop.adb: Code clean up:
10574         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
10575         code.
10576         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
10578 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
10580         * Makefile.in: Clean up in the ravenscar run time.
10582 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10584         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
10585         of No_Strict_Aliasing to build_pointer_type_for_mode.
10586         * utils.c (update_pointer_to): Walk pointer and ref chains.
10588 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
10590         * ali.ads: Fix Comment about Dynamic_Elab.
10592         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
10593         Has_RACW, Is_Generic, etc.)
10594         (Output_Object, Gnatls): Take into account ALI files not attached to
10595         an object.
10597 2004-03-22  Vincent Celier  <celier@gnat.com>
10599         * gprep.adb: Change all String_Access to Name_Id
10600         (Is_ASCII_Letter): new function
10601         (Double_File_Name_Buffer): New procedure
10602         (Preprocess_Infile_Name): New procedure
10603         (Process_Files): New procedure
10604         (Gnatprep): Check if output and input are existing directories.
10605         Call Process_Files to do the real job.
10607 2004-03-22  Robert Dewar  <dewar@gnat.com>
10609         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
10610         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
10612 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
10614         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
10615         case when the source contains only comments.
10617 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
10619         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
10620         declaration for a child subprogram body that acts as a spec, indicate
10621         that the entity in the declaration needs debugging information.
10623         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
10624         full view if the subtype is created for a constrained record component;
10625         gigi has enough information to construct the record, and there is no
10626         place in the tree for the declaration.
10628         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
10629         serial number for the dummy body that is built for analysis, to avoid
10630         inconsistencies in the generation of internal names when compiling
10631         with -gnatN.
10633 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
10635         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
10636         object.
10638 2004-03-22  GNAT Script  <nobody@gnat.com>
10640         * Make-lang.in: Makefile automatically updated
10642 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10644         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
10645         * trans.c (tree_transform, emit_index_check): Likewise.
10646         * utils.c (build_template): Likewise.
10647         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
10648         (maybe_unconstrained_array, unchecked_convert): Likewise.
10649         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
10650         (build_unary_op): Likewise.
10651         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
10652         (fill_vms_descriptor): Likewise.
10653         (build_call_alloc_dealloc): Likewise.
10654         ALIGN is unsigned.
10655         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
10657 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
10659         PR other/14630
10660         * gnat_ug.texi: Add info directory category and entry.
10661         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10662         gnat_ug_wnt.texi: Regenerate.
10664 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
10666         * ada-tree.h: Update copyright notice.
10667         Minor reformatting.
10669 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
10671         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
10672         as regular exception objects and not as mere integers representing the
10673         condition code.  The latter approach required some dynamics to mask off
10674         severity bits, which did not fit well into the GCC table based model.
10675         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
10676         exception data objects. We don't it and it would conflict with the other
10677         external symbol we have to generate for such exceptions.
10679         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
10680         the special code for VMS exceptions, since these are now represented
10681         as regular exceptions objects.
10683 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10685         * decl.c (debug_no_type_hash): Remove.
10686         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
10687         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
10689 2004-03-19  Laurent Guerby <laurent@guerby.net>
10691         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
10692         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
10694 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10696         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
10697         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
10698         (TYPE_RM_SIZE_INT): Directly use type.values.
10699         (TREE_LOOP_ID): Clean up check.
10700         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
10701         TYPE_VALUES, not TYPE_FIELDS.
10702         * trans.c (convert_with_check): Delay access of bounds of basetype
10703         until sure is numeric.
10705 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
10707         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
10709         Code clean up:
10710         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
10711         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
10712         Specific.Set instead of direct call to e.g pthread_setspecific.
10714 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
10716         * adaint.c: Update comments.
10718         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
10719         GNATLIB_SHARED for FreeBSD.
10721 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
10723         * init.c [VxWorks]: Do not fix the stack size for the environment task.
10724         When needed (stack checking) the stack size is retrieved
10725         from the VxWorks kernel.
10727         * Makefile.in: Flag -nostdinc is required when building the run time
10728         for avoiding looking for files in the base compiler.
10729         Add the VxWorks specific version of the package body for
10730         System.Stack_checking.Operations (5zstchop.adb).
10732         * Make-lang.in: Add the object file for
10733         System.Stack_Checking.Operations.
10735         * Makefile.rtl: Add object file for the package
10736         System.Stack_Checking.Operations.
10738         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
10740         * s-stache.ads, s-stache.adb: Move the operations related to stack
10741         checking from this package to package System.Stack_Checking.Operations.
10742         This way, stack checking operations are only linked in the final
10743         executable when using the -fstack-check flag.
10745 2004-03-18  Doug Rupp  <rupp@gnat.com>
10747         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
10748         Reorganize ifeq's.
10750         * 5qsystem.ads, 5xcrtl.ads: New files.
10752 2004-03-18  Vincent Celier  <celier@gnat.com>
10754         * prj.adb (Reset): Reset hash table Files_Htable
10756         * prj-env.adb (Source_Paths, Object_Paths): New tables.
10757         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
10758         the procedures Add_To_Path_File.
10759         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
10760         making sure that each directory is present only once and, for object
10761         dirs, when a directory already present is added, the duplicate is
10762         removed and the directory is always put as the last in the table.
10763         Write the path files at the end of these accumulations.
10765         * prj-nmsc.adb (Record_Source): Add source file name in hash table
10766         Files_Htable for all sources.
10768         * prj-proc.adb (Process): Remove restrictions between not directly
10769         related extending projects.
10771 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
10773         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
10774         (Find_Sources): Minor speed optimization.
10776         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
10777         parameter Trusted_Mode.
10779 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
10781         * scn.adb (Determine_License): Take into account a degenerated case
10782         when the source contains only comments.
10784 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
10786         * sem_warn.adb (Check_References): For a warning on a selected
10787         component that does not come from source, locate an uninitialized
10788         component of the record type to produce a more precise error message.
10790 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
10792         * 3zsoccon.ads: Fix multicast options.
10794         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
10795         in the spec.
10797 2004-03-15  Robert Dewar  <dewar@gnat.com>
10799         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
10800         pragma used for a private type.
10802         * lib-xref.adb (Generate_Reference): Do not generate warning if
10803         reference is in a different unit from the pragma Unreferenced.
10805         * 5vtpopde.adb: Minor reformatting
10806         Fix casing of To_Task_ID
10808         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
10809         flag if we have an unchecked conversion to an access type in the same
10810         unit.
10812 2004-03-15  Geert Bosch  <bosch@gnat.com>
10814         * a-ngcoty.adb (Modulus): In alternate formula for large real or
10815         imaginary parts, use Double precision throughout.
10817         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
10818         we want to be able to compile run-time with -gnata for testing, but
10819         this may also be instantiated in user code that is compiled with -gnata.
10821 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
10823         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
10824         codes. Having a separate type for this is useful to enforce consistency
10825         throughout the various run-time units.
10826         (Exception_Data): Use Exception_Code for Import_Code.
10828         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
10829         Natural and Integer in various places.
10830         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
10831         with the severity bits masked off.
10832         (Register_VMS_Exception): Handle the additional exception data pointer
10833         argument.
10835         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
10836         component, now reflected by an exported accessor.
10837         (is_handled_by): New routine to compute whether the propagated
10838         occurrence matches some handler choice specification. Extracted out of
10839         get_action_description_for, and expanded to take care of the VMS
10840         specifities.
10841         (get_action_description_for): Use is_handled_by instead of an explicit
10842         complex condition to decide if the current choice at hand catches the
10843         propagated occurrence.
10845         * raise.h (Exception_Code): New type for C.
10847         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
10848         System.Standard_Library.Exception_Code, to allow references from the
10849         pragma import/export expander.
10851         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
10852         New accessors to allow easy access to GNAT exception data
10853         characteristics.
10854         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
10855         redundant Handled_By_Others component, helper for the personality
10856         routine which will now be able to call the appropriate exception data
10857         accessor instead.
10859         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
10860         component of Standard_Exception_Type to be the closest possible to
10861         Exception_Code in System.Standard_Library, that we cannot get at this
10862         point. Expand a ??? comment to notify that this type node should
10863         probably be rewritten later on.
10865         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
10866         registration call to include a pointer to the exception object in the
10867         arguments.
10869         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
10870         instead of int and explicit bitmasks.
10872 2004-03-15  Vincent Celier  <celier@gnat.com>
10874         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
10875         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
10877         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
10878         longer needed now that it is in the spec of
10879         System.Tasking.Task_Attributes.
10881         * adaint.h, adaint.c: (__gnat_create_output_file): New function
10883         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
10885         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
10887         * make.adb (Gnatmake): Do not check the executable suffix; it is being
10888         taken care of in Scan_Make_Arg.
10889         (Scan_Make_Arg): Add the executable suffix only if the argument
10890         following -o, in canonical case, does not end with the executable
10891         suffix.  When in verbose mode and executable file name does not end
10892         with executable suffix, output the executable name, in canonical case.
10894         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
10895         to avoid warnings when instantiating Ada.Task_Attributes.
10896         Minor reformating.
10898         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
10899         in the correct order.
10901         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
10902         redirect standard output and error to a file for the invocation of the
10903         compiler, then read the file.
10905         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
10906         directory, instead of the Value.
10907         (Find_Source_Dirs): Remove useless code & comments.
10909 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
10911         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
10912         tagged type is inherited, and the parent operation is not frozen yet,
10913         force generation of a freeze node for the inherited operation, so the
10914         corresponding dispatch entry is properly initialized.
10915         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
10916         when looking for user-defined equality operation.
10918         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
10919         boolean when locating primitive equality of tagged component.
10921         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
10922         bit-aligned field and the right-hand side a string literal, introduce
10923         a temporary before expanding assignment into a loop.
10925         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
10926         priority in full, to ensure that any expanded subepxressions of it are
10927         elaborated in the scope of the init_proc.
10929         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
10930         after object declaration, skipping over code that may have been
10931         generated for validity checks.
10933         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
10934         discriminants, ignore the known discriminants of its full view, if
10935         any, to check legality.
10937         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
10938         component if type has unknown discriminants.
10939         (Analyze_Private_Extension_Declaration): Discriminant constraint is
10940         null if type has unknown discriminants.
10942         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
10943         for end label when present.
10945         * s-fileio.adb (Open): When called with a C_Stream, use given name for
10946         temporary file, rather than an empty string.
10948 2004-03-15  Ed Falis  <falis@gnat.com>
10950         * s-thread.adb: Removed, no longer used.
10952 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10954         * decl.c (target.h): Now include.
10955         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
10956         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
10957         (validate_size): For POINTER_TYPE, get smallest size permitted on
10958         machine.
10960         * fe.h: Sort Einfo decls and add Set_Mechanism.
10962         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
10963         (ada/decl.o): Depends on target.h.
10965         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
10966         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
10968 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
10970         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
10972         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
10973         Insert_Dereference_Action when rewriting an implicit dereference into
10974         an explicit one, this will be taken care of during expansion of the
10975         explicit dereference.
10976         (Expand_N_Slice): Same. Always do the rewriting, even for the case
10977         of non-packed slices, since the dereference action generated by
10978         expansion of the explicit dereference is needed in any case.
10979         (Expand_N_Selected_Component): When rewriting an implicit dereference,
10980         analyze and resolve the rewritten explicit dereference so it is seen
10981         by the expander.
10982         (Insert_Dereference_Action): This procedure is now called only for the
10983         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
10984         dereferences that do not come from source (including explicit
10985         dereferences resulting from rewriting implicit ones), but do not
10986         recursively insert a check for the dereference nodes contained within
10987         the check.
10988         (Insert_Dereference_Action): Clarify and correct comment.
10990 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
10992         PR ada/14131
10993         Move language detection to the top level.
10994         * config-lang.in: Build by default.
10996 2004-03-05  Robert Dewar  <dewar@gnat.com>
10998         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
11000         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
11001         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
11002         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
11003         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
11004         unchecked conversion to spec to avoid warnings.
11006         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
11007         to Task_ID
11009         * 7stpopsp.adb: Correct casing in To_Task_ID call
11011         * a-strsea.ads, a-strsea.adb: Minor reformatting
11013         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
11015         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
11016         Adjust Max_Msg_Length to be clearly large enough.
11018         * fe.h: Define In_Same_Source_Unit
11020         * osint.adb: Add pragma Warnings Off to suppress warnings
11021         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
11022         aliasing warnings.
11024         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
11026         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
11028         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
11030         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
11032         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
11034         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
11035         node. We now do generate them for gcc back end.
11037         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
11038         warning.
11040         * sinput-c.adb: Fix bad name in header.
11041         Add pragma Warnings Off to suppress aliasing warning.
11043         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
11045         * snames.h, snames.ads, snames.adb: Add entry for pragma
11046         No_Strict_Aliasing.
11048 2004-03-05  Vincent Celier  <celier@gnat.com>
11050         * prj-com.ads: Add hash table Files_Htable to check when a file name
11051         is already a source of another project.
11053         * prj-nmsc.adb (Record_Source): Before recording a new source, check
11054         if its file name is not already a source of another project. Report an
11055         error if it is.
11057         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
11058         source file name, call gnatpp with all the sources of the main project.
11060         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
11061         of file names.
11063         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
11064         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
11065         /RUNTIME_SYSTEM=, converted to --RTS=
11066         /NOTABS, converted to -notabs
11068 2004-03-05  Pascal Obry  <obry@gnat.com>
11070         * make.adb: Minor reformatting.
11072 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
11074         Part of implemention of AI-262.
11075         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
11077         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
11078         procedure.
11080         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
11081         when component type is a partially constrained class-wide subtype.
11082         (Constrain_Discriminated_Type): If parent type has unknown
11083         discriminants, a constraint is illegal, even if full view has
11084         discriminants.
11085         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
11086         with unknown discriminants whose full view is a discriminated record.
11088         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
11089         flag, to handle properly derivations of tagged types with unknown
11090         discriminants.
11091         (Analyze_Package_Spec, Analyze_Package_Body): Install
11092         Private_With_Clauses before analyzing private part or body.
11094         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
11095         Has_Discriminants can be true for a given type (documentation).
11097 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
11099         * s-restri.ads: Fix license (GPL->GMGPL).
11101         * s-tassta.adb: Minor reformatting.
11103         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
11104         by calls to Exit_One_ATC_Level, since additional clean up is performed
11105         by this function.
11107         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
11108         by calls to Exit_One_ATC_Level, since additional clean up is performed
11109         by this function.
11111 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11113         * trans.c: Reflect GCC changes to fix bootstrap problem.
11114         Add warning for suspicious aliasing unchecked conversion.
11116 2004-03-05  GNAT Script  <nobody@gnat.com>
11118         * Make-lang.in: Makefile automatically updated
11120 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
11122         * ali.adb (Read_Instantiation_Instance): Do not modify the
11123         current_file_num when reading information about instantiations, since
11124         this corrupts files in later references.
11126 2004-03-02  Vincent Celier  <celier@gnat.com>
11128         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
11129         before checking if it is read-only.
11131         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
11132         of SRC_DIRS and eliminate duplicates.
11134         * gprcmd.adb: Replace command "path" with command "path_sep" to return
11135         the path separator.
11136         (Usage): Document path_sep
11138         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
11139         C++ compiler. No need for a script.
11140         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
11141         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
11142         subst.
11144         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
11145         where there are Ada sources.
11146         (Set_Ada_Paths): Only add to the include path the source dirs of project
11147         with Ada sources.
11148         (Add_To_Path): Add the Display_Values of the directories, not their
11149         Values.
11151         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
11152         data.
11154         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
11155         is not No_Name.
11156         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
11157         Value is canonicalized.
11158         (Language_Independent_Check): Do not copy Value to Display_Value when
11159         canonicalizing Value.
11161         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
11162         path to find limited with cycles.
11163         (Parse_Single_Project): Use canonical cased path to find the end of a
11164         with cycle.
11166 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
11168         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
11169         and not a child unit.
11171         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
11172         appear in a with_clause.
11174         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
11175         only happen in type_annotate mode, do not try to elaborate it.
11177         * exp_util.adb (Force_Evaluation): If expression is a selected
11178         component on the left of an assignment, use a renaming rather than a
11179         temporary to remove side effects.
11181         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
11182         inlined instance body, which is analyzed before the end of the
11183         enclosing scope.
11185 2004-03-02  Robert Dewar  <dewar@gnat.com>
11187         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
11188         sem_ch4.adb: Use new feature for substitution of keywords in VMS
11190         * errout.ads, errout.adb: Implement new circuit for substitution of
11191         keywords in VMS.
11193         * sem_case.adb (Analyze_Choices): Place message properly when case is
11194         a subtype reference rather than an explicit range.
11196         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
11198 2004-03-02  Doug Rupp  <rupp@gnat.com>
11200         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
11202 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
11204         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
11206 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11208         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
11209         BLKmode bitfield.
11211 2004-02-25  Robert Dewar  <dewar@gnat.com>
11213         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
11214         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
11215         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
11216         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
11217         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
11218         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
11219         the defining instance of the type to avoid aliasing problems.
11220         Fix copyright header.  Fix bad comments in package header.
11222         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
11224 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
11226         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
11227         rewritten as references when aliased through an address clause.
11229         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
11230         whether call can be interpreted as an indirect call to the result of a
11231         parameterless function call returning an access subprogram.
11233 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
11235         Code clean up:
11236         * exp_ch7.adb (Make_Clean): Remove generation of calls to
11237         Unlock[_Entries], since this is now done by Service_Entries directly.
11239         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
11241         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
11242         Requeue_Call for better code readability. Change spec and update calls:
11243         PO_Service_Entries now unlock the PO on exit.
11244         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
11245         PO_Service_Entries.
11247         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
11249         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
11251 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
11253         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
11254         protected subprogram call and analyzing the result of such expanding
11255         in case when the called protected subprogram is eliminated.
11257         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
11258         names.
11260 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
11262         * Makefile.in: Clean ups.
11264 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
11266         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
11267         protected operations if original subprogram is flagged as eliminated.
11268         (Expand_N_Subprogram_Body): For a protected operation, create
11269         discriminals for next operation before checking whether the operation
11270         is eliminated.
11272         * exp_ch9.adb (Expand_N_Protected_Body,
11273         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
11274         for internal protected operations if the original subprogram is
11275         eliminated.
11277         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
11278         declared in a single protected object.
11280 2004-02-23  Vincent Celier  <celier@gnat.com>
11282         * prj-attr.adb: Make attribute Builder'Executable an associative array,
11283         case insensitive if file names are case insensitive, instead of a
11284         standard associative array.
11286         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
11287         them as case insensitive on platforms where the file names are case
11288         sensitive.
11290         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
11291         project file has already been parsed that canonical path are compared.
11293 2004-02-23  Robert Dewar  <dewar@gnat.com>
11295         * sinput-c.ads: Correct bad unit title in header
11297         * freeze.adb: Minor reformatting
11299 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11301         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
11302         nonaddressable COMPONENT_REF that is removing padding that we are
11303         taking the address of, take the address of the padded record instead
11304         if item is variable size.
11306 2004-02-20  Robert Dewar  <dewar@gnat.com>
11308         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
11310 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
11312         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
11313         itype references for the constrained designated type of a component
11314         whose base type is already frozen.
11316 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
11318         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
11319         avoid GCC warnings.
11321 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
11323         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
11324         identifier for a phantom package that rewrites the formal package
11325         declaration with a box. The Add semantic decorations for the defining
11326         identifier from the original node (that represents the formal package).
11328 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
11330         * Make-lang.in (ada/stamp-sdefault): Use the top level
11331         move-if-change.
11333 2004-02-19  Richard Henderson  <rth@redhat.com>
11335         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
11337 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
11339         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
11340         Scan_ALI can be used for multiple ALI files without reinitializing
11341         between calls.
11343 2004-02-18  Robert Dewar  <dewar@gnat.com>
11345         * debug.adb: Minor reformatting.
11347 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11349         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
11350         to zero if there is an address clause.
11352 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
11354         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
11356 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
11358         * layout.adb (Layout_Component_List): Revise generation of call to
11359         discriminant-checking function to pass selections of all of the type's
11360         discriminants rather than just the variant-controlling discriminant.
11362 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
11364         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
11365         fail in the current setup and triggers spurious system error messages.
11366         Pretend it occurred and failed instead.
11368 2004-02-18  Vincent Celier  <celier@gnat.com>
11370         * bld.adb: Mark FLDFLAGS as saved
11371         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
11372         it is not the root project.  Put each directory to be
11373         extended between double quotes to prevent it to be expanded on Windows.
11374         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
11375         the project file. Set them back to their initial values if they have not
11376         been set in the project file.
11378         * gprcmd.adb: (Gprdebug, Debug): New global variables
11379         (Display_Command): New procedure
11380         (Usage): Document new command "linkopts"
11381         Call Display_Command when env var GPRDEBUG has the value "TRUE"
11382         Implement new command "linkopts"
11383         Remove quotes that may be around arguments for "extend"
11384         Always call Normalize_Pathname with arguments formatted for the platform
11386         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
11387         Change @echo to @$(display) in target clean to be able to clean silently
11389         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
11391         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
11392         canonical case.
11394         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
11395         = Extending_All when current project is an extending all project.
11397         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
11398         set to True only for LINK command, after Unix switch -o.
11399         (Process_Arguments): Set Output_File_Expected to True for LINK command
11400         after Unix switch -o. When Output_File_Expected is True, never add an
11401         extension to a file name.
11403         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
11404         option file name, only to the --for-linker= switch.
11405         (Option_File_Name): If option file name do not end with ".opt", append
11406         "/OPTIONS".
11408 2004-02-18  GNAT Script  <nobody@gnat.com>
11410         * Make-lang.in: Makefile automatically updated
11412 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
11414         * Make-lang.in (stamp-sdefault): Do not depend on
11415         move-if-change.
11417 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
11419         * config-lang.in: Disable Ada by default until probe logic for
11420         a bootstrap Ada compiler can be moved to the top level configure
11421         script.
11423 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
11425         * decl.c (components_to_record): Don't claim that the internal fields
11426         we make to hold the variant parts are semantically addressable, because
11427         they are not.
11429         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
11430         adjust the comment describing the modular type form when we can use it.
11431         (Install_PAT): Account for the Esiz renaming.
11433         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
11434         sc_onstack context indication before raising the exception to which
11435         the signal is mapped. Allows better handling of later signals possibly
11436         triggered by the resumed user code if the exception is handled.
11438 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
11440         * 5zinit.adb: Removed, no longer used.
11442 2004-02-12  Robert Dewar  <dewar@gnat.com>
11444         * ali.adb: Remove separating space between parameters on R line. Makes
11445         format consistent with format used by the binder for Set_Globals call.
11447         * atree.ads, atree.adb: Minor reformatting (new function header format)
11449         * bindgen.adb: Add Run-Time Globals documentation section containing
11450         detailed documentation of the globals passed from the binder file to
11451         the run time.
11453         * gnatls.adb: Minor reformatting
11455         * init.c (__gnat_set_globals): Add note pointing to documentation in
11456         bindgen.
11458         * lib-writ.ads, lib-writ.adb: Remove separating space between
11459         parameters on R line.
11460         Makes format consistent with format used by the binder for Set_Globals
11461         call.
11463         * osint.ads: Add 2004 to copyright notice
11464         Minor reformatting
11466         * snames.ads: Correct capitalization of FIFO_Within_Priorities
11467         Noticed during code reading, documentation issue only
11469         * usage.adb: Remove junk line for obsolete C switch
11470         Noticed during code reading
11472 2004-02-12  Vincent Celier  <celier@gnat.com>
11474         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
11475         extend for each directory, so that multiple /** directories are
11476         extended individually.
11477         (Recursive_Process): Set the default for LANGUAGES to ada
11479         * gprcmd.adb: Define new command "ignore", to do nothing.
11480         Implement new comment "path".
11482         * Makefile.generic: Suppress output when SILENT is set
11483         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
11484         used, so that the correct compiler is invoked.
11485         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
11486         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
11488 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
11490         * Makefile.in: Clean ups and remove obsolete targets.
11492 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
11494         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
11495         predicate declared in exp_util.
11497         * exp_util.adb: Add comments.
11499         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
11500         visibility before compiling context of the subunit.
11502         * sem_res.adb (Check_Parameterless_Call): If the context expects a
11503         value but the name is a procedure, do not attempt to analyze as a call,
11504         in order to obtain more telling diagnostics.
11506         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
11507         'Access on parameterless function calls.
11508         (Normalize_Actuals): For a parameterless function call with missing
11509         actuals, defer diagnostic until resolution of enclosing call.
11511         * sem_util.adb (Wrong_Type): If the context type is an access to
11512         subprogram and the expression is a procedure name, suggest a missing
11513         'attribute.
11515 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
11516             Nathanael Nerode  <neroden@gcc.gnu.org>
11518         PR ada/6637, PR ada/5911
11519         Merge with libada-branch:
11520         * config-lang.in: Build libada only when ada is built.
11522 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
11524         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
11525         for a tagged type, verify that both formals have the same type.
11527         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
11528         temporary when the formal is an in-parameter and the actual a possibly
11529         unaligned slice.
11531         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
11532         when expansion is disabled, to ensure proper name capture with
11533         overloaded literals.  Condition can be of any boolean type, resolve
11534         accordingly.
11536         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
11537         renaming is for a formal subprogram with a default operator name, and
11538         there is a usable operator that is visible at the point of
11539         instantiation.
11541 2004-02-09  Robert Dewar  <dewar@gnat.com>
11543         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
11544         rewrite to ignore errors in ali files, intended to allow tools downward
11545         compatibility with new versions of ali files.
11547         * ali.ads: Add new parameter Ignore_Errors
11549         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
11550         duplicating the error message giving the file with restrictions.
11552         * debug.adb: Add debug flag I for gnatbind
11554         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
11555         operators for the case where the operator is a defining operator.
11557         * exp_ch3.adb: Minor reformatting (new function spec format).
11559         * exp_ch4.adb: Add comment for previous change, and make minor
11560         adjustment to loop to always check for improper loop termination.
11561         Minor reformatting throughout (new function spec format).
11563         * gnatbind.adb: Implement -di debug flag for gnatbind
11565         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
11567         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
11569         * lib-load.adb: Fix bad assertion.
11570         Found by testing and code reading.
11571         Minor reformatting.
11573         * lib-load.ads: Minor reformatting.
11575         * lib-writ.adb: There is only one R line now.
11577         * lib-writ.ads: Add documentation on making downward compatible changes
11578         to ali files so old tools work with new ali files.
11579         There is only one R line now.
11580         Add documentation on format incompatibilities (with special GPS note)
11582         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
11584         * par-load.adb: Minor reformatting
11586         * sem_ch8.adb: Fix to error message from last update
11587         Minor reformatting and restructuring of code from last update
11589         * par-prag.adb, snames.adb, snames.ads, snames.h,
11590         sem_prag.adb: Implement pragma Profile.
11592         * stylesw.adb: Implement -gnatyN switch to turn off all style check
11593         options.
11595         * usage.adb: Add line for -gnatyN switch
11597         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
11599 2004-02-09  Albert Lee  <lee@gnat.com>
11601         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
11603 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
11605         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
11606         slices.
11608         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
11609         is nested in an instance that is not frozen yet, to avoid
11610         order-of-elaboration problems in gigi.
11612         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
11613         body the attribute is legal.
11615 2004-02-09  Robert Dewar  <dewar@gnat.com>
11617         * s-rident.ads: Minor comment correction
11619         * targparm.adb: Remove dependence on uintp completely. There was
11620         always a bug in Make in that it called Targparm before initializing
11621         the Uint package. The old code appeared to get away with this, but
11622         the new code did not! This caused an assertion error in gnatmake.
11624         * targparm.ads: Fix bad comment, restriction pragmas with parameters
11625         are indeed fully supported.
11627 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
11629         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
11631 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
11633         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
11634         with targetm.calls.promote_prototypes.
11636 2004-02-04  Robert Dewar  <dewar@gnat.com>
11638         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
11639         ali.ads, gprcmd.adb: Minor reformatting
11641         * bindgen.adb: Output restrictions string for new style restrictions
11642         handling
11644         * impunit.adb: Add s-rident.ads (System.Rident) and
11645         s-restri (System.Restrictions)
11647         * lib-writ.adb: Fix bug in writing restrictions string (last few
11648         entries wrong)
11650         * s-restri.ads, s-restri.adb: Change name Restrictions to
11651         Run_Time_Restrictions to avoid conflict with package name.
11652         Add circuit to read and acquire run time restrictions.
11654 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
11656         * restrict.ads, restrict.adb: Use the new restriction
11657         No_Task_Attributes_Package instead of the old No_Task_Attributes.
11659         * sem_prag.adb: No_Task_Attributes is a synonym of
11660         No_Task_Attributes_Package.
11662         * snames.ads, snames.adb: New entry for proper handling of
11663         No_Task_Attributes.
11665         * s-rident.ads: Adding restriction No_Task_Attributes_Package
11666         (AI-00249) that supersedes the GNAT specific restriction
11667         No_Task_Attributes.
11669 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
11671         * sem_prag.adb:
11672         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
11673          body, an identifier may be wrapped in an unchecked conversion.
11675 2004-02-04  Vincent Celier  <celier@gnat.com>
11677         * lib-writ.ads: Comment update for the W lines
11679         * bld.adb: (Expression): An empty string list is static
11681         * fname-uf.adb: Minor comment update
11683         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
11685         * gnatbind.adb: Initialize Cumulative_Restrictions with the
11686         restrictions on the target.
11688 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
11690         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
11691         gen_rtx.
11693 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
11695         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
11697 2004-02-02  Vincent Celier  <celier@gnat.com>
11699         * gprcmd.adb (Check_Args): If condition is false, print the invoked
11700         comment before the usage.
11701         Gprcmd: Fail when command is not recognized.
11702         (Usage): Document command "prefix"
11704         * g-md5.adb (Digest): Process last block.
11705         (Update): Do not process last block. Store remaining characters and
11706         length in Context.
11708         * g-md5.ads (Update): Document that several call to update are
11709         equivalent to one call with the concatenated string.
11710         (Context): Add fields to allow new Update behaviour.
11712         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
11713         defaulted to False.
11714         When May_Fail is True and no existing file can be found, return No_File.
11716         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
11717         functions.
11719         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
11720         spec file name instead on the W line.
11722 2004-02-02  Robert Dewar  <dewar@gnat.com>
11724         * ali.adb: Read and acquire info from new format restrictions lines
11726         * bcheck.adb: Add circuits for checking restrictions with parameters
11728         * bindgen.adb: Output dummy restrictions data
11729         To be changed later
11731         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11732         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
11733         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
11734         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
11735         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
11737         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
11738         the warning message on access to possibly uninitialized variable S)
11739         Minor changes for new restrictions handling.
11741         * gnatbind.adb: Minor reformatting
11742         Minor changes for new restrictions handling
11743         Move circuit for -r processing here from bcheck (cleaner)
11745         * gnatcmd.adb, gnatlink.adb: Minor reformatting
11747         * lib-writ.adb: Output new format restrictions lines
11749         * lib-writ.ads: Document new R format lines for new restrictions
11750         handling.
11752         * s-restri.ads/adb: New files
11754         * Makefile.rtl: Add entry for s-restri.ads/adb
11756         * par-ch3.adb: Fix bad error messages starting with upper case letter
11757         Minor reformatting
11759         * restrict.adb: Major rewrite throughout for new restrictions handling
11760         Major point is to handle restrictions with parameters
11762         * restrict.ads: Major changes in interface to handle restrictions with
11763         parameters. Also generally simplifies setting of restrictions.
11765         * snames.ads/adb: New entry for proper handling of No_Requeue
11767         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
11768         restriction counting.
11769         Other minor changes for new restrictions handling
11771         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
11772         Restriction_Warnings now allows full parameter notation
11773         Major rewrite of Restrictions for new restrictions handling
11775 2004-02-02  Javier Miranda  <miranda@gnat.com>
11777         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
11778         syntax rule for object renaming declarations.
11779         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
11780         component definitions.
11782         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
11783         components.
11784         (Array_Type_Declaration): Give support to access components. In addition
11785         it was also modified to reflect the name of the object in anonymous
11786         array types. The old code did not take into account that it is possible
11787         to have an unconstrained anonymous array with an initial value.
11788         (Check_Or_Process_Discriminants): Allow access discriminant in
11789         non-limited types.
11790         (Process_Discriminants): Allow access discriminant in non-limited types
11791         Initialize the new Access_Definition field in N_Object_Renaming_Decl
11792         node.  Change Ada0Y to Ada 0Y in comments
11794         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
11795         equality operators.
11796         Change Ada0Y to Ada 0Y in comments
11798         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
11799         renamings Change Ada0Y to Ada 0Y in comments
11801         * sem_type.adb (Find_Unique_Type): Give support to the equality
11802         operators for universal access types
11803         Change Ada0Y to Ada 0Y in comments
11805         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
11807         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
11808         field.
11809         (N_Object_Renaming_Declaration): Addition of Access_Definition field
11810         Change Ada0Y to Ada 0Y in comments
11812         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
11813         component definition and object renaming nodes
11814         Change Ada0Y to Ada 0Y in comments
11816 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
11818         * restrict.adb: Use the new restriction identifier
11819         No_Requeue_Statements instead of the old No_Requeue for defining the
11820         restricted profile.
11822         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
11823         No_Requeue_Statements.
11825         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
11826         that supersedes the GNAT specific restriction No_Requeue. The later is
11827         kept for backward compatibility.
11829 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
11831         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
11832         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
11833         pragma and fix incorrect ones.
11835         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
11836         warning if the pragma is redundant.
11838 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
11840         * 5staprop.adb: Add missing 'constant' keywords.
11842         * Makefile.in: use consistent value for SYMLIB on
11843         platforms where libaddr2line is supported.
11845 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11847         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
11848         annotating types.
11850 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
11852         * init.c (__gnat_install_handler): Setup an alternate stack for signal
11853         handlers in the environment thread. This allows proper propagation of
11854         an exception on stack overflows in this thread even when the builtin
11855         ABI stack-checking scheme is used without support for a stack reserve
11856         region.
11858         * utils.c (create_field_decl): Augment the head comment about bitfield
11859         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
11860         here, because the former is not accurate enough at this point.
11861         Let finish_record_type decide instead.
11862         Don't make a bitfield if the field is to be addressable.
11863         Always set a size for the field if the record is packed, to ensure the
11864         checks for bitfield creation are triggered.
11865         (finish_record_type): During last pass over the fields, clear
11866         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
11867         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
11868         from DECL_BIT_FIELD.
11870 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
11872         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
11873         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
11874         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
11876 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11878         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
11880         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
11881         (ZCX_By_Default): Likewise.
11882         (Front_End_ZCX_Support): Likewise.
11884         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
11885         (Initialize_Lock): Mark Level unreferenced.
11886         (Sleep): Mark Reason unreferenced.
11887         (Timed_Sleep): Likewise.
11888         (Wakeup): Likewise.
11889         (Exit_Task): Use Result.
11890         (Check_No_Locks): Mark Self_ID unreferenced.
11892         * 5gtasinf.adb (New_Sproc): Make Attr constant.
11893         (Bound_Thread_Attributes): Make Sproc constant.
11894         (New_Bound_Thread_Attributes): Likewise.
11896 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
11898         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
11899         one-dimensional array an slice assignments, when component type is
11900         controlled.
11902         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
11903         component type is controlled, and control_actions are in effect, use
11904         TSS procedure rather than generating inline code.
11906         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
11907         arrays with controlled components.
11909 2004-01-26  Vincent Celier  <celier@gnat.com>
11911         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
11912         command line for the non VMS case.
11914         * gnatlink.adb (Process_Binder_File): When building object file, if
11915         GNU linker is used, put all object paths between quotes, to prevent ld
11916         error when there are unusual characters (such as '!') in the paths.
11918         * Makefile.generic: When there are sources in Ada and the main is in
11919         C/C++, invoke gnatmake with -B, instead of -z.
11921         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
11922         from VMS_Conversion.
11923         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
11924         specification of argument file on the command line.
11926 2004-01-26  Bernard Banner  <banner@gnat.com>
11928         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
11930 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
11932         * snames.adb: Update copyright notice.
11933         Add info on slice assignment for controlled arrays.
11935 2004-01-23  Robert Dewar  <dewar@gnat.com>
11937         * exp_aggr.adb: Minor reformatting
11939         * exp_ch9.adb: Minor code clean up
11940         Minor reformatting
11941         Fix bad character in comment
11943         PR ada/13471
11944         * targparm.adb (Get_Target_Parameters): Give clean abort error on
11945         unexpected end of file, along with more detailed message.
11947 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11949         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
11950         PAT.
11952         * decl.c (copy_alias_set): New function.
11953         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
11955 2004-01-23  Doug Rupp  <rupp@gnat.com>
11957         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
11958         lib$${file} in case subsequent character is not a separator.
11960 2004-01-23  Vincent Celier  <celier@gnat.com>
11962         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
11963         when the GCC version is at least 3.
11965         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
11966         Remove all "Opt.", to prepare for opt split
11968         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
11969         Extends_All. Set to True when the project parsed is an extending all
11970         project. Fails for importing an extending all project only when the
11971         imported project is an extending all project.
11972         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
11973         depending on the value of Extends_All returned.
11975         * prj-proc.adb (Process): Check that no project shares its object
11976         directory with a project that extends it, directly or indirectly,
11977         including a virtual project.
11978         Check that no project extended by another project shares its object
11979         directory with another also extended project.
11981         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
11982         Kind = N_With_Clause
11984         * prj-tree.ads: Minor reformatting
11985         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
11987 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
11989         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
11990         applies to a type with an incomplete view, use full view in Name of
11991         clause, for consistency with uses of Get_Attribute_Definition_Clause.
11993 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
11995         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
11996         SCHED_RR, since other values are not supported by this policy.
11997         (Initialize): Move initialization of mutex attribute to package
11998         elaboration, to prevent early access to this variable.
12000         * Makefile.in: Remove mention of Makefile.adalib, unused.
12002         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
12003         1ssecsta.ads: Removed, unused.
12005 2004-01-21  Javier Miranda  <miranda@gnat.com>
12007         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
12008         entity if already built in the current scope.
12010         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
12011         reminder in internal scopes. Required for nested limited aggregates.
12013 2004-01-21  Doug Rupp  <rupp@gnat.com>
12015         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
12016         VMS. Replace all occurences of libgnat- and libgnarl- with
12017         libgnat$(hyphen) and libgnarl$(hyphen).
12018         Fixed shared library build problem on VMS.
12020 2004-01-21  Robert Dewar  <dewar@gnat.com>
12022         * mlib-prj.adb: Minor reformatting
12024 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
12026         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
12027         'constant' keywords for declaration of pointers that are not modified.
12029         * exp_pakd.adb: Fix English in comment.
12031 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
12033         PR ada/10889
12034         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
12035         copy all attributes of the parent, including the foreign language
12036         convention.
12038 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
12040         PR ada/10565
12041         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
12042         for 'delay until' statement.
12044 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
12046         * Make-lang.in: Replace $(docdir) with doc.
12047         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
12048         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
12049         to use consistent MAKEINFO rule.
12050         (ada.man, ada.srcman): Dummy entry.
12051         (ADA_INFOFILES): Define.
12052         (ada.info, ada.srcinfo): New rules.
12054 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
12056         * utils.c: Update copyright notice, missed in previous change.
12058 2004-01-19  Vincent Celier  <celier@gnat.com>
12060         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
12061         args if Bind is True. Set First_ALI, if not already done.
12062         (Build_Library): For Stand Alone Libraries, extract from one ALI file
12063         an eventual --RTS switch, for gnatbind, and all backend switches +
12064         --RTS, for linking.
12066 2004-01-19  Robert Dewar  <dewar@gnat.com>
12068         * sem_attr.adb, memtrack.adb: Minor reformatting
12070 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
12072         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
12073         that rename enumeration literals. This is properly done in sem_eval.
12075         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
12076         to functions that rename enumeration literals.
12078         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
12079         functions that rename enumeration literals.
12081 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
12083         * Make-lang.in (utils.o): Depend on target.h.
12084         * utils.c: Include target.h.
12085         (process_attributes): Use targetm.have_named_sections instead
12086         of ASM_OUTPUT_SECTION_NAME.
12088 2004-01-16  Andreas Jaeger  <aj@suse.de>
12090         * Makefile.in: Add $(DESTDIR).
12092 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
12094         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
12095         also when not defining if a Size clause applies. That information is
12096         not to be ignored.
12098 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
12100         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
12101         symbolic links for the shared gnat run time when needed.
12103 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
12105         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
12106         for writing, and terminate with an error message if not.
12108 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
12110         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
12111         warning on an access to subprogram in an instance, when the target
12112         type is declared in the same generic unit.
12113         (Eval_Attribute): If 'access is known to fail accessibility check,
12114         rewrite as a raise statement.
12116 2004-01-15  GNAT Script  <nobody@gnat.com>
12118         * Make-lang.in: Makefile automatically updated
12120 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
12122         * Make-lang.in (ada.srcextra): Dummy entry.
12124 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
12126         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
12128 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
12130         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
12131         components that are initialized with aggregates.
12133 2004-01-13  Vincent Celier  <celier@gnat.com>
12135         * gnatlink.adb (Process_Binder_File): To find directory of shared
12136         libgcc, if "gcc-lib" is not a subdirectory, look for the last
12137         subdirectory "lib" in the path of the shared libgnat or libgnarl.
12139         * make.adb (Gnatmake): If GCC version is at least 3, link with
12140         -shared-libgcc, when there is at least one shared library project.
12142         * opt.ads (GCC_Version): New integer constant.
12144         * adaint.c (get_gcc_version): New function.
12146 2004-01-13  Robert Dewar  <dewar@gnat.com>
12148         * sem_dist.adb, sem_res.adb, sem_util.adb,
12149         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
12150         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
12152 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
12154         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
12155         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
12156         declarations.
12158 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
12160         * misc.c: Remove trailing spaces.
12161         Update copyright notice missed in previous change.
12163         PR ada/13572
12164         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
12165         prefix/share/make
12167         * Makefile.generic: Update copyright.
12168         Add license notice.
12170         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
12171         of prefix/share/make.
12173         * Makefile.prolog: Update copyright.
12174         Add license notice.
12176 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
12178         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
12179         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
12180         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
12181         instead of String.
12183         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
12184         signature.
12186 2004-01-12  Javier Miranda  <miranda@gnat.com>
12188         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
12189         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
12190         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
12191         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
12192         Component_Definition node.
12194 2004-01-12  Ed Falis  <falis@gnat.com>
12196         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
12198 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
12200         * link.c: Change default libgnat kind to STATIC for FreeBSD.
12202 2004-01-12  Bernard Banner  <banner@gnat.com>
12204         * Makefile.in: map 86numaux to a-numaux for x86_64
12206 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
12208         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
12209         generated to rename a generic actual, go to the actual itself, the
12210         subtype is not a user-visible entity.
12212         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
12213         part is a private subtype, reset the visibility of its full view, if
12214         any, to be consistent.
12216         PR ada/13417
12217         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
12218         to use a generic package G as a formal package for another generic
12219         declared within G.
12221 2004-01-12  Robert Dewar  <dewar@gnat.com>
12223         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
12225         * usage.adb: Remove mention of obsolete -gnatwb switch
12226         Noticed during code reading
12228 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
12230         * 1ssecsta.adb: Minor changes for -gnatwa warnings
12232 2004-01-12  GNAT Script  <nobody@gnat.com>
12234         * Make-lang.in: Makefile automatically updated
12236 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
12238         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
12240 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12242         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
12244 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
12246         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
12247         Update comment and copyright date.
12248         * stamp-xgnatug: Delete.
12250 2004-01-05  Robert Dewar  <dewar@gnat.com>
12252         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
12253         be modified by the binder generated main program if the -D switch is
12254         used.
12256         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
12257         imported functions (since now we expect this to be done for imported
12258         functions)
12260         * 5vtaprop.adb: Add several ??? for sections requiring more comments
12261         Minor reformatting throughout
12263         * 5zinit.adb: Minor reformatting
12264         Add 2004 to copyright date
12265         Minor changes to avoid -gnatwa warnings
12266         Correct some instances of using OR instead of OR ELSE (noted while
12267         doing reformatting)
12269         * sprint.adb: Minor updates to avoid -gnatwa warnings
12271         * s-secsta.ads, s-secsta.adb:
12272         (SS_Get_Max): New function to obtain high water mark for ss stack
12273         Default_Secondary_Stack is not a constant since it may be modified by
12274         the binder generated main program if the -D switch is used.
12276         * switch-b.adb: New -Dnnn switch for binder
12278         * switch-c.adb:
12279         Make -gnatg imply all warnings currently in -gnatwa
12281         * vms_conv.adb: Minor reformatting
12282         Add 2004 to copyright notice
12283         Add 2004 to printed copyright notice
12285         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
12286         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
12287         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
12288         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
12289         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
12290         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
12291         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
12292         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
12293         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
12294         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
12295         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
12296         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
12297         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
12298         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
12299         checks.adb, clean.adb, cstand.adb, einfo.ads,
12300         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
12301         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
12302         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
12303         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
12304         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
12305         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
12306         Minor reformatting and code clean ups.
12307         Minor changes to prevent -gnatwa warnings
12309         * ali.adb: Minor reformatting and cleanup of code
12310         Acquire new SS indication of secondary stack use from ali files
12312         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
12313         (since now we expect this to be done for imported functions)
12315         * bindgen.adb: Generate call to modify default secondary stack size if
12316         -Dnnn switch given
12318         * bindusg.adb: Add line for new -D switch
12320         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
12321         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
12322         Add circuitry for both records and arrays to avoid gigi
12323         processing if the type involved has non-bit-aligned components
12325         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
12326         N_String_Literal node always references an E_String_Literal_Subtype
12327         entity. This may not be true in the future.
12328         (Possible_Bit_Aligned_Component): Move processing of
12329         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
12331         * exp_ch6.adb (Expand_Thread_Body): Pick up
12332         Default_Secondary_Stack_Size as variable so that we get value modified
12333         by possible -Dnnn binder parameter.
12335         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
12336         (Type_May_Have_Bit_Aligned_Components): New function.
12338         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
12339         (Type_May_Have_Bit_Aligned_Components): New function.
12341         * fe.h: (Set_Identifier_Casing): Fix prototype.
12342         Add declaration for Sem_Elim.Eliminate_Error_Msg.
12343         Minor reformatting.
12345         * freeze.adb (Freeze_Entity): Add RM reference to error message about
12346         importing constant atomic/volatile objects.
12347         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
12348         unless explicit Pure_Function pragma given, to avoid insidious bug of
12349         call to non-pure imported function getting eliminated.
12351         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
12352         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
12353         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
12354         Add 2004 to printed copyright notice
12356         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
12357         stack used.
12359         * Makefile.rtl: Add entry for g-sestin.o
12360         g-sestin.ads: New file.
12362         * mdll.adb: Minor changes to avoid -gnatwa warnings
12364         * mlib-tgt.adb: Minor reformatting
12366         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
12367         New switch Sec_Stack_Used (GNAT, GNATBIND)
12368         Make Default_Secondary_Stack_Size a variable instead of a constant,
12369         so that it can be modified by the new -Dnnn bind switch.
12371         * rtsfind.adb (Load_Fail): Give full error message in configurable
12372         run-time mode if all_errors mode is set. This was not done in the case
12373         of a file not found, which was an oversight.
12374         Note if secondary stack unit is used by compiler.
12376         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
12377         ineffective elaborate all pragmas on non-visible packages (this
12378         happened when a renamed subprogram was called). Now the elaborate all
12379         always goes on the package containing the renaming rather than the one
12380         containing the renamed subprogram.
12382         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
12383         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
12385         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
12386         has an Etype that references an E_String_Literal.
12387         (Eval_String_Literal): Avoid assumption that N_String_Literal node
12388         always references an E_String_Literal_Subtype entity. This may not
12389         be true in the future.
12391         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
12392         pragma location.
12394         * sem_res.adb (Resolve): Specialize msg for function name used in proc
12395         call.
12397 2004-01-05  Ed Falis  <falis@gnat.com>
12399         * g-debuti.adb: Replaced direct boolean operator with short-circuit
12400         form.
12402 2004-01-05  Vincent Celier  <celier@gnat.com>
12404         * bld.adb: Minor comment updates
12405         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
12406         of Item_Name).
12408         * make.adb (Gnatmake): Special process for files to compile/check when
12409         -B is specified. Fail when there are only foreign mains in attribute
12410         Main of the project file and -B is not specified. Do not skip bind/link
12411         steps when -B is specified.
12413         * makeusg.adb: Document new switch -B
12415         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
12417         * switch-m.adb: (Scan_Make_Switches): Process -B switch
12419         * vms_data.ads: Add new GNAT PRETTY qualifier
12420         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
12422 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12424         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
12425         case.
12427         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
12428         Set_Identifier_Casing.
12430         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
12431         has size that overflows.
12433 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
12435         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
12436         -gnatwa warning on static condition.
12438 2004-01-05  Doug Rupp  <rupp@gnat.com>
12440         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
12442 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
12444         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
12445         all attributes, including read-only attribute.
12447 2004-01-05  Pascal Obry  <obry@gnat.com>
12449         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
12450         library naming scheme.
12452         * mlib-prj.adb (Build_Library): Generate different names for the static
12453         or dynamic version of the GNAT runtime. This is needed to support the
12454         new shared library naming scheme.
12455         (Process_Binder_File): Add detection of shared library in binder file
12456         based on the new naming scheme.
12458         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
12459         scheme for the shared runtime libraries.
12461         * Makefile.in:
12462         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
12463         scheme.
12464         (install-gnatlib): Do not create symlinks for shared libraries.
12465         (gnatlib-shared-default): Idem.
12466         (gnatlib-shared-dual-win32): New target. Not used for now as the
12467         auto-import feature does not support arrays/records.
12468         (gnatlib-shared-win32): Do not create copy for the shared libraries.
12469         (gnatlib-shared-vms): Fix shared runtime libraries names.
12471         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
12472         dependent runtime shared library name.
12474 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
12476         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
12477         than the object.
12479 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
12481         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
12482         protected objects when allocator has a subtype indication, not a
12483         qualified expression. Note that qualified expressions may have to be
12484         checked when limited aggregates are implemented.
12486         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
12487         pure, emit warning.
12488         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
12489         subprogram is imported, remove warning.
12491 2004-01-05  Geert Bosch  <bosch@gnat.com>
12493         * s-poosiz.adb: Update copyright notice.
12494         (Allocate): Use Task_Lock to protect against concurrent access.
12495         (Deallocate): Likewise.
12497 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
12499         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
12500         comment.
12502 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
12504         * gnat_ug.texi: Force a CVS commit by updating copyright.
12505         * gnat_ug_vxw.texi: Regenerate.
12506         * gnat_ug_wnt.texi: Regenerate.
12507         * gnat_ug_vms.texi: Regenerate.
12508         * gnat_ug_unx.texi: Regenerate.
12510 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
12512         * trans.c: Remove uses of "register" specifier in
12513         declarations of local variables.
12515 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
12517         * stamp-xgnatug: New stamp file.
12518         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
12519         (ada/doctools/xgnatug): Add $(build_exeext).
12520         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
12521         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
12523 2003-12-17  Ed Falis  <falis@gnat.com>
12525         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
12526         eliminate warning.
12528         * a-exextr.adb: Add context clause for
12529         Ada.Exceptions.Last_Chance_Handler.
12531 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
12533         * cstand.adb (Create_Standard): Change the way how the declaration of
12534         the Duration type is created (making it the same way as it is for all
12535         the other standard types).
12537 2003-12-17  Robert Dewar  <dewar@gnat.com>
12539         * s-crtl.ads: Fix header format
12540         Change Pure to Preelaborate
12542 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
12544         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
12545         the expression type only if it is declared in the current unit.
12547         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
12548         are universal and already analyzed, as can occur in constrained
12549         subcomponents that depend on discriminants, when one constraint is a
12550         subtype mark.
12552         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
12553         type Any_Fixed is legal as the argument of a conversion, if only one
12554         fixed-point type is in context.
12556 2003-12-17  GNAT Script  <nobody@gnat.com>
12558         * Make-lang.in: Makefile automatically updated
12560 2003-12-15  Robert Dewar  <dewar@gnat.com>
12562         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
12563         sec stack size.
12565 2003-12-15  Vincent Celier  <celier@gnat.com>
12567         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
12568         (Gnatchop): Do not set failure status when reporting the number of
12569         warnings.
12571 2003-12-15  Doug Rupp  <rupp@gnat.com>
12573         * s-ctrl.ads: New file.
12575         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
12577         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
12578         (GNATBIND_OBJS): Add ada/s-crtl.o.
12580         * Makefile.in [VMS]: Clean up ifeq rules.
12582         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
12583         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
12584         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
12585         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
12586         s-tasdeb.adb: Update copyright.
12587         Import System.CRTL.
12588         Make minor modifications to use System.CRTL declared functions instead
12589         of importing locally.
12591 2003-12-15  GNAT Script  <nobody@gnat.com>
12593         * Make-lang.in: Makefile automatically updated
12595 2003-12-11  Ed Falis  <falis@gnat.com>
12597         * 5zinit.adb: Clean up.
12599         * 5zintman.adb (Notify_Exception): replaced case statement with a call
12600         to __gnat_map_signal, imported from init.c to support
12601         signal -> exception mappings that depend on the vxWorks version.
12603         * init.c:
12604         Created and exported __gnat_map_signal to support signal -> exception
12605         mapping that is dependent on the VxWorks version.
12606         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
12608 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
12610         * 5wosinte.ads: Link with -mthreads switch.
12612 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
12614         * init.c (__gnat_install_handler [NetBSD]): Set
12615         __gnat_handler_installed, as done on all other platforms.
12616         Remove duplicated code.
12618 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
12620         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
12622 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
12624         * sinfo.ads: Fix inconsistent example code in comment.
12626 2003-12-11  Robert Dewar  <dewar@gnat.com>
12628         * a-tiinau.adb: Add a couple of comments
12630         * sem_ch3.adb: Minor reformatting
12632         * sem_prag.adb:
12633         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
12634         Minor reformatting throughout
12636 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
12638         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
12639         bounds of a loop, create a separate block in order to generate proper
12640         cleanup actions to prevent memory leaks.
12642         * sem_res.adb (Resolve_Call): After a call to
12643         Establish_Transient_Scope, the call may be rewritten and relocated, in
12644         which case no further processing is needed.
12646         * sem_util.adb: (Wrong_Type): Refine previous fix.
12647          Fixes ACATS regressions.
12649         PR ada/13353
12651         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
12652         be inlined.
12654 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
12656         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
12657         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
12658         obsolete files.
12660         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
12661         (rts-zfp): Ditto.
12663 2003-12-08  Robert Dewar  <dewar@gnat.com>
12665         * 7sintman.adb: Minor reformatting
12667         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
12668         standard linker options to get standard libraries linked. We now plan
12669         to provide dummy versions of these libraries to match the appropriate
12670         configurable run-time (e.g. if a library is not needed at all, provide
12671         a dummy empty library).
12673         * targparm.ads: Configurable_Run_Time mode no longer affects linker
12674         options (-L parameters and standard libraries). What we plan to do is
12675         to provide dummy libraries where the libraries are not required.
12677         * gnatbind.adb: Minor comment improvement
12679 2003-12-08  Javier Miranda  <miranda@gnat.com>
12681         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
12682         aggregate in the parent. Otherwise constants with limited aggregates
12683         are not supported. Add new formal to pass the component type (Ctype).
12684         It is required to call the corresponding IP subprogram in case of
12685         default initialized components.
12686         (Gen_Assign): In case of default-initialized component, generate a
12687         call to the IP subprogram associated with the component.
12688         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
12689         of aggregate with default initialized components.
12690         (Has_Default_Init_Comps): Improve implementation to recursively check
12691         all the present expressions.
12693         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
12694         to indicate that the initialization call corresponds to a
12695         default-initialized component of an aggregate.
12696         In case of default initialized aggregate with tasks this parameter is
12697         used to generate a null string (this is just a workaround that must be
12698         improved later). In case of discriminants, this parameter is used to
12699         generate a selected component node that gives access to the discriminant
12700         value.
12702         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
12703         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
12704         allocated aggregates with default-initialized components.
12706         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
12707         the box notation is used in positional aggregates.
12709 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
12711         * lib.ads: Fix typo in comment
12713 2003-12-08  Vincent Celier  <celier@gnat.com>
12715         * prj.adb (Project_Empty): New component Unkept_Comments
12716         (Scan): Remove procedure; moved to Prj.Err.
12718         * prj.ads (Project_Data): New Boolean component Unkept_Comments
12719         (Scan): Remove procedure; moved to Prj.Err.
12721         * prj-dect.adb: Manage comments for the different declarations.
12723         * prj-part.adb (With_Record): New component Node
12724         (Parse): New Boolean parameter Store_Comments, defaulted to False.
12725         Set the scanner to return ends of line and comments as tokens, if
12726         Store_Comments is True.
12727         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
12728         comments are associated with these nodes. Store the node IDs in the
12729         With_Records.
12730         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
12731         With_Records.
12732         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
12733         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
12734         current project. Call Tree.Restore afterwards. Set the various nodes
12735         for comment storage (Next_End, End_Of_Line, Previous_Line,
12736         Previous_End).
12738         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
12739         defaulted to False.
12741         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
12742         to False. When Truncated is True, truncate the string, never go to the
12743         next line.
12744         (Write_End_Of_Line_Comment): New procedure
12745         (Print): Process comments for nodes N_With_Clause,
12746         N_Package_Declaration, N_String_Type_Declaration,
12747         N_Attribute_Declaration, N_Typed_Variable_Declaration,
12748         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
12749         Process nodes N_Comment.
12751         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
12752         without comments and there are some comments, set the flag
12753         Unkept_Comments to True.
12754         (Scan): If there are comments, set the flag Unkept_Comments to True and
12755         clear the comments.
12756         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
12757         (Next_End_Nodes: New table
12758         (Comment_Zones_Of): New function
12759         (Scan): New procedure; moved from Prj. Accumulate comments in the
12760         Comments table and set end of line comments, comments after, after end
12761         and before end.
12762         (Add_Comments): New procedure
12763         (Save, Restore, Seset_State): New procedures
12764         (There_Are_Unkept_Comments): New function
12765         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
12766         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
12767         procedures.
12768         (First_Comment_After, First_Comment_After_End): New functions
12769         (First_Comment_Before, First_Comment_Before_End): New functions
12770         (Next_Comment): New function
12771         (End_Of_Line_Comment, Follows_Empty_Line,
12772         Is_Followed_By_Empty_Line): New functions
12773         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
12774         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
12775         (Set_Next_Comment): New procedure
12776         (Default_Project_Node): Associate comment before if the node can store
12777         comments.
12779         * scans.ads (Token_Type): New enumeration value Tok_Comment
12780         (Comment_Id): New global variable
12782         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
12783         defaulted to False.
12784         (Scan): Store position of start of comment. If comments are tokens, set
12785         Comment_Id and set Token to Tok_Comment when scanning a comment.
12786         (Set_Comment_As_Token): New procedure
12788         * sinput-p.adb: Update Copyright notice
12789         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
12790         that no longer exists.
12792 2003-12-08  Javier Miranda  <miranda@gnat.com>
12794         * sem_aggr.adb: Add dependence on Exp_Tss package
12795         Correct typo in comment
12796         (Resolve_Aggregate): In case of array aggregates set the estimated
12797         type of the aggregate before calling resolve. This is needed to know
12798         the name of the corresponding IP in case of limited array aggregates.
12799         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
12800         in case of default initialized array components.
12802         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
12803         types. Required to give support to limited aggregates in generic
12804         formals.
12806 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
12808         * sem_ch3.adb (Check_Initialization): For legality purposes, an
12809         inlined body functions like an instantiation.
12810         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
12811         until bounds are analyzed, to diagnose premature use of type.
12813         * sem_util.adb (Wrong_Type): Improve error message when the type of
12814         the expression is used prematurely.
12816 2003-12-08  GNAT Script  <nobody@gnat.com>
12818         * Make-lang.in: Makefile automatically updated
12820 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
12822         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
12823         they are automatically generated by Make-lang.in and cause nothing but
12824         maintenance troubles.
12826 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
12828         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
12829         version of this unit).
12831 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
12833         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
12834         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
12835         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
12836         the body of System.Interrupt_Management common to several targets.
12837         Update copyright notice when appropriate.
12839         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
12840         constant.
12842         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
12843         to ensure that the kernel fills in the interrupted context structure
12844         before calling a signal handler, which is necessary to be able to
12845         unwind past it. Update the copyright notice.
12847 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
12849         * a-elchha.ads: New file.
12851         * a-elchha.adb: New default last chance handler. Contents taken from
12852         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
12854         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
12855         is moved to a-elchha.adb to provide a target-independent default last
12856         chance handler.
12858         * Makefile.rtl: Add a-elchha.o
12860         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
12862 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
12864         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
12865         declared in an instance, do not inline the call if the instance is not
12866         frozen yet, to prevent order of elaboration problems.
12868         * sem_prag.adb: Add comments for previous fix.
12870 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
12872         * g-table.adb: Use the right variable in Set_Item.
12873         Update copyright notice.
12875 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
12877         * Makefile.in: Remove unused rules.
12879 2003-12-05  Vincent Celier  <celier@gnat.com>
12881         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
12882         -nostdlib. Not needed here after all.
12884 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
12886         PR ada/11724
12888         * adaint.h, adaint.c, g-os_lib.ads:
12889         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
12890         on some platforms (including FreeBSD), it is a 64 bit value.
12891         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
12893 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
12895         * gnatvsn.ads (Library_Version): Now contain only the relevant
12896         version info.
12897         (Verbose_Library_Version): New constant.
12899         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
12900         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
12901         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
12903         * gnatlbr.adb: Clean up: replace Library_Version by
12904         Verbose_Library_Version.
12906         * make.adb, lib-writ.adb, exp_attr.adb:
12907         Clean up: replace Library_Version by Verbose_Library_Version.
12909         * 5lintman.adb: Removed.
12911         * Makefile.in:
12912         Update and simplify computation of LIBRARY_VERSION.
12913         Fix computation of GSMATCH_VERSION.
12914         5lintman.adb is no longer used: replaced by 7sintman.adb.
12916 2003-12-03  Robert Dewar  <dewar@gnat.com>
12918         * exp_ch5.adb:
12919         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
12920         name. Modified to consider small non-bit-packed arrays as troublesome
12921         and in need of component-by-component assigment expansion.
12923 2003-12-03  Vincent Celier  <celier@gnat.com>
12925         * lang-specs.h: Process nostdlib as nostdinc
12927         * back_end.adb: Update Copyright notice
12928         (Scan_Compiler_Arguments): Process -nostdlib directly.
12930 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
12932         * Makefile.in:
12933         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
12934         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
12935         included in HIE_NONE_TARGET_PAIRS.
12937 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
12939         * sem_attr.adb:
12940         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
12941         is legal in an instance, because legality is cheched in the template.
12943         * sem_prag.adb:
12944         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
12945         appplied to an unchecked conversion of a formal parameter.
12947         * sem_warn.adb:
12948         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
12949         variables.
12951 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
12953         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
12954         routines. The second one is new functionality to deal with backtracing
12955         through signal handlers.
12956         (unwind): Split into the two separate subroutines above.
12957         Update the documentation, and deal properly with sizeof (REG) different
12958         from sizeof (void*).
12960 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
12962         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
12963         so that the debugger can reliably access the value of the parameter,
12964         and therefore is able to display the exception name when an exception
12965         breakpoint is reached.
12967 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
12969         * fmap.adb: Fix typo in warning message.
12971         * g-socket.ads, g-socket.adb: Make Free a visible instance of
12972         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
12974 2003-12-01  Vincent Celier  <celier@gnat.com>
12976         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
12977         ther is no Afile.
12978         (Build_Library): Get the switches only if Default_Switches is declared
12979         in package Binder.
12981 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
12983         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
12984         actuals that are indexed components, reanalyze actual to ensure that
12985         packed array references are properly expanded.
12987         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
12988         attempted assignment to a discriminant.
12990 2003-12-01  Robert Dewar  <dewar@gnat.com>
12992         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
12993         reformatting.
12995         * switch-c.adb: Minor reformatting of comments
12997 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
12999         * Makefile.in: Clean ups.
13001 2003-12-01  GNAT Script  <nobody@gnat.com>
13003         * Make-lang.in: Makefile automatically updated
13005 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
13007         * 5wsystem.ads: Disable zero cost exception, not ready yet.
13009 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
13011         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
13012         to force serialization.
13014 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
13016         * g-socket.ads, g-socket.adb:
13017         Clarify documentation of function Stream. Introduce a Free procedure
13018         to release the returned Stream once it becomes unused.
13020         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
13022 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
13024         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
13025         since NT 4 cannot handle timeout values that are too large,
13026         e.g. DWORD'Last - 1.
13028 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
13030         * exp_ch4.adb:
13031         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
13032         in procedure calls and whose expansion must be deferred.
13034         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
13035         is in exp_ch4.
13037         * sem_ch3.adb:
13038         (Build_Derived_Array_Type): Create operator for unconstrained type
13039         if ancestor is unconstrained.
13041 2003-11-26  Vincent Celier  <celier@gnat.com>
13043         * make.adb (Project_Object_Directory): New global variable
13044         (Change_To_Object_Directory): New procedure
13045         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
13046         of Change_Dir directly. Do not change working directory to object
13047         directory of main project after each compilation.
13048         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
13049         directly.
13050         Change to object directory of main project before binding step.
13051         (Initialize): Initialize Project_Object_Directory to No_Project
13053         * mlib-prj.adb:
13054         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
13055         binding a Stand-Alone Library.
13057         * output.adb: Update Copyright notice
13058         (Write_Char): Output buffer when full
13060 2003-11-26  Robert Dewar  <dewar@gnat.com>
13062         * sem_ch13.adb: (Check_Size): Reset size if size is too small
13064         * sem_ch13.ads:
13065         (Check_Size): Fix documentation to include bit-packed array case
13067         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
13069         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
13071         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
13073 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
13075         PR ada/13142
13076         * utils.c (init_gigi_decls): Change name of built-in setjmp to
13077         __builtin_setjmp, since this is apparently needed by recent
13078         non Ada changes.
13080 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13082         * adadecode.c: Only include ctype.h if not IN_GCC.
13083         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
13085 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
13087         * Makefile.in:
13088         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
13089         signals and interrupts.
13091         * 5zintman.ads: New File.
13093         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
13094         add exception signals to the set of unmasked signals.
13096         * 5ztaprop.adb:
13097         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
13098         between signals and interrupts.
13099         Add to Unblocked_Signal_Mask the set of signals that are in
13100         Keep_Unmasked.
13102         * 7sinmaop.adb:
13103         Adding a check to see whether the Interrupt_ID we want to unmask is in
13104         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
13105         reason is that the index type of the Keep_Unmasked array is not always
13106         Interrupt_ID; it may be a subtype of Interrupt_ID.
13108 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
13110         * exp_util.adb:
13111         (Remove_Side_Effects): Condition constantness of object created for a
13112          an unchecked type conversion on the constantness of the expression
13113          to ensure the correct value for 'Constrained when passing components
13114          of view-converted class-wide objects.
13116 2003-11-24  Robert Dewar  <dewar@gnat.com>
13118         * par-load.adb (Load): Improve handling of misspelled and missing units
13119         Removes several cases of compilation abandoned messages
13121         * lib.adb: (Remove_Unit): New procedure
13123         * lib.ads: (Remove_Unit): New procedure
13125         * lib-load.adb: Minor reformatting
13127 2003-11-24  Vincent Celier  <celier@gnat.com>
13129         * make.adb:
13130         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
13131         (Marking_Label): Label to mark processed source files. Incremented for
13132         each executable.
13133         (Gnatmake): Increase Marking_Labet for each executable
13134         (Is_Marked): Compare against marking label
13135         (Mark): Mark with marking label
13137 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
13139         * s-thread.ads:
13140         Move the declaration of the TSD for System.Threads to System.Soft_Links.
13141         Add some comments.
13143         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
13144         (rts-cert): build a single relocatable object for the run-time lib.
13145         Fix perms.
13147 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
13149         * Make-lang.in:
13150         Use gnatls rather than gcc to obtain the location of GNAT RTL for
13151         crosstools build.
13153 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
13155         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
13156         can not use it as before (that is, as a variable) when dumping it into
13157         the tree file. Add a local variable to store the result of this
13158         function and to be used as the string to be written into the tree.
13160         * scn.adb (Initialize_Scanner): Add comments explaining the recent
13161         changes.
13163         * sinput.adb (Source_First, Source_Last): In case of
13164         Internal_Source_File, replace returning attributes of
13165         Internal_Source_Ptr (which is wrong) with returning attributes of
13166         Internal_Source.
13168 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
13170         * sem_ch3.adb:
13171         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
13172         used for implicit concatenation operators.
13173         Code cleanup.
13175         * sem_elab.adb:
13176         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
13177         task bodies that are in the scope of a Suppress pragma.
13178         (Check_A Call): Use the flag to prevent spurious elaboration checks.
13180         * sinfo.ads, sinfo.adb:
13181         New flag No_Elaboration_Check on function/procedure calls, to properly
13182         suppress checks on calls in task bodies that are within a local suppress
13183         pragma.
13185         * exp_ch4.adb:
13186         (Expand_Concatenate_Other): Use the proper integer type for the
13187         expression for the upper bound, to avoid universal_integer computations
13188         when possible.
13190 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
13192         * .cvsignore: Delete.
13194 2003-11-21  Andreas Schwab  <schwab@suse.de>
13196         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
13198 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
13200         * 5wsystem.ads: Enable zero cost exception.
13202 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
13204         * 5ztiitho.adb: Remove an unreferenced variable.
13206 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
13208         * adaint.c: For FreeBSD, use mkstemp.
13210 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
13212         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
13214 2003-11-21  Robert Dewar  <dewar@gnat.com>
13216         * bld.adb: Remove useless USE of gnatvsn
13218         * gnatchop.adb: Minor reformatting
13219         Clean up version handling to be more consistent
13221         * gnatxref.adb: Minor reformatting
13223         * gprcmd.adb: Minor reformatting
13224         Fix output of copyright to be more consistent with other tools
13226 2003-11-21  Vincent Celier  <celier@gnat.com>
13228         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
13230 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
13232         * atree.adb (Initialize): Add initializations for global variables
13233         used in New_Copy_Tree.
13235         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
13236         Internal_Source_File as the actual).
13237         Put the set of statements creating Any_Character before the set of
13238         statements creating Any_Array to have Any_Character fully initialized
13239         when it is used in creating Any_Array.
13241         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
13242         not call Scan in case if the actual is Internal_Source_File
13243         Add 2003 to copyright note.
13245         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
13246         processing Internal_Source_File.
13248         * types.ads: Add the constant Internal_Source_File representing the
13249         source buffer for artificial source-code-like strings created within
13250         the compiler (the definition of Source_File_Index is changed).
13252 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
13254         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
13255         56system.ads: New file, FreeBSD version.
13257 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
13259         * Make-lang.in (ada.extraclean): Delete.
13261 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
13263         * gnatmem.adb: Clean up verbose output.
13265         * gprcmd.adb: Change copyright to FSF.
13267 2003-11-19  Vincent Celier  <celier@gnat.com>
13269         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
13270         and Version (ignored).
13272         * symbols.ads: (Policy): New type
13273         (Initialize): New parameter Reference, Symbol_Policy and
13274         Library_Version.
13275         Remove parameter Force.
13276         Minor reformatting.
13278         * snames.ads, snames.adbadb: New standard names
13279         Library_Reference_Symbol_File and Library_Symbol_Policy
13281         * mlib-prj.adb:
13282         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
13283         project.
13285         * mlib-tgt.adb:
13286         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
13288         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
13290         * prj.adb: (Project_Empty): New component Symbol_Data
13292         * prj.ads: (Policy, Symbol_Record): New types
13293         (Project_Data): New component Symbol_Data
13295         * prj-attr.adb:
13296         New attributes Library_Symbol_File, Library_Symbol_Policy and
13297         Library_Reference_Symbol_File.
13299         * prj-nmsc.adb:
13300         (Ada_Check): When project is a Stand-Alone library project, process
13301         attribute Library_Symbol_File, Library_Symbol_Policy and
13302         Library_Reference_Symbol_File.
13304         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
13305         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
13306         5sml-tgt.adb (Build_Dynamic_Library): New parameter
13307         Symbol_Data (ignored).
13309         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
13310         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
13311         functions Option_File_Name and Version_String. Set new options of
13312         gnatsym related to symbol file, symbol policy and reference symbol
13313         file.
13315         * 5vsymbol.adb:
13316         Extensive modifications to take into account the reference symbol file,
13317         the symbol policy, the library version and to put in the symbol file the
13318         minor and major IDs.
13320         * bld.adb (Process_Declarative_Items): Put second argument of
13321         gprcmd to_absolute between single quotes, to avoid problems with
13322         Windows.
13324         * bld-io.adb: Update Copyright notice.
13325         (Flush): Remove last character of a line, if it is a back slash, to
13326         avoid make problems.
13328         * gnatsym.adb:
13329         Implement new scheme with reference symbol file and symbol policy.
13331         * g-os_lib.ads: (Is_Directory): Clarify comment
13333 2003-11-19  Robert Dewar  <dewar@gnat.com>
13335         * atree.adb: Move New_Copy_Tree global variables to head of package
13337         * errout.adb: Minor reformatting
13339 2003-11-19  Javier Miranda  <miranda@gnat.com>
13341         * sem_ch4.adb: (Diagnose_Call): Improve error message.
13342         Add reference to Ada0Y (AI-50217)
13344         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
13345         sem_util.adb: Add reference to AI-50217
13347         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
13349         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
13351         * sem_aggr.adb: Complete documentation of AI-287 changes
13353         * par-ch4.adb: Document previous changes.
13355         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
13356         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
13357         Ada0Y (AI-50217)
13359         * exp_aggr.adb: Add references to AI-287 in previous changes
13361 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
13363         * exp_ch6.adb:
13364         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
13365         in the rewriting is the result of an inlined call.
13367         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
13368         parameter is a type conversion, use original node to construct the
13369         post-call assignment, because expression may have been rewritten, e.g.
13370         if it is a packed array.
13372         * sem_attr.adb:
13373         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
13374         body, just as it is in an instance.
13375         Categorization routines
13377         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
13378         Instantiate_Object): Set proper sloc reference for message on missing
13379         actual.
13381 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
13383         * Makefile.in: Add FreeBSD libgnat pairs.
13385         * usage.adb: Fix typo in usage message.
13387 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
13389         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
13390         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
13391         pragma Thread_Body.
13392         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
13394         * s-thread.adb: This file is now a dummy implementation of
13395         System.Thread.
13397 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
13399         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
13401 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
13403         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
13404         instanciation references in the parent type description.
13406 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13408         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
13410         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
13411         TYPE_PRECISION directly from esize.
13413 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
13415         * cstreams.c:
13416         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
13418         * init.c: Initialization routines for FreeBSD
13420         * link.c: Link info for FreeBSD
13422         * sysdep.c: Add the case of FreeBSD
13424 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
13426         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
13427         already called in System.Threads.
13429         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
13430         environment task, as it has been moved to System.Threads.Initialization.
13432 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
13434         * adaint.c (__gnatlib_install_locks): Only reference
13435         __gnat_install_locks on VMS, since other platforms can avoid using
13436         --enable-threads=gnat
13438 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13440         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
13442         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
13443         TYPE_PACKED_ARRAY_TYPE_P.
13444         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
13446         Part of PR ada/12806
13447         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
13448         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
13450 2003-11-17  Vincent Celier  <celier@gnat.com>
13452         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
13453         to False.
13454         Do not set exit status to Failure when Warning is True.
13455         (Gnatchop): Make errors "no compilation units found" and
13456         "no source files written" warnings only.
13458         * make.adb (Gnatmake): When using a project file, set
13459         Look_In_Primary_Dir to False.
13460         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
13461         and Local_Configuration_Pragmas in the project where they are declared
13462         not an extending project which might have inherited them.
13464         * osint.adb (Locate_File): If Name is already an absolute path, do not
13465         look for a directory.
13467         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
13468         -gnats (Check_Syntax) is used, issue only a warning, not an error.
13470         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
13471         in objects of type Variable_Value.
13473         * prj.ads: (Variable_Value): New component Project
13475         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
13476         is in a project extended by Project.
13478         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
13479         Project of Variable_Values to this new parameter value.
13480         (Expression): Set component Project of Variable_Values.
13481         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
13482         Set the component Project in array elements.
13484 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
13486         * errout.adb: (Initialize): Add initialization for error nodes.
13488         * sem_ch12.adb (Initialize): Add missing initializations for
13489         Exchanged_Views and Hidden_Entities.
13491 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
13493         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
13494         already instantiated tree for use in subsequent inlining.
13495         (Analyze_Associations, Instantiate_Formal_Subprogram,
13496         Instantiate_Object): improve error message for mismatch in
13497         instantiations.
13499         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
13500         instantiations of subprograms declared in instances.
13502 2003-11-17  Javier Miranda  <miranda@gnat.com>
13504         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
13505         executed only under the Extensions_Allowed flag.
13507 2003-11-17  Robert Dewar  <dewar@gnat.com>
13509         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
13510         zeroes suppressed.
13511         (Address_Image): Fix bug of returning 0x instead of 0x0
13512         Minor reformatting (function specs).
13514         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
13515         (missed case of 33-63)
13517         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
13519         * s-thread.adb: Add comments for pragma Restriction
13521         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
13522         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
13524 2003-11-17  Ed Falis  <falis@gnat.com>
13526         * s-thread.adb: Added No_Tasking restriction for this implementation.
13528 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
13530         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
13531         instanciation references in the parent type description.
13533 2003-11-17  GNAT Script  <nobody@gnat.com>
13535         * Make-lang.in: Makefile automatically updated
13537 2003-11-16  Jason Merrill  <jason@redhat.com>
13539         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
13540         and TAGS files that include them for each front end.
13542 2003-11-14  Andreas Jaeger  <aj@suse.de>
13544         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
13545         is the canonical version.
13546         * misc.c (gnat_handle_option): Likewise.
13548         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
13550         * 5nsystem.ads: New file for x86_64-linux-gnu.
13552 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
13554         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
13556         * comperr.adb: Fix logic in previous change.
13558 2003-11-13  Vincent Celier  <celier@gnat.com>
13560         * 5bml-tgt.adb (Build_Dynamic_Library): Use
13561         Osint.Include_Dir_Default_Prefix instead of
13562         Sdefault.Include_Dir_Default_Name.
13564         * gnatlbr.adb: Update Copyright notice
13565         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
13566         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
13567         instead of Sdefault.Object_Dir_Default_Name
13569         * gnatlink.adb:
13570         (Process_Binder_File): Never suppress the option following -Xlinker
13572         * mdll-utl.adb:
13573         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
13574         Sdefault.Object_Dir_Default_Name.
13576         * osint.ads, osint.adb:
13577         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
13578         Minor reformatting.
13580         * vms_conv.ads: Minor reformating
13581         Remove GNAT STANDARD and GNAT PSTA
13583         * vms_conv.adb:
13584         Allow GNAT MAKE to have several files on the command line.
13585         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
13586         Sdefault.Object_Dir_Default_Name.
13587         Minor Reformating
13588         Remove data for GNAT STANDARD
13590         * vms_data.ads:
13591         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
13592         Remove data for GNAT STANDARD
13593         Remove options and documentation for -gnatwb/-gnatwB: these warning
13594         options no longer exist.
13596 2003-11-13  Ed Falis  <falis@gnat.com>
13598         * 5zthrini.adb: (Init_RTS): Made visible
13600         * 5zthrini.adb:
13601         (Register): Removed unnecessary call to taskVarGet that checked whether
13602          an ATSD was already set as a task var for the argument thread.
13604         * s-thread.adb:
13605         Updated comment to reflect that this is a VxWorks version
13606         Added context clause for System.Threads.Initialization
13607         Added call to System.Threads.Initialization.Init_RTS
13609 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
13611         * 5zthrini.adb:
13612         (Init_RTS): New procedure, for the initialization of the run-time lib.
13614         * s-thread.adb:
13615         Remove dependancy on System.Init, so that this file can be used in the
13616         AE653 sequential run-time lib.
13618 2003-11-13  Robert Dewar  <dewar@gnat.com>
13620         * bindgen.adb: Minor reformatting
13622 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
13624         * checks.adb:
13625         (Apply_Discriminant_Check): Do no apply check if target type is derived
13626         from source type with no applicable constraint.
13628         * lib-writ.adb:
13629         (Ensure_System_Dependency): Do not apply the style checks that may have
13630         been specified for the main unit.
13632         * sem_ch8.adb:
13633         (Find_Selected_Component): Further improvement in error message, with
13634         RM reference.
13636         * sem_res.adb:
13637         (Resolve): Handle properly the case of an illegal overloaded protected
13638         procedure.
13640 2003-11-13  Javier Miranda  <miranda@gnat.com>
13642         * exp_aggr.adb:
13643         (Has_Default_Init_Comps): New function to check the presence of
13644         default initialization in an aggregate.
13645         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
13646         extension aggregate of a limited record. In addition, a new formal
13647         was added to do not initialize the record controller (if any) during
13648         this recursive expansion of ancestors.
13649         (Init_Controller): Add support for limited record components.
13650         (Expand_Record_Aggregate): In case of default initialized components
13651         convert the aggregate into a set of assignments.
13653         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
13654         describing the new syntax.
13655         Nothing else needed to be done because this subprogram delegates part of
13656         its work to P_Precord_Or_Array_Component_Association.
13657         (P_Record_Or_Array_Component_Association): Give support to the new
13658         syntax for default initialization of components.
13660         * sem_aggr.adb:
13661         (Resolve_Aggregate): Relax the strictness of the frontend in case of
13662         limited aggregates.
13663         (Resolve_Record_Aggregate): Give support to default initialized
13664         components.
13665         (Get_Value): In case of default initialized components, duplicate
13666         the corresponding default expression (from the record type
13667         declaration). In case of default initialization in the *others*
13668         choice, do not check that all components have the same type.
13669         (Resolve_Extension_Aggregate): Give support to limited extension
13670         aggregates.
13672         * sem_ch3.adb:
13673         (Check_Initialization): Relax the strictness of the front-end in case
13674         of aggregate and extension aggregates. This test is now done in
13675         Get_Value in a per-component manner.
13677         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
13678         expression corresponds to a limited aggregate. This test is now done
13679         in Get_Value.
13681         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
13682         Box_Present flag.
13684         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
13685         present in an N_Component_Association node
13687 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
13689         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
13690         type-conformant entry only if they are homographs.
13692 2003-11-13  GNAT Script  <nobody@gnat.com>
13694         * Make-lang.in: Makefile automatically updated
13696 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13698         * adadecode.c: Use <> form of include for ctype.h.
13699         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
13701 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13703         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
13704         Works around PR middle-end/6552.
13706 2003-11-10  Ed Falis  <falis@gnat.com>
13708         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
13710         * 5zinit.adb: (Install_Handler): Moved back to spec
13711         (Install_Signal_Handlers): Deleted
13713         * 5zthrini.adb: Added context clause for System.Storage_Elements
13714         (Register): Only handles creation of taskVar; initialization moved to
13715         Thread_Body_Enter.
13716         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
13717         Added declaration of environment task secondary stack and
13718         initialization.
13720         * s-thread.adb: Implement bodies for thread body processing
13722         * s-thread.ads:
13723         Added comment identifying supported targets for pragma Thread_Body.
13725 2003-11-10  Pascal Obry  <obry@gnat.com>
13727         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
13728         GNAT_MAX_PATH_LEN.
13730         * s-fileio.adb:
13731         (Open): Properly check for string length before copying into the buffer.
13732         Raises Name_Error if buffer is too small. Note that this was a potential
13733         buffer overflow.
13735 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
13737         * bindgen.adb, comperr.adb: Code clean ups.
13738         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
13740 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
13742         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
13744 2003-11-10  Vincent Celier  <celier@gnat.com>
13746         * gprcmd.adb:
13747         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
13748         installation.
13750         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
13752         * prj.adb: (Project_Empty): Add new boolean component Virtual
13754         * prj.ads: (Virtual_Prefix): New constant string
13755         (Project_Data): New boolean component Virtual
13757         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
13758         a library project is extended by a virtual extending project.
13760         * prj-part.adb:
13761         Modifications throughout to implement extending-all project, including:
13762         (Virtual_Hash, Processed_Hash): New hash tables
13763         (Create_Virtual_Extending_Project): New procedure
13764         (Look_For_Virtual_Projects_For): New procedure
13766         * prj-proc.adb:
13767         (Process): After checking the projects, if main project is an
13768         extending-all project, set the object directory of all virtual extending
13769         project to the object directory of the main project.
13770         Adjust error message when a virtual extending project has the same
13771         object directory as an project being extended.
13772         (Recursive_Process): If name starts with the virtual prefix, set Virtual
13773         to True in the project data.
13775         * prj-tree.adb:
13776         (Default_Project_Node): Add new boolean component Extending_All
13777         (Is_Extending_All): New function
13778         (Set_Is_Extending_All): New procedure
13780         * prj-tree.ads: (Is_Extending_All): New function
13781         (Set_Is_Extending_All): New procedure
13782         (Project_Node_Record): New boolean component Extending_All
13784         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
13786         * vms_data.ads:
13787         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
13789         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
13790         "gprcmd prefix" to define it.
13792 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
13794         * einfo.ads: Fix a typo and remove an extraneous word in comments.
13796         * lib-load.adb:
13797         (Create_Dummy_Package_Unit): Set the scope of the entity for the
13798         created dummy package to Standard_Standard, not to itself, to
13799         defend other parts of the front-end against encoutering a cycle in
13800         the scope chain.
13802         * sem_ch10.adb:
13803         (Analyze_With_Clause): When setting the entities for the successive
13804         N_Expanded_Names that constitute the name of a child unit, do not
13805         attempt to go further than Standard_Standard in the chain of scopes.
13806         This case arises from the placeholder units created by
13807         Create_Dummy_Package_Unit in the case of a with_clause for a
13808         nonexistent child unit.
13810 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
13812         * exp_ch6.adb:
13813         (Expand_Thread_Body): Place subprogram on scope stack, so that new
13814         declarations are given the proper scope.
13816         * sem_ch13.adb:
13817         (Check_Expr_Constants): Reject an expression that contains a constant
13818         created during expansion, and that appears after the object to which
13819         the address clause applies.
13821         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
13822         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
13823         that uses 'Range of a function call with controlled components, so
13824         that the function result can be finalized before starting the loop.
13826         * sem_ch8.adb:
13827         (Find_Selected_Component): Improve error message when prefix is
13828         an implicit dereference of an incomplete type.
13830 2003-11-10  Robert Dewar  <dewar@gnat.com>
13832         * opt.ads: New Print_Standard flag for -gnatS switch
13834         * sem_ch13.adb: Remove some additional checks for unaligned arrays
13836         * cstand.adb (Create_Standard): Print out package standard if -gnatS
13837         switch set
13839         * debug.adb: Update doc for -gnatds to discuss relationship with new
13840         -gnatS flag
13842         * sinfo.adb: Add new field Entity_Or_Associated_Node
13844         * sinfo.ads: Add new field Entity_Or_Associated_Node
13845         Update documentation for Associated_Node and Entity fields to clarify
13846         relationship and usage.
13848         * sprint.adb:
13849         (Write_Id): Properly process Associated_Node field in generic template
13851         * switch-c.adb:
13852         Recognize new -gnatS switch for printing package Standard
13853         This replaces gnatpsta
13855         * usage.adb:
13856         Add line for  new -gnatS switch for printing package Standard
13857         This replaces gnatpsta
13859 2003-11-10  Andreas Jaeger  <aj@suse.de>
13861         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
13862         integer.
13864 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
13866         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
13867         by gnat1.
13869 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
13871         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
13872         no longer needed.
13874         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
13876         * sysdep.c: Add handling of cygwin.
13878 2003-11-10  GNAT Script  <nobody@gnat.com>
13880         * Make-lang.in: Makefile automatically updated
13882 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
13884         PR 12950
13885         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
13886         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
13887         Replace GNAT_ROOT by GCC_ROOT.
13889         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
13891 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
13893         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
13894         and update for changed meaning of GET_MODE_BITSIZE.
13896 2003-11-04  Doug Rupp  <rupp@gnat.com>
13898         * sysdep.c: Problem discovered during IA64 VMS port.
13899         [VMS] #include <unixio.h> to get proper prototypes.
13901         * adaint.c:
13902         Issues discovered/problems fixed during IA64 VMS port.
13903         [VMS] #define _POSIX_EXIT for proper semantics.
13904         [VMS] #include <unixio.h> for proper prototypes.
13905         [VMS] (fork): #define IA64 version.
13906         (__gnat_os_exit): Remove unnecessary VMS specific code.
13908 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13910         Part of PR ada/12806
13912         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
13913         tree, not integer.
13915         * decl.c:
13916         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
13917         not integer.
13919         * targtyps.c, decl.c, misc.c,
13920         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
13921         routines to work around change in FP sizing semantics in GCC.
13923         * utils.c:
13924         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
13926         * gigi.h: (enumerate_modes): New function.
13928         * Make-lang.in: (ada/misc.o): Add real.h.
13930         * misc.c: (enumerate_modes): New function.
13932 2003-11-04  Robert Dewar  <dewar@gnat.com>
13934         * 3vtrasym.adb: Minor reformatting
13935         Use terminology encoded/decoded name, rather than C++ specific notion
13936         of mangling (this is the terminology used throughout GNAT).
13938         * einfo.h: Regenerated
13940         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
13942         * exp_ch6.adb:
13943         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
13945         * par-prag.adb: Add dummy entry for Thread_Body pragma
13947         * rtsfind.ads:
13948         Add entries for System.Threads entities for thread body processing
13950         * sem_attr.adb:
13951         (Analyze_Pragma, Access attributes): Check these are not applied to a
13952         thread body, since this is not permitted
13954         * sem_prag.adb: Add processing for Thread_Body pragma.
13955         Minor comment fix.
13957         * sem_res.adb:
13958         (Resolve_Call): Check for incorrect attempt to call a thread body
13959          procedure with a direct call.
13961         * snames.ads, snames.adb: Add entry for Thread_Body pragma
13962         Add names associated with thread body expansion
13964         * snames.h: Add entry for Thread_Body pragma
13966         * s-thread.adb: Add entries for thread body processing
13967         These are dummy bodies so far
13969         * s-thread.ads: Add documentation on thread body handling.
13970         Add entries for thread body processing.
13972 2003-11-04  Javier Miranda  <miranda@gnat.com>
13974         * sem_ch10.adb:
13975         (Build_Limited_Views): Return after posting an error in case of limited
13976         with_clause on subprograms, generics, instances or generic renamings
13977         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
13978         on subprograms, generics, instances or generic renamings
13980 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
13982         * raise.c (setup_to_install): Correct mistake in last revision; two
13983         arguments out of order.
13985         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
13986         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
13987         notice, missed in previous change.
13988         Remove trailing blanks and other style errors introduced in previous
13989         change.
13991 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
13993         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
13994         rid of the wrapper for a LJM type, ensuring we don't do that if the
13995         field is addressable.  This avoids potential low level type view
13996         mismatches later on, for instance in a by-reference argument passing
13997         process.
13999 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14001         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
14002         aligned at byte boundary.
14004 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
14006         * decl.c (components_to_record): Do not delete the empty variants from
14007         the end of the union type.
14009 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
14011         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
14012         operation for a derived type, an explicit declaration may use a local
14013         subtype of Boolean.
14015 2003-11-04  Vincent Celier  <celier@gnat.com>
14017         * make.adb (Gnatmake): Allow main sources on the command line with a
14018         library project when it is only for compilation (no binding or
14019         linking).
14021 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14023         * Makefile.in: Remove many duplicate variables.
14025 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
14027         * Make-lang.in (dvi): Move targets to $(docobjdir).
14028         (gnat_ug_vms.dvi): Simplify rule and adjust target.
14029         (gnat_ug_wnt.dvi): Likewise.
14030         (gnat_ug_unx.dvi): Likewise.
14031         (gnat_ug_vxw.dvi): Likewise.
14032         (gnat_rm.dvi): Likewise.
14033         (gnat-style.dvi): Likewise.
14035 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
14037         * gigi.h: Missed commit from update for C90.
14039 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
14041         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
14043 2003-10-31  Andreas Schwab  <schwab@suse.de>
14045         * raise.c (get_action_description_for): Fix typo in last change.
14047 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
14049         PR ada/12761
14050         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
14051         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
14053 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
14055         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
14056         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
14057         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
14058         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
14059         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
14061 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
14063         * 3vtrasym.adb:
14064         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
14065         numbers when symbol name is too long.
14067 2003-10-30  Ed Falis  <falis@gnat.com>
14069         * g-signal.ads, g-signal.adb: New files
14071         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
14073         * Makefile.rtl: Introduce GNAT.Signals
14075 2003-10-30  Robert Dewar  <dewar@gnat.com>
14077         * freeze.adb: Minor reformatting
14079         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
14081         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
14082         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
14083         New handling of Id_Check parameter to improve recognition of keywords
14084         used as identifiers.
14085         Update copyright notice to include 2003
14087 2003-10-29  Robert Dewar  <dewar@gnat.com>
14089         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
14090         sem_ch10.adb: Minor reformatting
14092         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
14093         (Expand_Assign_Record): Test right hand side for bit unaligned as well
14095 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
14097         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
14098         Support for TBK$SYMBOLIZE-based symbolic traceback.
14100 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
14102         * exp_disp.adb:
14103         Revert previous change, that did not work well when pragma No_Run_Time
14104         was used in conjunction with a run-time other than ZFP.
14106 2003-10-29  Vincent Celier  <celier@gnat.com>
14108         * make.adb:
14109         (Gnatmake): When there are no Ada mains in attribute Main, disable the
14110          bind and link steps only is switch -z is not used.
14112 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
14114         * Makefile.generic: Remove duplicated setting of CC.
14116         * Makefile.prolog: Set CC to gcc by default, to override make's
14117         default (cc).
14119         * einfo.h: Regenerated.
14121 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
14123         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
14124         current body, after compiling subunit.
14126         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
14127         when in deleted code, because gigi needs properly ordered freeze
14128         actions to annotate types.
14130         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
14131         prevent the premature freezing of record type that contains
14132         subcomponents with a private type that does not yet have a completion.
14134 2003-10-29  Javier Miranda  <miranda@gnat.com>
14136         * sem_ch12.adb:
14137         (Analyze_Package_Instantiation): Check that instances can not be used in
14138         limited with_clauses.
14140         * sem_ch8.adb:
14141         (Analyze_Package_Renaming): Check that limited withed packages cannot
14142         be renamed. Improve text on error messages related to limited
14143         with_clauses.
14145         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
14147         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
14148         Update copyright notice.
14150         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
14151         (Install_Limited_Context_Clauses): New subprogram that isolates all the
14152         checks required for limited context_clauses and installs the limited
14153         view.
14154         (Install_Limited_Withed_Unit): Complete its documentation.
14155         (Analyze_Context): Check that limited with_clauses are only allowed in
14156         package specs.
14157         (Install_Context): Call Install_Limited_Context_Clauses after the
14158         parents have been installed.
14159         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
14160         package as 'From_With_Type'; this mark indicates that the limited view
14161         is installed. Used to check bad usages of limited with_clauses.
14162         (Build_Limited_Views): Do not add shadow entities to the scope's list
14163         of entities. Do not add real entities to the Non_Limited_Views chain.
14164         Improve error notification.
14165         (Remove_Context_Clauses): Remove context clauses in two phases:
14166         limited views first and regular views later (to maintain the
14167         stack model).
14168         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
14169         its visible entities.
14171 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
14173         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
14174         with any type that Is_Fixed_Point_Type.
14176         * sinfo.ads: Fix documentation for Associated_Node attribute.
14178 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
14180         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
14181         both '-gnatc' and '-gnatt' are specified.
14183         * atree.adb (Initialize): Add initialization for Node_Count (set to
14184         zero).
14186 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14188         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
14189         do not consider as Pure.
14191         Part of implementation of function-at-a-time:
14193         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
14194         (tree_transform): Add new argument to build_component_ref.
14195         (tree_transform, case N_Assignment_Statement): Make and return an
14196         EXPR_STMT.
14197         (tree_transform): If result IS_STMT, set flags and return it.
14198         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
14200         * utils2.c (build_simple_component_ref, build_component_ref): Add new
14201         arg, NO_FOLD_P.
14202         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
14203         (build_allocator): Likewise.
14205         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
14206         Add new arg to build_component_ref.
14207         (maybe_unconstrained_array, unchecked_convert): Likewise.
14209         * ada-tree.def (EXPR_STMT): New code.
14211         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
14213         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
14214         build_component_ref calls.
14216         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
14218         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
14219         (build_component_ref): Add new argument, NO_FOLD_P.
14221 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
14223         * Makefile.generic: Add missing substitution on object_deps handling.
14225         PR ada/5909:
14226         * Make-lang.in (check-ada): Enable ACATS test suite.
14228 2003-10-27  Robert Dewar  <dewar@gnat.com>
14230         * exp_ch3.adb:
14231         (Freeze_Array_Type): We do not need an initialization routine for types
14232         derived from String or Wide_String. They should be treated the same
14233         as String and Wide_String themselves. This caused problems with the
14234         use of Initialize_Scalars.
14236         * exp_ch5.adb:
14237         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
14238         composites. This allows use of component clauses that are not byte
14239         aligned.
14241         * sem_prag.adb:
14242         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
14243         is an attempt to pack an array of atomic objects.
14245         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
14247 2003-10-27  Pascal Obry  <obry@gnat.com>
14249         * g-dirope.adb:
14250         (Basename): Check for drive letters in a pathname only on DOS based OS.
14252 2003-10-27  Vincent Celier  <celier@gnat.com>
14254         * make.adb:
14255         (Gnatmake): When unable to change dir to the object dir, display the
14256         content of the parent dir of the obj dir, to try to understand why this
14257         happens.
14259 2003-10-27  GNAT Script  <nobody@gnat.com>
14261         * Make-lang.in: Makefile automatically updated
14263 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
14265         * sem_ch12.adb:
14266         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
14267         should not be done in Save/Restore_Scope_Stack, because it is performed
14268         locally.
14270         * sem_ch8.adb:
14271         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
14272         whether use clauses should be removed/restored.
14274         * sem_ch8.ads:
14275         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
14276         whether use clauses should be removed/restored.
14278 2003-10-26  Andreas Jaeger  <aj@suse.de>
14280         * Makefile.in: Remove duplicated lines.
14282 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
14284         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
14285         minimize the differences with ACT tree.
14287         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
14288         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
14289         Gnatvsn.Gnat_Static_Version_String to reduce differences between
14290         ACT and FSF trees.
14292 2003-10-24  Pascal Obry  <obry@gnat.com>
14294         * adadecode.c (ostrcpy): New function.
14295         (__gnat_decode): Use ostrcpy of strcpy.
14296         (has_prefix): Set first parameter a const.
14297         (has_suffix): Set first parameter a const.
14298         Update copyright notice. Fix source name in header.
14299         Removes a trailing space.
14300         PR ada/12014.
14302 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
14304         * exp_disp.adb:
14305         Remove the test against being in No_Run_Time_Mode before generating a
14306         call to Register_Tag. It is redundant with the test against the
14307         availability of the function Register_Tag.
14309 2003-10-24  Vincent Celier  <celier@gnat.com>
14311         * g-catiio.adb: (Month_Name): Correct spelling of February
14313         * make.adb: (Mains): New package
14314         (Initialize): Call Mains.Delete
14315         (Gnatmake): Check that each main on the command line is a source of a
14316         project file and, if there are several mains, each of them is a source
14317         of the same project file.
14318         (Gnatmake): When a foreign language is specified in attribute Languages,
14319         no main is specified on the command line and attribute Mains is not
14320         empty, only build the Ada main. If there is no Ada main, just compile
14321         the Ada sources and their closure.
14322         (Gnatmake): If a main is specified on the command line with directory
14323         information, check that the source exists and, if it does, that the path
14324         is the actual path of a source of a project.
14326         * prj-env.adb:
14327         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
14328         Full_Path is True, return the full path instead of the simple file name.
14329         (Project_Of): New function
14331         * prj-env.ads:
14332         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
14333         defaulted to False.
14334         (Project_Of): New function
14336 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
14338         * Makefile.generic:
14339         Ensure objects of main project are always checked and rebuilt if needed.
14340         Set CC to gcc by default.
14341         Prepare new handling of link by creating a global archive (not activated
14342         yet).
14344         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
14345         stringt.h: Update copyright notice. Remove trailing blanks.
14346         Fix source name in header.
14348 2003-10-24  Robert Dewar  <dewar@gnat.com>
14350         * sem_ch12.adb: Minor reformatting
14352         * sem_ch3.adb:
14353         Minor reformatting (including new function return style throughout)
14355         * sem_ch3.ads:
14356         Minor reformatting (including new function return style throughout)
14358 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
14360         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
14361         stringt.h: Update copyright notice. Remove trailing blanks.
14362         Fix source name in header.
14364 2003-10-24  GNAT Script  <nobody@gnat.com>
14366         * Make-lang.in: Makefile automatically updated
14368 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
14370         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
14371         stringt.h: Convert to ISO C90 declarations and definitions.
14373 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
14375         PR ada/11978:
14376         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
14377         External_Tag attribute definition clauses.
14379 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
14381         PR ada/7613:
14382         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
14383         child unit, generate a fully qualified name to avoid spurious errors
14384         when the context contains renamings of different child units with
14385         the same simple name.
14387         * exp_dbug.ads: Add documentation on name qualification for renamings
14388         of child units.
14390 2003-10-23  Robert Dewar  <dewar@gnat.com>
14392         * g-regpat.ads, g-regpat.adb: Minor reformatting
14394 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
14396         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
14398 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14400         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
14401         Machine call.
14403         * urealp.h: (Machine): Update to proper definition.
14405 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
14407         * init.c, adaint.c: Minor reformatting.
14409 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
14411         * adaint.c (w32_epoch_offset): Define static const at file level.
14412         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
14413         rather than t_create, t_access in call to GetFileTime. Use union
14414         to convert between FILETIME and  unsigned long long.
14415         (__gnat_file_time_name): Test for invalid file handle.
14416         (__gnat_set_filetime_name): Support win32 targets using
14417         w32api SetFileTime.
14419 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
14421         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
14423         * ctrl_c.c (__gnat_int_handler): Remove declaration.
14425         * decl.c (creat_concat_name):  Const-ify prefix.
14427         * adaint.c: Include ctype.h if __MINGW32__.
14428         (__gnat_readlink): Mark arguments as possibly unused.
14429         (__gnat_symlink): Likewise.
14430         (__gnat_is_symbolic_link): Likewise.
14431         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
14432         declaration
14433         (__gnat_file_time_name): Don't declare struct stat statbuf when
14434         not needed.
14435         (__gnat_is_absolute_path): Add parenthesis around condition of
14436         'if' statement to avoid warning.
14437         (__gnat_plist_init): Specify void as parameter.
14438         (plist_enter): Likewise.
14439         (plist_leave): Likewise.
14440         (remove_handle): Make static. Initialize prev.
14442 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
14444         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
14445         * cstreams.c (__gnat_full_name): Minor improvements and clean up
14446         of previous change.
14448 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14450         * tracebak.c (MAX): Avoid redefinition warning.
14452         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
14453         Change msg to const char *.
14454         (__gnat_install_handler): Remove ss, unused.
14455         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
14456         to const char *.
14457         * cstreams.c (__gnat_full_name): Declare p only when used.
14458         (__gnat_full_name) [sgi] Return buffer.
14460 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
14462         * mingw32.h: New file.
14463         * gnat_wrapper.adb: New file.
14465 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
14467         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
14468         string match a pre compiled regular expression (the corresponding
14469         version of the function working on a raw regular expression)
14470         Fix typos in various comments
14471         Update copyright notice in spec
14473 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
14475         * exp_ch3.adb:
14476         (Component_Needs_Simple_Initialization): Return False when the type is a
14477         packed bit array. Revise spec comments to document this case.
14479         * exp_prag.adb:
14480         (Expand_Pragma_Import): Set any expression on the imported object to
14481         empty to avoid initializing imported objects (in particular this
14482         covers the case of zero-initialization of bit arrays).
14483         Update copyright notice.
14485 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
14487         * sem_ch12.adb:
14488         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
14489         a subunit is missing.
14490         (Instantiate_Subprogram_Body): If body of function is missing, set type
14491         of return expression explicitly in dummy body, to prevent cascaded
14492         errors when a subunit is missing.
14493         Fixes PR 5677.
14495         * sem_ch3.adb:
14496         (Access_Subprogram_Declaration): Verify that return type is valid.
14497         Fixes PR 8693.
14499         * sem_elab.adb:
14500         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
14501         generic.
14502         Fixes PR 12318.
14504         * sem_util.adb:
14505         (Corresponding_Discriminant): If the scope of the discriminant is a
14506         private type without discriminant, use its full view.
14507         Fixes PR 8247.
14509 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
14511         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
14512         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
14513         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
14514         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
14515         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
14516         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
14517         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
14518         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
14519         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
14520         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
14521         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
14522         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
14523         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
14524         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
14525         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
14526         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
14527         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
14528         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
14529         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
14530         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
14531         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
14532         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
14533         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
14534         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
14535         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
14536         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
14537         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
14538         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
14539         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
14540         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
14541         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
14542         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
14543         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
14544         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
14545         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
14546         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
14547         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
14548         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
14549         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
14550         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
14551         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
14552         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
14553         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
14554         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
14555         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
14556         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
14557         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
14558         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
14559         vms_conv.ads, vms_conv.adb, vms_data.ads,
14560         vxaddr2line.adb: Files added. Merge with ACT tree.
14562         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
14563         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
14564         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
14565         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
14566         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
14567         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
14568         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
14569         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
14570         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
14571         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
14573         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
14574         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
14575         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
14576         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
14577         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
14578         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
14579         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
14580         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
14581         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
14582         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
14583         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
14584         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
14585         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
14586         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
14587         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
14588         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
14589         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
14590         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
14591         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
14592         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
14593         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
14594         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
14595         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
14596         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
14597         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
14598         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
14599         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
14600         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
14601         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
14602         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
14603         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
14604         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
14605         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
14606         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
14607         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
14608         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
14609         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
14610         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
14611         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
14612         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
14613         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
14614         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
14615         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
14616         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
14617         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
14618         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
14619         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
14620         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
14621         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
14622         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
14623         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
14624         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
14625         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
14626         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
14627         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
14628         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
14629         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
14630         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
14631         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
14632         checks.adb, checks.ads, cio.c, comperr.adb,
14633         comperr.ads, csets.adb, cstand.adb, cstreams.c,
14634         debug_a.adb, debug_a.ads, debug.adb, decl.c,
14635         einfo.adb, einfo.ads, errout.adb, errout.ads,
14636         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
14637         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
14638         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
14639         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
14640         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
14641         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
14642         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
14643         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
14644         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
14645         fe.h, fmap.adb, fmap.ads, fname.adb,
14646         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
14647         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
14648         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
14649         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
14650         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
14651         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
14652         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
14653         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
14654         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
14655         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
14656         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
14657         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
14658         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
14659         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
14660         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
14661         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
14662         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
14663         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
14664         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
14665         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
14666         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
14667         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
14668         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
14669         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
14670         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
14671         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
14672         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
14673         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
14674         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
14675         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
14676         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
14677         layout.adb, lib.adb, lib.ads, lib-list.adb,
14678         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
14679         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
14680         link.c, live.adb, make.adb, make.ads,
14681         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
14682         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
14683         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
14684         misc.c, mkdir.c, mlib.adb, mlib.ads,
14685         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
14686         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
14687         namet.adb, namet.ads, namet.h, nlists.ads,
14688         nlists.h, nmake.adt, opt.adb, opt.ads,
14689         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
14690         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
14691         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
14692         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
14693         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
14694         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
14695         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
14696         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
14697         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
14698         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
14699         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
14700         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
14701         prj-util.adb, prj-util.ads, raise.c, raise.h,
14702         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
14703         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
14704         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
14705         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
14706         scans.ads, scn.adb, scn.ads, s-crc32.adb,
14707         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
14708         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
14709         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
14710         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
14711         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
14712         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
14713         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
14714         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
14715         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
14716         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
14717         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
14718         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
14719         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
14720         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
14721         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
14722         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
14723         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
14724         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
14725         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
14726         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
14727         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
14728         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
14729         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
14730         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
14731         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
14732         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
14733         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
14734         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
14735         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
14736         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
14737         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
14738         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
14739         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
14740         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
14741         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
14742         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
14743         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
14744         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
14745         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
14746         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
14747         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
14748         stringt.adb, stringt.ads, stringt.h, style.ads,
14749         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
14750         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
14751         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
14752         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
14753         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
14754         table.adb, table.ads, targparm.adb, targparm.ads,
14755         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
14756         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
14757         ttypes.ads, types.ads, types.h, uintp.adb,
14758         uintp.ads, uintp.h, uname.adb, urealp.adb,
14759         urealp.ads, urealp.h, usage.adb, utils2.c,
14760         utils.c, validsw.adb, validsw.ads, widechar.adb,
14761         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
14762         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
14763         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
14764         gnatvsn.ads: Merge with ACT tree.
14766         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
14768 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
14770         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
14771         (gnat_ug_vmx.info): Likewise.
14772         (gnat_ug_vxw.info): Likewise.
14773         (gnat_ug_wnt.info): Likewise.
14774         (gnat_rm.info): Likewise.
14775         (gnat-style.info): Likewise.
14777         * Make-lang.in (ada.install-info): Remove target.
14778         (info): New target.
14779         (install-info): Likewise.
14780         (gnat_ug_unx.info): Simplify rule.
14781         (gnat_ug_vmx.info): Likewise.
14782         (gnat_ug_vxw.info): Likewise.
14783         (gnat_ug_wnt.info): Likewise.
14784         (gnat_rm.info): Likewise.
14785         (gnat-style.info): Likewise.
14787 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
14789         * Make-lang.in: Replace uses of $(target_alias) with
14790         $(target_noncanonical).
14791         * ada/Makefile.in: Remove unused mention of $(target_alias).
14793 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
14795         * Make-lang.in (ada.info): Replace with ...
14796         (info): ... this.
14797         (ada.dvi): Replace with ...
14798         (dvi): ... this.
14800 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
14802         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
14803         initialize dconstp5 and dconstmp5.
14805 2003-09-28  Richard Henderson  <rth@redhat.com>
14807         * trans.c (tree_transform): Update call to expand_asm_operands.
14809 2003-09-21  Richard Henderson  <rth@redhat.com>
14811         * trans.c, utils.c: Revert.
14813 2003-09-21  Richard Henderson  <rth@redhat.com>
14815         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
14816         change to const.
14818 2003-09-04  Michael Matz  <matz@suse.de>
14820         * misc.c: Include "target.h".
14821         * Make-lang.in (misc.o): Add dependency on target.h.
14823 2003-09-03  DJ Delorie  <dj@redhat.com>
14825         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
14826         hook.
14828 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
14830         * Makefile.in: Update substitutions to match changes to
14831         configure.  Use include directives instead of @-insertions
14832         to read in host and target fragments.  Add a rule to
14833         regenerate ada/Makefile.
14835 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
14837         * lang-options.h: Remove.
14838         * lang.opt: Add help text.
14840 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
14842         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
14843         calls.
14845 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
14847         * misc.c (gnat_handle_option): Don't handle filenames.
14849 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
14851         * Make-lang.in: Replace PWD with PWD_COMMAND.
14852         * Makefile.adalib: Likewise.
14853         * Makefile.in: Likewise.
14855 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
14857         * misc.c (gnat_argv): Revert last change.
14858         (gnat_handle_option, gnat_init_options): Copy arguments.
14860 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
14862         * misc.c (gnat_argv): Make const.
14864 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
14866         * misc.c (save_argc, save_argv): Keep non-static!
14868 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
14870         * misc.c (save_argc, save_argv): Make static.
14871         (gnat_init_options): New prototype.
14872         (gnat_init_options): Update.
14874 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
14876         * gnat_ug.texi: Remove unlikely characters from @vars.
14877         * gnat_ug_vms.texi: Regenerate.
14879 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
14881         * misc.c (record_code_position): Adjust emit_note call.
14883 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
14885         * misc.c (gnat_handle_option): Don't check for missing arguments.
14887 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
14889         * utils.c (end_subprog_body): Adjust expand_function_end call.
14891 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
14893         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
14894         Bind_Main_Program.
14896 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
14898         * lang.opt: Declare Ada.
14899         * misc.c (gnat_init_options): Update.
14901 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
14903         * utils.c (begin_subprog_body): Adjust init_function_start call.
14905 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
14907         * Make-lang.in: Update to use options.c and options.h.
14908         * misc.c: Include options.h not aoptions.h.
14909         (gnat_handle_option): Abort on unrecognized switch.
14910         (gnat_init_options): Request Ada switches.
14912 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
14914         * lang.opt: Add -Wall.
14915         * misc.c (gnat_handle_option): Handle it.
14917 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
14919         * misc.c (gnat_handle_option): Fix warnings.
14921 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
14923         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
14925 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
14927         * Make-lang.in: Update to handle command-line options.
14928         * lang.opt: New file.
14929         * misc.c: Include aoptions.h.
14930         (cl_options_count, cl_options): Remove.
14931         (gnat_handle_option): New.
14932         (gnat_decode_option): Remove.
14933         (LANG_HOOKS_DECODE_OPTION): Remove.
14934         (LANG_HOOKS_HANDLE_OPTION): Override.
14936 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
14938         * init.c, misc.c, trans.c, utils.c: Remove dead code.
14940 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
14942         * Makefile.in: Replace "host_canonical" with "host" for autoconf
14943         substitution.
14945 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
14947         * Make-lang.in: Update.
14948         * misc.c: Include opts.h. Define cl_options_count and cl_options.
14950 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
14952         * misc.c (gnat_init_options): Update.
14954 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
14956         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
14957         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
14958         __attribute__ ((__unused__)).
14960 2003-06-05  Jan Hubicka  <jh@suse.cz>
14962         * Make-lang.in:  Add support for stageprofile and stagefeedback
14964 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
14966         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
14967         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
14969 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
14971         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
14972         Remove non-VMS directive.
14973         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
14974         alternatives.
14975         (Examples of gnatls Usage): Remove VMS alternative.
14977 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
14979         PR ada/9953:
14980         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
14981         and turn ZCX_By_Default back to False since the underlying support
14982         is not quite there yet.
14984 2003-06-01  Andreas Jaeger  <aj@suse.de>
14986         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
14987         and ROUND_TYPE_SIZE_UNIT.
14989 2003-05-22   Geert Bosch <bosch@gnat.com>
14991         * gnat_rm.texi : Remove reference to Ada Core Technologies.
14993 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
14995         * trans.c (tree_transform): Use location_t and input_location
14996         directly.
14997         (build_unit_elab): Likewise.
14998         * utils.c (create_label_decl): Likewise.
15000 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
15002         * trans.c (tree_transform, build_unit_elab,
15003         set_lineno): Rename lineno to input_line.
15004         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
15005         end_subprog_body): Likewise.
15006         * utils2.c (build_call_raise): Likewise.
15008 2003-05-01  Laurent Guerby <guerby@acm.org>
15010         PR ada/10546
15011         * 5iosinte.ads: Increase pthread_cond_t size to match recent
15012         LinuxThread and NPTL version, merge from ACT.
15014 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
15016         * utils.c (convert): No need to clear TREE_CST_RTL.
15018 2003-04-23   Geert Bosch <bosch@gnat.com>
15020         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
15021         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
15022         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
15023         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
15024         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
15025         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
15026         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
15027         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
15028         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
15029         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
15030         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
15031         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
15032         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
15033         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
15034         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
15035         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
15036         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
15037         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
15038         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
15039         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
15040         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
15041         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
15042         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
15043         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
15044         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
15045         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
15046         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
15047         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
15048         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
15049         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
15050         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
15051         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
15052         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
15053         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
15054         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
15055         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
15056         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
15057         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
15058         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
15059         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
15060         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
15061         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
15062         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
15063         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
15064         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
15065         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
15066         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
15067         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
15068         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
15069         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
15070         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15071         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
15072         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
15073         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
15074         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
15075         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
15076         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
15077         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
15078         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
15079         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
15080         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
15081         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
15082         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
15083         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
15084         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
15085         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
15086         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
15087         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
15088         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
15089         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
15090         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
15091         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
15092         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
15093         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
15094         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
15095         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
15096         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
15097         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
15098         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
15099         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
15100         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
15101         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
15102         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
15103         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
15104         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
15105         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
15106         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
15107         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
15108         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
15109         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
15110         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
15111         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
15112         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
15113         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
15114         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
15115         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
15116         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
15117         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
15118         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
15119         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
15120         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
15121         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
15122         ali.adb, ali.ads, alloc.ads, argv.c,
15123         atree.adb, atree.ads, atree.h, aux-io.c,
15124         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
15125         binde.adb, binde.ads, binderr.adb, binderr.ads,
15126         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
15127         butil.adb, butil.ads, cal.c, calendar.ads,
15128         casing.adb, casing.ads, ceinfo.adb, checks.adb,
15129         checks.ads, cio.c, comperr.adb, comperr.ads,
15130         config-lang.in, csets.adb, csets.ads, csinfo.adb,
15131         cstand.adb, cstand.ads, cuintp.c, debug.adb,
15132         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
15133         dec-io.ads, dec.ads, deftarg.c, directio.ads,
15134         einfo.adb, einfo.ads, elists.adb, elists.ads,
15135         elists.h, errno.c, errout.adb, errout.ads,
15136         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
15137         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
15138         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
15139         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
15140         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
15141         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
15142         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
15143         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
15144         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
15145         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
15146         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
15147         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
15148         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
15149         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
15150         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
15151         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
15152         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
15153         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
15154         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
15155         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
15156         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
15157         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
15158         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
15159         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
15160         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
15161         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
15162         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
15163         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
15164         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
15165         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
15166         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
15167         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
15168         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
15169         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
15170         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
15171         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
15172         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
15173         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
15174         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
15175         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
15176         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
15177         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
15178         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
15179         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
15180         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
15181         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
15182         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
15183         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
15184         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
15185         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
15186         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
15187         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
15188         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
15189         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
15190         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
15191         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
15192         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
15193         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
15194         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
15195         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
15196         lib.adb, lib.ads, live.adb, live.ads,
15197         machcode.ads, make.adb, make.ads, makeusg.adb,
15198         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
15199         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
15200         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
15201         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
15202         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
15203         mlib.ads, namet.adb, namet.ads, nlists.adb,
15204         nlists.ads, opt.adb, opt.ads, osint-b.adb,
15205         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
15206         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
15207         osint.ads, output.adb, output.ads, par-ch10.adb,
15208         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
15209         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
15210         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
15211         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
15212         par-tchk.adb, par-util.adb, par.adb, par.ads,
15213         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
15214         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
15215         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
15216         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
15217         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
15218         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
15219         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
15220         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
15221         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
15222         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
15223         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
15224         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
15225         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
15226         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
15227         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
15228         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
15229         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
15230         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
15231         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
15232         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
15233         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
15234         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
15235         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
15236         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
15237         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
15238         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
15239         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
15240         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
15241         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
15242         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
15243         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
15244         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
15245         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
15246         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
15247         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
15248         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
15249         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
15250         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
15251         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
15252         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
15253         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
15254         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
15255         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
15256         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
15257         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
15258         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
15259         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
15260         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
15261         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
15262         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
15263         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
15264         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
15265         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
15266         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
15267         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
15268         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
15269         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
15270         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
15271         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
15272         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
15273         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
15274         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
15275         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
15276         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
15277         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
15278         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
15279         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
15280         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
15281         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
15282         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
15283         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
15284         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
15285         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
15286         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
15287         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
15288         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
15289         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
15290         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
15291         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
15292         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
15293         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
15294         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
15295         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
15296         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
15297         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
15298         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
15299         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
15300         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
15301         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
15302         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
15303         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
15304         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
15305         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
15306         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
15307         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
15308         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
15309         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
15310         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
15311         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
15312         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
15313         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
15314         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
15315         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
15316         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
15317         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
15318         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
15319         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
15320         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
15321         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
15322         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
15323         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
15324         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
15325         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
15326         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
15327         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
15328         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
15329         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
15330         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
15331         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
15332         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
15333         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
15334         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
15335         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
15336         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
15337         snames.ads, sprint.adb, sprint.ads, stand.adb,
15338         stand.ads, stringt.adb, stringt.ads, style.adb,
15339         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
15340         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
15341         switch-m.ads, switch.adb, switch.ads, system.ads,
15342         table.adb, table.ads, targparm.adb, targparm.ads,
15343         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
15344         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
15345         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
15346         ttypef.ads, ttypes.ads, types.adb, types.ads,
15347         uintp.adb, uintp.ads, uname.adb, uname.ads,
15348         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
15349         usage.adb, usage.ads, validsw.adb, validsw.ads,
15350         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
15351         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
15352         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
15353         formatting and other trivial changes from ACT.
15355 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
15357         * gigi.h, utils2.c (build_constructor):
15358         Rename gnat_build_constructor. Use build_constructor.
15359         * decl.c (gnat_to_gnu_entity)
15360         * trans.c (tree_transform, pos_to_constructor, extract_values)
15361         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
15362         (unchecked_convert)
15363         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
15364         (fill_vms_descriptor):
15365         Update to match.
15367 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
15369         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
15370         * misc.c (gnat_tree_size): New function.
15371         (LANG_HOOKS_TREE_SIZE): Override.
15373 2003-04-03  Jason Merrill  <jason@redhat.com>
15375         * misc.c (gnat_adjust_rli): #if 0.
15377 2003-03-31   Geert Bosch <bosch@gnat.com>
15379         PR ada/10020
15380         * link.c : Fix misspelled "const" keyword
15382 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
15384         PR c++/7086
15385         * utils2.c: Adjust calls to put_var_into_stack.
15387 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15389         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
15391 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
15393         * misc.c (gnat_init): Update for new prototype.
15395 2003-03-05  Olivier Hainque  <hainque@gnat.com>
15397         ada/9961
15398         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
15399         warning, and fix return type for the IN_RTS && !SJLJ case.
15401 2003-03-04  Tom Tromey  <tromey@redhat.com>
15403         * Make-lang.in (ada.tags): New target.
15405 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
15407         ada/9911
15408         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
15409         wrapper, which name remains constant whatever underlying GCC
15410         scheme.
15412         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
15413         the stable interface needed for a-except.
15415 2003-03-02  Andreas Jaeger  <aj@suse.de>
15417         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
15418         gnat_ug_wnt.texi: Regenerate.
15420 2003-03-02  Laurent Guerby <guerby@acm.org>
15422         * Makefile.in (install-gnatlib): Match previous change there
15423         so it works.
15425 2003-02-28  Andreas Schwab  <schwab@suse.de>
15427         * Make-lang.in (install-gnatlib): Change to ada directory before
15428         running make instead of using ada/Makefile directly.
15430 2003-02-18  Ben Elliston  <bje@redhat.com>
15432         Part of fix for PR ada/9406
15433         * gnat_ug.texi (Binder output file): Grammar fix.
15435 2003-02-18  Ben Elliston  <bje@redhat.com>
15437         PR other/7350
15438         * 5qtaprop.adb (Sleep): Fix typo in comment.
15440 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
15442         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
15443         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
15444         gnat_ug_wnt.texi: Regenerate.
15446 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
15448         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
15449         be created if necessary.
15450         (ada.install-common): Let $(DESTDIR)$(bindir) be created
15451         if necessary.  Remove erroneous and redundant gnatchop
15452         installation commands.  Test for gnatdll before attempting
15453         to install it.
15454         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
15455         and gnatdll from all plausible locations.
15457 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
15459         * utils2.c (build_unary_op): Don't check flag_volatile.
15460         * gnat_ug.texi: Remove -fvolatile from example.
15461         * gnat_ug_vxw.texi: Likewise.
15463 2003-01-29  Laurent Guerby <guerby@acm.org>
15465         PR ada/8344
15466         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
15467         * Makefile.in: match previous change.
15468         * Make-lang.in: match previous change.
15470 2003-01-29      Joel Sherrill <joel@OARcorp.com>
15472         * 5rosinte.ads: Add SIGXCPU.
15473         * 5rtpopsp.adb: New file.
15474         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
15475         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
15476         specific file 5rtpopsp.adb.
15477         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
15478         is likely needed for all newlib targets.
15479         * init.c: Add RTEMS specific version of __gnat_initialize().
15481 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15483         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
15485 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15487         * init.c (__gnat_error_handler): Make msg const.
15489         * gmem.c (convert_addresses): Move declaration ...
15490         * adaint.h: ... here.
15491         * adaint.c (convert_addresses): Adapt addrs type to match
15492         prototype.
15494         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
15496 2003-01-24  Andreas Schwab  <schwab@suse.de>
15498         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
15499         size_t to avoid warning.
15501 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
15503         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
15505 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
15507         * gnat_rm.texi: Remove RCS version number.
15509         * ada-tree.h (union lang_tree_node): Add chain_next option.
15511 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
15513         * Make-lang.in (ada.install-info, ada.install-common,
15514         ada.uninstall): Prepend $(DESTDIR) to the destination
15515         directory in all (un)installation commands.
15516         * Makefile.in (install-gnatlib, install-rts): Ditto.
15518 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
15520         * gnat_rm.texi, gnat_ug.texi: Use @copying.
15521         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
15522         gnat_ug_wnt.texi: Regenerate.
15524 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
15526         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
15527         only.
15528         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
15529         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
15530         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
15531         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
15532         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
15533         $(srcdir)/doc/include/gcc-common.texi.
15535 2002-12-15   Geert Bosch <bosch@gnat.com>
15537         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
15539 2002-12-14   Geert Bosch <bosch@gnat.com>
15541         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
15542         case of a body created for a Renaming_As_Body, on which
15543         conformance checks are not performed. Fixes PR ada/5690.
15545 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
15547         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
15548         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
15549         not already included.
15550         * Make-lang.in: Update dependencies.
15552 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
15553         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
15554         solution to buffer overflow bug on GNU/Linux.
15556 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
15557         Closes PR ada/5856 and PR ada/6919 !
15558         * bindgen.adb: Remove all references to Public_Version.
15559         * comperr.adb: Remove all references to Public_Version and
15560         GNATPRO_Version; correct bug reporting instructions.
15561         * comperr.ads: Change to match bug box.
15562         * gnatvsn.ads: Remove all references to Public version and
15563         GNATPRO version.
15565 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
15566         PR ada/6919
15567         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
15568         GNU/Linux.
15570         PR ada/6558
15571         * config-lang.in: Remove diff_excludes.
15573 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
15574         PR ada/8358
15575         * trans.c (gnu_pending_elaboration_lists): New GC root.
15576         (build_unit_elab): Use..
15578 2002-10-30   Geert Bosch <bosch@gnat.com>
15579         PR ada/6558
15580         * misc.c : Include optabs.h
15582         * Make-lang.in (misc.o): Add dependency on optabs.h
15584 2002-10-29   Geert Bosch <bosch@gnat.com>
15585         PR ada/6558
15586         * Make-lang.in (gnatbind): Depend on CONFIG_H
15588 2002-10-29  Geert bosch  <bosch@gnat.com>
15589         PR ada/6558
15590         * misc.c: Unrevert misc.c (1.13)
15592 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
15594         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
15595         maintainership comments.
15597 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
15598         PR ada/5904
15599         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
15600         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
15601         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
15602         7staprop.adb: Correct statements in comments about
15603         maintainership of GNAT.
15605         PR ada/5904
15606         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
15607         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
15608         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
15609         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
15610         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
15611         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
15612         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
15613         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
15614         comments about maintainership of GNAT.
15616         PR ada/6919 (forward port of patch for PR ada/5904)
15617         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
15618         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
15619         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
15620         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
15621         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
15622         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
15623         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
15624         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
15625         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
15626         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
15627         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
15628         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
15629         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
15630         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
15631         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
15632         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
15633         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
15634         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
15635         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
15636         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
15637         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
15638         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
15639         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
15640         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
15641         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
15642         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
15643         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
15644         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
15645         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
15646         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
15647         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
15648         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
15649         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
15650         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
15651         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
15652         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
15653         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
15654         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
15655         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
15656         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
15657         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
15658         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
15659         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
15660         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
15661         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
15662         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
15663         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
15664         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
15665         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
15666         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
15667         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
15668         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
15669         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
15670         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
15671         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
15672         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
15673         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
15674         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
15675         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
15676         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
15677         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
15678         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
15679         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
15680         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
15681         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
15682         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
15683         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
15684         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
15685         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
15686         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
15687         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
15688         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
15689         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
15690         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
15691         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
15692         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
15693         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
15694         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
15695         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
15696         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
15697         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
15698         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
15699         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
15700         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
15701         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
15702         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
15703         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
15704         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
15705         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
15706         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
15707         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
15708         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
15709         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
15710         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
15711         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
15712         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
15713         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
15714         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
15715         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
15716         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
15717         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
15718         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
15719         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
15720         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
15721         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
15722         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
15723         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
15724         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
15725         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
15726         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
15727         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
15728         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
15729         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
15730         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
15731         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
15732         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
15733         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
15734         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
15735         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
15736         par-endh.adb par-labl.adb par-load.adb par-prag.adb
15737         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
15738         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
15739         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
15740         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
15741         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
15742         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
15743         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
15744         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
15745         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
15746         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
15747         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
15748         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
15749         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
15750         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
15751         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
15752         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
15753         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
15754         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
15755         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
15756         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
15757         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
15758         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
15759         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
15760         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
15761         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
15762         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
15763         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
15764         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
15765         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
15766         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
15767         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
15768         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
15769         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
15770         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
15771         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
15772         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
15773         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
15774         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
15775         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
15776         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
15777         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
15778         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
15779         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
15780         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
15781         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
15782         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
15783         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
15784         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
15785         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
15786         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
15787         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
15788         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
15789         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
15790         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
15791         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
15792         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
15793         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
15794         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
15795         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
15796         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
15797         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
15798         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
15799         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
15800         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
15801         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
15802         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
15803         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
15804         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
15805         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
15806         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
15807         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
15808         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
15809         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
15810         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
15811         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
15812         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
15813         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
15814         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
15815         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
15816         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
15817         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
15818         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
15819         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
15820         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
15821         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
15822         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
15823         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
15824         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
15825         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
15826         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
15827         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
15828         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
15829         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
15830         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
15831         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
15832         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
15833         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
15834         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
15835         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
15836         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
15837         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
15838         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
15839         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
15840         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
15841         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
15842         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
15843         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
15844         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
15845         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
15846         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
15847         stringt.ads stringt.h style.adb style.ads stylesw.adb
15848         stylesw.ads switch.adb switch.ads sysdep.c system.ads
15849         table.adb table.ads targparm.adb targparm.ads targtyps.c
15850         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
15851         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
15852         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
15853         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
15854         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
15855         usage.ads utils.c utils2.c validsw.adb validsw.ads
15856         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
15857         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
15858         xtreeprs.adb: Correct statements in comments about maintainership
15859         of GNAT.
15861 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
15863         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
15864         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
15865         * gnatvsn.ads: Gnat_Version_String is now a function.
15866         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
15867         copy the C version_string into a String and return it.
15868         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
15869         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
15870         Remove pragma Ident (Gnat_Version_String).  If this was the
15871         sole use of package Gnatvsn, remove the with statement too.
15872         * gnat1drv.adb: Tweak -gnatv output.
15874 2002-09-17  Richard Henderson  <rth@redhat.com>
15876         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
15877         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
15878         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
15879         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
15880         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
15881         and real_2expN instead of a loop.
15882         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
15883         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
15885 2002-08-25  Andre Leis <a.leis@gmx.net>
15886             David Billinghurst (David.Billinghurst@riotinto.com>
15888         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
15890 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15892         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
15893         Remove $(CONFIG_H) dependency.
15895 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
15897         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
15899 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15901         * adadecode.c (ada_demangle): Use xstrdup in lieu of
15902         xmalloc/strcpy.
15903         * misc.c (gnat_decode_option): Likewise.
15905 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
15907         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
15908         function approach did not work well because of a side effect (the
15909         function call could reallocate the table which was being indexed
15910         using its result). Fixes ada/4851. [RESURRECTED]
15912 2002-07-01  Roger Sayle  <roger@eyesopen.com>
15914         * ada/utils.c (builtin_function): Accept an additional parameter.
15916 2002-06-28  Andreas Jaeger  <aj@suse.de>
15918         PR ada/7144
15919         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
15920         <adi@thur.de>.
15922 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15924         * Makefile.in (SHELL): Set to @SHELL@.
15926 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15928         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
15929         array size calculation.
15931 2002-06-04  Andreas Jaeger  <aj@suse.de>
15933         * Make-lang.in (gnatbind): Readd rule that has been lost in last
15934         patch.
15936 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
15938         Merge from pch-branch:
15940         * config-lang.in (gtfiles): Add ada-tree.h.
15941         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
15942         (SET_TYPE_MODULUS): New.
15943         (SET_TYPE_INDEX): New.
15944         (SET_TYPE_DIGITS_VALUE): New.
15945         (SET_TYPE_RM_SIZE): New.
15946         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
15947         (SET_TYPE_ADA_SIZE): New.
15948         (SET_TYPE_ACTUAL_BOUNDS): New.
15949         (SET_DECL_CONST_CORRESPONDING_VAR): New.
15950         (SET_DECL_ORIGINAL_FIELD): New.
15951         (TREE_LOOP_ID): Correct typo.
15952         * decl.c: Use new macros.
15953         * utils.c: Include debug.h, use new macros.
15954         * utils2.c: Use new macros.
15956         * ada-tree.h: Update all macros for new tree description.
15957         (struct tree_loop_id): New.
15958         (union lang_tree_node): New.
15959         (struct lang_decl): New.
15960         (struct lang_type): New.
15961         * misc.c (gnat_mark_tree): Delete.
15962         (LANG_HOOKS_MARK_TREE): Delete.
15963         * trans.c (tree_transform): No longer any need to cast
15964         for TREE_LOOP_ID.
15966         * utils.c (struct language_function): New dummy structure.
15968         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
15969         (misc.o): Likewise.
15970         (utils.o): Likewise; also gtype-ada.h.
15971         * Make-lang.in (gnat1): Add dependency on s-gtype.
15972         (gnatbind): Add dependency on $(CONFIG_H).
15973         * utils.c: Correct last #include.
15974         (stuct e_stack): Remove unnecessary 'static'.
15975         (mark_e_stack): Remove unused prototype.
15977         * scn-nlit.adb: Remove whitespace after version number to
15978         keep lines under 80 chars.
15979         * snames.adb: Likewise.
15980         * treepr.ads: Likewise.
15982         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
15983         (misc.o): Likewise.
15984         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
15985         * config-lang.in (gtfiles): New.
15986         * decl.c: Use gengtype for roots.
15987         * gigi.h: Use gengtype for roots.
15988         * trans.c: Use gengtype for roots.
15989         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
15991 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
15993         * misc.c (gnat_init): Adjust setting of internal_error_function.
15995 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
15997         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
15998         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
15999         gnat_ug_wnt.texi: Regenerate.
16001 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
16003         * 5ntaprop.adb (with System.OS_Primitives): Remove.
16005         * cstreams.c (max_path_len): Move from here ...
16006         * adaint.c (__gnat_max_path_len): ... to here.
16007         * adaint.c (__gnat_max_path_len): Declare.
16008         * g-dirope.adb (Max_Path): Adjust.
16009         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
16010         * i-cstrea.ads (max_path_len): Adjust.
16011         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
16012         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
16014         * Makefile.in, Make-lang.in: Documentation is now built in
16015         Make-lang.in.  Store Info and generated Texinfo files in the
16016         source directory.
16017         * gnat_ug.texi: Remove CVS keywords, correct version number.
16018         Set file name correctly.
16020         * gnat_ug_*.texi: Add.
16021         * .cvsignore: Ignore generated Texinfo files.
16023 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
16025         * ada.h: Add MI guard macro.
16026         (SUBTYPE): Define constants with an anonymous enum, not static
16027         const variables.
16028         (IN): Cast constants to appropriate type before use.
16030 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
16032         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
16033         (experimental)".
16035 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16037         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
16038         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
16039         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
16040         (ALL_ADA_CFLAGS): Likewise.
16041         (ADA_INCLUDES): Likewise.
16042         Adapt for new working dir.
16043         (GNATBIND): Use Makefile.in version.
16044         (.SUFFIXES): Copy from Makefile.in.
16045         (ada-warn): Define.
16046         (.adb.o, .ads.o): Copy from Makefile.in.
16047         Added $(OUTPUT_OPTION).
16048         (GNAT1_C_OBJS): Moved from Makefile.in.
16049         Prefix with ada subdir.
16050         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
16051         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
16052         Adapt for new working dir.
16053         (EXTRA_GNATBIND_OBJS): Likewise.
16054         (ADA_BACKEND): Moved from Makefile.in.
16055         Renamed to avoid conflict with global BACKEND.
16056         Use that one.
16057         (TARGET_ADA_SRCS): Moved from Makefile.in.
16058         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
16059         Use ADA_BACKEND.
16060         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
16061         (ada_extra_files): Moved from Makefile.in.
16062         Prefix with ada subdir.
16063         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
16064         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
16065         (ada/nmake.ads): Likewise.
16066         (update-sources): Moved from Makefile.in.
16067         Prefix with ada subdir.
16068         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
16069         (ADA_TREE_H): Likewise.
16070         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
16071         (ada/memtrack.o): Likewise.
16072         (ada/adadecode.o): Likewise.
16073         Update dependencies.
16074         (ada/adaint.o): New.
16075         (ada/argv.o): Moved from Makefile.in.
16076         Prefix with ada subdir.
16077         Update dependencies.
16078         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
16079         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
16080         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
16081         Prefix with ada subdir.
16082         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
16083         (GNAT DEPENDENCIES): Regenerate.
16084         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
16085         toplevel Makefile.in.
16086         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
16087         (TARGET_ADA_SRCS): Removed.
16088         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
16089         (GNATBIND_OBJS): Likewise.
16090         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
16091         (BACKEND): Removed.
16092         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
16093         (TREE_H): Likewise.
16094         (ada_extra_files): Likewise.
16095         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
16096         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
16097         (update-sources): Likewise.
16098         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
16099         (ADA_TREE_H): Likewise.
16100         (adadecoce.o): Likewise.
16101         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
16102         (GNAT DEPENDENCIES): Likewise.
16104 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16106         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
16107         * Makefile.in: Likewise.
16109 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16111         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
16112         Restore $(CONFIG_H) and prefix.o dependencies.
16113         (ada.stage[1-4]): Depend on stage?-start.
16115         * Makefile.in (b_gnatb.c): Depend on interfac.o.
16117 2002-05-02  Jim Wilson  <wilson@redhat.com>
16119         * utils.c (finish_record_type): Change record_size to record_type.
16121 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16123         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
16124         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
16125         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
16127 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
16129         * misc.c (gnat_parse_file): Update.
16131 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
16133         * misc.c (gnat_init): Don't set lang_attribute_common.
16135 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
16137         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
16139 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
16141         * gnat_ug.texi: New file.
16143         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
16144         instead of gfdl.texi
16146         * xgnatug.adb, ug_words: New files.
16148         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
16149         gnat_rm and gnat-style manuals.
16151 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
16153         * gigi.h (incomplete_type_error): Remove.
16154         * utils.c (incomplete_type_error): Remove.
16156 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
16158         * trans.c (tree_transform): Add has_scope argument to
16159         expand_start_stmt_expr.
16161 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
16163         * gigi.h (truthvalue_conversion): Rename.
16164         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
16165         * trans.c (tree_transform): Update.
16166         * utils2.c (truthvalue_conversion): Rename, update.
16167         (build_binary_op, build_unary_op): Update.
16169 2002-04-04  Laurent Guerby  <guerby@acm.org>
16171         * make.adb: Implement -margs, remove restriction about file name placement.
16172         * makeusg.adb: Documentation update.
16173         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
16174         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
16176 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
16178         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
16179         (builtin_function): Similarly.
16181 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
16183         * decl.c (gnat_to_gnu_entity): Update.
16184         * gigi.h (mark_addressable): Rename.
16185         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
16186         * trans.c (tree_transform): Update.
16187         * utils.c (create_var_decl): Update.
16188         * util2.c (build_binary_op, build_unary_op,
16189         fill_vms_descriptor): Update.
16190         (mark_addressable): Rename, update.
16192 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
16194         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
16195         Rename.
16196         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
16197         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
16198         * trans.c (tree_transform, convert_with_check): Update.
16199         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
16200         Rename.
16202 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
16204         * gigi.h (finish_incomplete_decl): Rename.
16205         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
16206         * utils.c (gnat_init_decl_processing): Don't set hook.
16207         (finish_incomplete_decl): Rename.
16209 2002-03-29  Andreas Schwab  <schwab@suse.de>
16211         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
16212         directory.
16214 2001-03-28  Robert Dewar <dewar@gnat.com>
16216         * checks.ads:
16217         (Remove_Checks): New procedure
16219         * checks.adb:
16220         (Remove_Checks): New procedure
16222         * exp_util.adb:
16223         Use new Duplicate_Subexpr functions
16224         (Duplicate_Subexpr_No_Checks): New procedure
16225         (Duplicate_Subexpr_No_Checks_Orig): New procedure
16226         (Duplicate_Subexpr): Restore original form (checks duplicated)
16227         (Duplicate_Subexpr): Call Remove_Checks
16229         * exp_util.ads:
16230         (Duplicate_Subexpr_No_Checks): New procedure
16231         (Duplicate_Subexpr_No_Checks_Orig): New procedure
16232         Add 2002 to copyright notice
16234         * sem_util.adb: Use new Duplicate_Subexpr functions
16236         * sem_eval.adb:
16237         (Eval_Indexed_Component): This is the place to call
16238         Constant_Array_Ref and to replace the value. We simply merge
16239         the code of this function in here, since it is now no longer
16240         used elsewhere. This fixes the problem of the back end not
16241         realizing we were clever enough to see that this was
16242         constant.
16243         (Expr_Val): Remove call to Constant_Array_Ref
16244         (Expr_Rep_Val): Remove call to Constant_Array_Ref
16245         Minor reformatting
16246         (Constant_Array_Ref): Deal with string literals (patch
16247         suggested by Zack Weinberg on the gcc list)
16249 2001-03-28  Ed Schonberg <schonber@gnat.com>
16251         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
16252         Duplicate_Subexpr_Move_Checks.
16254         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
16255         Duplicate_Subexpr_Move_Checks.
16257         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
16258         value of array exists before retrieving it (it may a private
16259         protected component in a function).
16261 2002-03-28   Geert Bosch <bosch@gnat.com>
16263         * prj-pp.adb : New file.
16265         * prj-pp.ads : New file.
16267 2002-03-28  Andreas Jaeger  <aj@suse.de>
16269         * Makefile.in (stamp-sdefault): Fix path for Makefile.
16271 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16273         * misc.c (gnat_expand_expr): Move prototype.
16275 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
16277         * misc.c (insert_default_attributes): Remove.
16279 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
16281         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
16282         (gnat_init): Don't set hook.
16283         (gnat_expand_expr): Fix prototype.
16285 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
16287         * misc.c (ggc_p): Remove.
16289 2002-03-27  Geert Bosch  <bosch@gnat.com>
16291         * prj-makr.ads, prj-makr.adb : New files.
16293 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
16295         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
16296         (lang_mark_tree): Make static, rename.
16298 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
16300         * misc.c (maybe_build_cleanup): Remove.
16302 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
16304         * gigi.h (yyparse): Remove.
16306 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
16308         * gnat_rm.texi: Sync with ACT version.
16309           (From Ben Brosgol <brosgol@gnat.com>)
16311 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
16313         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
16314         (gnat_init): Remove old hook.
16316 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
16318         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
16319         (yyparse): Rename gnat_parse_file.
16321 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
16323         Delete all lines containing "$Revision:".
16324         * xeinfo.adb: Don't look for revision numbers.
16325         * xnmake.adb: Likewise.
16326         * xsinfo.adb: Likewise.
16327         * xsnames.adb: Likewise.
16328         * xtreeprs.adb: Likewise.
16330 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16332         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
16333         gnat_tree_code_name): Delete.
16334         (tree_code_type, tree_code_length, tree_code_name): Define.
16335         (gnat_init): Don't try to copy into the various tree_code
16336         arrays.
16338 2002-03-11  Richard Henderson  <rth@redhat.com>
16340         * Makefile.in (.NOTPARALLEL): Add fake tag.
16342 2002-03-07  Geert Bosch  <bosch@gnat.com>
16344         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
16345         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
16346         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
16347         switch-m.adb, switch-m.ads : New files.
16349 2002-03-07  Geert Bosch  <bosch@gnat.com>
16351         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
16352         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
16353         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
16354         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
16355         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
16356         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
16357         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
16358         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
16359         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
16360         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
16361         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
16362         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
16363         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
16364         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
16365         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
16366         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
16367         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
16368         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
16369         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
16370         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
16371         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
16372         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
16373         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
16374         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
16375         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
16376         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
16377         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
16378         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
16379         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
16380         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
16381         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
16382         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
16383         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
16384         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
16385         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
16386         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
16387         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
16388         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
16389         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
16390         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
16391         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
16392         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
16393         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
16394         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
16395         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
16396         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
16397         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
16398         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
16399         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
16400         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
16401         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
16402         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
16403         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
16404         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
16405         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
16406         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
16407         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
16408         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
16409         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
16410         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
16411         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
16412         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
16413         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
16414         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
16415         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
16416         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
16417         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
16418         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
16419         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
16420         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
16421         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
16422         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
16423         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
16424         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
16425         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
16426         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
16427         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
16428         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
16429         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
16430         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
16431         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
16432         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
16433         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
16434         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
16435         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
16436         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
16437         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
16438         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
16439         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
16440         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
16441         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
16442         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
16443         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
16444         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
16445         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
16446         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
16447         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
16449         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
16450         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
16451         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
16452         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
16454         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
16455         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
16457         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
16458         to mdll-fil.ad[bs] and mdll-util.ad[bs]
16460         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
16461         from mdllfile.ad[bs] and mdlltool.ad[bs]
16463 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16465         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
16466         lieu of explicit sizeof/sizeof.
16468 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16470         * misc.c (copy_lang_decl): Remove.
16472 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
16474         * misc.c: Delete traditional-mode-related code copied from the
16475         C front end but not used, or used only to permit the compiler
16476         to link.
16478 2002-02-07  Richard Henderson  <rth@redhat.com>
16480         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
16481         * adaint.h (__gnat_to_gm_time): Update prototype.
16483 2002-01-30  Richard Henderson  <rth@redhat.com>
16485         * trans.c (tree_transform) [N_Loop_Statement]: Use
16486         expand_exit_loop_top_cond.
16488 2001-12-23  Richard Henderson  <rth@redhat.com>
16490         * utils.c (end_subprog_body): Push GC context around
16491         rest_of_compilation for nested functions.
16493 2001-12-23  Richard Henderson  <rth@redhat.com>
16495         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
16497 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
16499         * gnat-style.texi (Declarations and Types): Remove ancient style
16500         rule which was mandated by code generation issues.
16502         * gnat-style.texi (header): Add @dircategory, @direntry.
16503         (title page): Remove date.
16504         (general) Add @./@: where approriate, and two spaces after the
16505         full stop at the end of a sentence.  Use @samp markup when
16506         referring concrete lexical entities (keywords, attribute names
16507         etc.), and @syntax for ARM grammar elements. Use @r for English
16508         text in comments.  Use @emph for emphasis.  Change "if-statements"
16509         etc. to "if statements" (without @samp). Break long lines.  Make
16510         casing of section names consistent.
16511         (Identifiers): Use @samp markup for variable names.
16512         (Comments): Use @samp markup for comment characters. Line-end
16513         comments may follow any Ada code, not just statements.  Fix
16514         misspelling of "Integer" as "integer".
16515         (Loop statements): Do not use variable name "I", use "J".
16516         (Subprogram Declarations): Document alignment.
16517         (Subprogram Bodies, Block statements): Document empty line before
16518         "begin".
16520 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
16522         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
16523         function approach did not work well because of a side effect (the
16524         function call could reallocate the table which was being indexed
16525         using its result). Fixes ada/4851.
16527 2001-12-19  Robert Dewar <dewar@gnat.com>
16529         * bindgen.adb: Minor reformatting
16531         * cstand.adb: Minor reformatting
16533         * fmap.adb: Minor reformatting
16534         Change name from Add for Add_To_File_Map (Add is much too generic)
16535         Change Path_Name_Of to Mapped_Path_Name
16536         Change File_Name_Of to Mapped_File_Name
16537         Fix copyright dates in header
16539         * fmap.ads:
16540         Change name from Add for Add_To_File_Map (Add is much too generic)
16541         Change Path_Name_Of to Mapped_Path_Name
16542         Change File_Name_Of to Mapped_File_Name
16543         Fix copyright dates in header
16545         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
16546         Add use clause for Fmap.
16548         * make.adb: Minor reformatting
16550         * osint.adb: Minor reformatting.  Change of names in Fmap.
16551         Add use clause for Fmap.
16553         * prj-env.adb: Minor reformatting
16555         * prj-env.ads: Minor reformatting
16557         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
16558         error found (there were odd exceptions to this general rule in
16559         -gnatec/-gnatem processing)
16561 2001-12-19  Olivier Hainque <hainque@gnat.com>
16563         * raise.c (__gnat_eh_personality): Exception handling personality
16564         routine for Ada.  Still in rough state, inspired from the C++ version
16565         and still containing a bunch of debugging artifacts.
16566         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
16567         inspired from the C++ library.
16569         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
16570         exception handling integration.
16572 2001-12-19  Arnaud Charlet <charlet@gnat.com>
16574         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
16575         (HIE_SOURCES): Add s-secsta.ad{s,b}.
16576         (HIE_OBJS): Add s-fat*.o
16577         (RAVEN_SOURCES): Remove files that are no longer required. Add
16578         interrupt handling files.
16579         (RAVEN_MOD): Removed, no longer needed.
16581 2001-12-19  Robert Dewar <dewar@gnat.com>
16583         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
16584         Add 2001 to copyright date
16586         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
16587         need to force universal inlining for these cases.
16589 2001-12-19  Arnaud Charlet <charlet@gnat.com>
16591         * s-taprob.adb: Minor clean ups so that this unit can be used in
16592         Ravenscar HI.
16594         * exp_ch7.adb: Allow use of secondary stack in HI mode.
16595         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
16597 2001-12-19  Vincent Celier <celier@gnat.com>
16599         * prj-tree.ads (Project_Node_Record): Add comments for components
16600         Pkg_Id and Case_Insensitive.
16602 2001-12-19  Pascal Obry <obry@gnat.com>
16604         * g-socket.adb: Minor reformatting. Found while reading code.
16606 2001-12-19  Robert Dewar <dewar@gnat.com>
16608         * prj-tree.ads: Minor reformatting
16610 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
16612         * config-lang.in (diff_excludes): Remove.
16614 2001-12-17  Ed Schonberg <schonber@gnat.com>
16616         * sem_res.adb (Resolve_Selected_Component): do not generate a
16617         discriminant check if the selected component is a component of
16618         the argument of an initialization procedure.
16620         * trans.c (tree_transform, case of arithmetic operators): If result
16621         type is private, the gnu_type is the base type of the full view,
16622         given that the full view itself may be a subtype.
16624 2001-12-17  Robert Dewar <dewar@gnat.com>
16626         * sem_res.adb: Minor reformatting
16628         * trans.c (tree_transform, case N_Real_Literal): Add missing third
16629         parameter in call to Machine (unknown horrible effects from this
16630         omission).
16632         * urealp.h: Add definition of Round_Even for call to Machine
16633         Add third parameter for Machine
16635 2001-12-17  Ed Schonberg <schonber@gnat.com>
16637         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
16638         predefined units in No_Run_Time mode.
16640 2001-12-17  Richard Kenner <kenner@gnat.com>
16642         * misc.c (insn-codes.h): Now include.
16644 2001-12-17  Olivier Hainque <hainque@gnat.com>
16646         * a-except.adb: Preparation work for future integration of the GCC 3
16647         exception handling mechanism
16648         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
16649         to factorize previous code sequences and make them externally callable,
16650         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
16651         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
16652         Use the new notification routines.
16654 2001-12-17  Emmanuel Briot <briot@gnat.com>
16656         * prj-tree.ads (First_Choice_Of): Document the when others case
16658 2001-12-17  Arnaud Charlet <charlet@gnat.com>
16660         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
16661         HI-E mode, in order to support Ravenscar profile properly.
16663         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
16664         mode on 32 bits targets.
16666 2001-12-17  Vincent Celier <celier@gnat.com>
16668         * fmap.adb: Initial version.
16670         * fmap.ads: Initial version.
16672         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
16673         If search is successfully done, add to mapping.
16675         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
16677         * make.adb:
16678         (Gnatmake): Add new local variable Mapping_File_Name.
16679          Create mapping file when using project file(s).
16680          Delete mapping file before exiting.
16682         * opt.ads (Mapping_File_Name): New variable
16684         * osint.adb (Find_File): Use path name found in mapping, if any.
16686         * prj-env.adb (Create_Mapping_File): New procedure
16688         * prj-env.ads (Create_Mapping_File): New procedure.
16690         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
16691         (Mapping_File)
16693         * usage.adb: Add entry for new switch -gnatem.
16695         * Makefile.in: Add dependencies for fmap.o.
16697 2001-12-17  Ed Schonberg <schonber@gnat.com>
16699         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
16700         is a package instantiation rewritten as a package body.
16701         (Install_Withed_Unit): Undo previous change, now redundant.
16703 2001-12-17  Gary Dismukes <dismukes@gnat.com>
16705         * layout.adb:
16706         (Compute_Length): Move conversion to Unsigned to callers.
16707         (Get_Max_Size): Convert Len expression to Unsigned after calls to
16708         Compute_Length and Determine_Range.
16709         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
16710         Compute_Length and Determine_Range.
16711         Above changes fix problem with length computation for supernull arrays
16712         where Max (Len, 0) wasn't getting applied due to the Unsigned
16713         conversion used by Compute_Length.
16715 2001-12-17  Arnaud Charlet <charlet@gnat.com>
16717         * rtsfind.ads:
16718         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
16719          System.Secondary_Stack.
16720         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
16721          in HI-E mode.
16722         Remove unused entity RE_Exception_Data.
16724         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
16726         * rident.ads (No_Secondary_Stack): New restriction.
16728 2001-12-17  Joel Brobecker <brobecke@gnat.com>
16730         * gnat_rm.texi: Fix minor typos. Found while reading the section
16731         regarding "Bit_Order Clauses" that was sent to a customer.
16732         Very interesting documentation!
16734 2001-12-17  Robert Dewar <dewar@gnat.com>
16736         * sem_case.adb (Choice_Image): Avoid creating improper character
16737         literal names by using the routine Set_Character_Literal_Name. This
16738         fixes bombs in certain error message cases.
16740 2001-12-17  Arnaud Charlet <charlet@gnat.com>
16742         * a-reatim.adb: Minor reformatting.
16744 2001-12-17  Ed Schonberg <schonber@gnat.com>
16746         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
16747         case where the formal is an extension of another formal in the current
16748         unit or in a parent generic unit.
16750 2001-12-17  Arnaud Charlet <charlet@gnat.com>
16752         * s-tposen.adb: Update comments.  Minor reformatting.
16753         Minor code clean up.
16755         * s-tarest.adb: Update comments.  Minor code reorganization.
16757 2001-12-17  Gary Dismukes <dismukes@gnat.com>
16759         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
16760         when Java_VM.
16762 2001-12-17  Robert Dewar <dewar@gnat.com>
16764         * exp_attr.adb: Minor reformatting
16766 2001-12-17  Ed Schonberg <schonber@gnat.com>
16768         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
16769         derivations nested within a child unit: verify that the parent
16770         type is declared in an outer scope.
16772 2001-12-17  Robert Dewar <dewar@gnat.com>
16774         * sem_ch12.adb: Minor reformatting
16776 2001-12-17  Ed Schonberg <schonber@gnat.com>
16778         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
16779         warning if current unit is a predefined one, from which bodies may
16780         have been deleted.
16782 2001-12-17  Robert Dewar <dewar@gnat.com>
16784         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
16785         Fix header format. Add 2001 to copyright date.
16787         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
16788         which caused CE during compilation if checks were enabled.
16790 2001-12-17  Vincent Celier <celier@gnat.com>
16792         * make.adb:
16793         (Switches_Of): New function
16794         (Test_If_Relative_Path): New procedure
16795         (Add_Switches): Use new function Switches_Of
16796         (Collect_Arguments_And_Compile): Use new function Switches_Of.
16797         When using a project file, test if there are any relative
16798         search path. Fail if there are any.
16799         (Gnatmake): Only add switches for the primary directory when not using
16800         a project file. When using a project file, change directory to the
16801         object directory of the main project file. When using a project file,
16802         test if there are any relative search path. Fail if there are any.
16803         When using a project file, fail if specified executable is relative
16804         path with directory information, and prepend executable, if not
16805         specified as an absolute path, with the exec directory.  Make sure
16806         that only one -o switch is transmitted to the linker.
16808         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
16810         * prj-nmsc.adb:
16811         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
16812         when using a non standard naming scheme.
16813         (Check_Ada_Naming_Scheme): Make sure that error messages
16814         do not raise exceptions.
16815         (Is_Illegal_Append): Return True if there is no dot in the suffix.
16816         (Language_Independent_Check): Check the exec directory.
16818         * prj.adb (Project_Empty): Add new component Exec_Directory
16820         * prj.ads:
16821         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
16822         (Project_Data): Add component Exec_Directory
16824         * snames.adb: Updated to match snames.ads revision 1.215
16826         * snames.ads: Added Exec_Dir
16828 2001-12-17  Robert Dewar <dewar@gnat.com>
16830         * make.adb: Minor reformatting
16832         * prj-nmsc.adb: Minor reformatting
16834         * snames.adb: Updated to match snames.ads
16836         * snames.ads: Alphebetize entries for project file
16838 2001-12-17  Ed Schonberg <schonber@gnat.com>
16840         * trans.c (process_freeze_entity): Do nothing if the entity is a
16841         subprogram that was already elaborated.
16843 2001-12-17  Richard Kenner <kenner@gnat.com>
16845         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
16846         and Esize if object is referenced via pointer.
16848 2001-12-17  Ed Schonberg <schonber@gnat.com>
16850         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
16851         is discrete before analyzing choices.
16853 2001-12-17  Joel Brobecker <brobecke@gnat.com>
16855         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
16856         containing the name of the Ada Main Program. This string is mainly
16857         intended for the debugger.
16858         (Gen_Output_File_C): Do the equivalent change when generating a C file.
16860 2001-12-17  Robert Dewar <dewar@gnat.com>
16862         * ali.adb: Set new Dummy_Entry field in dependency entry
16864         * ali.ads: Add Dummy_Entry field to source dependency table
16866         * bcheck.adb (Check_Consistency): Ignore dummy D lines
16868         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
16870         * lib-writ.ads: Document dummy D lines for missing files.
16872         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
16874 2001-12-17  Robert Dewar <dewar@gnat.com>
16876         * ali.adb: Type reference does not reset current file.
16878         * ali.adb: Recognize and scan renaming reference
16880         * ali.ads: Add spec for storing renaming references.
16882         * lib-xref.ads: Add documentation for handling of renaming references
16884         * lib-xref.adb: Implement output of renaming reference.
16886         * checks.adb:
16887         (Determine_Range): Document local variables
16888         (Determine_Range): Make sure Hbound is initialized. It looks as though
16889          there could be a real problem here with an uninitialized reference
16890          to Hbound, but no actual example of failure has been found.
16892 2001-12-17  Laurent Pautet <pautet@gnat.com>
16894         * g-socket.ads:
16895         Fix comment of Shutdown_Socket and Close_Socket. These functions
16896         should not fail silently because if they are called twice, this
16897         probably means that there is a race condition in the user program.
16898         Anyway, this behaviour is consistent with the rest of this unit.
16899         When an error occurs, an exception is raised with the error message
16900         as exception message.
16902 2001-12-17  Robert Dewar <dewar@gnat.com>
16904         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
16905         that it happens before modification of Sloc values for -gnatD.
16907         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
16908         so that it happens before modification of Sloc values for -gnatD.
16910         * switch.adb: Minor reformatting
16912 2001-12-15  Richard Henderson  <rth@redhat.com>
16914         * sem_ch7.adb: Wrap comment.
16916 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
16918         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
16919         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
16920         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
16921         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
16922         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
16923         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
16924         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
16925         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
16926         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
16927         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
16928         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
16929         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
16930         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
16931         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
16932         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
16933         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
16934         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
16935         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
16936         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
16937         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
16938         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
16939         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
16940         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
16941         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
16942         spelling errors.
16944 2001-12-14  Vincent Celier <celier@gnat.com>
16946         * osint.adb(Create_Debug_File): When an object file is specified,
16947         put the .dg file in the same directory as the object file.
16949 2001-12-14  Robert Dewar <dewar@gnat.com>
16951         * osint.adb: Minor reformatting
16953         * lib-xref.adb (Output_Instantiation): New procedure to generate
16954         instantiation references.
16956         * lib-xref.ads: Add documentation of handling of generic references.
16958         * ali.adb (Read_Instantiation_Ref): New procedure to read
16959         instantiation references
16961         * ali.ads: Add spec for storing instantiation references
16963         * bindusg.adb: Minor reformatting
16965         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
16967         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
16969         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
16971         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
16973         * csets.ads:
16974         Fix header format
16975         Add 2001 to copyright date
16976         Add entry for Latin-5 (Cyrillic ISO-8859-5)
16978 2001-12-14  Matt Gingell <gingell@gnat.com>
16980         * adaint.c: mktemp is a macro on Lynx and can not be used as an
16981         expression.
16983 2001-12-14  Richard Kenner <kenner@gnat.com>
16985         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
16986         if operand is CONSTRUCTOR.
16988 2001-12-14  Ed Schonberg <schonber@gnat.com>
16990         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
16991         before emiting check on right-hand side, so that exception information
16992         is correct.
16994 2001-12-14  Richard Kenner <kenner@gnat.com>
16996         * utils.c (create_var_decl): Throw away initializing expression
16997         if just annotating types and non-constant.
16999 2001-12-14  Vincent Celier <celier@gnat.com>
17001         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
17002         Default_Ada_...
17004         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
17005         Remove functions.
17006         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
17008         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
17009         Remove functions.
17010         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
17012 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
17014         * ChangeLog: Remove piece of diff output.
17016 2001-12-14  Geert Bosch <bosch@gnat.com>
17018         * config-lang.in: Update copyright notice
17020         * layout.adb: Remove commented out code.
17022         * mdllfile.ads: Update copyright notice. Fix header format.
17024         * sem_case.ads: Likewise.
17026         * sem_ch3.adb: Minor reformatting.
17028 2001-12-12  Geert Bosch <bosch@gnat.com>
17030         * freeze.ads: Update copyright date.
17032         * g-comlin.ads: Minor reformatting.
17034         * gnat-style.texi: Fix typo.
17036 2001-12-12  Geert Bosch <bosch@gnat.com>
17038         *  einfo.h: Regenerate.
17040 2001-12-12  Ed Schonberg <schonber@gnat.com>
17042         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
17043         on known node types, rather than untyped fields. Further cleanups.
17045 2001-12-12  Robert Dewar <dewar@gnat.com>
17047         * sem_ch12.adb:
17048         (Save_Entity_Descendant): Minor comment update.
17049         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
17050          of an N_Attribute_Reference node. As per note below, this does not
17051         eliminate need for Associated_Node in attribute ref nodes.
17052         (Associated_Node): Documentation explicitly mentions attribute
17053         reference nodes, since this field is used in such nodes.
17055         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
17057 2001-12-12  Robert Dewar <dewar@gnat.com>
17059         * s-stalib.adb: Add more comments on with statements being needed
17061         * par-ch12.adb: Minor reformatting
17063         * prj-dect.ads: Fix copyright header
17065         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
17066         inputs fit in 32 bits, but the result still overflows.
17068         * s-fatgen.ads: Minor comment improvement
17070 2001-12-12  Ed Schonberg <schonber@gnat.com>
17072         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
17073         formal derived type, look for an inherited component from the full
17074         view of the parent, if any.
17076 2001-12-12  Robert Dewar <dewar@gnat.com>
17078         * checks.ads (Apply_Alignment_Check): New procedure.
17080         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
17081         ensure that the alignment of objects with address clauses is
17082         appropriate, and raise PE if not.
17084         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
17085         Exp_Pakd.Known_Aligned_Enough
17087         * mdllfile.ads: Minor reformatting
17089         * mlib-fil.ads: Minor reformatting
17091 2001-12-12  Ed Schonberg <schonber@gnat.com>
17093         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
17094         fix to any component reference if enclosing record has non-standard
17095         representation.
17097 2001-12-12  Vincent Celier <celier@gnat.com>
17099         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
17100         Iteration
17102 2001-12-12  Ed Schonberg <schonber@gnat.com>
17104         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
17105         sem_attr.
17107 2001-12-12  Robert Dewar <dewar@gnat.com>
17109         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
17111 2001-12-12  Emmanuel Briot <briot@gnat.com>
17113         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
17114         and it adds dependencies to system.io.
17116 2001-12-12  Pascal Obry <obry@gnat.com>
17118         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
17119         variable name.
17121 2001-12-11  Ed Schonberg <schonber@gnat.com>
17123         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
17124         that is the parent of other generics, the instance body replaces the
17125         instance node.  Retrieve the instance of the spec, which is the one
17126         that is visible in clients and within the body.
17128 2001-12-11  Vincent Celier <celier@gnat.com>
17130         * gnatmain.adb: Initial version.
17132         * gnatmain.ads: Initial version.
17134         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
17136         * snames.adb: Updated to match snames.ads.
17138         * snames.ads: Added Gnatstub.
17140 2001-12-11  Vincent Celier <celier@gnat.com>
17142         * prj-attr.adb (Initialization_Data): Change name from
17143         Initialisation_Data.
17145 2001-12-11  Emmanuel Briot <briot@gnat.com>
17147         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
17148         + and * applied to backslashed expressions like \r.
17150 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
17152         * g-os_lib.ads: String_List type added, Argument_List type is now
17153         subtype of String_List.
17155 2001-12-11  Robert Dewar <dewar@gnat.com>
17157         * g-os_lib.ads: Change copyright to FSF
17158         Add comments for String_List type
17160 2001-12-11  Vincent Celier <celier@gnat.com>
17162         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
17163         string to the buffer).
17165 2001-12-11  Ed Schonberg <schonber@gnat.com>
17167         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
17168         sem_attr.
17170         * sem_attr.adb: Simplify previous fix for Address.
17171         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
17172         to avoid anomalies where the bound of the type appears to raise
17173         constraint error.
17175 2001-12-11  Robert Dewar <dewar@gnat.com>
17177         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
17178         handled.
17180 2001-12-11  Ed Schonberg <schonber@gnat.com>
17182         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
17183         renamed unit before checking for recursive instantiations.
17185 2001-12-11  Emmanuel Briot <briot@gnat.com>
17187         * prj.ads: Add comments for some of the fields.
17189 2001-12-11  Robert Dewar <dewar@gnat.com>
17191         * lib-xref.adb (Output_Refs): Don't output type references outside
17192         the main unit if they are not otherwise referenced.
17194 2001-12-11  Ed Schonberg <schonber@gnat.com>
17196         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
17197         code and diagnose additional illegal uses
17199         * sem_util.adb (Is_Object_Reference): An indexed component is an
17200         object only if the prefix is.
17202 2001-12-11  Vincent Celier <celier@gnat.com>
17204         * g-diopit.adb: Initial version.
17206         * g-diopit.ads: Initial version.
17208         * g-dirope.adb:
17209         (Expand_Path): Avoid use of Unbounded_String
17210         (Find, Wildcard_Iterator): Moved to child package Iteration
17212         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
17214 2001-12-11  Robert Dewar <dewar@gnat.com>
17216         * sem_attr.adb: Minor reformatting
17218 2001-12-11  Ed Schonberg <schonber@gnat.com>
17220         * sem_ch3.adb: Clarify some ???.
17222 2001-12-11  Robert Dewar <dewar@gnat.com>
17224         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
17225         Exp_Pakd.Known_Aligned_Enough
17227         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
17228         version is moved to Exp_Ch13.
17230 2001-12-11  Robert Dewar <dewar@gnat.com>
17232         * einfo.ads: Minor reformatting
17234         * exp_ch5.adb: Add comment for previous.change
17236         * ali.adb: New interface for extended typeref stuff.
17238         * ali.ads: New interface for typeref stuff.
17240         * checks.adb (Apply_Alignment_Check): New procedure.
17242         * debug.adb: Add -gnatdM for modified ALI output
17244         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
17246         * lib-xref.adb: Extend generation of <..> notation to cover
17247         subtype/object types. Note that this is a complete rewrite,
17248         getting rid of the very nasty quadratic algorithm previously
17249         used for derived type output.
17251         * lib-xref.ads: Extend description of <..> notation to cover
17252         subtype/object types. Uses {..} for these other cases.
17253         Also use (..) for pointer types.
17255         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
17257         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
17258         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
17260 2001-12-11  Vincent Celier <celier@gnat.com>
17262         * gnatcmd.adb:
17263         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
17264         Changed /BIND_ONLY to /ACTIONS=BIND
17265         Changed /LINK_ONLY to /ACTIONS=LINK
17267 2001-12-11  Ed Schonberg  <schonber@gnat.com>
17269         * sem_ch8.adb (Find_Selected_Component): improved search for a
17270         candidate package in case of error.
17272         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
17273         chain back on scope stack before reinstalling use clauses.
17275         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
17276         is enabled, do not kill the code for the condition, to preserve
17277         warning.
17279 2001-12-11  Robert Dewar <dewar@gnat.com>
17281         * checks.adb (Insert_Valid_Check): Apply validity check to expression
17282         of conversion, not to result of conversion.
17284 2001-12-11  Ed Schonberg <schonber@gnat.com>
17286         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
17287         before freezing parent. If the declarations are mutually recursive,
17288         an access to the current record type may be frozen before the
17289         derivation is complete.
17291 2001-12-05  Vincent Celier <celier@gnat.com>
17293         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
17294         -c /COMPILE_ONLY, -l /LINK_ONLY
17296         * opt.ads:
17297         (Bind_Only): New Flag
17298         (Link_Only): New flag
17300         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
17301         and -l (Link_Only)
17303         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
17305         * make.adb:
17306         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
17307         (Gnatmake): Set the step flags. Only perform a step if the
17308         corresponding step flag is True.
17309         (Scan_Make_Arg): Reset the bind and link step flags when -u
17310         or -gnatc has been specified.
17312 2001-12-05  Ed Schonberg <schonber@gnat.com>
17314         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
17315         get bounds from right operand.
17317         * sem_eval.adb: Minor reformatting
17319         * exp_util.adb (Make_Literal_Range): use bound of literal rather
17320         than Index'First, its lower bound may be different from 1.
17322         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
17323         and C48009J
17325 2001-12-05  Vincent Celier <celier@gnat.com>
17327         * prj-nmsc.adb Minor reformatting
17329         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
17330         set and libraries are not supported.
17332 2001-12-05  Ed Schonberg <schonber@gnat.com>
17334         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
17335         private view explicitly, so the back-end can treat as a global
17336         when appropriate.
17338 2001-12-05  Ed Schonberg <schonber@gnat.com>
17340         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
17341          unit, always replace instance node with new body, for ASIS use.
17343 2001-12-05  Vincent Celier <celier@gnat.com>
17345         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
17346         libraries are not supported and both attributes Library_Name and
17347         Library_Dir are specified.
17349         * prj-proc.adb (Expression): Set location of Result to location of
17350         first term.
17352         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
17353         (prj-nmsc is now importing MLib.Tgt)
17355         * prj-proc.adb: Put the change indicated above that was forgotten.
17357 2001-12-05  Robert Dewar <dewar@gnat.com>
17359         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
17361 2001-12-05  Ed Schonberg <schonber@gnat.com>
17363         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
17364         constraint, introduce explicit subtype declaration and derive from it.
17366         * sem_ch3.adb: Minor reformatting
17368 2001-12-05  Robert Dewar <dewar@gnat.com>
17370         * checks.adb (Determine_Range): Increase cache size for checks.
17371         Minor reformatting
17373         * exp_ch6.adb: Minor reformatting
17374         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
17375         a parameter whose root type is System.Address, since treating such
17376         subprograms as pure in the code generator is almost surely a mistake
17377         that will lead to unexpected results.
17379         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
17380         change handling of conversions.
17382         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
17384 2001-12-05  Ed Schonberg <schonber@gnat.com>
17386         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
17387         aggregate with static wrong size, attach generated Raise node to
17388         declaration.
17390 2001-12-05  Robert Dewar <dewar@gnat.com>
17392         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
17393         Fixes compilation abandoned bomb in B24009B.
17395 2001-12-05  Ed Schonberg <schonber@gnat.com>
17397         * sem_ch12.adb:
17398         Document use of Associated_Node on Selected_Components.
17399         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
17400         to clarify use of untyped descendant fields.
17402 2001-12-05  Robert Dewar <dewar@gnat.com>
17404         * prj-dect.ads: Add ??? comment
17405         Add 2001 to copyright notice (was not done in after all)
17407         * prj-part.adb: Minor reformatting. Reword one awkward error message.
17409         * prj.ads: Minor reformatting throughout, and add some ??? comments
17411         * snames.ads: Minor reformatting
17413 2001-12-05  Geert Bosch <bosch@gnat.com>
17415         * snames.adb: Autoupdate
17417 2001-12-05  Vincent Celier <celier@gnat.com>
17419         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
17421         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
17423         * prj-env.adb: Minor comment changes (modifying -> extends).
17425         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
17427         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
17428         Tok_Extends.
17430         * prj.adb (Initialize): Change Modifying to Extends.
17432         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
17434         * prj.ads: Minor comment change (Modifying -> extending).
17436         * snames.ads: Change modifying to extends.
17438 2001-12-05  Robert Dewar <dewar@gnat.com>
17440         * sem_warn.adb: Remove stuff for conditionals, we are not going to
17441         do this after all.
17443         * sem_warn.ads: Remove stuff for conditionals, we are not going to
17444         do this after all.  Add 2001 to copyright notice
17446 2001-12-04  Geert Bosch <bosch@gnat.com>
17448         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
17450 2001-12-04  Robert Dewar <dewar@gnat.com>
17452         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
17453         location if we already have errors. Stops some cases of cascaded
17454         errors.
17456         * errout.adb: Improve comment.
17458 2001-12-04  Robert Dewar <dewar@gnat.com>
17460         * sem_ch12.adb:
17461         (Analyze_Formal_Type_Definition): Defend against Error.
17462         (Analyze_Formal_Subprogram): Defend against Error.
17464         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
17465         remove following semicolon if present. Removes cascaded error.
17467 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
17469         * bindgen.adb:
17470         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
17471          exceptions equals 0.
17472         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
17473         Fixes PIWG E tests (which have to be run with -gnatL).
17475 2001-12-04  Robert Dewar <dewar@gnat.com>
17477         * einfo.ads: Minor reformatting
17479 2001-12-04  Ed Schonberg <schonber@gnat.com>
17481         * einfo.ads: Block_Node points to the identifier of the block, not to
17482         the block node itself, to preserve the link when the block is
17483         rewritten, e.g. within an if-statement with a static condition.
17485         * inline.adb (Cleanup_Scopes): recover block statement from block
17486         entity using new meaning of Block_Node.
17488         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
17489         identifier of block node, rather than to node itself.
17491 2001-12-04  Gary Dismukes <dismukes@gnat.com>
17493         * layout.adb:
17494         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
17495         (Discrimify): Go back to setting the Etypes of the selected component
17496         because the Vname component does not exist at this point and will
17497         fail name resolution. Also set Analyzed.
17498         Remove with and use of Sem_Res.
17500 2001-12-04  Arnaud Charlet <charlet@gnat.com>
17502         * Makefile.in: (HIE_SOURCES): add s-fat*.
17504 2001-12-04  Robert Dewar <dewar@gnat.com>
17506         * sem_attr.adb:
17507         (Compile_Time_Known_Attribute): New procedure.
17508         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
17509          proper range check.
17511 2001-12-04  Ed Schonberg <schonber@gnat.com>
17513         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
17514         processing discriminants to diagnose illegal default values.
17516 2001-12-04  Ed Schonberg <schonber@gnat.com>
17518         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
17519         access discriminant within a type extension that constrains its
17520         parent discriminants.
17522 2001-12-04  Ed Schonberg <schonber@gnat.com>
17524         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
17525         is malformed, use instance of Any_Id to allow analysis to proceed.
17527         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
17528         type definition is illegal.
17529         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
17530         misplaced.
17532 2001-12-04  Ed Schonberg <schonber@gnat.com>
17534         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
17535         constants.
17537 2001-12-04  Robert Dewar <dewar@gnat.com>
17539         * errout.adb: Minor reformatting
17541 2001-12-04  Robert Dewar <dewar@gnat.com>
17543         * exp_util.adb: Minor reformatting from last change
17545         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
17546         which is a rewriting of an expression, traverse the original
17547         expression to remove warnings that may have been posted on it.
17549 2001-12-04  Ed Schonberg <schonber@gnat.com>
17551         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
17552         record that has other packed components.
17554 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
17556         * adaint.c: Minor cleanups.
17558 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
17560         * adaint.c: Do not use utime.h on vxworks.
17562 2001-12-04  Arnaud Charlet <charlet@gnat.com>
17564         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
17565         more confusion than it solves.
17567 2001-12-04  Geert bosch <bosch@gnat.com>
17569         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
17571 2001-12-04  Geert Bosch  <bosch@gnat.com>
17573         * Makefile.in (update-sources): New target.
17574         For use by gcc_release script.
17576 2001-12-04  Ed Schonberg <schonber@gnat.com>
17578         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
17579         a configuration pragma, it is now legal wherever a pragma can appear.
17581 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
17583         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
17584         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
17585         is now @CROSS@ -DIN_GCC; update comment.
17587 2001-12-04  Robert Dewar <dewar@gnat.com>
17589         * einfo.adb (Has_Pragma_Pure_Function): New flag.
17590         Fix problem that stopped ceinfo from working
17592         * einfo.ads (Has_Pragma_Pure_Function): New flag.
17594         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
17596 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
17598         * gnatchop.adb:
17599         (File_Time_Stamp): New procedure.
17600         (Preserve_Mode): New boolean.
17601         (Write_Unit): Pass time stamp.
17602         Implement -p switch (preserve time stamps).
17604         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
17606         * gnatchop.adb: Do usage info for -p switch
17608         * adaint.h (__gnat_set_file_time_name): New function
17610         * adaint.c (__gnat_set_file_time_name): Implement
17612         * adaint.h: Fix typo
17614 2001-12-03  Robert Dewar <dewar@gnat.com>
17616         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
17617         have Associated_Node.
17619 2001-12-03  Robert Dewar <dewar@gnat.com>
17621         * prj-proc.adb: Minor reformatting
17623         * make.adb: Minor reformatting
17625 2001-12-03  Geert Bosch <bosch@gnat.com>
17627         * make.adb: Minor reformatting.
17629 2001-12-03 Robert Dewar  <dewar@gnat.com>
17631         * sem_ch12.adb: Minor reformatting
17633 2001-12-03  Ed Schonberg <schonber@gnat.com>
17635         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
17636         push Standard on the stack before analyzing the instance body,
17637         in order to have a clean visibility environment.
17639         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
17641 2001-12-03  Ed Schonberg <schonber@gnat.com>
17643         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
17644         instantiation of a body that contains an inlined body.
17646 2001-12-03  Ed Schonberg <schonber@gnat.com>
17648         * sem_ch12.adb:
17649         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
17650         to prevent freezing within formal packages.
17651         (Freeze_Subprogram_Body): If body comes from another instance that
17652         appeared before its own body, place freeze node at end of current
17653         declarative part, to prevent a back-end crash.
17654         (Inline_Instance_Body): Handle properly a package instance within
17655         a subprogram instance that is a child unit.
17657 2001-12-01  Graham Stott  <grahams@redhat.com>
17659         * Makefile.in (misc.o): Add missing $(srcdir) prefix
17660         and add optabs.h dependency.
17662         * misc.c: Include optabs.h
17663         (gnat_tree_code_type): Make static and const.
17664         (gnat_tree_code_length): Likewise.
17665         (gnat_tree_code_name): Likewise.
17666         (update_setjmp_buf): Obtain operands mode from insn_data.
17668 2001-11-29  Richard Henderson  <rth@redhat.com>
17670         * init.c: Remove obsolete dwarf2 frame.h section.
17672 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
17674         * Make-lang.in (ada.generated-manpages): New dummy target.
17676 2001-11-29  Ed Schonberg <schonber@gnat.com>
17678         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
17679         into Command, an array conversion is illegal here. Uncovered by
17680         ACATS B460005.
17682 2001-11-28  Geert Bosch <bosch@gnat.com>
17684         * init.c: Minor whitespace changes.
17686 2001-11-28  Doug Rupp <rupp@gnat.com>
17688         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
17689         signal stack.
17691 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
17693         * misc.c (gnat_expand_constant): Move declaration above
17694         definition of lang_hooks.
17695         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
17696         (gnat_init): lang_expand_constant no longer exists.
17698         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
17699         always have vprintf.
17700         (gnat_init): Always call set_internal_error_function.
17702 2001-11-27  Andreas Jaeger  <aj@suse.de>
17704         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
17706 2001-11-27  Laurent Guerby  <guerby@acm.org>
17708         * Makefile.in: Regenerate Ada dependencies.
17710 2001-11-26  Richard Henderson  <rth@redhat.com>
17712         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
17713         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
17714         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
17716 2001-11-25  Laurent Guerby  <guerby@acm.org>
17718         * sysdep.c (rts_get_*): Fix style.
17720 2001-11-19  Laurent Guerby  <guerby@acm.org>
17722         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
17723         since it is of no apparent use and cause warnings.
17725 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
17727         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
17728         static too.
17729         (gnat_init): Don't return NULL.
17730         (finish_parse): Remove.
17732 2001-11-17  Laurent Guerby  <guerby@acm.org>
17734         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
17735         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
17736         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
17737         * lang-spec.h: Add missing struct field to silence warnings.
17738         * sysdep.c (rts_get_*): Provide K&R prototype.
17739         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
17740         * traceback.c (Unlock_Task, Lock_Task): Likewise.
17741         * tracebak.c (__gnat_backtrace): Remove unused variable.
17742         * utils.c (end_subprog_body): Move to K&R style.
17744 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17746         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
17748 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
17750         * misc.c (gnat_init): Change prototype.  Include the
17751         functionality of the old init_parse and init_decl_processing.
17752         (gnat_init_decl_processing): New prototype.
17753         (init_parse): Remove.
17754         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
17756 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
17758         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
17759         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
17760         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
17761         set_yydebug): Remove.
17763 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
17765         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
17766         (struct lang_hooks): Constify.
17767         (language_string, lang_identify): Remove.
17768         * utils.c (init_decl_processing): Update.
17770 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
17772         * misc.c: Include langhooks-def.h.
17773         * Makefile.in: Update.
17775 2001-10-30  Robert Dewar <dewar@gnat.com>
17777         * style.adb:
17778         (Check_Identifier): Rewrite circuit to be compatible with use of letters
17779         in the upper half of ASCII.
17780         (Check_Identifier): Minor reformatting
17782 2001-10-30  Geert Bosch <bosch@gnat.com>
17784         * (Associated_Node, Set_Associated_Node): Do not check for
17785         Freeze_Entity.
17787 2001-10-30  Robert Dewar <dewar@gnat.com>
17789         * a-reatim.ads: Minor reformatting
17791 2001-10-30  Robert Dewar <dewar@gnat.com>
17793         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
17794         undocumented declarations.
17796 2001-10-30  Pascal Obry <obry@gnat.com>
17798         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
17799         to the binder and linker.
17800         Minor style fix.
17802         * mdll.ads: Fix layout.  Update copyright notice.
17804         * mdll.adb: Fix layout.  Update copyright notice.
17806 2001-10-30  Robert Dewar <dewar@gnat.com>
17808         * usage.adb: Minor fix to output for -gnaty.
17810 2001-10-30  Ed Schonberg <schonber@gnat.com>
17812         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
17813         to accommodate all its possible values.
17815         * a-reatim.adb (Split): Special-case handling of Time_Span_First
17816         and of small absolute values of T.
17818 2001-10-30  Richard Kenner <kenner@gnat.com>
17820         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
17821         set_mem_attributes since not needed and wrong if RESULT if a REG;
17822         fixes ACATS failures.
17824 2001-10-30  Geert Bosch <bosch@gnat.com>
17826         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
17827         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
17829 2001-10-30  Robert Dewar <dewar@gnat.com>
17831         * bindusg.adb: Undocument -f switch.
17833         * gnatcmd.adb: Remove /FULL_ELABORATION.
17835         * opt.ads (Force_RM_Elaboration_Order): Document that this is
17836         obsolescent.
17838         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
17840         * gnatbind.adb: Minor update of warning msg.
17842 2001-10-30  Vincent Celier <celier@gnat.com>
17844         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
17845         for project file switches (-P (/PROJECT_FILE=),
17846          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
17847         or MEDIUM or HIGH)
17849 2001-10-30  Geert Bosch <bosch@gnat.com>
17851         * decl.c: Minor whitespace fixes.
17853 2001-10-30  Richard Kenner <kenner@gnat.com>
17855         * utils2.c (build_allocator): Test for SIZE overflow in array case too
17857 2001-10-30  Geert Bosch <bosch@gnat.com>
17859         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
17860         Found due to GCC 3.0 warning of using uninitialized value.
17862         * layout.adb:
17863         (Get_Max_Size): Use variant record for tracking value/expression.
17864          Makes logic clearer and prevents warnings for uninitialized variables.
17865         (Layout_Array_Type): Use variant record for tracking value/expression.
17866          Makes logic clearer and prevents warnings for uninitialized variables.
17868 2001-10-30  Robert Dewar <dewar@gnat.com>
17870         * lib.adb: Minor reformatting
17872         * s-taprop.ads: Minor reformatting
17874 2001-10-29  Laurent Guerby  <guerby@acm.org>
17876         * init.c:
17877         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
17878         const.
17879         (_gnat_error_handler): Make MSG const.
17881 2001-10-29  Richard Kenner <kenner@gnat.com>
17883         * sysdep.c: Fix localtime_r problem on LynxOS.
17884         Also remove #elif to avoid warnings.
17886         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
17887         used by this.
17889         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
17891 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
17893         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
17894         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
17895         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
17896         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
17897         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
17898         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
17899         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
17900         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
17901         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
17902         types.ads, urealp.adb: Fix spelling errors.
17904 2001-10-27  Laurent Guerby <guerby@acm.org>
17906         * trans.c (gigi): Fix non determinism leading to bootstrap
17907         comparison failures for debugging information.
17909 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
17911         * gnat_rm.texi: Use @./@: where appropriate.
17913 2001-10-26  Robert Dewar <dewar@gnat.com>
17915         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
17917 2001-10-26  Richard Kenner <kenner@gnat.com>
17919         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
17921 2001-10-26  Richard Kenner <kenner@gnat.com>
17923         * decl.c (validate_size): Modify message for bad size to avoid
17924         implication that compiler is modifying the size.
17926 2001-10-26  Robert Dewar <dewar@gnat.com>
17928         * prj-util.adb: Minor reformatting. Fix bad header format.
17930 2001-10-26  Robert Dewar <dewar@gnat.com>
17932         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
17934         * sinfo.ads: Clarify use of Associated_Node (documentation only).
17936         * sem_ch12.adb: Change Node4 to Associated_Node. Change
17937         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
17938         much more narrowly in places where needed. These are cleanups.
17940 2001-10-26  Joel Brobecker <brobecke@gnat.com>
17942         * 5zosinte.ads (null_pthread): new constant.
17944         * 5ztaprop.adb:
17945         (Initialize_TCB): Initialize thread ID to null, to be able to verify
17946          later that this field has been set.
17947         (Finalize_TCB): ditto.
17948         (Suspend_Task): Verify that the thread ID is not null before using it.
17949         (Resume_Task): ditto.
17951         * s-tasdeb.adb:
17952         (Resume_All_Tasks): Lock the tasks list before using it.
17953         (Suspend_All_Tasks): ditto.
17955 2001-10-26  Richard Kenner <kenner@gnat.com>
17957         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
17958         Make constant variant of designated type for Is_Access_Constant.
17959         Call update_pointer_to with main variant.
17961         * trans.c (process_freeze_entity, process_type):
17962         Call update_pointer_to on main variant.
17964         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
17965         If main variant, update all other variants.
17967         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
17968         TREE_STATIC.
17970 2001-10-26  Robert Dewar <dewar@gnat.com>
17972         * prj-util.adb: Minor reformatting
17974 2001-10-26  Robert Dewar <dewar@gnat.com>
17976         * prj-util.adb: Minor reformatting
17978 2001-10-26  Robert Dewar <dewar@gnat.com>
17980         * prj-attr.adb: Minor reformatting throughout
17982 2001-10-26  Robert Dewar <dewar@gnat.com>
17984         * prj-attr.ads: Minor reformatting
17985         Add ??? comment (this whole spec has almost no comments)
17987 2001-10-26  Vincent Celier <celier@gnat.com>
17989         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
17990         ("//") that precede the drive letter on Interix.
17992 2001-10-26  Geert Bosch <bosch@gnat.com>
17994         * gnat_rm.texi: Add GNAT Reference Manual.
17996 2001-10-25  Robert Dewar <dewar@gnat.com>
17998         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
17999         is Error. Similar change for other renaming cases.
18001 2001-10-25  Robert Dewar <dewar@gnat.com>
18003         * s-atacco.ads: Add pragma Inline_Always for functions.
18004         Fix header format. Add copyright 2001
18006 2001-10-25  Ed Schonberg <schonber@gnat.com>
18008         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
18009         return Error rather than Empty so that analysis can proceed.
18011 2001-10-25  Ed Schonberg <schonber@gnat.com>
18013         * sem_util.adb (Enter_Name): better handling of cascaded error
18014         messages when a unit appears in its own context.
18016 2001-10-25  Ed Schonberg <schonber@gnat.com>
18018         * sem_util.adb (Defining_Entity): in case of error, attach created
18019         entity to specification, so that semantic analysis can proceed.
18021 2001-10-25  Robert Dewar <dewar@gnat.com>
18023         * sem_util.adb
18024         (Defining_Entity): Deal with Error.
18025         (Process_End_Label): Deal with bad end label for.
18027 2001-10-25  Ed Schonberg <schonber@gnat.com>
18029         * sem_elab.adb (Check_A_Call): refine message when call is in an
18030         instance but callee is not declared in the generic unit.
18032 2001-10-25  Ed Schonberg <schonber@gnat.com>
18034         * sem_elab.adb (Check_A_Call): check for renaming before finding the
18035         enclosing unit, which may already be different from the calling unit.
18037 2001-10-25  Geert Bosch <bosch@gnat.com>
18039         * 4gintnam.ads: fix header format.
18041 2001-10-25  Ed Schonberg <schonber@gnat.com>
18043         * sem_res.adb (Resolve_Call): if the call is actually an indexing
18044         operation on the result of a parameterless call, perform elaboration
18045         check after the node has been properly rewritten.
18047         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
18048         inlined within the generic tree, the defining identifier is not a
18049         compilation_unit.
18051 2001-10-25  Ed Schonberg <schonber@gnat.com>
18053         * sem_res.adb (Resolve): special-case resolution of Null in an
18054          instance or an inlined body to avoid view conflicts.
18056         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
18057          compatibility by retrieving the access type of the generic copy.
18059 2001-10-25  Robert Dewar <dewar@gnat.com>
18061         * sem_ch3.adb:
18062         (Analyze_Number_Declaration): Handle error expression.
18063         (Signed_Integer_Type_Declaration): Handle error bound.
18064         (Analyze_Subtype_Indication): Handle error range.
18066         * sem_util.adb (Get_Index_Bounds): Check for Error.
18068 2001-10-25  Robert Dewar <dewar@gnat.com>
18070         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
18071         in no run time mode.
18073 2001-10-25  Pascal Obry <obry@gnat.com>
18075         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
18076         mode case for ALLOC case.
18078         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
18079         all platforms. Improvement of last change.
18081 2001-10-25  Robert Dewar <dewar@gnat.com>
18083         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
18085 2001-10-25  Geert Bosch  <bosch@gnat.com>
18087         * osint.adb (Is_Relative): Remove duplicate.
18089 2001-10-25  Pascal Obry <obry@gnat.com>
18091         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
18092         pathnames in UNIX and DOS style with drive letter.
18093         (Is_Relative): new routine.
18095         * osint.adb: Minor reformatting
18097         * osint.adb (Is_Relative): implementation using
18098         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
18100 2001-10-25  Pascal Obry <obry@gnat.com>
18102         * g-dirope.adb (Basename): correctly compute offset between the
18103         original Path and the translated one.
18105         * g-dirope.adb: (Base_Name): add some comments.
18107 2001-10-25  Robert Dewar <dewar@gnat.com>
18109         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
18110         in HIE mode, avoids compilation abandoned message
18112         * exp_imgv.adb: Correct typo in previous change
18114         * exp_imgv.adb: Correct typo in previous change (not my day!)
18116 2001-10-25  Robert Dewar <dewar@gnat.com>
18118         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
18120 2001-10-25  Pascal Obry <obry@gnat.com>
18122         * g-awk.ads: Move all pragma inlines next to the routine
18123          declarations. This is more uniform with other GNAT spec.
18125 2001-10-22  Geert Bosch  <bosch@gnat.com>
18127         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
18129 2001-10-19  Geert Bosch  <bosch@gnat.com>
18131         * Makefile.in (tools, gnattools): Remove gnatmem.
18133 2001-10-17  Richard Henderson  <rth@redhat.com>
18135         * Makefile.in (misc.o): Depend on langhooks.h.
18136         * misc.c: Include it.
18137         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
18138         (LANG_HOOKS_DECODE_OPTION): New.
18139         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
18141 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
18143         * trans.c (tree_transform): Adjust to recent change in
18144         expand_asm_operands to implement named asm operands.
18146 2001-10-11  Ed Schonberg  <schonber@gnat.com>
18148         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
18149         renaming of discriminant for mutable record type.
18151 2001-10-11  Robert Dewar  <dewar@gnat.com>
18153         * validsw.adb: Properly save -gnatVn status.
18155 2001-10-11  Robert Dewar <dewar@gnat.com>
18157         * usage.adb: Add lines for V switch.
18159         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
18160         (/VALIDITY_CHECKING).
18162 2001-10-11  Ed Schonberg <schonber@gnat.com>
18164         * sem_type.adb (Add_One_Interp): an operator for a type declared in
18165         an extension of System is known to be visible.
18167 2001-10-11  Ed Schonberg <schonber@gnat.com>
18169         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
18170         properly. Fixes regression on ACATS C34005G.
18172 2001-10-11  Robert Dewar <dewar@gnat.com>
18174         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
18175         loop in generic instance, since this is likely not very useful.
18177 2001-10-11  Robert Dewar <dewar@gnat.com>
18179         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
18180         the error message for high integrity mode.
18182         * rtsfind.adb (RTE): Give message if we try to find an entity that
18183         is not available in high integrity mode.
18185         * rtsfind.ads:
18186         (OK_To_Use_In_HIE_Mode): New array.
18187         (RTE): May return Empty in high integrity mode.
18189         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
18190         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
18192         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
18193         unit if not inlined always and in no runtime mode. Fixes problem
18194         caused by new Rtsfind changes.
18196         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
18197         body is deleted.
18199         * rtsfind.adb (RTE): Make sure we do not try to load unit after
18200         giving message for entity not available in high integrity mode.
18202 2001-10-11  Pascal Obry <obry@gnat.com>
18204         * impunit.adb: Add GNAT.CRC32.
18206 2001-10-11  Ed Schonberg <schonber@gnat.com>
18208         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
18209         properly the case where one universal operand in a non-static
18210         exponentiation of a real literal.
18212 2001-10-11  Ed Schonberg <schonber@gnat.com>
18214         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
18215         clause, return the gobal finalization list, for lack of anthing else.
18217 2001-10-11  Ed Schonberg <schonber@gnat.com>
18219         * exp_ch7.adb (Make_Transient_Block): if statement is within
18220         exception handler, always use new transient scope to place Clean
18221         procedure.
18223 2001-10-11  Pascal Obry <obry@gnat.com>
18225         * Makefile.in:
18226         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
18227         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
18228         (GNATLS_RTL_OBJS): add g-crc32.o
18229         (GNATMAKE_RTL_OBJS): add g-crc32.o
18231         * ali-util.adb:
18232         (CRC_Match): new function.
18233         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
18234         instead of the previous simple checksum algorithm.
18235         (Time_Stamp_Mismatch): use CRC_Match for comparison.
18236         (Set_Source_Table): idem.
18238         * ali-util.ads:
18239         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
18240         instead of simple checksum.
18241         (CRC_Match): new function.
18242         (CRC_Error): new constant.
18244         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
18245         a CRC now and not a simple checksum. A CRC uses lower-case hex
18246         letters, fixes ambiguity in parsing.
18248         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
18249         is what this variable will store.
18251         * bcheck.adb: Change reference to chechsum in comments by CRC.
18252         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
18253         rename All_Checksum_Match to All_CRC_Match. Change due to API
18254         renaming since now GNAT does not use a simple checksum but a
18255         CRC using GNAT.CRC32.
18257         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
18258         now and not anymore a simple checksum.
18260         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
18261         places.
18263         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
18265         * scans.adb:
18266         (Restore_Scan_State): rename Checksum to CRC.
18267         (Save_Scan_State): idem.
18269         * scans.ads:
18270         With GNAT.CRC32.
18271         (Checksum): rename to CRC.
18272         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
18274         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
18275         GNAT.CRC32).  Update copyright notice.
18277         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
18278         GNAT.CRC32).  Update copyright notice.
18280         * scn.adb:
18281         (Accumulate_Checksum): removed.
18282         (Update): new procedure. Add a wide-character into the CRC.
18284         * sinput-l.adb:
18285         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
18286         (Load_File): fix initialization of S (change Source_Checksum to
18287         Source_CRC)
18289         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
18290         Source_CRC in S initialization.
18292         * sinput.adb (Source_Checksum): renamed to Source_CRC.
18294         * sinput.ads (Source_Checksum): renamed to Source_CRC.
18295         Update comments for the CRC.
18297         * types.adb (Hex): Use lowercase for the letter part.
18299         * types.ads (Get_Hex_String): Returns the hexadecimal representation
18300         for a word. This is currently used only for CRC. In previous version,
18301         the checksum was using a representation with all letter being
18302         upper-case. With the new implementation (using CRC) we do not remove
18303         the 32th bit of the CRC, so we can have an upper-case starting letter
18304         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
18305         It is ambigous since the CRC was optional and could be followed by
18306         options like EB, EE. So now this routines uses lower-case letter for
18307         the hexadecimal representation. Strange enough only lower case letters
18308         where checked in Scan_ALI (even if this was not a possible case).
18310         * gnatvsn.ads (Library_Version): changed to 3.15a.
18312         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
18313         for the compiler.
18315         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
18316         for the compiler.
18318         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
18319         Add 2001 to copyright notice
18320         (Accumulate_Checksum): Modify to use System.CRC32.
18322         * ali-util.ads: Redo changes of previous revision to continue to use
18323         the word Checksum. Add 2001 to copyright notice.
18325         * ali.adb: Undo some of previous changes, not needed.
18326         Keep the change for lower case letters in the checksum.
18328         * ali.ads: Undo previous change not needed.
18330         * bcheck.adb: Undo most of previous change, not needed.
18331         But do use Checksums_Match for checksum comparison.
18333         * gnatls.adb: Undo most of previous change, not needed.
18334         But do use Checksums_Match for comparing checksums.
18336         * lib-load.adb: Undo previous change, not needed.
18338         * lib-writ.adb: Undo previous change, not needed.
18340         * lib-writ.ads: Document that checksums use lower case,
18341         not upper case letters.
18343         * scans.adb: Undo previous change, not needed
18345         * scans.ads: Undo previous change, not needed.
18347         * scn-nlit.adb: Undo previous changes, not needed.
18349         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
18351         * scn.adb:
18352         (Accumulate_Checksum): Use System.CRC32.
18353         (Initialize_Checksum): New procedure.
18354         Remove other changes of previous revision.
18356         * sinput-p.adb: Undo previous change, not needed.
18358         * sinput.adb: Undo previous change, not needed.
18360         * sinput-l.adb: Undo previous change, not needed.
18362         * sinput.ads: Undo previous change, not needed.  Keep only comment
18363         on new checksum algorithm
18365         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
18366         Also remove a-tags and a-stream from GNAT sources.
18368         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
18370         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
18372 2001-10-11  Geert Bosch  <bosch@gnat.com>
18374         * einfo.h: Regenerate.
18376         * nmake.ads: Regenerate.
18378         * nmake.adb: Regenerate.
18380         * sinfo.h: Regenerate.
18382         * treeprs.adb: Regenerate.
18384 2001-10-10  Geert Bosch  <bosch@gnat.com>
18386         * gnat-style.texi: New file describing coding guidelines for Ada.
18388 2001-10-10  Ed Schonberg <schonber@gnat.com>
18390         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
18391         is Flag174.
18393 2001-10-10  Geert Bosch  <bosch@gnat.com>
18395         * snames.ads: Add new names for project facility.
18397         * snames.adb: Update to reflect snames.ads changes.
18399         * snames.h: Update to reflect snames.ads changes.
18401 2001-10-10  Vincent Celier <celier@gnat.com>
18403         * make.adb:
18404         (Add_Switches): reflect the changes for the switches attributes
18405         Default_Switches indexed by the programming language,
18406         Switches indexed by the file name.
18407         (Collect_Arguments_And_Compile): Idem.
18408         Reflect the attribute name changes.
18410         * prj-attr.adb:
18411         (Initialisation_Data): Change the names of some packages and
18412         attributes.
18413         (Initialize): process case insensitive associative arrays.
18415         * prj-attr.ads:
18416         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
18418         * prj-dect.adb:
18419         (Parse_Attribute_Declaration): For case insensitive associative
18420          arrays, set the index string to lower case.
18422         * prj-env.adb:
18423         Reflect the changes of the project attributes.
18425         * prj-nmsc.adb:
18426         Replace Check_Naming_Scheme by Ada_Check and
18427         Language_Independent_Check.
18429         * prj-nmsc.ads:
18430         Replaced Check_Naming_Scheme by 2 procedures:
18431         Ada_Check and Language_Independent_Check.
18433         * prj-proc.adb:
18434         (Process_Declarative_Items): For case-insensitive associative
18435         arrays, set the index string to lower case.
18436         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
18437         Prj.Nmsc.Check_Naming_Scheme.
18439         * prj-tree.adb:
18440         (Case_Insensitive): New function
18441         (Set_Case_Insensitive): New procedure
18443         * prj-tree.ads:
18444         (Case_Insensitive): New function
18445         (Set_Case_Insensitive): New procedure
18446         (Project_Node_Record): New flag Case_Insensitive.
18448         * prj-util.adb:
18449         (Value_Of): new function to get the string value of a single
18450         string variable or attribute.
18452         * prj-util.ads:
18453         (Value_Of): new function to get the string value of a single
18454         string variable or attribute.
18456         * prj.adb:
18457         (Ada_Default_Spec_Suffix): New function
18458         (Ada_Default_Impl_Suffix): New function
18459         Change definitions of several constants to reflect
18460         new components of record types.
18462         * prj.ads:
18463         (Naming_Data): Change several components to reflect new
18464         elements of naming schemes.
18465         (Project_Data): New flags Sources_Present and
18466         Language_Independent_Checked.
18467         (Ada_Default_Spec_Suffix): New function.
18468         (Ada_Default_Impl_Suffix): New function.
18470         * snames.ads:
18471         Modification of predefined names for project manager: added
18472         Implementation, Specification_Exceptions, Implementation_Exceptions,
18473         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
18474         Default_Switches, _Languages, Builder, Cross_Reference,
18475         Finder. Removed Body_Part, Specification_Append, Body_Append,
18476         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
18477         Gnatlink.
18479         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
18480         Add comments.
18482         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
18483         not that it is Nil_Variable_Value.
18485         * prj.ads: Add ??? for uncommented declarations
18487 2001-10-10  Ed Schonberg <schonber@gnat.com>
18489         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
18490         constant, do not indicate possible modification, so that gigi can
18491         treat it as a bona fide constant.
18493 2001-10-10  Robert Dewar <dewar@gnat.com>
18495         * sem_prag.adb: Add processing for pragma External.
18497         * snames.ads: Add entry for pragma External.
18499         * par-prag.adb: Add pragma External.
18501         * snames.adb: Updated to match snames.ads.
18503 2001-10-10  Ed Schonberg <schonber@gnat.com>
18505         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
18506         a dynamic task if the allocator appears in an indexed assignment
18507         or selected component assignment.
18509         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
18510         For a dynamic task in an assignment statement, use target of
18511         assignment to generate meaningful name.
18513 2001-10-10  Ed Schonberg <schonber@gnat.com>
18515         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
18516         a generic package.
18518         * einfo.ads: Body_Entity is also defined for generic package.
18519         Documentation change only
18521         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
18522         others_choice for a discriminated component initialization,
18523         convert discriminant references into the corresponding discriminals.
18525         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
18526         only if original type is private and expression has to be wrapped
18527         in a conversion.
18529         * checks.adb:
18530         (Apply_Constraint_Check): Do not perform length check
18531         if expression is an aggregate with only an others_choice.
18532         (Length_N_Cond): two references to the same in_parameter
18533         (typically the discriminal in an init_proc) denote the same value.
18534         Two useful optimization uncovered by bugfixes above.
18536 2001-10-10  Robert Dewar <dewar@gnat.com>
18538         * xeinfo.adb: Change int to char in translation of enumeration types.
18539         This fixes a problem in the C representation of component alignment.
18540         Add 2001 to copyright notice
18542 2001-10-10  Richard Kenner <kenner@gnat.com>
18544         * decl.c: (validate_size): Do check size of object of integral type
18545         if it is a packed array type.
18547 2001-10-10  Richard Kenner <kenner@gnat.com>
18549         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
18550         VAR_DECL for constant if not Is_Public but -O0.
18552 2001-10-10  Richard Kenner  <kenner@gnat.com>
18554         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
18556 2001-10-10  Geert Bosch  <bosch@gnat.com>
18558         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
18559         use '/' as switch character, allowing for absolute file names.
18561 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
18563         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
18564         FSF address.
18566 2001-10-08  Geert Bosch  <bosch@gnat.com>
18568         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
18569         Automatically build utilities when files need to be regenerated.
18571 2001-10-08  Geert Bosch  <bosch@gnat.com>
18573         * xsnames.adb: New utility for updating snames.ads and snames.adb
18575 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
18577         * Make-lang.in (ADAFLAGS): Add -W -Wall.
18578         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
18579         (gnat1): Also depend on attribs.o.
18580         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
18581         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
18582         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
18583         (ADAFLAGS): Add -W -Wall.
18584         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
18585         take out CFLAGS.
18587         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
18588         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
18589         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
18590         Use $(ADAC), not $(CC), as compilation command.
18592         (gnattools): Depend directly on tools to build, don't use
18593         recursive make.
18594         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
18596         * einfo.h, sinfo.h: New files (autogenerated).
18598 2001-10-08  Richard Henderson  <rth@redhat.com>
18600         * comperr.adb (Abort_In_Progress): New.
18601         (Compiler_Abort): Use it to prevent recursion.
18603 2001-10-08  Robert Dewar <dewar@gnat.com>
18605         * atree.adb: Set Error_Posted in Error node, helps error recovery.
18607         * par-endh.adb (Output_End_Expected): We should also not test
18608         Error_Posted on the Error node, since now it is always set.
18610         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
18611         to help error recovery. Part of general work on 9407-004.
18613         * par.adb: Add ??? for misuse of error
18615         * sem_res.adb:
18616         (Resolve): Defend against Error, fixes 9407-003.
18617         (Resolve_Discrete_Subtype_Indication): Defend against Error.
18619         * sinfo.ads (N_Error): Now has Etype field (which will be set
18620         to Any_Type to help error recovery).
18622 2001-10-08  Richard Kenner (kenner@gnat.com)
18624         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
18625         Consistently set MEM attributes from expression; fixes
18626         bootstrap failure on x86.
18628 2001-10-08  Geert Bosch  (bosch@gnat.com)
18630         * 5oosinte.adb: Add 2001 to copyright notice.
18632 2001-10-08  Geert Bosch  (bosch@gnat.com)
18634         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
18636         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
18638 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
18640         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
18642 2001-10-05  Geert Bosch  (bosch@gnat.com)
18644         * adaint.h: Small formatting fix.
18646 2001-10-04  Geert Bosch  <bosch@gnat.com>
18648         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
18649         Arg is int, not FILE *, in dummy version of functions.
18651         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
18652         Arg is int, not FILE *.
18654 2001-10-04  Geert Bosch  <bosch@gnat.com>
18656         * 3lsoccon.ads: Added file, missed with initial check ins.
18658         * 4lintnam.ads: Fix header format.
18659         Change Linux to GNU/Linux.
18661         * 5iosinte.adb: Change Linux to GNU/Linux.
18663         * 5iosinte.ads: Change Linux to GNU/Linux.
18665         * 5itaprop.adb: Change Linux to GNU/Linux.
18667         * 5itaspri.ads: Change Linux to GNU/Linux.
18668         Update copyright notice.
18670         * 5lintman.adb: Change Linux to GNU/Linux.
18672         * 5lml-tgt.adb: Change Linux to GNU/Linux.
18674         * 5losinte.ads: Change Linux to GNU/Linux.
18676         * 5lsystem.ads: Change Linux to GNU/Linux.
18678         * 5qosinte.adb: Change Linux to GNU/Linux.
18680         * 5qosinte.ads: Change Linux to GNU/Linux.
18682         * 5qparame.ads: Change Linux to GNU/Linux.
18684         * 5qtaprop.adb: Change Linux to GNU/Linux.
18686         * 5qtaspri.ads: Change Linux to GNU/Linux.
18687         Add 2001 to copyright notice.
18689         * 5vintman.ads: Change Linux to GNU/Linux.
18690         Fix header format.  Add 2001 to copyright notice.
18692         * g-soccon.ads: Change Linux to GNU/Linux.
18694         * g-trasym.ads: Change Linux to GNU/Linux.
18695         Add 2001 to copyright notice.
18697         * memtrack.adb: Change Linux to GNU/Linux.
18699         * s-intman.ads: Change Linux to GNU/Linux.
18700         Add 2001 to copyright notice.  Fix header format.
18702         * s-stache.adb: Change Linux to GNU/Linux.
18704         * adaint.c: Change Linux to GNU/Linux.
18706         * cio.c: Change Linux to GNU/Linux.
18708         * cstreams.c: Change Linux to GNU/Linux.
18710         * init.c: Change Linux to GNU/Linux.
18712         * gmem.c: Change Linux to GNU/Linux.
18714         * tracebak.c: Change Linux to GNU/Linux.
18717 2001-10-02  Geert Bosch  <bosch@gnat.com>
18719         * misc.c (insert_default_attributes): Add dummy version.