1 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
3 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4 type has self-referential size, get the size from the initializing
5 expression directly if it is also a constant whose nominal type
6 has self-referential size.
8 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
14 * env.c: Always include crt_externs.h if __APPLE__ is defined.
15 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
17 2008-04-01 Andreas Jaeger <aj@suse.de>
19 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
22 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 * g-table.adb, g-tasloc.adb, g-traceb.ads,
25 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
26 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
27 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
28 gnatlink.adb, gnatmem.adb, gprep.adb,
29 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
30 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
31 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
32 lib-xref.ads, lib.adb, link.c, live.ads,
33 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
34 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
35 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
36 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
37 namet.adb, namet.h, nlists.adb, nlists.ads,
38 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
39 osint-c.ads, osint.adb, osint.ads, output.ads,
40 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
41 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
42 par-endh.adb, par-labl.adb, par-prag.adb,
43 par-sync.adb, par-tchk.adb, par-util.adb,
44 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
45 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
46 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
47 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
49 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
51 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
52 size if it has overflowed.
54 2008-03-31 Olivier Hainque <hainque@adacore.com>
55 Eric Botcazou <ebotcazou@adacore.com>
57 * utils2.c (find_common_type): Document assumption on t1/t2 vs
58 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
60 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
63 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
64 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
65 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
66 exp_tss.ads, exp_util.adb, exp_util.ads,
67 exp_vfpt.adb, freeze.adb, freeze.ads,
68 frontend.adb, g-alleve.adb, g-altcon.adb,
69 g-altive.ads, g-alveop.ads, g-alvevi.ads,
70 g-arrspl.adb, g-busorg.ads, g-calend.adb,
71 g-calend.ads, g-casuti.ads, g-cgideb.adb,
72 g-comlin.adb, g-comlin.ads, g-curexc.ads,
73 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
74 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
75 g-dyntab.adb, g-encstr.ads, g-excact.ads,
76 g-except.ads, g-expect.ads, g-heasor.adb,
77 g-hesora.adb, g-hesorg.adb, g-htable.ads,
78 g-locfil.ads, g-md5.adb, g-md5.ads,
79 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
80 g-pehage.adb, g-pehage.ads, g-regexp.adb,
81 g-regexp.ads, g-regpat.adb, g-regpat.ads,
82 g-soccon-aix.ads, g-soccon-darwin.ads,
83 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
84 g-soccon-hpux.ads, g-soccon-irix.ads,
85 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
86 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
87 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
88 g-soccon-solaris.ads, g-soccon-tru64.ads,
89 g-soccon-vms.ads, g-soccon-vxworks.ads,
90 g-soccon.ads, g-socket.adb, g-socket.ads,
91 g-socthi-mingw.adb, g-socthi-vms.adb,
92 g-socthi-vxworks.adb, g-soliop-mingw.ads,
93 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
94 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
97 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
99 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
100 if the procedure is imported.
102 2008-03-26 Arnaud Charlet <charlet@adacore.com>
104 * adaint.c: Fix warnings.
106 2008-03-26 Arnaud Charlet <charlet@adacore.com>
108 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
110 2008-03-26 Arnaud Charlet <charlet@adacore.com>
112 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
113 Fix problem of status check for null file
115 2008-03-26 Arnaud Charlet <charlet@adacore.com>
117 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
118 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
119 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
120 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
121 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
124 2008-03-26 Thomas Quinot <quinot@adacore.com>
127 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
128 Get_Socket_Option): Add support for Receive_Packet_Info.
130 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
131 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
132 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
133 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
134 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
135 new constants SO_REUSEPORT and IP_PKTINFO
137 2008-03-26 Robert Dewar <dewar@adacore.com>
139 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
140 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
141 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
142 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
143 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
144 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
145 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
146 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
147 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
148 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
149 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
150 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
151 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
152 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
153 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
154 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
155 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
156 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
157 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
158 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
159 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
160 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
161 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
162 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
163 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
164 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
165 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
166 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
167 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
168 s-tasloc.adb: Minor reformatting.
170 Remove "used for" sections from comments.
172 2008-03-26 Robert Dewar <dewar@adacore.com>
174 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
175 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
176 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
177 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
178 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
179 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
180 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
181 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
182 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
183 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
184 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
185 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
186 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
187 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
188 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
189 double spaced if it fits on one line and otherwise single spaced.
191 2008-03-26 Arnaud Charlet <charlet@adacore.com>
193 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
194 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
195 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
196 or task info if the thread could not be created.
198 2008-03-26 Arnaud Charlet <charlet@adacore.com>
200 * gnatvsn.ads (Library_Version): Bump to 4.4.
201 (Current_Year): Bump to 2008.
203 2008-03-26 Robert Dewar <dewar@adacore.com>
205 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
207 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
209 * debug.adb: Add debug flags d.r and d.v
210 Add debug flag .T (Optimize_Alignment (Time))
211 Add debug flag .S (Optimize_Alignment (Space))
213 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
214 depending on setting of relevant debug flags.
215 Replace use of Warnings_Off by Has_Warnings_Off
216 (Freeze_Entity): In circuit for warning on suspicious convention
217 actuals, do not give warning if subprogram has same entity as formal
218 type, or if subprogram does not come from source.
219 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
220 if Optimize_Alignment set to Space.
222 * frontend.adb: Add call to Sem_Warn.Initialize
223 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
224 Reset Optimize_Alignment mode from debug switches .S and .T
226 * layout.adb (Layout_Composite_Object): Rewritten for
227 Optimize_Aligment pragma.
229 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
232 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
234 * par-prag.adb (N_Pragma): Chars field removed, use Chars
235 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
236 this change. Add entry for pragma Optimize_Alignment
238 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
239 (Pragma_Identifier (..
240 instead, adjustments throughout to accomodate this change.
241 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
242 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
243 Add implementation of pragma Optimize_Alignment
245 2008-03-26 Vincent Celier <celier@adacore.com>
247 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
248 Improve memory usage to avoid use of stack.
250 2008-03-26 Robert Dewar <dewar@adacore.com>
252 * a-teioed.ads: Correct value of Default_Fill
254 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
256 2008-03-26 Robert Dewar <dewar@adacore.com>
258 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
259 with Current_Output (introduce Self).
261 2008-03-26 Robert Dewar <dewar@adacore.com>
263 * checks.adb (Ensure_Valid): Capture valid status if possible
266 2008-03-26 Robert Dewar <dewar@adacore.com>
268 * stand.ads: Deal with reordering of package standard declarations
270 * cstand.adb: Put package Standard declarations in proper order
272 2008-03-26 Robert Dewar <dewar@adacore.com>
274 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
275 (Pragma_Identifier (.. instead.
276 (OK_To_Reorder_Components): New flag
277 (Has_Entries): Code cleanup.
278 (Warnings_Off_Used): New flag
279 (Warnings_Off_Used_Unmodified): New flag
280 (Warnings_Off_Used_Unreferenced): New flag
281 (Has_Warnings_Off): New function
282 (Has_Unmodified): New function
283 (Has_Unreferenced): New function
284 (Is_Trivial_Subprogram): New flag
285 (Is_Static_Dispatch_Table_Entity): New attribute.
286 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
287 (more consistent with other similar names)
288 (Access_Subprogram_Type): New classification function
290 2008-03-26 Robert Dewar <dewar@adacore.com>
292 * errout.ads: Document new !! insertion sequence
294 * errout.adb (N_Pragma): Chars field removed, use Chars
295 (Pragma_Identifier (.. instead.
296 Replace use of Warnings_Off by Has_Warnings_Off
297 (Error_Msg_Internal): Don't delete warning ending in !!
299 2008-03-26 Robert Dewar <dewar@adacore.com>
301 * par.adb (Check_No_Right_Paren): Removed no longer used
303 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
304 (Pragma_Identifier (.. instead.
306 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
308 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
309 par-ch4.adb: Minor improvements in error recovery and messages.
311 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
314 * par-ch9.adb: Minor improvements in error recovery and messages
315 (P_Protected): Better error recovery for "protected type x;"
317 * par-util.adb: Minor improvements in error recovery and messages
318 (Check_No_Right_Paren): Removed no longer used
320 2008-03-26 Ed Schonberg <schonberg@adacore.com>
322 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
323 that the prefix of an attribute is the type of the aggregate being
326 2008-03-26 Javier Miranda <miranda@adacore.com>
327 Robert Dewar <dewar@adacore.com>
329 * exp_attr.adb (N_Pragma): Chars field removed.
330 (Expand_N_Attribute_Reference): If the designated type associated with
331 attribute 'Unrestricted_Access is a subprogram entity then replace it
332 by an E_Subprogram_Type itype.
333 Implement attribute Old
335 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
337 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
339 New_Internal_Entity by call to Create_Itype to centralize calls
340 building itypes, ad propagate the convention of the designated
341 subprogram. In addition, disable the machinery cleaning constant
342 indications from all entities in current scope when 'Unrestricted_Access
343 corresponds with a node initializing a dispatch table slot.
344 (Analyze_Attribute): Parameterless attributes returning a string or a
345 type will not be called with improper arguments, so we can remove junk
346 code that was dealing with this case.
347 Implement attribute Old
349 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
350 Add entry for pragma Optimize_Alignment
351 New standard names Sync and Synchronize
353 2008-03-26 Robert Dewar <dewar@adacore.com>
354 Arnaud Charlet <charlet@adacore.com>
356 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
358 (No_Exception_Propagation_Active): New function.
359 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
360 Update comments, and review all uses of No_Exception_Propagation, which
361 are now correct and in sync with what gigi expects.
363 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
365 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
366 Update comments, and review all uses of No_Exception_Propagation, which
367 are now correct and in sync with what gigi expects.
369 2008-03-26 Ed Schonberg <schonberg@adacore.com>
371 * sem_ch3.adb (Access_Definition): If the access type is the return
372 result of a protected function, create an itype reference for it
373 because usage will be in an inner scope from the point of declaration.
374 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
375 OK_To_Reorder_Components.
376 (Make_Index): If an overloaded range includes a universal integer
377 interpretation, resolve to Standard.Integer.
378 (Analyze_Subtype_Indication): Copy Convention to subtype
379 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
380 limited an synchronized progenitors in type declaration and private
381 extension declarations.
383 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
384 protected subprogram body, determine proper scope from subprogram
387 2008-03-26 Robert Dewar <dewar@adacore.com>
389 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
392 2008-03-26 Gary Dismukes <dismukes@adacore.com>
394 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
395 of a heap allocator for a limited unconstrained function return when
396 resstriction No_Allocators is active.
397 (Analyze_Allocator): The restriction No_Allocators is now only checked
398 on allocators that have Comes_From_Source set, as per RM-H.4(7).
400 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
401 of a heap allocator for a limited unconstrained function return when
402 resstriction No_Allocators is active.
403 (Analyze_Allocator): The restriction No_Allocators is now only checked
404 on allocators that have Comes_From_Source set, as per RM-H.4(7).
405 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
406 operands are fixed-point types, the universal_fixed predefined operation
407 is used, regardless of whether the operand type (s) have a primitive
408 operation of the same name.
410 2008-03-26 Javier Miranda <miranda@adacore.com>
412 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
413 Is_Static_Dispatch_Table
414 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
415 to Exchange_Declarations to exchange the private and full-view. Bug
416 found working in this issue.
417 (Expand_Dispatching_Call): Propagate the convention of the subprogram
418 to the subprogram pointer type.
419 (Make_Secondary_DT): Replace generation of Prim'Address by
420 Address (Prim'Unrestricted_Access)
421 (Make_DT): Replace generation of Prim'Address by
422 Address (Prim'Unrestricted_Access)
423 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
424 simple call form for single entry.
425 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
426 tables of predefined primitives).
427 (Make_Secondary_DT): Add support to handle access to dispatch tables of
428 predefined primitives.
429 (Make_Tags): Add entities to Access_Dispatch_Table associated with
430 access to dispatch tables containing predefined primitives.
432 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
433 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
435 (Register_Predefined_DT_Entry): Updated to handle the new contents
436 of attribute Access_Disp_Table (pointers to dispatch tables containing
437 predefined primitives).
439 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
441 (Find_Interface_ADT): Updated to skip the new contents of attribute
442 Access_Dispatch_Table (pointers to dispatch tables containing predefined
445 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
447 (Set_Convention): Use new function Is_Access_Subprogram_Type
448 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
449 Access_Dispatch_Table (pointers to dispatch tables containing predefined
452 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
453 expanded code avoiding calls to Build_Predef_Prims.
454 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
455 call to Build_Get_Predefined_Prim_Op_Address.
457 2008-03-26 Javier Miranda <miranda@adacore.com>
459 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
460 subprogram Corresponding_Runtime_Package to know the runtime package
461 that will provide support to a given protected type.
463 * exp_ch9.adb (Add_Private_Declarations,
464 Build_Protected_Subprogram_Call,
465 Build_Protected_Entry, Build_Simple_Entry_Call,
466 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
467 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
468 cleanup using the new centralized subprogram Corresponding_Runtime
469 Package to know the runtime package that provides support to
470 a given protected type.
472 2008-03-26 Ed Schonberg <schonberg@adacore.com>
474 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
475 assignment is within the initialization procedure for a packed array,
476 and Initialize_Scalars is enabled, compile right-hand side with checks
477 off, because the value is purposely out of range.
479 2008-03-26 Vincent Celier <celier@adacore.com>
481 * gnatcmd.adb: Add processing for GNAT SYNC
483 * vms_conv.ads: (Command_Type): Add command Sync
485 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
487 * vms_data.ads: Add entries for -gnatw.w
488 Add qualifier for gnatstub --header-file option
489 Add switches for GNAT SYNC
491 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
492 (Add_Package_Name): New procedure
493 (Package_Name_List): New function
494 (Initialize): Add known package names to the list
495 (Register_New_Package): Add the new package name to the list
497 2008-03-26 Robert Dewar <dewar@adacore.com>
499 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
500 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
501 Raise_Exception by "raise with" construct.
503 2008-03-26 Pascal Obry <obry@adacore.com>
505 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
508 * Makefile.rtl: Add g-sercom.o.
510 * impunit.adb: Add g-sercom.adb.
512 * s-crtl.ads (open): New routine.
516 * s-osinte-mingw.ads (BYTE): New type.
518 (OVERLAPPED): Likewise.
519 (GENERIC_READ): New constant.
520 (GENERIC_WRITE): Likewise.
521 (OPEN_EXISTING): Likewise.
522 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
524 (CreateFile): New routine.
525 (WriteFile): Likewise.
526 (ReadFile): Likewise.
527 (CloseHandle): Move next to the other file oriented routines.
529 * g-sercom.ads: New unit.
531 * g-sercom.adb: Default implementation, calls to this unit will raise
532 a program error exception.
534 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
535 GNU/Linux implementations.
537 2008-03-26 Robert Dewar <dewar@adacore.com>
539 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
541 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
542 unchecked conversion for different conventions only for subprogram
545 2008-03-26 Vincent Celier <celier@adacore.com>
547 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
548 to check if the specified object file is correct.
550 2008-03-26 Thomas Quinot <quinot@adacore.com>
552 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
553 Comes_From_Source to exclude primitives from being checked. We want to
554 exclude predefined primitives only, so use the appropriate specific
555 predicate. Also, flag a formal parameter of an anonymous
556 access-to-subprogram type as illegal for a primitive operation of a
557 remote access to class-wide type.
559 2008-03-26 Vincent Celier <celier@adacore.com>
561 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
562 known, check if it may be a missspelling of a known package name. In
563 not verbose, not mode, issue warnings only if the package name is a
564 possible misspelling.
565 In verbose mode, always issue a warning for a not known package name,
566 plus a warning if the name is a misspelling of a known package name.
568 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
569 limited withs or limited withs are parse during one call.
570 (Parse_Single_Project): Post parse context clause in two passes: non
571 limited withs before current project and limited withs after current
574 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
575 project with the name With_Name, even if it is only extended indirectly.
576 (Recursive_Process): Process projects in order: first single withs, then
577 current project, then limited withs.
579 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
580 project with the name With_Name, even if it is only extended indirectly.
582 2008-03-26 Robert Dewar <dewar@adacore.com>
584 * scn.adb (Initialize_Scanner): Format messages belong on standard error
586 2008-03-26 Ed Schonberg <schonberg@adacore.com>
588 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
589 a generic subprogram that is imported, do not attempt to compile
592 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
593 imported, do not generate a raise_program_error for the non-existent
595 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
596 perform minimal name resolution on the generic to avoid spurious
598 (Find_Actual_Type): the designated type of the actual in a child unit
599 may be declared in a parent unit without being an actual.
601 2008-03-26 Robert Dewar <dewar@adacore.com>
603 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
604 * sinfo.ads, sinfo.adb (From_At_End): New flag
606 2008-03-26 Ed Schonberg <schonberg@adacore.com>
608 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
609 operations that have an interface parameter.
610 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
611 Don't treat No_Return call as raise.
613 * sem_disp.adb (Check_Dispatching_Operations): apply check for
614 non-primitive interface primitives to access parameters, not to all
615 parameters of an access type.
617 2008-03-26 Ed Schonberg <schonberg@adacore.com>
619 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
620 declarations of a parent unit are made visible when compiling a child
621 instance, the parent is not a hidden open scope, even though it may
622 contain other pending instance.
624 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
625 hidden open scope for some child instance, it does affect the
626 visibility status of other stach entries.
627 (Analyze_Object_Renaming): Check that a class-wide object cannot be
628 renamed as an object of a specific type.
630 2008-03-26 Robert Dewar <dewar@adacore.com>
632 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
633 recursion and raise SE directly.
634 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
635 set for formal type for IN mode parameter.
637 2008-03-26 Robert Dewar <dewar@adacore.com>
639 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
640 (Initialize): New procedure
641 (Output_Warnings_Off_Warnings): New procedure
642 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
643 (Output_Non_Modifed_In_Out_Warnings): Ditto
644 (Warn_On_Unreferenced_Entity): Ditto
646 2008-03-26 Vincent Celier <celier@adacore.com>
648 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
651 2008-03-26 Matthew Heaney <heaney@adacore.com>
653 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
654 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
655 Marked with clauses as private, and controlled operations as overriding
657 2008-03-26 Robert Dewar <dewar@adacore.com>
659 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
661 2008-03-26 Robert Dewar <dewar@adacore.com>
663 * back_end.adb, back_end.ads: Minor reformatting
665 * bindgen.adb: Minor clarification of comments
667 * fname.ads: Minor comment fixes
669 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
670 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
672 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
673 xsnames.adb: Remove warnings off pragma no longer needed
675 * a-catizo.ads, a-calari.ads, a-calfor.adb,
676 a-calfor.ads: Fix header.
678 2008-03-26 Tristan Gingold <gingold@adacore.com>
680 * init.c: Do not adjust pc for HPARITH on alpha/vms.
682 2008-03-26 Robert Dewar <dewar@adacore.com>
684 * lib-xref.adb: (OK_To_Set_Reference): New function
685 (Generate_Reference): Don't set referenced from occurrence in Warnings,
686 Unmodified, or Unreferenced pragma
688 2008-03-26 Robert Dewar <dewar@adacore.com>
690 * alloc.ads: Add entries for Warnings_Off_Pragmas table
692 2008-03-26 GNAT Script <nobody@adacore.com>
694 * Make-lang.in: Makefile automatically updated
696 2008-03-26 Robert Dewar <dewar@adacore.com>
698 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
699 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
700 removed, use Chars (Pragma_Identifier (.. instead, adjustments
701 throughout to accomodate this change.
703 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
705 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
706 Einfo.Set_Needs_Debug_Info)
708 2008-03-26 Robert Dewar <dewar@adacore.com>
710 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
711 Add description for the new gnatstub option '--header-file'
712 clarification of -gnatwz/-gnatwZ
713 Add a "Irix-Specific Considerations" section to document the need to
714 set LD_LIBRARY_PATH when using the default shared runtime library.
715 Added documentation for both gcov and gprof.
717 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
718 messages that are not suppressed when clients are compiled.
719 Add documentation of s-pooglo s-pooloc
720 Document the new GNAT.Serial_Communications API.
721 Add documentation for 'Old attribute
722 Add description of pragma Optimize_Alignment
724 * ug_words: Add entries for -gnatw.w -gnatw.W
726 * usage.adb: Add line for -gnatw.w (warn on warnings off)
728 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
731 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
733 * decl.c (maybe_pad_type): Avoid padding an integral type when
734 bumping its alignment is sufficient.
736 2008-03-25 Arnaud Charlet <charlet@adacore.com>
738 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
739 Fix wrong formatting (lines too long)
741 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
743 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
744 a-calend-vms.adb, a-calend.adb, a-calend.ads,
745 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
746 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
747 a-cohama.ads, a-comlin.ads, a-coorse.adb,
748 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
749 a-except-2005.ads, a-except.adb, a-except.ads,
750 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
751 a-exextr.adb, a-filico.ads, a-finali.ads,
752 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
753 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
754 a-sequio.ads, a-strbou.ads, a-strfix.adb,
755 checks.adb, exp_ch3.adb, exp_ch4.adb,
756 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
757 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
758 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
759 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
760 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
762 2008-03-24 Robert Dewar <dewar@adacore.com>
764 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
765 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
766 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
767 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
768 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
769 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
770 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
771 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
772 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
773 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
774 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
775 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
776 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
777 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
778 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
779 double spaced if it fits on one line and otherwise single spaced.
781 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
783 PR documentation/15479
784 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
785 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
786 (doc/gnat_ugn.info): Renamed from ...
787 (doc/gnat_ugn_unw.info): ... this.
788 (doc/gnat_ugn.dvi): Renamed from ...
789 (doc/gnat_ugn_unw.dvi): ... this.
790 (doc/gnat_ugn.pdf): Renamed from ...
791 (doc/gnat_ugn_unw.pdf): ... this.
792 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
794 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
795 unconditionally to gnat_ugn.info. Fix cross references to the
796 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
797 and GNU make manuals to be proper texinfo links.
798 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
800 2008-03-21 Olivier Hainque <hainque@adacore.com>
802 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
803 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
805 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
807 * trans.c (addressable_p): Add notes on addressability issues.
809 2008-03-21 Olivier Hainque <hainque@adacore.com>
810 Ed Schonberg <schonberg@adacore.com>
812 * trans.c (addressable_p): Accept COND_EXPR when both arms
814 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
815 (call_to_gnu): Do not use name reference in the error message
816 for a misaligned by_reference_parameter. The actual may be a
819 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
821 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
823 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
825 * gnat_rm.texi (Implementation Defined Characteristics)
826 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
828 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
829 (Switches for gnatchop, Installing a library): Likewise.
831 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
833 * trans.c (emit_range_check): Do not emit the check if the base type
834 of the expression is the type against which its range must be checked.
836 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
838 * decl.c (maybe_pad_type): Use value_factor_p.
840 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
842 * lang.opt (nostdlib): Move around.
843 * misc.c (gnat_handle_option): Fix formatting.
844 (gnat_dwarf_name): Move around.
845 * trans.c (Case_Statement_to_gnu): Fix formatting.
846 (gnat_to_gnu): Likewise.
847 * utils.c (aggregate_type_contains_array_p): Likewise.
848 (create_subprog_decl): Likewise.
850 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
852 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
853 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
855 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
857 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
858 BIGGEST_ALIGNMENT when capping the alignment of records with
859 strict alignment and size clause.
861 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
863 * lang-specs.h: Pass -gnatwa if -Wall is passed.
864 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
866 (gnat_post_options): Clear warn_unused_parameter.
868 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
870 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
871 aligned bit-fields, bumping the alignment of the record type if deemed
873 (value_factor_p): Return false instead of 0.
875 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
877 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
878 for scalar types with small alignment.
880 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
882 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
883 from that of the front-end's end label.
884 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
885 from that of the loop label.
887 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
889 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
890 comment for the packed array type case.
891 * utils.c (build_template): Use a loop to strip padding or
892 containing records for justified modular types.
894 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
896 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
897 large alignments specified for types.
898 (validate_alignment): Minor cleanup.
900 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
902 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
903 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
904 the component for packing, if possible, as well as if a component
905 size clause is specified.
906 <E_Record_Subtype>: For an array type used to implement a packed
907 array, get the component type from the original array type.
908 Try to get a smaller form of the component for packing, if possible,
909 as well as if a component size clause is specified.
910 (round_up_to_align): New function.
911 (make_packable_type): Add in_record parameter.
912 For a padding record, preserve the size. If not in_record and the
913 size is too large for an integral mode, attempt to shrink the size
914 by lowering the alignment.
915 Ditch the padding bits of the last component.
916 Compute sizes and mode manually, and propagate the RM size.
917 Return a BLKmode record type if its size has shrunk.
918 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
919 Use Original_Array_Type to retrieve the type in case of an error.
920 Adjust call to make_packable_type.
921 (gnat_to_gnu_field): Likewise.
922 (concat_id_with_name): Minor tweak.
923 * trans.c (larger_record_type_p): New predicate.
924 (call_to_gnu): Compute the nominal type of the object only if the
925 parameter is by-reference. Do the conversion actual type -> nominal
926 type if the nominal type is a larger record.
927 (gnat_to_gnu): Do not require integral modes on the source type to
928 avoid the conversion for types with identical names.
929 (addressable_p): Add gnu_type parameter. If it is specified, do not
930 return true if the expression is not addressable in gnu_type.
931 Adjust recursive calls.
932 * utils.c (finish_record_type): Remove dead code.
934 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
937 * decl.c (maybe_pad_type): Avoid padding an integral type when
938 bumping its alignment is sufficient.
940 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
942 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
943 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
945 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
946 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
947 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
949 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
950 system-vms_64.ads: Fix typos in ada source code comments.
951 * sinfo-cn.adb: Remove incomplete sentence.
953 PR documentation/15479
954 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
956 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
959 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
961 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
964 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
965 that underlying type is present.
967 2008-02-26 Tom Tromey <tromey@redhat.com>
969 * misc.c (internal_error_function): Remove test of
971 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
972 (Sloc_to_locus): Remove old location code.
974 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
976 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
977 `i.e.' by adding comma or `@:' as appropriate.
978 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
979 plain characters `C', use `@samp{C}'.
980 * gnat_ugn.texi (File Naming Rules, About gnatkr)
981 (Krunching Method): Likewise.
983 * gnat_ugn.texi (Conventions): List environment variables and
984 metasyntactic variables.
985 (Compiling Programs): Fix notation of metasyntactic variables.
986 Add @file where appropriate. Use @file for file extensions,
988 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
989 instead of @file, @env instead of @code.
991 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
993 PR documentation/15479
994 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
995 and `...' with `@dots{}' or `@enddots{}'.
997 PR documentation/15479
998 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
999 use @command instead of @code, @option instead of @samp or @code,
1000 @code instead of @var, @samp instead of @file.
1002 PR documentation/15479
1003 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
1004 in Makefile rules, by using `&&' rather than `;'.
1006 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1008 PR documentation/15479
1009 * gnat_ugn.texi: In non-code, avoid space before colon.
1010 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
1011 (Examples of gnatxref Usage): Use @command{vi} instead of
1013 (Character Set Control): Do not use @code for UTF-8.
1014 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
1016 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
1018 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
1020 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
1023 * env.c: Add __rtems__ to if defined.
1024 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
1025 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
1026 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
1027 pragma Convention as required.
1028 * gsocket.h: Make compile in and out of RTS.
1029 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
1030 Use g-soccon-rtems.ads.
1031 * g-soccon-rtems.ads, system-rtems.ads: New files.
1033 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1036 * Make-lang.in (gnat1): Add $(GMPLIBS).
1038 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
1040 * decl.c (components_to_record): Improve comment.
1042 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
1044 * decl.c (components_to_record): Do not reuse the empty union type
1045 if there is a representation clause on the record.
1046 * trans.c (addressable_p): Return true for INTEGER_CST.
1048 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
1050 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
1051 in pointer arithmetics.
1052 * utils2.c (build_allocator): Likewise.
1054 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
1056 * utils.c (build_function_stub): Properly build the call expression.
1058 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
1060 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
1061 before converting the expression to the type of the object.
1062 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
1063 Stabilize constructors for special wrapping types.
1065 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
1067 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
1068 when necessary. Merge some conditional statements. Update comments.
1069 Rename unchecked_convert_p local variable to suppress_type_conversion.
1070 Do not suppress conversions in the In case.
1071 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
1072 into account on non strict-alignment platforms.
1074 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
1076 * utils.c (aggregate_type_contains_array_p): New predicate.
1077 (create_field_decl): In a packed record, force byte alignment
1078 for fields without specified position that contain an array.
1080 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
1082 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
1084 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
1087 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
1089 (bit_field): New packed boolean type used by cpu_set_t.
1090 (cpu_set_t): New type corresponding to the C type with
1091 the same name. Note that on the Ada side we use a bit
1092 field array for the affinity mask. There is not need
1093 for the C macro for setting individual bit.
1094 (pthread_setaffinity_np): New imported routine.
1096 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
1099 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
1100 on OpenBSD as is done on other BSD systems.
1103 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
1104 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
1108 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
1112 * init.c (__gnat_error_handler, __gnat_install_handler,
1113 __gnat_init_float): Define for OpenBSD.
1115 * initialize.c (__gnat_initialize): Define for OpenBSD.
1117 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
1120 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
1121 instead of mktemp() or tmpnam() on NetBSD.
1123 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
1125 * trans.c (call_to_gnu): Make the temporary for non-addressable
1126 In parameters passed by reference.
1127 (addressable_p): Return true for STRING_CST and CALL_EXPR.
1129 2007-12-19 Robert Dewar <dewar@adacore.com>
1131 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
1132 Add pragma Warnings (Off) for unassigned IN OUT arguments
1134 * sem_warn.adb (Output_Reference): Suppress messages for internal names
1135 (Check_References): Extensive changes to tune up warnings
1136 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
1137 (Has_Pragma_Unmodifed_Check_Spec): New function
1138 (Check_References): Implement pragma Unmodified
1139 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
1141 * par-prag.adb: Dummy entry for pragma Unmodified
1143 * sem_prag.adb: Implement pragma Unmodified
1145 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
1146 (Proc_Next_Component_Or_Discriminant): Fix typo.
1149 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
1151 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
1152 because the former already takes care of discarding the result.
1153 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
1156 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
1158 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
1160 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
1161 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
1162 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
1163 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
1164 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
1165 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
1166 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
1167 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
1168 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1169 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
1170 (Dynamic_Trampolines_Used): Delete.
1172 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
1173 Turn on stack probing mechanism on LynxOS.
1175 2007-12-19 Bob Duff <duff@adacore.com>
1177 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
1178 the resulting tail recursion by hand. This prevents running out of
1179 memory on deeply nested concatenations, since Field2 is where the left
1180 operand of concatenations is stored.
1181 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
1182 clarify that it can only return OK or Abandon.
1184 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
1185 operand by iteration, in order to avoid running out of memory on
1186 deeply-nested concatenations. Use the Parent pointer to get back up the
1188 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
1189 Resolve_Op_Concat_Rest): New procedures split out of
1190 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
1193 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
1194 Traverse_Func, because the former already takes care of discarding the
1197 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
1198 because the former already takes care of discarding the result.
1199 (Remove_Warning_Messages): Use appropriate subtype for Status and
1202 2007-12-19 Ed Schonberg <schonberg@adacore.com>
1204 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
1205 discriminants forces expansion of the aggregate into assignments.
1206 (Init_Record_Controller): If the type of the aggregate is untagged and
1207 is not inherently limited, the record controller is not limited either.
1209 2007-12-19 Robert Dewar <dewar@adacore.com>
1211 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
1212 handling compile time known size of record or array (case of front end
1213 layout active, e.g. in GNAAMP).
1215 2007-12-19 Javier Miranda <miranda@adacore.com>
1217 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
1218 that forces the construction of static dispatch tables in case of
1221 2007-12-19 Robert Dewar <dewar@adacore.com>
1223 * exp_ch9.adb (Null_Statements): Moved to library level
1224 (Trivial_Accept_OK): New function
1225 (Expand_Accept_Declaration): Use Trivial_Accept_OK
1226 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
1228 2007-12-19 Robert Dewar <dewar@adacore.com>
1230 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
1231 in complex case where array is Volatile.
1233 2007-12-19 Ed Schonberg <schonberg@adacore.com>
1235 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
1236 properly the Ada2005 rules concerning when the current instance of a
1237 record type is aliased.
1239 2007-12-19 Ed Schonberg <schonberg@adacore.com>
1241 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
1243 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
1245 (P_Variant_Part): Cleaner patch for parenthesized discriminant
1247 2007-12-19 Vincent Celier <celier@adacore.com>
1249 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
1250 package is not known
1252 * prj-attr.ads (Unknown_Package): New constant
1253 Do not crash when an unknown package is in several projects
1255 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
1258 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
1259 existing package Language_Processing.
1261 2007-12-19 Ed Schonberg <schonberg@adacore.com>
1262 Gary Dismukes <dismukes@adacore.com>
1263 Samuel Tardieu <sam@rfc1149.net>
1265 PR ada/15803, ada/15805
1266 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
1267 illegal access subtypes when there is a constrained partial view.
1268 (Check_For_Premature_Usage): New procedure inside
1269 Access_Subprogram_Declaration for checking that an access-to-subprogram
1270 type doesn't reference its own name within any formal parameters or
1271 result type (including within nested anonymous access types).
1272 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
1273 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
1274 context is an access_to_variable, the expression cannot be an
1277 2007-12-19 Bob Duff <duff@adacore.com>
1279 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
1280 (Analyze_Concatenation): Use iteration instead of recursion in order
1281 to avoid running out of stack space for deeply nested concatenations.
1283 2007-12-19 Ed Schonberg <schonberg@adacore.com>
1284 Gary Dismukes <dismukes@adacore.com>
1286 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
1287 whose renamed entity is a subprogram that requires overriding.
1288 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
1289 issuing an error for premature usage and issue a message that says
1290 'type' rather than 'object'.
1292 2007-12-19 Gary Dismukes <dismukes@adacore.com>
1295 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
1296 presence of a statically tagged operand (Present (Static_Tag)) with
1297 test for Indeterm_Ancestor_Call when determining whether to propagate
1298 the static tag to tag-indeterminate operands (which forces dispatching
1300 (Check_Controlling_Formals): Ada2005, access parameters can have
1302 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
1303 not insert subprogram in list of primitive operations if already there.
1305 2007-12-19 Tristan Gingold <gingold@adacore.com>
1307 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
1310 2007-12-19 Thomas Quinot <quinot@adacore.com>
1312 Part of PR ada/33688
1313 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
1314 datagram info on Linux.
1316 2007-12-19 Vincent Celier <celier@adacore.com>
1318 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
1319 that the source path name is always found in the dependencies.
1321 2007-12-19 Robert Dewar <dewar@adacore.com>
1323 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
1324 Fix name of Wide_Wide_Latin_1/9 file names
1325 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
1326 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
1327 Add missing documentation for Ada.Command_Line.Response_File
1328 Update list of warning letters for Warnings pragma
1329 Add documentation for pragma Unmodified
1331 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
1333 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
1335 2007-12-17 Arnaud Charlet <charlet@adacore.com>
1337 * s-vxwork-alpha.ads: Removed, no longer used.
1339 2007-12-15 Jakub Jelinek <jakub@redhat.com>
1341 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
1343 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
1346 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
1347 mlib-tgt-specific.adb.
1349 2007-12-13 Bob Duff <duff@adacore.com>
1351 * trans.c (Attribute_to_gnu): Check for violations of the
1352 No_Implicit_Dynamic_Code restriction. This checking used to be done in
1353 the front end, but is moved here so we can make it more accurate.
1355 2007-12-13 Pascal Obry <obry@adacore.com>
1357 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
1358 version is provided for older GNU/Linux distribution not
1359 supporting thread affinity sets.
1361 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
1363 (bit_field): New packed boolean type used by cpu_set_t.
1364 (cpu_set_t): New type corresponding to the C type with
1365 the same name. Note that on the Ada side we use a bit
1366 field array for the affinity mask. There is not need
1367 for the C macro for setting individual bit.
1368 (pthread_setaffinity_np): New imported routine.
1370 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
1372 (Create_Task): Set the processor affinity mask if information
1375 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
1377 2007-12-13 Robert Dewar <dewar@adacore.com>
1379 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1380 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
1381 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
1382 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
1383 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
1384 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
1385 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
1386 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
1387 for subprogram pointers.
1389 * g-ctrl_c.adb: New file.
1391 * g-ctrl_c.ads (Install_Handler): New body.
1393 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
1394 instead of obsolete function Is_Always_Inlined.
1395 (Freeze_Entity): check for tagged type in imported C subprogram
1396 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
1397 (Freeze_Entity): check for convention Ada subprogram pointer in
1398 imported C subprogram.
1399 (Freeze_Fixed_Point_Type): In the case of a base type where the low
1400 bound would be chopped off and go from negative to zero, force
1401 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
1402 bound) so that the size computation for the base type will take
1403 negative values into account.
1405 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
1406 Bob Duff <duff@adacore.com>
1407 Tristan Gingold <gingold@adacore.com>
1409 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
1410 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
1411 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
1412 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
1413 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
1414 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1415 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
1416 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
1417 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
1418 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
1419 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
1420 (Always_Compatible_Rep): New flag to control trampolines globally.
1421 (Dynamic_Trampolines_Used): New flag for implementing the
1422 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
1423 and not yet set correctly for some targets).
1425 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
1426 Simply indirectly call s-stchop when a task is created.
1429 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
1430 appears as an argument (entries A) in an ALI file.
1432 * fe.h (Stack_Check_Limits): Declare new target parameter.
1433 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
1435 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
1436 This variable is declared in C to be sure not subject to elaboration
1438 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
1441 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
1442 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
1444 * s-stchop.ads: Add comments.
1446 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
1447 limit method of stack checking.
1449 * s-stchop-limit.ads: New file.
1451 2007-12-13 Robert Dewar <dewar@adacore.com>
1453 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
1454 a-cihama.adb, g-awk.adb,
1455 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
1458 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
1460 * sem.adb: Update handling of assigned value/unreferenced warnings
1462 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
1464 * lib-xref.ads: Improve documentation for k xref type
1467 Update handling of assigned value/unreferenced warnings
1468 (Generate_Reference): Warning for reference to entity for which a
1469 pragma Unreferenced has been given should be unconditional.
1470 If the entity is a discriminal, mark the original
1471 discriminant as referenced.
1473 * sem_warn.ads, sem_warn.adb
1474 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
1475 no entities referenced in package
1476 (Check_One_Unit): Don't give message about no entities referenced in
1477 a package if a pragma Unreferenced has appeared.
1478 Handle new warning flag -gnatw.a/-gnatw.A
1479 Update handling of assigned value/unreferenced warnings
1481 * atree.h: Add flags up to Flag247
1482 (Flag231): New macro.
1484 2007-12-13 Jose Ruiz <ruiz@adacore.com>
1486 * adaint.h: (__gnat_plist_init): Not defined for RTX.
1488 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
1491 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
1492 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
1493 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
1494 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
1497 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
1499 * sysdep.c (winflush_function for RTX): Procedure that does nothing
1500 since we only have problems with Windows 95/98, which are not
1502 (__gnat_ttyname): Return the empty string on Nucleus, just as
1505 2007-12-13 Robert Dewar <dewar@adacore.com>
1507 * a-textio.adb, a-textio.ads:
1508 Extensive changes to private part for wide character encoding
1510 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
1511 (Look_Ahead): Fix mishandling of encoded sequences
1512 Move declaration of Wch_Con to private part (should not be visible)
1514 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
1515 UTF-8. Probably this is never used, but if it is, brackets is
1518 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
1519 setting wide character encoding for no main program case and when
1520 encoding is specified using -W?
1521 Initialize stack limit of environment task if stack limit method of
1522 stack checking is enabled.
1523 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
1524 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
1525 (Get_Main_Unit_Name): New function.
1526 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
1527 (Gen_Output_File): Set Bind_Main_Program to True for .NET
1529 * bindusg.adb: Add line for -Wx switch
1531 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
1533 Add new useful constant WC_Longest_Sequences
1535 * switch-b.adb: Clean up handling of -Wx switch
1536 For -gnatWx, set Wide_Character_Encoding_Method_Specified
1538 * switch-c.adb: -gnatg activates warning on assertion errors
1539 For -gnatWx, set Wide_Character_Encoding_Method_Specified
1541 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
1543 2007-12-13 Robert Dewar <dewar@adacore.com>
1544 Ed Schonberg <schonberg@adacore.com>
1546 * a-ngcoty.adb: New pragma Fast_Math
1548 * opt.adb: New pragma Fast_Math
1551 Add Implemented_By_Entry to the list of pragmas which do not require any
1553 (Favor_Top_Level): New pragma.
1554 New pragma Fast_Math
1556 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
1557 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
1558 Expand_Allocator_Expression): Take into account VM_Target
1559 (Expand_Attribute, case 'Identity): Handle properly the case where
1560 the prefix is a task interface.
1561 New pragma Fast_Math
1563 * par.adb (Next_Token_Is): New function
1564 (P_Pragma): Add Skipping parameter
1565 (U_Left_Paren): New procedure
1566 (U_Right_Paren): New procedure
1567 New pragma Fast_Math
1569 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
1571 New pragma Fast_Math
1573 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
1574 Implemented_By_Entry.
1575 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
1576 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
1577 items, since it can apply to more than one overloadable entity. Set
1578 new flag Has_Pragma_Inline_Always for Inline_Always case.
1579 (Analyze_Pragma, case Complex_Representation): Improve error message.
1580 (Analyze_Pragma, case Assert): When assertions are disabled build the
1581 rewritten code with Sloc of expression rather than pragma, so new
1582 warning about failing is not deleted.
1583 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
1584 protected types and update error message to reflect that. Test whether
1585 the protected type is allowed for the pragma (an error is issued if the
1586 type has any entries, or components that do not have preelaborable
1588 New pragma Fast_Math
1589 (Analyze_Pragma, case No_Return): Handle generic instance
1591 * snames.h, snames.ads, snames.adb:
1592 Add new predefined name for interface primitive _Disp_Requeue.
1593 New pragma Fast_Math
1595 * a-tags.ads, a-tags.adb: New calling sequence for
1596 String_To_Wide_[Wide_]String
1597 (Secondary_Tag): New subprogram.
1599 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
1601 New calling sequence for String_To_Wide_[Wide_]String
1602 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
1603 the use of the secondary stack for image routines.
1605 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
1606 calling sequence for String_To_Wide_[Wide_]String
1608 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
1610 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
1611 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1613 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
1614 (P_Formal_Part): Use Skipping parameter in P_Pragma call
1615 to improve error recovery
1617 * par-util.adb (Next_Token_Is): New function
1618 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
1620 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
1621 semicolon if missing
1622 (P_Pragma): Implement new Skipping parameter
1623 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1624 Fix location of flag for unrecognized pragma message
1626 * par-tchk.adb (U_Left_Paren): New procedure
1627 (U_Right_Paren): New procedure
1629 2007-12-13 Geert Bosch <bosch@adacore.com>
1632 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
1633 the second or later Scaled_Divide would omit leading zeroes,
1634 resulting in too few digits produced and a Layout_Error as result.
1635 (Put): Initialize Pos.
1637 2007-12-13 Robert Dewar <dewar@adacore.com>
1639 atree.ads, atree.adb (Flag231..Flag247): New functions
1640 (Set_Flag231..Set_Flag247): New procedures
1641 (Basic_Set_Convention): Rename Set_Convention to be
1642 Basic_Set_Convention
1643 (Nkind_In): New functions
1644 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1646 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
1648 of obsolete function Is_Always_Inlined
1649 (Register_Predefined_DT_Entry): Initialize slots of the second
1650 secondary dispatch table.
1651 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1652 (Expand_N_Function_Call): Remove special provision for stack checking.
1654 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
1655 Include _Disp_Requeue in the list of predefined operations.
1656 (Find_Interface_ADT): Modified to fulfill the new specification.
1657 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1659 * par-ch4.adb, nlists.ads, nlists.adb:
1660 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1662 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
1663 Fix location of flag for unrecognized pragma message
1665 * sem_ch7.adb: Use Nkind_In
1667 2007-12-13 Vincent Celier <celier@adacore.com>
1670 Indicate what flags are used by the Project Manager, gprbuild and
1672 (Opt.Follow_Links_For_Dirs): New flag
1673 (Warn_On_Assertion_Failure): New flag
1674 (Wide_Character_Encoding_Method_Specified): New flag
1675 (Suppress_All_Inlining): New switch set by -fno-inline
1676 (Real_VMS_Target): New flag
1677 New pragma Fast_Math
1679 2007-12-13 Robert Dewar <dewar@adacore.com>
1681 * back_end.adb: Recognize -fno-inline
1683 2007-12-13 Robert Dewar <dewar@adacore.com>
1685 * checks.adb: Fix optimization problem with short-circuited form
1687 2007-12-13 Bob Duff <duff@adacore.com>
1689 * clean.adb (Usage): Add line for -aP
1690 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
1691 with a parameter "procedure Usage", instead of passing a pointer to a
1692 procedure. This is to eliminate trampolines (since the Usage procedure
1693 is often nested in a main procedure, and it would be inconvenient to
1696 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
1697 to be generic, with a parameter "procedure Callback (...)", instead of
1698 passing a pointer to a procedure. This is to eliminate trampolines
1699 (since the Callback procedure is usually nested).
1701 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
1702 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
1703 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
1705 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
1706 Use the generic Heap_Sort_G instead of Heap_Sort_A.
1708 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1710 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
1711 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
1712 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
1713 (Renamed_In_Spec): New flag
1714 (Has_Pragma_Inline_Always): New flag
1715 Add missing doc for pragma Obsolescent_Warning
1716 Add missing doc for 17 additional unused flags (230-247)
1717 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
1718 Alphabetize with clauses.
1719 Separate Is_Thunk and Has_Thunks flags
1720 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
1721 (Related_Interface): Renamed to Related_Type.
1722 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
1723 (Set_Is_Flag): Restrict the assertion.
1725 2007-12-13 Vincent Celier <celier@adacore.com>
1727 * errout.adb (Output_Source_Line): Do not keep a trailing space after
1728 the source line number if the source line is empty.
1730 2007-12-13 Geert Bosch <bosch@adacore.com>
1732 * eval_fat.adb (Decompose_Int): Handle argument of zero.
1733 (Compose): Remove special casing of zero.
1734 (Exponent): Likewise.
1735 (Fraction): Likewise.
1736 (Machine): Likewise.
1737 (Decompose): Update comment.
1739 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1741 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
1742 limited ancestor part, initialize controllers of enclosing record
1743 before expanding ancestor aggregate.
1744 (Gen_Assign): If a component of the aggregate is box-initialized, add
1745 code to call Initialize if the component is controlled, and explicit
1746 assignment of null if the component is an access type.
1748 Handle properly aggregates for limited types that appear in object
1749 declarations when the aggregate contains controlled values such as
1751 When expanding limited aggregates into individual components, do not
1752 call Adjust on controlled components that are limited.
1754 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1756 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
1758 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1760 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
1761 predefined primitive _Disp_Requeue.
1762 (Make_Predefined_Primitive_Specs): Create the spec for predefined
1763 primitive _Disp_Requeue.
1764 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
1765 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
1766 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
1767 an interface type. In case of limited interfaces we now declare all the
1768 predefined primitives associated with synchronized interfaces as
1770 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
1772 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
1773 tagged type is an interface type and there is no user-defined equality
1775 Add also bodies of predefined primitives associated with synchronized
1777 (Freeze_Record_Type): Do not build bodies of predefined primitives of
1778 interface types because they are now defined abstract.
1779 Add missing documentation.
1780 (Expand_Record_Controller): Update occurrence of Related_Interface
1782 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
1783 (Expand_N_Object_Declaration): Take into account VM_Target when handling
1784 class wide interface object declaration.
1785 (Expand_Previous_Access_Type): Do not create a duplicate master entity
1786 if the access type already has one.
1787 (Expand_N_Object_Declaration): Defend against attempt to validity check
1788 generic types. Noticed for -gnatVcf specified with previous errors.
1790 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1792 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
1793 Expand_Allocator_Expression): Take into account VM_Target
1795 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
1796 secondary stack when VM_Target /= No_VM
1798 2007-12-13 Javier Miranda <miranda@adacore.com>
1799 Ed Schonberg <schonberg@adacore.com>
1801 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
1802 Is_Complation_Unit by Is_Library_Level_Entity in the code
1803 that decides if the static dispatch tables need to be built.
1804 (Wrap_Transient_Declaration): Do not generate a finalization call if
1805 this is a renaming declaration and the renamed object is a component
1806 of a controlled type.
1808 2007-12-13 Gary Dismukes <dismukes@adacore.com>
1810 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
1811 In the case where the renamed subprogram is a dereference, call
1812 Force_Evaluation on the prefix.
1814 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1815 Ed Schonberg <schonberg@adacore.com>
1817 * exp_ch9.adb (Expand_N_Asynchronous_Select,
1818 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
1819 comment reformatting.
1820 (Set_Privals): Inherit aliased flag from formal. From code reading.
1821 (Build_Simple_Entry_Call): Out parameters of an access type are passed
1822 by copy and initialized from the actual. This includes entry parameters.
1823 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
1824 and Ada 2005 models of requeue.
1825 (Null_Statements): Still connsider do-end block null if it contains
1826 Unreferenced and Warnings pragmas.
1827 (Expand_N_Accept_Statement): Do not optimize away null do end if
1828 dispatching policy is other than defaulted.
1829 (Expand_N_Timed_Entry_Call): When the triggering statement is a
1830 dispatching call, manually analyze the delay statement.
1831 (Find_Parameter_Type): Move subprogram to Sem_Util.
1833 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1834 Javier Miranda <miranda@adacore.com>
1836 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
1837 _Disp_Requeue occupies dispatch table slot number 15. Move
1838 _Disp_Timed_Select to slot 16.
1839 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
1840 generate the spec and body of _Disp_Reqeueue.
1841 (Make_DT): Build and initialize the second dispatch table.
1842 Handle initialization of RC_Offset when the parent
1843 is a private type with variable size components.
1844 (Make_Secondary_DT): Complete documentation. Add support to
1845 initialize the second dispatch table.
1846 (Make_Tags): Generate the tag of the second dispatch table.
1847 (Register_Primitive): Add support to register primitives in the
1848 second dispatch table.
1850 2007-12-13 Pascal Obry <obry@adacore.com>
1852 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
1853 Windows. This signal is used by gnatmake to kill child processes for
1856 2007-12-13 Javier Miranda <miranda@adacore.com>
1858 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
1859 support for generic dispatching constructor calls in which we need to
1860 locate the tag of a secondary dispatch table associated with an
1861 interface type to properly dispatch the call.
1862 (Expand_N_Attribute_Reference [case Address],
1863 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
1864 handling of VM targets.
1866 2007-12-13 Robert Dewar <dewar@adacore.com>
1867 Ed Schonberg <schonberg@adacore.com>
1869 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
1872 * ug_words: Add entries for -gnatw.a -gnatw.A
1874 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
1875 literal is a subtype with non-static constraints, use the base type of
1876 the context as the base of the string subtype, to prevent type
1878 (Resolve_Actuals): If the actual is an entity name, generate a
1879 reference before the actual is resolved and expanded, to prevent
1880 spurious warnings on formals of enclosing protected operations.
1881 (Analyze_Overloaded_Selected_Component): If type of prefix if
1882 class-wide, use visible components of base type.
1883 (Resolve_Selected_Component): Ditto.
1884 (Resolve_Short_Circuit): Detect case of pragma Assert argument
1885 evaluating to False, and issue warning message.
1887 * usage.adb: Add lines for -gnatw.a and -gnatw.A
1889 2007-12-13 Emmanuel Briot <briot@adacore.com>
1891 * g-calend.ads (No_Time): New constant, to represent an uninitialized
1894 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
1896 (Month_Name_To_Number): New subprogram
1898 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
1899 letter to upper-case.
1901 2007-12-13 Robert Dewar <dewar@adacore.com>
1902 Ed Schonberg <schonberg@adacore.com>
1904 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
1906 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
1907 context is a limited view, use non-limited view when available. If the
1908 non-limited view is an unconstrained array, this enforces consistency
1909 requirements in 3.10.2 (27).
1910 (Layout_Type): For an access type whose designated type is a limited
1911 view, examine its declaration to determine if it is an unconstrained
1912 array, and size the access type accordingly.
1913 (Layout_Type): Do not force 32-bits for convention c subprogram
1914 pointers in -gnatdm mode, only if real vms target.
1916 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
1917 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1918 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
1919 violations of the No_Implicit_Dynamic_Code restriction.
1920 (Resolve_Attribute, case 'Access): If designated type of context is a
1921 limited view, use non-limited view when available. If the non-limited
1922 view is an unconstrained array, this enforces consistency requirements
1924 (Layout_Type): For an access type whose designated type is a limited
1925 view, examine its declaration to determine if it is an unconstrained
1926 array, and size the access type accordingly.
1928 2007-12-13 Vincent Celier <celier@adacore.com>
1930 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
1931 object directory of main project does not exist.
1932 On VMS, correctly set then environment variable for the source
1935 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
1937 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
1938 set to True this procedure will create the value of type REG_EXPAND_SZ.
1939 It was only possible to create REG_SZ values before.
1941 2007-12-13 Robert Dewar <dewar@adacore.com>
1943 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
1944 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
1945 namet-sp.adb, namet-sp.ads: New files.
1947 * g-speche.adb: Use generic routine in g-spchge
1949 * s-wchcnv.ads, s-wchcnv.adb:
1950 Minor code cleanup (make formal type consistent with spec)
1952 * namet.adb: Update comments.
1954 * par-endh.adb (Evaluate_End_Entry): Use new
1955 Namet.Sp.Is_Bad_Spelling_Of function
1957 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
1959 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
1960 ancestor is an access type initialized with a box, set its type
1961 explicitly, for use in subsequent expansion.
1962 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
1965 2007-12-13 Robert Dewar <dewar@adacore.com>
1967 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
1970 2007-12-13 Robert Dewar <dewar@adacore.com>
1972 * inline.adb (Back_End_Cannot_Inline): Use new flag
1973 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1975 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
1976 Has_Pragma_Inline_Always instead.
1977 of obsolete function Is_Always_Inlined
1978 (Build_Body_To_Inline): Same change
1979 (Cannot_Inline): Same change
1980 Do not give warning on exception raise in No_Return function
1982 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
1983 component has two inconsistent component clauses in the same record
1984 representation clause, favor the message that complains about
1985 duplication rather than inconsistency.
1987 (Record_Representation_Clause): Do not warn on missing component
1988 clauses for inherited components of a type extension.
1989 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
1990 an overloadable item if it is a pragma that can apply to multiple
1991 overloadable entities (e.g. Inline) because a pragma cannot be on
1992 more than one chain at a time.
1993 (Validate_Unchecked_Conversion): Add code to warn on unchecked
1994 conversion where one of the operands is Ada.Calendar.Time.
1995 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
1996 For now, ignore Component_Size clause on VM targets, as done for
1999 2007-12-13 Emmanuel Briot <briot@adacore.com>
2000 Vincent Celier <celier@adacore.com>
2002 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
2004 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
2006 (Hash): Move instantiation of System.HTable.Hash from spec to body
2007 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
2008 systems, since we do not need to recompute the Name_Id for the canonical
2010 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
2011 as a parameter. This parameter is in fact always "ada" in all calls, and
2012 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
2013 while loading a project with 40000 files
2015 * prj-attr.adb: Fix name of attribute Dependency_Driver
2016 Change the kind of indexing for attribute Root
2018 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
2019 variables already declared, in case constructions.
2021 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
2022 Current_Object_Path_File to No_Path.
2024 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
2025 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
2027 * prj-makr.adb: new parameter Current_Dir
2029 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
2030 Ada sources when language is not Ada.
2031 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
2032 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
2033 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
2034 (Locate_Directory): Always resolve links when computing Canonical_Path
2035 (Look_For_Sources): Make sure that Name_Buffer contains the file name
2036 in Source_Files before checking for the presence of a directory
2038 Optimize calls to Name_Find when on case sensitive systems.
2039 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
2041 (Prj.Nmsc.Check): new parameter Current_Dir
2042 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
2043 cannot be empty and the spec suffix cannot be the same as the body or
2045 (Get_Unit): When a file name can be of several unit kinds (spec, body or
2046 subunit), always consider the longest suffix.
2047 (Check_Configuration): Do not issue an error if there is no compiler
2048 for a language. Just issue a warning and ignore the sources for the
2050 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
2052 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
2053 (Unit_Exceptions): New hash table
2054 (Check_Naming_Schemes): Check if a file that could be a unit because of
2055 the naming scheme is not in fact a source because there is an exception
2057 (Look_For_Sources): Put the unit exceptions in hash table
2059 (Get_Unit_Exceptions): Give initial value No_Source to local variable
2060 Other_Part to avoid exception when code is compiled with validity
2062 (Get_Sources_From_File): Check that there is no directory information
2064 (Look_For_Sources): Check that there is no directory information in the
2065 list of file names in Source_Files.
2066 (Look_For_Sources): In multi-language mode, do not allow exception file
2067 names that are excluded.
2068 (Excluded_Sources_Htable): New hash table
2069 (Search_Directories.Check_File): New procedure to simplify
2071 (Search_Directories): Do not consider excluded sources
2072 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
2074 (Get_Exceptions): Set component Lang_Kind of Source_Data
2075 (Get_Unit_Exceptions): Ditto
2076 (Search_Directories): Ditto
2078 * prj-pars.adb: new parameter Current_Dir
2080 * prj-part.ads, prj-part.adb:
2081 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
2082 (Opt.Follow_Links_For_Dirs): New flag
2083 (Project_Path_Name_Of): Cache information returned by this routine as
2084 Locate_Regular_File is a costly routine. The code to output a log
2085 information and the effective call to Locate_Regular_File is now
2086 factorized into a routine (code clean-up).
2087 (Parse, Parse_Single_Project): new parameter Current_Dir
2088 When main project file cannot be found, indicate in the error
2089 message the project path that was used to do the search.
2091 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
2092 (Prj.Proc.Process*): new parameter Current_Dir
2094 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
2096 2007-12-13 Bob Duff <duff@adacore.com>
2098 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
2099 procedure to be called from the back end to check the
2100 No_Implicit_Dynamic_Code restriction.
2102 2007-12-13 Arnaud Charlet <charlet@adacore.com>
2104 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
2105 Fixes another case where RTE_Available_Call was ignored instead of being
2109 * rtsfind.ads: Add new entries.
2111 2007-12-13 Robert Dewar <dewar@adacore.com>
2113 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
2114 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
2116 * scn.adb: Implement BOM recognition
2118 2007-12-13 Thomas Quinot <quinot@adacore.com>
2119 Ed Schonberg <schonberg@adacore.com>
2121 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
2122 subprogram body that acts as its own spec may not have a non-private
2123 WITH clause on a private sibling.
2124 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
2125 child unit is a renaming, create an implicit with_clause on that
2126 parent, and not on the unit it renames, to prevent visibility errors
2127 in the current unit.
2129 2007-12-13 Ed Schonberg <schonberg@adacore.com>
2131 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
2132 renaming declaration, use the Slocs of the formal parameters from the
2133 declaration of the formal subprogram when creating the formal parameter
2134 entities in the renaming declaration.
2135 (Analyze_Formal_Type_Declaration): Change the placement of the error
2136 message concerning illegal known discriminants. It is now posted on the
2137 type rather than on the first discriminant. This change ensures early
2139 (Freeze_Subprogram_Body): If the generic subprogram is nested within
2140 the package body that contains the instance, do not generate an
2141 out-of-place freeze node for the enclosing package.
2142 (Collect_Previous_Instantiations): Ignore internal instantiations
2143 generated for formal packages.
2144 (Validate_Derived_Type_Instance): Add a check that when a formal
2145 derived type is Known_To_Have_Preelab_Init then the actual type must
2146 have preelaborable initialization, and issue an error when this
2147 condition is violated.
2149 2007-12-13 Robert Dewar <dewar@adacore.com>
2151 * s-imenne.adb, s-imenne.ads: New files.
2153 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
2154 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
2155 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
2156 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
2157 s-imgwch.ads: New calling sequence for Image routines to avoid sec
2160 2007-12-13 Javier Miranda <miranda@adacore.com>
2161 Ed Schonberg <schonberg@adacore.com>
2163 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
2164 generation of spurious error if parent is an interface type; caused
2165 because predefined primitive bodies will be generated later by
2167 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
2169 (Derive_Subprograms): Handle derivations of predefined primitives
2170 after all the user-defined primitives to ensure that they are
2171 found in proper order in instantiations.
2172 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
2173 of Related_Interface to Related_Type.
2174 (Record_Type_Declaration): Minor reordering of calls to decorate the
2175 Tag component because the entity must have set its Ekind attribute
2176 before setting its Is_Tag attribute.
2177 (Analyze_Subtype_Declaration): In the case of subtypes with
2178 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
2180 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
2181 Ed Schonberg <schonberg@adacore.com>
2183 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
2184 statement to the list of contexts where a selected component with a
2185 concurrent tagged type prefix should yield a primitive operation.
2186 (Find_Primitive_Operation): Handle case of class-wide types.
2187 (Analyze_Overloaded_Selected_Component): If type of prefix is
2188 class-wide, use visible components of base type.
2189 (Resolve_Selected_Component): Ditto.
2190 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
2191 formal of a generic subprogram. find candidate interpretations by
2192 scanning the list of generic formal declarations.:
2193 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
2194 type from a limited_with_clause, and the full view is available, use it
2195 for subsequent semantic checks.
2196 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
2197 (Find_Primitive_Operation): New function.
2198 (Analyze_Overloaded_Selected_Component): insert explicit dereference
2199 only once if several interpretations of the prefix yield an access type.
2200 (Try_Object_Operation): Code and comment cleanup.
2201 (Analyze_Selected_Component): Reorder local variables. Minot comment and
2202 code reformatting. When the type of the prefix is tagged concurrent, a
2203 correct interpretation might be available in the primitive and
2204 class-wide operations of the type.
2206 2007-12-13 Robert Dewar <dewar@adacore.com>
2207 Ed Schonberg <schonberg@adacore.com>
2209 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
2210 renaming entry as subprogram using rename-as-body if subprogram spec
2212 (Use_One_Type): The clause is legal on an access type whose designated
2213 type has a limited view.
2214 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
2215 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
2216 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
2217 operation denoted by a selected component.
2218 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
2219 it can be an expression, possibly overloaded, that returns a task or
2222 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
2223 Gary Dismukes <dismukes@adacore.com>
2225 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
2226 requeue statement is dispatching. Do not emit an error when the name is
2227 not an entry and the context is a dispatching select. Add code to
2228 perform subtype conformance between the formals of the current entry
2229 and those of the target interface primitive.
2230 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
2231 Timed_Entry_Call): Analyze the triggering statement as the first step of
2232 the processing. If this is a dispatching select, postpone the analysis
2233 of all select statements until the Expander transforms the select. This
2234 approach avoids generating duplicate identifiers after the Expander has
2235 replicated some of the select statements. In case the Expander is
2236 disabled, perform regular analysis.
2237 (Check_Triggering_Statement): New routine.
2238 (Analyze_Requeue): Exclude any interpretations that are not entries when
2239 checking overloaded names in a requeue. Also test type conformance for
2240 matching interpretations rather than requiring subtype conformance at
2241 that point to conform with the RM's resolution rule for requeues.
2243 2007-12-13 Ed Schonberg <schonberg@adacore.com>
2245 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
2246 inherited operation is a defaulted tag-indeterminate call, and there is
2247 a statically tagged actual, use the static tag as a controlling actual
2248 for the defaulted actual.
2250 2007-12-13 Geert Bosch <bosch@adacore.com>
2252 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
2253 context, so do not call Check_Non_Static_Context.
2255 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
2257 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
2258 whether formal E is an entity which may have parameters.
2260 2007-12-13 Bob Duff <duff@adacore.com>
2261 Javier Miranda <miranda@adacore.com>
2262 Robert Dewar <dewar@adacore.com>
2264 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
2265 (Set_Convention): New procedure to set the Convention flag, and in
2266 addition make sure the Favor_Top_Level flag is kept in sync (all
2267 foreign-language conventions require Favor_Top_Level = True).
2268 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
2270 (Collect_Interfaces_Info): Minor update to handle the two secondary
2271 dispatch tables. Update occurrence of Related_Interface to Related_Type.
2272 (Generate_Parent_Ref): Add parameter to specify entity to check
2273 (Is_Preelaborable_Expression): Allow the name of a discriminant to
2274 initialize a component of a type with preelaborable initialization.
2275 This includes the case of a discriminal used in such a context.
2276 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
2277 latest Ada 2005 rules about renaming and 'Access of
2278 discriminant-dependent components.
2279 (Check_Nested_Access): Add handling when there are no enclosing
2280 subprograms (e.g. case of a package body).
2281 (Find_Parameter_Type): Factor routine from several other compiler files.
2282 Remove routine from Find_Overridden_Synchronized_Primitive.
2284 2007-12-13 Thomas Quinot <quinot@adacore.com>
2286 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
2287 an invalid access to an uninitialized slot in the
2288 Source_File_Index_Table.
2290 2007-12-13 Thomas Quinot <quinot@adacore.com>
2292 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
2294 2007-12-13 Bob Duff <duff@adacore.com>
2296 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
2297 access-to-subprogram types in this package.
2299 2007-12-13 Olivier Hainque <hainque@adacore.com>
2301 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
2302 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
2303 Stack_Overlay_Address and document that we are using an internal
2305 (Byte_Size, Unsigned_32_Size): Remove, now useless.
2306 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
2307 consistently throughout the various implementation pieces.
2309 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
2310 overlay we are using to fill the stack area with patterns.
2311 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
2312 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
2313 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
2315 2007-12-13 Robert Dewar <dewar@adacore.com>
2317 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
2319 2007-12-13 Arnaud Charlet <charlet@adacore.com>
2322 (Create_Task): Take into account tasks created by foreign threads.
2323 Code clean up: use constants instead of hard coded values.
2325 2007-12-13 Robert Dewar <dewar@adacore.com>
2327 * styleg.adb (Check_Comment): More liberal rules for comment placement
2329 2007-12-13 Olivier Hainque <hainque@adacore.com>
2331 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
2332 of Procedure Value instead of Frame Pointer as the invocation
2333 identifier associated with the instruction pointer in each traceback
2336 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
2337 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
2338 Pointer as the invocation identifier passed to tbk$symbolize.
2340 * s-traent-vms.ads, s-traent-vms.adb
2341 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
2342 Procedure Value instead of Frame Pointer as the invocation identifier
2343 passed to tbk$symbolize.
2345 2007-12-13 Robert Dewar <dewar@adacore.com>
2347 * tbuild.ads, tbuild.adb:
2348 Fix location of flag for unrecognized pragma message
2350 2007-12-13 Robert Dewar <dewar@adacore.com>
2352 * treepr.ads, treepr.adb: (pl): implement use of positive value
2355 2007-12-13 Robert Dewar <dewar@adacore.com>
2357 * xeinfo.adb: Remove warnings
2358 * xnmake.adb: Remove warnings
2359 * xsinfo.adb: Remove warnings
2360 * xtreeprs.adb: Remove warnings
2361 * xsnames.adb: Remove warnings
2363 * a-ngcoar.adb: Fix typo.
2364 * s-interr.adb: Minor reformatting
2365 * env.c: Minor reformatting.
2366 * g-bytswa.adb: Minor reformatting.
2367 * g-rannum.ads: Minor documentation improvements
2368 * s-tasinf-mingw.adb: Minor header fix
2369 * a-clrefi.adb: Minor reformatting
2370 * g-sttsne.ads: Minor documentation improvement
2371 * g-sttsne-locking.ads: Minor documentation improvement
2372 * g-soliop-solaris.ads: Minor documentation improvement
2373 * g-soliop-mingw.ads: Minor documentation improvement
2374 * g-soliop.ads: Minor documentation improvement
2375 * exp_aggr.ads: Minor reformatting
2376 * debug.adb: Add documentation for the gprbuild debug flags
2377 * exp_ch2.adb: Use Nkind_In to simplify code throughout
2378 * exp_pakd.adb: Minor reformatting
2380 * g-altive.ads, g-alleve.adb: Remove assertions.
2381 Add comment about minor differences between targets regarding
2382 floating-point operations.
2384 * g-thread.adb: Remove pragma unreferenced.
2385 * lib.ads: Minor reformatting
2386 * par-ch9.adb: Minor reformatting of error messages
2387 * sem_case.adb: Minor reformatting
2388 * s-fileio.adb: Minor reformattinng
2389 * s-vmexta.ads: Minor typo
2391 Take into account 'Success' value as per new GNAT warning.
2393 2007-12-13 Vincent Celier <celier@adacore.com>
2395 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
2398 2007-12-13 Robert Dewar <dewar@adacore.com>
2399 Bob Duff <duff@adacore.com>
2401 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
2402 Document that suffixes may be terminations of each others
2403 Add doc for -gnatw.a and -gnatw.A
2404 Document gnatbind -Wx switch
2405 Document BOM recognition
2406 Document pragma Implemented_By_Entry.
2409 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
2410 Add doc for pragma Unreferenced suppressing no entities referenced msg
2411 Add documentation of GNAT.Directory_Operations.Iteration
2412 Add documentation of GNAT.Random_Numbers
2413 Add documentation for pragma Shared.
2414 Correct documentation for Bit_Order
2415 Add documentation for the Pool_Address attribute.
2416 Fix and improve documentation of pragma machine_attribute.
2417 New pragma Fast_Math
2418 Document BOM recognition
2420 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
2421 Add /Wide_Character_Encoding for binder
2422 Add qualifier for the new gnatpp option --no-separate-loop-then
2424 2007-12-13 Matthew Heaney <heaney@adacore.com>
2426 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
2427 which generic formal operations are called for each operation.
2429 2007-12-13 Olivier Hainque <hainque@adacore.com>
2431 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
2432 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
2434 2007-12-13 Emmanuel Briot <briot@adacore.com>
2436 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
2437 Reference_Dir unless we actually need it.
2439 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
2440 Tristan Gingold <gingold@adacore.com>
2442 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
2445 a-calend-vms.adb: Remove pragma warning off and add pragma
2448 2007-12-13 Robert Dewar <dewar@adacore.com>
2450 * impunit.adb: Add entries for missing units
2452 * Makefile.rtl: Add new run-time units.
2454 * Make-lang.in: Update dependencies.
2456 2007-12-13 Bob Duff <duff@adacore.com>
2458 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
2459 types, set Can_Use_Internal_Rep appropriately, based on
2460 Always_Compatible_Rep_On_Target.
2462 2007-12-13 Gary Dismukes <dismukes@adacore.com>
2463 Arnaud Charlet <charlet@adacore.com>
2465 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
2466 it to the front end and setting the aamp_target environment variable
2467 to the switch's argument to ensure that gnaampbind and gnaamplink will
2468 take the specified library into account.
2469 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
2470 target, since the CIL compiler supports an "object" file (.il files).
2472 2007-12-13 Vincent Celier <celier@adacore.com>
2474 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
2475 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
2477 2007-12-13 Geert Bosch <bosch@adacore.com>
2479 * s-parame-vxworks.adb:
2480 Update comments to reflect usage of this package by Nucleus.
2482 2007-12-13 Arnaud Charlet <charlet@adacore.com>
2484 * i-vxwork.ads: Kill new warning on Convention C, since changing the
2485 spec would break code.
2487 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
2489 * system-vxworks-alpha.ads: Removed.
2491 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
2493 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
2495 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
2498 * sem_ch3.adb (Designates_T): New function.
2499 (Mentions_T): Factor reusable part of the logic into Designates_T.
2500 Consider non-access parameters and access and non-access result.
2501 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
2502 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
2504 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
2506 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
2509 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
2510 the new implementation of target-specific calls.
2512 2007-12-07 Olivier Hainque <hainque@adacore.com>
2514 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
2515 the designated full view, only follow a second level Full_View link
2516 for Non_Limited_Views of from_limited_with references.
2518 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
2521 * sem_ch6.adb (Process_Formals): Prevent an access type formal
2522 to be initialized with an access to constant object.
2524 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
2525 when an access to constant is used to initialize an access
2529 * a-direct.adb (Compose): Containing_Directory can be an empty string.
2531 2007-12-07 Olivier Hainque <hainque@adacore.com>
2534 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
2535 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
2536 this is from an alignment clause on the GNAT entity.
2537 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
2538 to distinguish the case where we set it from the type's alignment.
2539 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
2540 whether this alignment was set from an explicit alignment clause.
2542 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
2544 * decl.c (make_packable_type): Revert last change.
2545 (gnat_to_gnu_field): Avoid setting size and position multiple times.
2546 * utils.c (finish_record_type): Retrieve the real name of the type.
2548 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
2550 * trans.c (lvalue_required_p): Take base node directly instead
2551 of its parent. Rename second parameter to 'gnu_type'.
2552 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
2553 <N_Slice>: Likewise.
2554 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
2555 Adjust calls to lvalue_required_p.
2557 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
2560 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
2561 parameters of an entry call.
2563 2007-12-03 Robert Dewar <dewar@adacore.com>
2564 Samuel Tardieu <sam@rfc1149.net>
2567 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
2568 of variables declared in a library-level package.
2570 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
2572 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
2573 of Empty_String'Unchecked_Access.
2575 * Makefile.in: Add support for sh4-linux.
2577 * system-linux-sh4.ads: New file.
2579 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
2582 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
2583 and its argument must not be free()ed.
2585 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
2587 * decl.c (make_packable_type): Retrieve the real name of the type.
2588 (maybe_pad_type): Simplify similar code.
2590 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
2593 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
2594 than an identifier is used after "case" in a variant_part.
2597 * par-ch4.adb (Is_Parameterless_Attribute): New map.
2598 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
2599 attribute name or not depending on the new map.
2601 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
2602 returning a string or a type will not be called with improper
2605 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
2607 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
2610 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
2611 Signal an error when attribute argument is a fixed-point value of
2615 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
2616 a derived ordinary fixed point type.
2618 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
2619 RM_Size when a Small clause is found.
2621 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
2624 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
2625 Pass 'false' for the new allocate_struct_function parameter.
2626 * utils.c (build_function_stub): Likewise.
2628 2007-11-25 Richard Guenther <rguenther@suse.de>
2630 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
2631 (gnat_poplevel): Likewise.
2633 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
2635 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
2636 strict alignment, no alignment clause and a known static size, cap
2637 the type alignment to the greatest power of 2 factor of the size.
2638 (gnat_to_gnu_field): If the field has a component clause, is aliased
2639 or of a type with strict alignment, require that its size be equal to
2641 (validate_size): Use the type size as the minimum size for a type with
2644 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
2646 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
2647 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
2648 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
2649 Use 'Access instead of 'Unchecked_Access in second and third
2650 arguments of pthread_sigmask.
2652 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
2654 * decl.c (ceil_alignment): New function.
2655 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
2656 (make_packable_type): Likewise.
2658 2007-11-22 Olivier Hainque <hainque@adacore.com>
2660 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
2661 to fit in 80 columns.
2663 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
2665 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
2666 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
2668 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
2671 * misc.c (gnat_adjust_rli): Delete.
2672 (gnat_init): Do not initialize the translation code here.
2673 Do not call set_lang_adjust_rli.
2674 * trans.c (init_code_table): Make static.
2675 (gnat_init_stmt_group): Delete.
2676 (gigi): Initialize the translation code entirely here.
2677 Emit debug info for the common types here instead of...
2678 * utils.c (gnat_init_decl_processing): ...here.
2679 * gigi.h (init_code_table): Delete.
2680 (gnat_init_stmt_group): Likewise.
2682 2007-11-16 Olivier Hainque <hainque@adacore.com>
2684 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
2685 retrieving an allocator return value from a super-aligned address from
2687 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
2688 expect a super-aligned address for a fat or thin pointer.
2690 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
2692 * trans.c (call_to_gnu): Always set the source location on the call
2693 expression. If the function returns-by-target, also set it on the
2696 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
2698 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
2699 sections of non-supported Interix target.
2701 * s-osinte-interix.ads: Removed.
2703 * i-cstrin.ads (chars_ptr): Make it a C convention type.
2705 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
2707 * a-tasatt.adb: Add a comment at the beginning of the package
2708 explaining why in general 'Unchecked_Access must be used instead
2711 * sem_prag.adb (Process_Convention): Move the test for the
2712 entity on which the Convention pragma applies down to also
2713 forbid pragma Convention on enumeration literals reached
2716 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
2718 * a-tasatt.adb: Revert previous change for this file as it will
2719 generate an error when this package is instantiated from a
2722 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
2724 * a-tasatt.adb: Type Wrapper should be declared in comment instead
2725 of already declared type Node_Access.
2726 Use 'Access instead of 'Unchecked_Access when applicable. Local
2727 lifetime is the one of the package.
2728 (Set_Value): W is allocated on the heap.
2730 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
2732 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
2734 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
2737 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
2739 (elaboration code): Timer_Queue lifetime is the one of the
2742 * tracebak.c (i386 alternative): Remove useless comparaison
2743 which is always false; LOWEST_ADDRESS is 0 and is never greater
2744 than an unsigned integer.
2746 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
2747 embedded check for "Ada_Version >= Ada_05".
2749 2007-11-07 Olivier Hainque <hainque@adacore.com>
2751 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
2752 craft and expand comment.
2754 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
2756 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
2758 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
2760 * misc.c (gnat_handle_option): Replace call to abort with
2761 call to gcc_unreachable.
2762 (gnat_init): Likewise.
2763 (gnat_expand_expr): Likewise.
2764 (fp_prec_to_size): Likewise.
2765 (fp_size_to_prec): Likewise.
2767 2007-10-23 Richard Guenther <rguenther@suse.de>
2770 * tracebak.c: #undef abort after including system.h.
2772 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
2774 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
2775 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
2777 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
2779 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
2781 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
2782 Set the protection status of the guard page based on the value of On.
2784 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
2786 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
2787 (Exit_Task): Pass False to Hide_Yellow_Zone.
2789 2007-10-15 Robert Dewar <dewar@adacore.com>
2791 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2792 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
2793 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
2794 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
2795 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
2796 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
2797 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
2798 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
2799 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
2800 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
2801 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
2802 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
2803 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
2804 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
2805 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
2806 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
2808 Add Unreferenced and Warnings (Off) pragmas for cases of
2809 variables modified calls where they are IN OUT or OUT parameters and
2810 the resulting values are not subsequently referenced. In a few cases,
2811 we also remove redundant code found by the new warnings.
2813 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
2814 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
2815 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
2816 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
2817 warning controlled by -gnatw.o that warns on cases of out parameter
2818 values being ignored.
2820 2007-10-15 Geert Bosch <bosch@adacore.com>
2822 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
2824 * expect.c: Initial port to arm-mentor-nucleus.
2825 Use kill for __gnat_kill() on VMS.
2827 2007-10-15 Emmanuel Briot <briot@adacore.com>
2829 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
2831 (Xref_Record): Change type for Line, since in the case of a reference to
2832 a predefined entity (as happens for array index types), the line is set
2834 Add support for parsing multiple array index types info, or
2835 multiple inherited interfaces info. This information cannot be stored
2836 in Xref_Entity_Record, which only supports a single instance of Tref_*,
2837 and is therefore stored in the list of references instead. It has a
2838 special treatement later on in tools that use this information.
2840 2007-10-15 Tristan Gingold <gingold@adacore.com>
2842 * debug.adb: Document use of -gnatd.a and -gnatd.I
2844 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
2846 2007-10-15 Javier Miranda <miranda@adacore.com>
2848 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
2849 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
2850 care of access to class-wide interface types plus removal of bizarre
2851 conversion of tagged object to access type (reported by Gary
2852 Dismukes). After this patch there is no need to perform any
2853 additional management on these nodes in Expand_Interface_Actuals.
2855 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
2856 that handles use of 'Access and 'Unchecked_Access applied to
2857 actuals covering interface types. Such code is now
2858 centralized in Expand_N_Attribute_Reference.
2860 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2862 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
2863 of tagged types whose ultimate ancestor is a CPP type.
2864 (Freeze_Array_Type): For a packed array type, generate an initialization
2865 procedure if the type is public, to handle properly a client that
2866 specifies Normalize_Scalars.
2868 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2870 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
2871 inside a generic body, retrieve the full view of the entry family
2872 discrete subtype if available.
2874 2007-10-15 Thomas Quinot <quinot@adacore.com>
2876 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
2877 attempt to generate stubs for hidden primitive operations.
2879 2007-10-15 Vincent Celier <celier@adacore.com>
2881 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
2882 returning None, used when there is no platform specific body for
2885 2007-10-15 Bob Duff <duff@adacore.com>
2887 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
2888 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
2889 the generic Heap_Sort_G, in order to avoid trampolines.
2891 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
2892 Jose Ruiz <ruiz@adacore.com>
2894 * vx_stack_info.c: New file.
2896 * i-forbla-unimplemented.ads: New file.
2898 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
2899 for unsupported configurations; use it on VMS targets instead of the
2901 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
2902 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
2903 used by VxWorks targets to have access to task-specific data and be
2904 able to extract the stack boundaries for stack checking.
2905 Use system-vms-ia64.ads on ivms.
2907 * Make-lang.in: Update dependencies.
2909 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
2912 2007-10-15 Vincent Celier <celier@adacore.com>
2914 * snames.adb, snames.ads: Add new standard name runtime_library_dir
2916 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
2918 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
2920 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
2921 the source is unknown.
2923 * prj-ext.adb: Spelling error fix
2925 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
2926 95 reserved word in its name.
2927 (Process_Project_Level_Array_Attributes): Process new attribute
2928 Runtime_Library_Dir.
2930 * prj-part.adb (Parse_Single_Project): Do not check the name of the
2931 config project against the user project names.
2933 * prj-proc.adb (Expression): In multi-language mode, indexes that do
2934 not include a dot are always case insensitive.
2935 (Process_Declarative_Items): Ditto
2936 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
2939 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
2940 True, compare both indexes in lower case.
2942 2007-10-15 Robert Dewar <dewar@adacore.com>
2944 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
2946 2007-10-15 Gary Dismukes <dismukes@adacore.com>
2948 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
2949 association for an access component, add an association with null as
2950 the expression. Remove testing for array subtypes and the setting in
2951 that case of Ctyp to the array component type, which prevented proper
2952 inclusion of an association for null-initialized arrays. Collapse
2953 condition that tests for array subtypes into just a test of
2954 Is_Partially_Initialized_Type (which already covers arrays anyway).
2956 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2958 * sem_ch12.adb: Minor code reformatting.
2959 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
2960 find the parent package which may have been hidden by local
2963 2007-10-15 Gary Dismukes <dismukes@adacore.com>
2965 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
2966 flag of derived concurrent types, taking into account the flag setting
2967 on the parent subtype and any new set of discriminants.
2969 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2971 * sem_ch4.adb: Minor code and comment reformatting.
2972 (Analyze_Allocator): When the designated type of an unconstrained
2973 allocator is a record with unknown discriminants or an array with
2974 unknown range bounds, emit a detailed error message depending on the
2975 compilation mode and whether the designated type is limited.
2977 2007-10-15 Tristan Gingold <gingold@adacore.com>
2979 * system-vms-ia64.ads: New file.
2981 * system-vms_64.ads: Minor comment fix.
2983 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2985 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
2986 body generated for a function with a controlling result that is a null
2987 extension, discard the generated body in favor of the current explicit
2990 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2992 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
2993 examining its original form, to handle properly operator calls that
2994 have been rewritten.
2996 2007-10-15 Olivier Hainque <hainque@adacore.com>
2998 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
2999 instead of a procedure value in each traceback entry.
3001 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
3002 instead of procedure value to TBK$SYMBOLIZE.
3004 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
3006 (TB_Entry_For): Account for the PV/FP renaming.
3008 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
3010 (Null_TB_Entry): Account for change of component name.
3011 (PV_For): Rename as FP_For.
3013 2007-10-15 Tristan Gingold <gingold@adacore.com>
3015 * trans.c (gnat_to_gnu): Remove the padding structure more often.
3016 This optimize assignment to over-aligned record.
3018 2007-10-15 Emmanuel Briot <briot@adacore.com>
3020 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
3023 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
3024 type, for dispatching calls.
3026 2007-10-15 Vincent Celier <celier@adacore.com>
3027 Robert Dewar <dewar@adacore.com>
3029 * gnat_ugn.texi: Add documentation for switches --version and --help
3030 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
3031 gnatxref, gnatfind, gnatls, and gnatclean.
3033 Mention attribute Excluded_Source_Dirs
3034 Replace obsolescent attribute Locally_Removed_Files with attribute
3035 Excluded_Source_Files.
3036 Improve documentation of -u (gnatbind)
3037 Document how to do reliable stack checking for the environmental task
3040 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
3041 Document attribute Excluded_Source_Files and indicate that attribute
3042 Locally_Removed_Files is obsolescent.
3044 2007-10-15 Thomas Quinot <quinot@adacore.com>
3046 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
3049 Update documentation to note that OpenVMS 8.3 or later must be used
3050 to generate g-soccon-vms.ads.
3052 * atree.adb: Add ??? comment
3054 * exp_util.adb: Minor reformatting.
3055 Add ??? comment in Kill_Dead_Code.
3057 2007-10-15 Robert Dewar <dewar@adacore.com>
3059 * errout.ads: Comment clarification
3061 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
3062 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
3064 * lib.ads: Comment update
3066 * init.c: Minor reformatting.
3068 * sem_attr.adb: Minor formatting
3070 * osint-b.ads: Minor reformatting
3072 * sem_ch9.adb: Implement -gnatd.I switch
3074 * g-comlin.adb: (Start): Fix handling of empty command line.
3076 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
3077 even when -rules follows the -cargs section.
3079 2007-10-08 Ollie Wild <aaw@google.com>
3081 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
3083 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
3085 (gnat_eh_runtime_type): Removed.
3086 (gnat_return_tree): New function.
3088 2007-10-08 Ben Elliston <bje@au.ibm.com>
3092 2007-08-31 Ben Elliston <bje@au.ibm.com>
3094 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
3095 when compiling for powerpc64-*-linux.
3096 * system-linux-ppc64.ads: New file.
3098 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
3100 Mapped location support
3101 * back_end.adb (Call_Back_End): Pass information about source
3102 files instead of units to gigi.
3103 * gigi.h (struct File_Info_Type): New.
3104 (gigi): Rename and change type of number_units parameter, change
3105 type of file_info_ptr parameter.
3106 * trans.c (number_files): New global variable.
3107 (gigi): Rename and change type of number_units parameter, change
3108 type of file_info_ptr parameter.
3109 If mapped location support is enabled, create the isomorphic mapping
3110 between source files and line maps.
3111 (Sloc_to_locus): If mapped location support is enabled, translate
3112 source location into mapped location.
3113 (annotate_with_node): Rename into set_expr_location_from_node.
3114 Call set_expr_location instead of annotate_with_locus.
3115 (Pragma_to_gnu): Adjust for above change.
3116 (Loop_Statement_to_gnu): Likewise.
3117 (call_to_gnu): Likewise.
3118 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3119 (gnat_to_gnu): Likewise.
3120 (add_stmt_with_node): Likewise.
3121 (add_cleanup): Likewise.
3122 * utils.c (gnat_init_decl_processing): Do not set input_line.
3124 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
3126 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
3127 (Applicable_Use): Emit a warning when a package tries to use itself.
3128 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
3129 is already in use or the package where it is declared is in use or is
3130 declared in the current package.
3131 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
3133 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
3134 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
3135 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
3137 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
3139 * a-calend-vms.adb, a-calend.adb:
3140 Add a section on leap seconds control along with two entities used to
3141 enable and disable leap seconds support. The array Leap_Second_Times is
3142 now constant and contains hard time values pre-generated. Remove
3143 all elaboration code used to populate the table of leap seconds.
3146 Add entity Leap_Seconds_Support to the list of global run-time variables
3147 along with a comment on its usage and values.
3148 (Gen_Adainit_Ada): Add code to generate the declaration and import of
3149 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
3150 or one (enabled) depending on the presence of binder switch "-y".
3151 (Gen_Adainit_C): Add code to generate the declaration of external int
3152 __gl_leap_seconds_support. Set is value to zero (disabled) or one
3153 (enabled) depending on the presence of binder switch "-y".
3155 * init.c: Add __gl_leap_seconds_support to the list of global values
3156 computed by the binder.
3158 2007-09-26 Jerome Guitton <guitton@adacore.com>
3160 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3161 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
3162 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
3163 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
3165 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
3167 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
3168 function which can be called by the debugger to interrupt the tasks of
3169 an Ada application asynchronously, as needed on VxWorks.
3170 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
3172 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
3173 renamed from Stop_All_Tasks. Update comments.
3174 (Stop_All_tasks): New function declaration.
3176 2007-09-26 Olivier Hainque <hainque@adacore.com>
3178 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
3179 #include <utime.h> and #define GCC_RESOURCE_H before
3180 #include <sys/wait.h>.
3181 Add more protections in __gnat_translate_vms.
3183 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
3184 #include <sys/wait.h>.
3186 2007-09-26 Thomas Quinot <quinot@adacore.com>
3187 Sergey Rybin <rybin@adacore.com>
3189 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
3191 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
3194 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
3196 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
3199 * sem_dist.ads: Minor comment fix
3201 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
3203 2007-09-26 Javier Miranda <miranda@adacore.com>
3204 Eric Botcazou <ebotcazou@adacore.com>
3207 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
3208 indirection added to the HT_Link component of the TSD. This is required
3209 to statically allocate the TSD.
3212 Minor reordering of the declarations in the private part. Required to
3213 add a level of indirection to the contents of the TSD component HT_Link.
3214 This is required to statically allocate the TSD.
3216 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
3217 Is_Statically_Allocated set from constant objects.
3218 Do not make exported constants created by the compiler volatile.
3219 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
3222 * trans.c (Identifier_to_gnu): For constants, unshare initializers
3223 before returning them.
3225 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
3226 public part of the package.
3227 (Make_DT): Move HT_Link component out of the TSD record. For this
3228 purpose Make_DT now declares a separate object that stores the
3229 HT_Link value, and initializes the TSD component with the address
3230 of this new object. The addition of this level of indirection is
3231 required to statically allocate the TSD because the TSD cannot
3232 have variable components.
3233 (Expand_Interface_Conversion): Improve the expanded code.
3234 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
3236 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
3237 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
3238 if we are building static dispatch tables then we must not generate
3239 extra code to register the primitive because the dispatch table will
3240 be built at the end of the library package; otherwise we notify that
3241 we cannot build the static dispatch table.
3243 2007-09-26 Robert Dewar <dewar@adacore.com>
3245 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
3248 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
3249 (Analyze_Record_Representation_Clause): Suppress junk warning for
3250 missing component clause.
3251 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
3252 tests for controlled type overlay to composites with controlled
3254 (Analyze_Record_Representation_Clause): Add reference for component name
3256 2007-09-26 Javier Miranda <miranda@adacore.com>
3257 Gary Dismukes <dismukes@adacore.com>
3259 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
3260 for thunks associated with interface types.
3262 * einfo.ads: Improve documentatation of Is_Internal
3263 (Is_Thunk): New attribute applicable to subprograms. True for thunks
3264 associated with interface types.
3265 Extensive comment fixes regarding flags that appear in all entities. The
3266 documentation is now consistent for all such flags (there were a number
3267 of errors in the documentation in this regard).
3269 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
3271 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
3272 of these procedures are passed a function call that already has
3273 build-in-place actuals (testing new flag
3274 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
3275 the case where processing continues.
3276 (Expand_Call): If the call is generated from a thunk body then we
3277 propagate the extra actuals associated with the accessibility
3278 level of the access type actuals.
3280 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
3281 of each extra formal of a protected operation to reference the
3282 corresponding extra formal of the subprogram denoted by the
3283 operation's Protected_Body_Subprogram.
3285 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
3286 N_Function_Call nodes.
3288 2007-09-26 Robert Dewar <dewar@adacore.com>
3290 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
3292 * debug.adb: Add d.s flag.
3294 2007-09-26 Gary Dismukes <dismukes@adacore.com>
3296 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
3297 debug variable so that it won't be initialized when pragma
3298 Initialize_Scalars is in effect.
3300 2007-09-26 Gary Dismukes <dismukes@adacore.com>
3302 * freeze.adb (Freeze_Entity): Remove check for preelaborable
3303 initialization of a full view. This is moved to
3304 Analyze_Package_Specification.
3306 * sem_ch7.adb (Analyze_Package_Specification): Add check for
3307 preelaborable initialization of a full view in entity loop.
3308 (Uninstall_Declarations): If entity is a use-visible compilation unit,
3309 its child units are use-visible only if they are visible child units.
3311 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
3312 whether an expression can be used within a type declaration that
3313 requires preelaborable init.
3314 (Check_Components): Replace inline code that does partial checking for
3315 preelaborable default expressions with call to
3316 Is_Preelaborable_Expression.
3317 (Has_Preelaborable_Initialization): In the case of a generic actual
3318 subtype, (that is, Is_Generic_Actual is True), return the result of
3319 applying Has_Preelaborable_Initialization to the generic actual's base
3322 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
3324 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
3325 call to Jan_1_Day _Of_Week to optimize its performance.
3326 (Is_Leap): Move the routine to the scope of Week_In_Year.
3327 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
3328 weekday on which January 1 falls of Year - 1 and Year + 1. This function
3329 avoids calling Time_Of and Split, thus making it more efficent.
3330 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
3332 * g-calend.ads (Week_In_Year): Change comment to reflect new
3335 2007-09-26 Emmanuel Briot <briot@adacore.com>
3337 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
3338 Command_Line): New types
3339 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
3340 support for defining how switches can be grouped on a command line (as
3341 is the case for -gnatw... for GNAT), and how simple switches can be
3342 used as aliases for more complex switches (-gnatwa is same as
3344 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
3345 (Start, Current_*): New subprograms
3346 Added support for parsing an array of strings in addition to the real
3348 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
3349 be moved from the body to the private part of the spec.
3350 (*): All subprograms now have an extra parameter with default value to
3351 specify which parser should be used. For backward compatibility, it
3352 defaults to parsing the command line of the application. They were also
3353 modified to properly handle cases where each of the argument does not
3354 start at index 1 (which is always true for Ada.Command_Line, but not
3355 when processing any Argument_List).
3356 (Free): New subprogram
3357 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
3358 Argument): New subprograms
3359 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
3360 special characters like ':', '=',... are now handled in a single place,
3361 which makes the code more extensible eventually.
3362 (Getopt, Full_Switch): When the switch was returned as part of the
3363 special character '*', make sure it is prepended by the switch character
3364 ('-' in general), so that the application knows whether "foo" or "-foo"
3365 was specified on the command line.
3367 2007-09-26 Florian Villoing <villoing@adacore.com>
3369 * g-dirope.adb (Remove_Dir): In case we are removing directories
3370 recursively, make sure that if an exception is raised during the
3371 processing, the current working directory is reset to its initial
3372 value before propagating the exception.
3374 2007-09-26 Vincent Celier <celier@adacore.com>
3376 * gnatbind.adb: If there are several ALI files specified and there is
3377 a main program to bind, the first ALI is expected to contain the main
3378 subprogram and the names of the binder generated files will be derived
3379 from the first ALI file name.
3380 (Gnatbind): Fix insertion character in invocation of Error_Msg
3382 2007-09-26 Vincent Celier <celier@adacore.com>
3384 * gnatcmd.adb (Check_Files): Do not include sources that have been
3385 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
3387 2007-09-26 Ed Schonberg <schonberg@adacore.com>
3389 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
3390 information about each of its index types, following the type
3391 reference for its component type.
3393 2007-09-26 Vincent Celier <celier@adacore.com>
3395 * make.adb: (Kill): New procedure (__gnat_kill imported)
3396 (Running_Compile, Outstanding_Compiles): Global variables that
3397 were previously local to procedure Compile_Sources.
3398 (Sigint_Intercepted): Send signal SIGINT to all outstanding
3399 compilation processes.
3401 (Gnatmake): If project files are used, create the mapping of all the
3402 sources, so that the correct paths will be found.
3404 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
3406 2007-09-26 Vincent Celier <celier@adacore.com>
3408 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
3410 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
3411 Replace components Compiler_Min_Options and Binder_Min_Options with
3412 Compiler_Required_Switches and Binder_Required_Switches in record
3414 Remove components Default_Language and Config in Project_Tree_Data,
3417 * prj-attr.adb: New attributes Required_Switches (<language>) in
3418 packages Compiler and Binder.
3420 * prj-nmsc.adb: Major rewrite of the processing of configuration
3421 attributes for gprbuild. No impact on GNAT tools.
3423 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
3424 process configuration attributes: this is done in Prj.Nmsc.Check.
3425 (Recursive_Process): Make a full copy of packages inherited from project
3426 being extended, instead of a shallow copy.
3427 (Process_Project_Tree_Phase_1): New procedure
3428 (Process_Project_Tree_Phase_1): New procedure
3429 (Process): Implementation now uses the two new procedures
3431 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
3432 from the project config, not the tree config that no longer exists.
3434 2007-09-26 Vincent Celier <celier@adacore.com>
3436 * Make-lang.in: Update dependencies..
3438 2007-09-26 Vincent Celier <celier@adacore.com>
3440 * osint.adb, osint.ads: Minor reformatting
3442 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
3444 2007-09-26 Gary Dismukes <dismukes@adacore.com>
3446 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
3447 message to cite use of <> in aggregate component associations rather
3448 than wrongly indicating use of limited aggregates.
3450 2007-09-26 Robert Dewar <dewar@adacore.com>
3452 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
3455 2007-09-26 Ed Schonberg <schonberg@adacore.com>
3457 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
3458 ancestor of the derived type, the operations are inherited from the
3459 primary dispatch table of the parent.
3460 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
3461 when the context is an explicit type conversion.
3463 2007-09-26 Ed Schonberg <schonberg@adacore.com>
3465 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
3466 rule for qualified expressions properly, to detect improper conversions
3467 and resolve some cases of overloading.
3469 2007-09-26 Ed Schonberg <schonberg@adacore.com>
3471 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
3472 proper kind of reference to the primitive operation, for better source
3474 (Valid_Conversion): A tagged conversion is legal if both operands are
3477 2007-09-26 Robert Dewar <dewar@adacore.com>
3479 * sem_warn.adb (Check_References): Catch more cases of unreferenced
3482 2007-09-26 Vincent Celier <celier@adacore.com>
3484 * snames.adb, snames.ads: Change Include_Option to Include_Switches
3486 2007-09-26 Robert Dewar <dewar@adacore.com>
3488 * s-wchstw.adb: provide messages for run time unit exceptions
3490 * a-witeio.adb: Minor reformatting
3492 * exp_ch13.adb: Minor reformatting
3494 2007-09-26 Sergey Rybin <rybin@adacore.com>
3496 * vms_data.ads: Revise gnatmetric qualifiers.
3497 Add qualified for the new gnatbind option '-y'
3499 * gnat_ugn.texi: Revise the gnatmetric section.
3500 Add entry for new gnatbind option '-y'.
3502 * gnat_rm.texi: Minor spelling correction.
3503 Document restriction on overlaying controlled types
3505 2007-09-26 Vincent Celier <celier@adacore.com>
3507 * makegpr.adb (Link_Executables): Do not fail when the root project has
3508 no sources, but is an extending project.
3510 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
3512 * trans.c: Fix misplaced #define.
3514 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
3516 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
3517 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
3519 2007-09-21 Olivier Hainque <hainque@adacore.com>
3521 * utils.c (type_for_nonaliased_component_p): Return false for
3522 all AGGREGATE_TYPEs.
3524 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
3526 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
3527 object covered by 13.3(19) volatile.
3529 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
3533 * utils.c (unchecked_convert): Use a subtype as the intermediate type
3534 in the special VIEW_CONVERT_EXPR case.
3536 2007-09-12 Robert Dewar <dewar@adacore.com>
3538 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
3540 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
3541 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
3542 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
3543 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
3544 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
3545 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
3546 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
3547 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
3548 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
3549 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
3550 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
3551 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
3552 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
3553 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
3554 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
3555 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
3556 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
3557 pragma Compiler_Unit and adds it to relevant library units.
3559 2007-09-12 Ed Schonberg <schonberg@adacore.com>
3561 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
3562 a box need not correspond to any component.
3564 2007-09-12 Robert Dewar <dewar@adacore.com>
3566 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
3567 the tasking version of the Ada run time when foreign threads are
3568 present and there are no explicit Ada tasks or tasking constructs.
3570 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
3572 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
3574 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
3575 the usage of switch -y.
3577 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
3578 when switch -y is present.
3580 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
3581 leap seconds in Ada.Calendar and its children.
3583 2007-09-12 Jose Ruiz <ruiz@adacore.com>
3585 * a-extiti.ads (Timer): The discriminant is a "not null access
3586 constant" in the Reference Manual.
3587 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
3589 2007-09-12 Robert Dewar <dewar@adacore.com>
3591 * a-swuwha.adb: Remove junk RM header
3593 2007-09-12 Vincent Celier <celier@adacore.com>
3595 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
3598 * g-bytswa.ads: Minor reformatting
3600 2007-09-12 Thomas Quinot <quinot@adacore.com>
3602 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
3603 Add new constant Thread_Blocking_IO, always True by default, set False
3604 on a per-runtime basis.
3605 (Need_Netdb_Buffer): New constant.
3607 2007-09-12 Arnaud Charlet <charlet@adacore.com>
3609 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
3610 Added renames for corresponding functions in System.Partition_Interface.
3612 2007-09-12 Doug Rupp <rupp@adacore.com>
3614 * Makefile.in: Remove VMS specific System.CRTL packages which are no
3617 * s-crtl-vms64.ads: Removed.
3619 2007-09-12 Olivier Hainque <hainque@adacore.com>
3621 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
3622 with discriminant constraints, generalize the code for BIT_FIELDs
3623 to PACKED fields of constant size and propagate DECL_PACKED.
3625 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
3627 * decl.c (array_type_has_nonaliased_component): New predicate.
3628 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
3629 set the TYPE_NONALIASED_COMPONENT flag on the type.
3630 <E_Array_Subtype>: Likewise.
3631 * gigi.h (type_for_nonaliased_component_p): Declare.
3632 * utils.c (type_for_nonaliased_component_p): New predicate.
3633 (create_field_decl): Invoke the above predicate to set the
3634 DECL_NONADDRESSABLE_P flag on the field.
3636 2007-09-11 Javier Miranda <miranda@adacore.com>
3638 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
3639 in library level record type entities if we are generating statically
3640 allocated dispatch tables.
3642 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
3643 importing/exporting the _tag declaration by new code
3644 importing/exporting the dispatch table wrapper. This change allows us
3645 to statically allocate of the TSD.
3646 (Make_DT.Export_DT): New procedure.
3647 (Build_Static_DT): New function.
3648 (Has_DT): New function.
3650 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
3651 True_Constant and Current_Value. Required to statically
3652 allocate the dispatch tables.
3653 (Check_Allocator): Make function iterative instead of recursive.
3654 Also return inner allocator node, when present, so that we do not have
3655 to look for that node again in the caller.
3657 2007-09-11 Jan Hubicka <jh@suse.cz>
3659 * misc.c (gnat_expand_body): Kill.
3660 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
3662 2007-09-10 Robert Dewar <dewar@adacore.com>
3664 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
3665 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3666 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3667 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
3668 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
3669 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
3670 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
3671 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
3672 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
3673 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
3674 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
3675 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
3676 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
3677 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
3678 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
3679 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
3680 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
3681 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
3682 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
3683 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
3684 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
3685 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
3686 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
3687 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
3688 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
3689 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
3690 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
3691 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
3692 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
3693 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
3694 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
3695 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
3696 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
3697 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
3698 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
3699 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
3700 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
3701 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
3702 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
3703 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
3704 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
3705 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
3706 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
3707 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
3708 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
3709 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
3710 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
3711 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
3712 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
3713 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
3714 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
3715 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
3716 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
3717 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
3718 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
3719 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
3720 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
3721 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
3722 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3723 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
3724 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
3725 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
3726 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
3727 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
3728 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
3729 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
3730 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
3731 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
3732 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
3733 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
3734 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
3735 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
3736 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
3737 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
3738 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
3739 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
3740 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
3741 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
3742 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
3743 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
3744 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
3745 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
3746 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
3748 2007-09-10 Emmanuel Briot <briot@adacore.com>
3750 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
3753 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
3755 * adaint.c (__gnat_translate_vms): new function.
3757 2007-09-10 Gary Dismukes <dismukes@adacore.com>
3758 Thomas Quinot <quinot@adacore.com>
3760 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
3761 create an abstract subprogram in the case of 'Input. For 'Output we now
3762 create a real spec/body when the type is abstract, since it can
3763 potentially be called.
3764 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
3765 body for 'Output when the type is abstract (only the creation of the
3766 body for 'Input is excluded when the type is abstract).
3767 (Stream_Operation_OK): Add an additional condition in the return
3768 statement, so that False will be returned for TTS_Stream_Input if the
3769 associated tagged type is an abstract extension. Add comments for
3771 (Expand_N_Object_Declaration): For the case of a shared passive
3772 variable, insert init proc call only after the shared variable
3773 procedures have been processed, because the IP call needs to undergo
3774 shared passive variable reference expansion, which requires these
3775 procedures to be available (and elaborated).
3777 2007-09-10 Vincent Celier <celier@adacore.com>
3779 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
3780 parameter Runtime_Project.
3782 2007-09-10 Ed Schonberg <schonberg@adacore.com>
3784 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
3785 given a box association, the type of the component is discriminated,
3786 and the value of the discriminant is the discriminant of the enclosing
3787 type, retrieve its value from the aggregate itself, where it must have
3790 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
3791 to remove other spurious ambiguities on arithmetic operations involving
3792 literals and addresses, on systems where Address is a visible integer
3793 type, when the operator is called in functional notation.
3794 (Try_Primitive_Operation): Within an instance, a call in prefixed form
3795 is legal when the types match, even if the operation is currently
3798 2007-09-10 Ed Schonberg <schonberg@adacore.com>
3800 * sem_ch12.adb (Build_Local_Package): A formal package with no
3801 associations is legal if all formals have defaults. It is not
3802 equivalent to a formal declared with a box.
3804 2007-09-10 Sergey Rybin <rybin@adacore.com>
3806 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
3808 2007-09-10 Sergey Rybin <rybin@adacore.com>
3810 * gnat_ugn.texi: Add description of the new '-lratio' option
3811 Update 7.3.1 section about availability of the feature.
3813 2007-09-10 Thomas Quinot <quinot@adacore.com>
3815 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
3818 2007-09-10 Olivier Hainque <hainque@adacore.com>
3820 * Makefile.in: (mips-irix section): Activate build of libgmem.
3822 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
3824 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
3827 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
3829 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
3830 a debug renaming declaration specially.
3832 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
3834 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
3835 which a constant renaming is treated as a normal object declaration.
3836 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
3837 the N_Indexed_Component case.
3838 <N_Indexed_Component>: Fall through to above case.
3839 <N_Object_Renaming_Declaration>: Return true for all composite types.
3841 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
3843 * decl.c (make_packable_type): If the new type has been given BLKmode,
3844 try again to get an integral mode for it.
3846 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
3848 Re-apply accidentally reverted change:
3850 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
3852 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
3853 get_action_description_for): Replace _Unwind_Word with _uleb128_t
3854 and _Unwind_SWord with _sleb128_t.
3856 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
3858 * trans.c (convert_with_check): Update call to real_2expN.
3860 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
3862 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
3863 * utils.c (end_subprog_body): Likewise.
3865 2007-09-03 Nick Clifton <nickc@redhat.com>
3867 * Make-lang.in: Change copyright header to refer to version 3 of
3868 the GNU General Public License and to point readers at the
3869 COPYING3 file and the FSF's license web page.
3870 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
3871 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
3872 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
3873 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
3876 2007-08-31 Vincent Celier <celier@adacore.com>
3880 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
3881 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
3882 (Check_Version_And_Help): New procedure in package Switch to process
3883 switches --version and --help.
3884 Use Check_Version_And_Help in GNAT tools
3887 (Compile_Sources): Make sure that sources that are "excluded" are not
3889 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
3890 project file is used.
3891 (Version_Switch): Remove, moved to Switch
3892 (Help_Switch): Remove, moved to Switch
3893 (Display_Version): Remove, moved to Switch
3895 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
3896 package Switch to process switches --version and --help.
3897 (Display_Version): New procedure
3899 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
3901 2007-08-31 Javier Miranda <miranda@adacore.com>
3903 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
3906 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3908 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
3909 (Mark_Non_Null): If the node for which we just generated an access check
3910 is a reference to an *in* parameter and the reference appears in the
3911 declarative part of a subprogram body, mark the node as known non null.
3913 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3915 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
3916 structure of E_Exception to reflect the new flag.
3917 (Is_Raised, Set_Is_Raised): New inlined routines.
3918 Update the usage of available flag to reflect the addition of Is_Raised.
3919 (Is_Raised, Set_Is_Raised): Bodies of new routines.
3920 (Write_Entity_Flags): Write the status of flag Is_Raised.
3921 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
3922 spurious ambiguities when integer literals appear in the context of an
3923 address type that is a visible integer type.
3925 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
3926 exceptions never being raised.
3927 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
3930 2007-08-31 Javier Miranda <miranda@adacore.com>
3932 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
3933 statement when compiling under restriction No_Exceptions_Proparation.
3935 2007-08-31 Ed Schonberg <schonberg@adacore.com>
3937 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
3938 initialization aggregate for the type, generate itype references for
3939 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
3941 2007-08-31 Gary Dismukes <dismukes@adacore.com>
3943 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
3944 library-level package renaming, pass the declaration associated with
3945 the renaming's special debug variable to Qualify_Entity_Names to ensure
3946 that its encoded name is properly qualified.
3948 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
3949 occurring in the list of entities to qualify, and do not attempt to
3950 traverse an entity list in that case. Variables associated with
3951 ` library-level package renamings can now occur in the table.
3953 * exp_dbug.ads: Revise documentation of the encoding for renaming
3956 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3958 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
3959 access type points to an unconstrained array.
3961 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3963 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
3966 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
3967 simple redundant qualifications. The check is performed whenever the
3968 expression is a non-overloaded identifier.
3969 (Resolve_Type_Conversion): Enchance the redundant type conversion check
3970 to include loop parameters.
3971 (Valid_Conversion): Avoid generation of spurious error message.
3973 2007-08-31 Bob Duff <duff@adacore.com>
3975 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
3976 concatenations of string literals into a single literal, in order to
3977 avoid very deep recursion in the front end, which was causing stack
3980 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
3981 string, and the right operand is a string literal (the case of "" &
3982 "..."), optimize by avoiding copying the right operand -- just use the
3983 value of the right operand directly.
3985 * stringt.adb (Store_String_Chars): Optimize by growing the
3986 String_Chars table all at once, rather than appending characters one by
3988 (Write_String_Table_Entry): If the string to be printed is very long,
3989 just print the first few characters, followed by the length. Otherwise,
3990 doing "pn(n)" in the debugger can take an extremely long time.
3992 * sem_prag.adb (Process_Interface_Name): Replace loop doing
3993 Store_String_Char with Store_String_Chars.
3995 2007-08-31 Vincent Celier <celier@adacore.com>
3997 * prj-attr.adb: Add new attribute Excluded_Source_Files
3999 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
4000 Locally_Removed_Files.
4002 * snames.ads, snames.adb: New standard name Excluded_Source_Files
4004 2007-08-31 Ed Schonberg <schonberg@adacore.com>
4006 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
4007 clauses of subunits, ignore limited_with_clauses that are illegal and
4008 have not been fully analyzed.
4010 2007-08-31 Ed Schonberg <schonberg@adacore.com>
4012 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
4013 flag, for effiency. It is called when analyzing arithmetic operators
4014 and also for actuals in calls that are universal_integers. The flag is
4015 set for the predefined type address, and for any type or subtype
4018 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
4019 Universal_Integer, when the formal is a descendent of address and the
4020 call appears in user code.
4021 (Analyze_Selected_Component): if the prefix is a private extension, the
4022 tag component is visible.
4024 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
4027 2007-08-31 Robert Dewar <dewar@adacore.com>
4029 * s-fileio.adb (Open): Normalize file name to lower case in non-case
4030 sensitive file name systems to avoid unexpected mismatch in Vista.
4032 2007-08-31 Vincent Celier <celier@adacore.com>
4034 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
4036 2007-08-31 Vincent Celier <celier@adacore.com>
4038 * symbols-vms.adb (Initialize): Read symbol files with continuation
4040 (Finalize): If symbol is long, split the line
4042 2007-08-31 Vincent Celier <celier@adacore.com>
4044 * fmap.ads: Minor comment updates
4046 2007-08-31 GNAT Script <nobody@adacore.com>
4048 * Make-lang.in: Makefile automatically updated
4050 2007-08-31 Bob Duff <duff@adacore.com>
4052 * sinfo.ads: Minor comment fix.
4054 2007-08-31 Thomas Quinot <quinot@adacore.com>
4056 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
4057 with implementation.
4058 Documentation cleanup only.
4060 2007-08-31 Sergey Rybin <rybin@adacore.com>
4062 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
4063 gnatpp '--separate-stmt-name' option.
4064 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
4067 * gnat_ugn.texi: Add description for the new gnatpp
4068 '--separate-stmt-name' and '--use-on-new-line' options.
4070 2007-08-31 Ben Elliston <bje@au.ibm.com>
4072 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
4073 when compiling for powerpc64-*-linux.
4074 * system-linux-ppc64.ads: New file.
4076 2007-08-22 Krister Walfridsson <cato@df.lth.se>
4078 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
4081 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4083 * misc.c (gnat_type_max_size): Constify.
4085 2007-08-16 Gary Dismukes <dismukes@adacore.com>
4087 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
4088 associated with Standard_Debug_Renaming_Type, to be used as the type of
4089 the special variables whose names provide debugger encodings for
4090 renaming declarations.
4092 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
4093 (Set_Debug_Renaming_Link): Change to set Node25.
4094 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
4095 (Write_Field25_Name): Add case for E_Variable to output
4096 "Debug_Renaming_Link".
4097 (Write_Field23_Name): Correct the output string for "Limited_View".
4099 * exp_dbug.adb: Add with and use of Tbuild.
4100 (Debug_Renaming_Declaration): Replace creation of an enumeration type
4101 and literal with creation of a variable of type
4102 Standard_Debug_Renaming_Type whose name encodes both the renamed object
4103 and the entity of the renaming declaration.
4104 (Qualify_Entity_Name): Add the delayed qualification of the entity name
4105 part of the name of a variable that has a Debug_Renaming_Link.
4107 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
4108 special type to be associated with variables that provide debugger
4109 encodings for renaming declarations.
4111 2007-08-16 Gary Dismukes <dismukes@adacore.com>
4112 Ed Schonberg <schonberg@adacore.com>
4113 Javier Miranda <miranda@adacore.com>
4115 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
4116 ancestor part given by an aggregate to test for an unchecked conversion,
4117 since this can occur in some cases when the ancestor part is a function
4118 call, and we don't want to fall into the recursive call to this
4119 procedure in that case.
4121 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
4122 stream attributes on limited types to account for user-specified
4123 attributes as well as whether Input (resp. Output) becomes available
4124 due to Read (resp. Write) being available for the type. Change Boolean
4125 variable to the more accurate name
4126 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
4127 double-"not" predicate at beginning of return statement to more
4128 understandable form.
4130 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
4131 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
4132 in a block statement and use that as the first statement of the
4133 expanded return rather than incorrectly using the handled sequence as
4134 the first statement.
4136 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
4137 operation, generate an explicit freeze node for it rather than
4138 generating extra formals, to ensure that gigi has the proper order of
4139 elaboration for anonymous subtypes in the signature of the subprograms.
4140 (Build_In_Place_Formal): Move assertion to beginning of loop.
4141 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
4142 applied to a function call (occurs for some cases of 'Input).
4143 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
4144 applied to a function call (occurs for some cases of 'Input).
4146 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
4147 2005, generate an extended return statement enclosing the result object
4150 * freeze.adb (Freeze_Record_Type): Extend the current management of
4151 components that are access type with an allocator as default value: add
4152 missing support to the use of qualified expressions of the
4153 allocator (which also cause freezing of the designated type!)
4154 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
4155 dispatching operation, since extra formals may be needed by calls to
4156 build-in-place functions (such as stream 'Input).
4158 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
4159 formals for 'Constrained and accessibility level in the case of a
4160 predefined dispatching operation.
4162 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
4163 point, no need to find the parent node.
4165 2007-08-16 Javier Miranda <miranda@adacore.com>
4167 * exp_attr.adb (Attribute_Priority): Add missing support for entries
4170 2007-08-16 Javier Miranda <miranda@adacore.com>
4172 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
4173 is not really required and can introduce regression with the debugger.
4174 The original problem is fixed with the patch written for checks.adb.
4176 2007-08-16 Thomas Quinot <quinot@adacore.com>
4178 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
4179 Range_Check on Allocated_Table.
4181 2007-08-16 Vincent Celier <celier@adacore.com>
4183 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
4184 Including_Non_Switch set to False.
4185 (Gnatmake): For the compiler, call Test_If_Relative_Path with
4186 Including_Non_Switch set to False.
4188 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
4189 parameter Including_Non_Switch, defaulted to True. When
4190 Including_Non_Switch is False, options that are not switches and
4191 appear as relative path are not converted to absolute paths.
4193 2007-08-16 Nicolas Roche <roche@adacore.com>
4195 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
4198 * Make-lang.in: Update dependencies
4200 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
4202 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
4203 currently inspected is a selected component, retrieve the entity of
4205 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
4206 from the immediate ancestor of Main_Unit_Entity.
4207 (Install_Limited_Withed_Unit): Do not install the limited view of
4208 package P if P is reachable through an ancestor chain from package C
4209 and C also has a with clause for P in its body.
4210 (Has_Limited_With_Clause): New routine.
4211 (Has_With_Clause): New routine.
4213 2007-08-16 Ed Schonberg <schonberg@adacore.com>
4215 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
4216 generic for an enclosing instance is a global reference, even though
4217 its scope is the enclosing instance.
4219 2007-08-16 Gary Dismukes <dismukes@adacore.com>
4220 Javier Miranda <miranda@adacore.com>
4222 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
4223 initialize a limited object.
4224 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
4226 Make sure Has_Complex_Representation is inherited by derived type.
4228 2007-08-16 Robert Dewar <dewar@adacore.com>
4230 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
4233 2007-08-16 Ed Schonberg <schonberg@adacore.com>
4235 * sem_disp.adb (Check_Dispatching_Operation): If the operation
4236 implements an operation inherited from a progenitor interface, verify
4237 that they are subtype-conformant.
4239 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
4240 Bob Duff <duff@adacore.com>
4241 Nicolas Setton <setton@adacore.com>
4243 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
4244 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
4245 the statement which is being resolved comes from a predefined library
4246 unit, all non-predefined library interpretations are skipped.
4247 (Resolve_Op_Concat): If string concatenation was folded in the parser,
4248 but the "&" is user defined, give an error, because the folding would
4251 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
4252 the parser has folded a long sequence of concatenations of string
4255 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
4256 and "JMP_BUF" variables as artificial.
4257 (N_String_Literal): Do not use alloca for very long string literals. Use
4258 xmalloc/free instead. Otherwise the stack might overflow.
4260 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
4263 2007-08-16 Vincent Celier <celier@adacore.com>
4265 * vms_conv.adb (Process_Argument): Ensure that project related options
4266 are not put in the -cargs section when using GNAT COMPILE.
4268 2007-08-16 Robert Dewar <dewar@adacore.com>
4270 * gnat_ugn.texi: Add note on preprocessing (output file not written)
4272 2007-08-16 Thomas Quinot <quinot@adacore.com>
4274 * a-tags.adb: Minor reformatting.
4276 2007-08-16 Bob Duff <duff@adacore.com>
4278 * sem_type.ads, sem_ch4.adb: Minor reformatting.
4280 2007-08-14 Thomas Quinot <quinot@adacore.com>
4282 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
4283 s-osinte-interix.ads, system-interix.ads: Removed.
4285 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4287 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
4288 calls to Check_Within_Time_Bounds.
4289 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
4290 (Difference): Account for possible rounding of the resulting difference
4292 2007-08-14 Robert Dewar <dewar@adacore.com>
4294 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
4295 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
4296 s-osinte-solaris.adb, s-osinte-solaris.ads,
4297 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
4299 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
4300 switch -gnatyS. Enable -gnatyS in GNAT style check mode
4302 2007-08-14 Robert Dewar <dewar@adacore.com>
4303 Ed Schonberg <schonberg@adacore.com>
4305 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
4306 Suppress unmodified in-out parameter warning in some cases
4307 This patch is a also fairly significant change to the way suppressible
4310 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
4311 needed for access to concurrent record types generated by the expander.
4312 (Generate_Range_Check): When generating a temporary to capture the
4313 value of a conversion that requires a range check, set the type of the
4314 temporary before rewriting the node, so that the type is always
4315 properly placed for back-end use.
4316 (Apply_Float_Conversion_Check): Handle case where the conversion is
4318 (Get_Discriminal): Code reformatting. Climb the scope stack looking
4319 for a protected type in order to examine its discriminants.
4321 2007-08-14 Robert Dewar <dewar@adacore.com>
4322 Gary Dismukes <dismukes@adacore.com>
4323 Ed Schonberg <schonberg@adacore.com>
4324 Thomas Quinot <quinot@adacore.com>
4326 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
4327 a-stwisu.adb, a-strsup.adb: Fix warnings for range
4328 tests optimized out.
4330 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
4331 (Get_Allocator_Final_List): For the case of an anonymous access type
4332 that has a specified Associated_Final_Chain, do not go up to the
4334 (Expand_N_Type_Conversion): Test for the case of renamings of access
4335 parameters when deciding whether to apply a run-time accessibility
4337 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
4338 aggregate code before allocator, and ahead of declaration for
4339 temporary, to prevent access before elaboration when the allocator is
4340 an actual for an access parameter.
4341 (Expand_N_Type_Conversion): On an access type conversion involving an
4342 access parameter, do not apply an accessibility check when the
4343 operand's original node was an attribute other than 'Access. We now
4344 create access conversions for the expansion of 'Unchecked_Access and
4345 'Unrestricted_Access in certain cases and clearly accessibility should
4346 not be checked for those.
4348 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
4349 includes a type conversion of a packed component that has been expanded,
4350 recover the original expression for the object, and use this expression
4351 in the post-call assignment statement, so that the assignment is made
4352 to the object and not to a back-end temporary.
4353 (Freeze_Subprogram): In case of primitives of tagged types not defined
4354 at the library level force generation of code to register the primitive
4355 in the dispatch table. In addition some code reorganization has been
4356 done to leave the implementation clear.
4357 (Expand_Call): When expanding an inherited implicit conversion,
4358 preserve the type of the inherited function after the intrinsic
4359 operation has been expanded.
4361 * exp_ch2.ads, exp_ch2.adb
4362 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
4363 of an entry formal appearing in an assignment statement does not assign
4365 (Expand_Current_Value): Instead of calling a routine to determine
4366 whether the prefix of an attribute reference should be optimized or
4367 not, prevent the optimization of such prefixes all together.
4369 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
4370 component whose prefix is known to be of an access type is an implicit
4371 dereference and does not assign to the prefix.
4373 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4374 Robert Dewar <dewar@adacore.com>
4376 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
4377 itype is visited, make an entry into table to link associated node and
4379 Add comments and correct harmless error in Build_NCT_Hash_Tables
4380 (Array_Aggr_Subtype): Associate each itype created for an index type to
4381 the corresponding range construct, and not to the aggregate itself. to
4382 maintain a one-to-one correspondence between itype and its associated
4383 node, to prevent errors when complex expression is copied.
4384 Fix mishandling of multiple levels of parens
4386 * sem_aggr.adb: Create a limited view of an incomplete type, to make
4387 treatment of limited views uniform for all visible declarations in a
4388 limited_withed package.
4389 (New_Copy_Tree): If hash table is being used and itype is visited,
4390 make an entry into table to link associated node and new itype.
4391 (Resolve_Record_Aggregate): Do not add an others box association for a
4392 discriminated record component that has only discriminants, when there
4393 is a box association for the component itself.
4395 * par-ch4.adb: Fix mishandling of multiple levels of parens
4397 2007-08-14 Robert Dewar <dewar@adacore.com>
4399 * comperr.adb: Fix problem with suppressing warning messages from gigi
4401 * erroutc.ads, erroutc.adb, errout.ads,
4402 errout.adb (Write_Eol): Remove trailing spaces before writing the line
4403 (Write_Eol_Keep_Blanks): New procedure to write a line, including
4404 possible trailing spaces.
4405 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
4406 Fix problem with suppressing warning messages from back end
4407 Improve handling of deleted warnings
4410 Fix problem with suppressing warning messages from back end
4411 Handle setting of Static_Dispatch_Tables flag.
4414 Fix problem with suppressing warning messages from back end
4416 * exp_intr.adb: Improve handling of deleted warnings
4418 2007-08-14 Robert Dewar <dewar@adacore.com>
4420 * debug.adb: Improve -gnatdI to cover all cases of serialization
4421 Add documentation of dZ, d.t
4423 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
4425 (Sprint_Node_Actual): Generate new output associated with implicit
4426 importation and implicit exportation of object declarations.
4428 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4429 Robert Dewar <dewar@adacore.com>
4430 Javier Miranda <miranda@adacore.com>
4431 Gary Dismukes <dismukes@adacore.com>
4433 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
4434 to make treatment of limited views uniform for all visible declarations
4435 in a limited_withed package.
4436 Improve warnings for in out parameters
4437 (Set_Related_Interaface/Related_Interface): Allow the use of this
4438 attribute with constants.
4439 (Write_Field26_Name): Handle attribute Related_Interface in constants.
4440 Warn on duplicate pragma Preelaborable_Initialialization
4442 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
4443 generation of a freezing node to ensure proper management of null
4444 excluding access types in the backend.
4445 (Create_Extra_Formals): Test base type of the formal when checking for
4446 the need to add an extra accessibility-level formal. Pass the entity E
4447 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
4448 originally being done in a couple of cases), to ensure that the
4449 Extra_Formals list gets set on the entity E when the first entity is
4451 (Conforming_Types): Add missing calls to Base_Type to the code that
4452 handles anonymous access types. This is required to handle the
4453 general case because Process_Formals builds internal subtype entities
4454 to handle null-excluding access types.
4455 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
4456 functions that need it, even when not marked Requires_Overriding.
4457 Improve warnings for in out parameters
4458 (Analyze_Function_Return): Warn for disallowed null return
4459 Warn on return from procedure with unset out parameter
4460 Ensure consistent use of # in error messages
4461 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
4462 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
4463 the implicit conversion of the expression done for anonymous access
4464 types. This is required to generate the code of the null excluding
4465 check (if required).
4467 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
4468 A formal parameter is never publicly referenceable outside of its body.
4469 (Check_References): For an unreferenced formal parameter in an accept
4470 statement, use the same warning circuitry as for subprogram formal
4472 (Warn_On_Unreferenced_Entity): New subprogram, taken from
4473 Output_Unreferenced_Messages, containing the part of that routine that
4474 is now reused for entry formals as described above.
4475 (Goto_Spec_Entity): New function
4476 (Check_References): Do not give IN OUT warning for dispatching operation
4477 Improve warnings for in out parameters
4478 (Test_Ref): Check that the entity is not undefinite before calling
4479 Scope_Within, in order to avoid infinite loops.
4480 Warn on return from procedure with unset out parameter
4481 Improved warnings for unused variables
4483 2007-08-14 Robert Dewar <dewar@adacore.com>
4484 Javier Miranda <miranda@adacore.com>
4485 Gary Dismukes <dismukes@adacore.com>
4487 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
4488 (Expand_N_Attribute_Reference): Further unify the handling of the
4489 three forms of access attributes, using common code now for all three
4490 cases. Add a test for the case of applying an access attribute to
4491 an explicit dereference when the context is an access-to-interface
4492 type. In that case we need to apply the conversion to the prefix
4493 of the explicit dereference rather than the prefix of the attribute.
4494 (Attribute_Version, UET_Address): Set entity as internal to ensure
4495 proper dg output of implicit importation.
4496 (Expand_Access_To_Type): Removed.
4497 (Expand_N_Attribute_Reference): Merge the code from the three cases
4498 of access attributes, since the processing is largely identical for
4499 these cases. The substantive fix here is to process the case of a
4500 type name prefix (current instance case) before handling the case
4501 of interface prefixes.
4503 2007-08-14 Thomas Quinot <quinot@adacore.com>
4504 Ed Schonberg <schonberg@adacore.com>
4505 Javier Miranda <miranda@adacore.com>
4506 Robert Dewar <dewar@adacore.com>
4508 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
4509 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
4510 type that is an anonymous access to controlled object, establish
4511 an associated finalization chain to avoid corrupting the global
4512 finalization list when a dynamically allocated object designated
4513 by such a component is deallocated.
4514 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
4515 functions that need it, even when not marked Requires_Overriding.
4516 (Initialize_Tag): Replace call to has_discriminants by call to
4517 Is_Variable_Size_Record in the circuitry that handles the
4518 initialization of secondary tags.
4519 (Is_Variable_Size_Record): New implementation.
4520 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
4521 Suppress_Initialization pragma for a derived type.
4522 (Is_Variable_Size_Record): New subprogram.
4523 (Build_Offset_To_Top_Functions): New implementation that simplifies the
4524 initial version of this routine and also fixes problems causing
4525 incomplete initialization of the table of interfaces.
4526 (Build_Init_Procedure): Improve the generation of code to initialize the
4527 the tag components of secondary dispatch tables.
4528 (Init_Secondary_Tags): New implementation that simplifies the previous
4529 version of this routine.
4530 (Make_DT): Add parameter to indicate when type has been frozen by an
4531 object declaration, for diagnostic purposes.
4532 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
4533 diagnose attemps to freeze a subprogram when some untagged type of its
4534 profile is a private type whose full view has not been analyzed yet.
4535 (Freeze_Array_Type): Generate init proc for packed array if either
4536 Initialize or Normalize_Scalars is set.
4537 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
4538 constructing the new profile, copy the null_exclusion indicator for each
4539 parameter, to ensure full conformance of the new body with the spec.
4541 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
4542 Create wrappers for constructor functions that need it, even when not
4543 marked Requires_Overriding.
4544 (Covers): Handle properly designated types of anonymous access types,
4545 whose non-limited views are themselves incomplete types.
4546 (Add_Entry): Use an entity to store the abstract operation which hides
4548 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
4549 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
4550 initialization aggregate.
4551 (Function_Interp_May_Be_Hidden): Rename to
4552 Function_Interp_Has_Abstract_Op.
4553 (Has_Compatible_Type): Remove machinery that skips interpretations if
4554 they are labeled as potentially hidden by an abstract operator.
4555 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
4556 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
4557 (Write_Overloads): Output the abstract operator if present.
4558 (Add_Entry): Before inserting a new entry into the interpretation table
4559 for a node, determine whether the entry will be disabled by an abstract
4561 (Binary_Op_Interp_May_Be_Hidden): New routine.
4562 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
4564 (Function_Interp_May_Be_Hidden): New routine.
4565 (Has_Compatible_Type): Do not consider interpretations hidden by
4566 abstract operators when trying to determine whether two types are
4568 (Has_Hidden_Interp): New routine.
4569 (Set_May_Be_Hidden_Interp): New routine.
4570 (Write_Overloads): Write the status of flag May_Be_Hidden.
4572 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4573 Javier Miranda <miranda@adacore.com>
4575 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
4576 types declared in the declarative part of a nested package body or in
4577 the proper body of a stub.
4578 (Set_All_DT_Position): Add missing check to avoid wrong assignation
4579 of the same dispatch table slot to renamed primitives.
4580 (Make_Select_Specific_Data_Table): Handle private types.
4581 (Tagged_Kind): Handle private types.
4582 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
4583 output of implicit importation and exportation.
4584 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
4585 first formal of the thunk is always associated with the controlling
4586 type. In addition perform the following code cleanup: remove formal
4587 Thunk_Alias which is no longer required, cleanup evaluation of the
4588 the controlling type, and update the documentation.
4589 Replace occurrence of Default_Prim_Op_Count by
4590 Max_Predef_Prims. Addition of compile-time check to verify
4591 that the value of Max_Predef_Prims is correct.
4592 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
4593 (Make_DT): Add parameter to indicate when type has been frozen by an
4594 object declaration, for diagnostic purposes.
4595 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
4596 construction of statically allocated dispatch tables.
4597 (Make_DT): In case of library-level tagged types export the declaration
4598 of the primary tag. Remove generation of tags (now done by Make_Tags).
4599 Additional modifications to handle non-static generation of dispatch
4600 tables. Take care of building tables for asynchronous interface types
4601 (Make_Tags): New subprogram that generates the entities associated with
4602 the primary and secondary tags of Typ and fills the contents of Access_
4603 Disp_Table. In case of library-level tagged types imports the forward
4604 declaration of the primary tag that will be declared later by Make_DT.
4605 (Expand_Interface_Conversion): In case of access types to interfaces
4606 replace an itype declaration by an explicit type declaration to avoid
4607 problems associated with the scope of such itype in transient blocks.
4609 2007-08-14 Robert Dewar <dewar@adacore.com>
4610 Ed Schonberg <schonberg@adacore.com>
4611 Javier Miranda <miranda@adacore.com>
4613 * exp_util.ads, exp_util.adb:
4614 This patch replaces a number of occurrences of explicit tests for N_Null
4615 with calls to Known_Null. This improves tracking of null values, since
4616 Known_Null also catches null constants, and variables currently known to
4617 be null, so we get better tracking.
4618 (Ensure_Defined): create an itype reference only in the scope of the
4620 (Side_Effect_Free): A selected component of an access type that
4621 denotes a component with a rep clause must be treated as not
4622 side-effect free, because if it is part of a linked structure its
4623 value may be affected by a renaming.
4624 (Expand_Subtype_From_Expr): For limited objects initialized with build
4625 in place function calls, do nothing; otherwise we prematurely introduce
4626 an N_Reference node in the expression initializing the object, which
4627 breaks the circuitry that detects and adds the additional arguments to
4628 the called function. Bug found working in the new patch for statically
4629 allocated dispatch tables.
4630 (Is_Library_Level_Tagged_Type): New subprogram.
4631 (Remove_Side_Effects): If the expression of an elementary type is an
4632 operator treat as a function call.
4633 (Make_Literal_Range): If the index type of the array is not integer, use
4634 attributes properly to compute the constraint on the resulting aggregate
4637 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
4638 class-wide type whose base type is an incomplete private type, leave
4639 class-wide type unfrozen so that freeze nodes can be generated
4640 properly at a later point.
4641 (Freeze_Entity, array case): Handle case of pragma Pack and component
4642 size attributre clause for same array.
4644 2007-08-14 Vincent Celier <celier@adacore.com>
4646 * prj.ads, prj.adb: Update Project Manager to new attribute names for
4648 Allow all valid declarations in configuration project files
4649 (Reset): Initialize all tables and hash tables in the project tree data
4650 Major update of the Project Manager and of the project aware tools,
4651 including gprmake, so that the same sources in the GNAT repository
4652 can be used by gprbuild.
4653 (Slash_Id): Change type to be Path_Name_Type
4654 (Slash): Return a Path_Name_Type instead of a File_Name_Type
4656 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
4658 Update Project Manager to new attribute names for ghprbuild
4659 Allow all valid declarations in configuration project files
4660 Major update of the Project Manager and of the project aware tools,
4661 including gprmake, so that the same sources in the GNAT repository
4662 can be used by gprbuild.
4665 Major update of the Project Manager and of the project aware tools,
4666 including gprmake, so that the same sources in the GNAT repository
4667 can be used by gprbuild.
4669 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
4670 insensitive flag for attributes with optional index.
4671 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
4672 array attribute, put the index in lower case.
4673 Update Project Manager to new attribute names for ghprbuild
4674 Allow all valid declarations in configuration project files
4675 Major update of the Project Manager and of the project aware tools,
4676 including gprmake, so that the same sources in the GNAT repository
4677 can be used by gprbuild.
4679 * prj-env.ads, prj-env.adb:
4680 Major update of the Project Manager and of the project aware tools,
4681 including gprmake, so that the same sources in the GNAT repository
4682 can be used by gprbuild.
4683 (Get_Reference): Change type of parameter Path to Path_Name_Type
4685 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
4686 removing '-' from the path to start with the first character of the
4688 Major update of the Project Manager and of the project aware tools,
4689 including gprmake, so that the same sources in the GNAT repository
4690 can be used by gprbuild.
4691 Major update of the Project Manager and of the project aware tools,
4692 including gprmake, so that the same sources in the GNAT repository
4693 can be used by gprbuild.
4695 * prj-nmsc.ads, prj-nmsc.adb:
4696 Update Project Manager to new attribute names for ghprbuild
4697 Allow all valid declarations in configuration project files
4698 (Search_Directories): Detect subunits that are specified with an
4699 attribute Body in package Naming. Do not replace a source/unit in the
4700 same project when the order of the source dirs are known. Detect
4701 duplicate sources/units in the same project when the order of the
4702 source dirs are not known.
4703 (Check_Ada_Name): Allow all identifiers that are not reserved words
4705 Major update of the Project Manager and of the project aware tools,
4706 including gprmake, so that the same sources in the GNAT repository
4707 can be used by gprbuild.
4708 (Look_For_Sources): If the list of sources is empty, set the object
4709 directory of non extending project to nil.
4710 Change type of path name variables to be Path_Name_Type
4711 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
4712 otherwise creating missing directories will fail.
4714 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
4715 prj-part.ads, prj-part.adb:
4716 Major update of the Project Manager and of the project aware tools,
4717 including gprmake, so that the same sources in the GNAT repository
4718 can be used by gprbuild.
4720 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
4721 insensitive flag for attributes with optional index.
4722 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
4723 array attribute, put the index in lower case.
4724 (Parse_Variable_Reference): Allow the current project name to be used in
4725 the prefix of an attribute reference.
4727 * prj-util.ads, prj-util.adb
4728 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
4729 defaulted to False. When True, always check against indexes in lower
4732 * snames.ads, snames.h, snames.adb:
4733 Update Project Manager to new attribute names for gprbuild
4734 Allow all valid declarations in configuration project files
4736 2007-08-14 Robert Dewar <dewar@adacore.com>
4737 Ed Schonberg <schonberg@adacore.com>
4739 * opt.ads: Warning for non-local exception propagation now off by
4741 New switch -gnatI to disable representation clauses
4742 Implement new pragma Implicit_Packing
4745 Warning for non-local exception propagation now off by default
4746 Add warning for unchecked conversion of pointers wi different
4748 New switch -gnatI to disable representation clauses
4750 * usage.adb: new switch -gnatyS
4752 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
4753 note that aggregates of anonymous array types are not flagged.
4754 -gnatwc now includes membership tests optimized away
4755 -gnatw.x warnings are now off by default
4756 Added conditional compilation Appendix
4757 Add documentation of -gnatI
4758 Add documentation for new -gnatyS style check
4759 Update documentation about SAL and auto-init on Windows.
4762 Add documentation for pragma Check_Name and 'Enabled attribute
4763 Document that Eliminate on dispatching operation is ignored
4764 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
4765 Document pragma Main
4766 Document pragma Implicit_Packing
4768 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
4769 different conventions
4770 New switch -gnatI to disable representation clauses
4772 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
4773 recognized, report the invalid characters including "-gnat" instead of
4774 just the first character in the switch.
4775 New switch -gnatI to disable representation clauses
4776 Set Warn_On_Object_Renames_Function true for -gnatg
4778 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
4779 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
4780 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
4781 to switch -aP (add directory to project search dir).
4783 * par-prag.adb: Implement new pragma Implicit_Packing
4785 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
4786 type as having a non-standard representation, to force expansion on
4787 conversion to related types.
4788 (Analyze_Pragma): Warn on misspelled pragma
4789 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
4790 Ensure consistent use of # in error messages
4791 Implement pragma Implicit_Packing
4793 2007-08-14 Olivier Hainque <hainque@adacore.com>
4794 Eric Botcazou <ebotcazou@adacore.com>
4796 * targtyps.c (get_target_maximum_default_alignment): New function.
4798 that the compiler might choose by default for a type or object.
4799 (get_target_default_allocator_alignment): New function. Alignment known
4800 to be honored by the target default allocator.
4801 (get_target_maximum_allowed_alignment): New function. Maximum alignment
4802 we might accept for any type or object on the target.
4803 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
4805 * gigi.h (get_target_maximum_default_alignment): Declare new function.
4806 (get_target_default_allocator_alignment): Likewise.
4807 (get_target_maximum_allowed_alignment): Likewise.
4810 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
4811 result of a function call, first try to use a stabilized reference for
4812 a constant renaming too.
4813 (validate_alignment): Use target_maximum_allowed_alignment instead of
4814 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
4815 (gnat_to_gnu_entity): Use common nodes directly.
4816 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
4817 alignment and size for the object.
4818 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
4819 and N_Procedure_Call_Statement.
4820 (takes_address): Rename to lvalue_required_p, add third parameter
4821 'aliased' and adjust recursive calls.
4822 <N_Indexed_Component>: Update 'aliased' from the array type.
4823 <N_Selected_Component>: New case.
4824 <N_Object_Renaming_Declaration>: New Likewise.
4825 (Identifier_to_gnu): Adjust for above changes.
4826 (maybe_stabilize_reference) <CONST_DECL>: New case.
4828 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
4829 between type variants.
4830 (build_simple_component_ref): Likewise.
4831 (build_call_alloc_dealloc): Use target_default_allocator_alignment
4832 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
4833 aligning type circuitry for allocations from the default storage pool.
4834 (build_allocator): Likewise.
4835 (build_simple_component_ref): Manually fold the reference for a
4836 constructor if the record type contains a template.
4838 * utils.c (value_zerop): Delete.
4839 (gnat_init_decl_processing): Emit debug info for common types.
4840 (rest_of_record_type_compilation): If a union contains a field
4841 with a non-constant qualifier, treat it as variable-sized.
4842 (finish_record_type): Give the stub TYPE_DECL a name.
4843 (rest_of_record_type_compilation): Likewise.
4844 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
4845 types are equivalent array types.
4846 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
4847 even if the type is not passed by reference.
4848 (static_ctors, static_dtors): Delete.
4849 (end_subprog_body): Do not record constructors and destructors.
4850 (build_global_cdtor): Delete.
4851 (gnat_write_global_declarations): Do not call build_global_cdtor.
4853 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
4854 -fRTS=rtp is specified.
4855 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
4858 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
4859 of the personality function with SJLJ exceptions.
4861 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
4862 the name of the personality function with SJLJ exceptions.
4864 2007-08-14 Robert Dewar <dewar@adacore.com>
4865 Ed Schonberg <schonberg@adacore.com>
4867 * par.ads, par.adb: Improve handling of extra right parens.
4868 (Par): Remove flag From_Limited_With_Clause.
4870 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
4871 Improve handling of extra right parens.
4873 2007-08-14 Robert Dewar <dewar@adacore.com>
4875 * par-tchk.adb (TF_Semicolon): Improve error recovery
4877 2007-08-14 Robert Dewar <dewar@adacore.com>
4878 Ed Schonberg <schonberg@adacore.com>
4880 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
4881 enumeration type, mark all literals as referenced.
4882 (Eval_Attribute, case 'Image): If the argument is an enumeration
4883 literal and names are available, constant-fold but mark nevertheless as
4885 Clean up function names.
4886 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
4888 (Requires_Simple_Name_Prefix): Removed.
4890 2007-08-14 Robert Dewar <dewar@adacore.com>
4891 Ed Schonberg <schonberg@adacore.com>
4893 * sem_ch11.adb: Improved warnings for unused variables
4895 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
4896 is a synchronized interface, the derived type is limited.
4897 (Analyze_Object_Declaration): Mark the potential coextensions in the
4898 definition and expression of an object declaration node.
4899 (Build_Derived_Type): For the completion of a private type declaration
4900 with a derived type declaration, chain the parent type's representation
4901 items to the last representation item of the derived type (not the
4902 first one) if they are not present already.
4903 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
4904 object declaration of forward references to tags.
4905 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
4906 subprogram types can appear as access discriminants of synchronized
4908 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
4909 given in prefixed form as a selected component.
4910 (Process_Discriminants): If not all discriminants have defaults, place
4911 error message on a default that is present.
4912 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
4913 extend a synchronized tagged type.
4914 Improved warnings for unused variables
4915 (Is_Visible_Component): Fix a visibility hole on a component inherited
4916 by a private extension when parent is itself declared as a private
4917 extension, and the derivation is in a child unit.
4918 (Find_Hidden_Interface): Move spec from the package body.
4920 2007-08-14 Robert Dewar <dewar@adacore.com>
4921 Ed Schonberg <schonberg@adacore.com>
4923 * sem_ch5.adb: Improve warnings on redundant assignments
4925 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
4927 (Is_Synchronized_Tagged_Type): New subprogram that returns true
4928 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
4929 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
4930 is set to False. Improves handling of Known_[Not_]Null.
4931 (Wrong_Type): Special case address arithmetic attempt
4932 (Collect_Abstract_Interfaces): Add new formal to allow collecting
4933 abstract interfaces just using the partial view of private types.
4934 (Has_Abstract_Interfaces): Add new formal to allow checking types
4935 covering interfaces using the partial view of private types.
4936 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
4937 component still needs to be defined in this case, but is never
4938 initialized as VMs are using other dispatching mechanisms.
4939 (Abstract_Interface_List): For a protected type, use base type to get
4941 Improve warnings on redundant assignments
4942 (Is_Variable): Handle properly an implicit dereference of a prefixed
4944 (Build_Actual_Subtype): If this is an actual subtype for an
4945 unconstrained formal parameter, use the sloc of the body for the new
4946 declaration, to prevent anomalises in the debugger.
4948 2007-08-14 Robert Dewar <dewar@adacore.com>
4950 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
4951 dispatching operation
4953 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4954 Gary Dismukes <dismukes@adacore.com>
4957 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
4958 expanded aggregate code before allocator, and ahead of declaration for
4959 temporary, to prevent access before elaboration when the allocator is
4960 an actual for an access parameter.
4961 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
4962 the TSD and the table of interfaces.
4963 (Convert_To_Assignments): Augment the test for delaying aggregate
4964 expansion for limited return statements to include the case of extended
4965 returns, to prevent creation of an unwanted transient scope.
4966 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
4967 (Expand_Array_Aggregate): Handle aggregates associated with
4968 statically allocated dispatch tables.
4969 (Expand_Record_Aggregate): Handle aggregates associated with
4970 statically allocated dispatch tables.
4971 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
4972 of anonymous access type.
4974 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4976 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
4977 is a variable that renames a slice, use the variable itself in the
4978 expannsion when the renamed expression itself may be modified between
4979 the declaration of the renaming and the array assignment.
4981 2007-08-14 Jerome Guitton <guitton@adacore.com>
4983 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4984 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
4985 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
4986 New functions; dummy implementations.
4988 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
4989 functions, used to implement the multi-tasks mode routines on VxWorks.
4991 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
4993 binding to the VxWorks routines which have changed between VxWorks 5
4995 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
4996 which are not callable from a RTP.
4998 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
4999 implemented for the multi-tasks mode on VxWorks 5 and 6.
5001 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
5003 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
5006 2007-08-14 Vincent Celier <celier@adacore.com>
5008 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
5009 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
5010 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
5011 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5012 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5013 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
5014 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
5016 (Major_Id_Name): New function.
5017 mlib-tgt.ads/mlib.tgt.adb:
5018 (Library_Major_Minor_Id_Supported): New function, default returns True
5019 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
5020 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
5021 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
5022 Implementation of Library_Major_Minor_Id_Supported returns False
5024 (Clean_Library_Directory): If major/minor ids are supported, clean all
5026 Major update of the Project Manager and of the project aware tools,
5027 including gprmake, so that the same sources in the GNAT repository
5028 can be used by gprbuild.
5030 2007-08-14 Olivier Hainque <hainque@adacore.com>
5032 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
5033 (GCC_ZCX_Support): Switch to True.
5035 * s-intman-solaris.adb (Notify_Exception): Call
5036 Adjust_Context_For_Raise before raising, as expected for signal
5037 handlers in general.
5039 * s-intman-posix.adb (Notify_Exception): Remove declaration of
5040 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
5041 to other implementation bodies.
5043 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
5044 be visible by multiple implementation bodies.
5046 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
5047 only for conditions coming from hardware.
5048 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
5049 adjustments to signal context prior to exception raise from signal
5051 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
5053 Solaris section: (__gnat_adjust_context_for_raise): New function.
5054 Implementation of the machine context adjustments to perform prior to
5055 raise from a signal handler. Version for both sparc and x86.
5056 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
5057 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
5058 prior to raising as expected for any handler, before possible nested
5059 faults to make sure all the contexts in a chain have been adjusted by
5060 the time we propagate.
5062 2007-08-14 Pascal Obry <obry@adacore.com>
5064 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
5065 (SYSTEM_INFO): New record.
5066 (SetThreadIdealProcessor): New imported routine needed for supporting
5067 task_info pragma on Windows.
5069 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
5070 info can be applied to the current host.
5071 (Create_Task): Set the ideal processor if information is present.
5073 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
5074 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
5076 2007-08-14 Olivier Hainque <hainque@adacore.com>
5078 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
5079 stack size and initial stack pointer value for a given task.
5080 (Enter_Task): Get the stack attributes of the task we are entering and
5081 let the stack checking engine know about them.
5083 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
5084 Let the stack-checking engine know about the initial sp value and stack
5085 size associated with the current task.
5086 (Set_Stack_Info): If a stack base has been notified for the current
5087 task, honor it. Fallback to the previous less accurate method otherwise.
5089 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
5091 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5093 * sem_ch10.adb: Create a limited view of an incomplete type, to make
5094 treatment of limited views uniform for all visible declarations in a
5095 limited_withed package.
5096 Set flag indicating that a subprogram body for a child unit has a
5098 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
5099 separate declaration, remove the unit name from visibility after
5100 compilation, so that environment is clean for subsequent compilations.
5101 (Install_Limited_Context_Clauses): Do not install a
5102 limited_private_with_clause unless the current unit is a body or a
5104 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
5105 in the same fashion.
5106 (Install_Limited_Withed_Unit): Do not install a limited with clause if
5107 it applies to the declaration of the current package body.
5108 (Remove_Private_With_Clauses): If there is a regular with_clause for
5109 the unit, delete Private_With_Clause from context, to prevent improper
5110 hiding when processing subsequent nested packages and instantiations.
5112 2007-08-14 Jose Ruiz <ruiz@adacore.com>
5114 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
5115 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
5116 representing absolute path names.
5117 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
5119 * cstreams.c (__gnat_full_name for VxWorks): Use
5120 __gnat_is_absolute_path to detect whether we need to add the current
5121 directory to normalize the path.
5123 2007-08-14 Javier Miranda <miranda@adacore.com>
5126 a-tags.adb (Displace): Associate a message with the raised CE
5128 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
5129 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
5130 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
5132 (Default_Prim_Op_Count): Removed.
5133 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
5134 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
5135 Remove pragma Inline_Always.
5137 * rtsfind.ads (Default_Prim_Op_Count): Removed
5138 (Max_Predef_Prims): New entity
5139 (RE_Expanded_Name): Removed
5140 (RE_HT_Link): Removed
5141 (RE_Iface_Tag): Remmoved
5142 (RE_Ifaces_Table): Removed
5143 (RE_Interfaces_Array): Removed
5144 (RE_Interface_Data_Element): Removed
5145 (RE_Nb_Ifaces): Removed
5146 (RE_RC_Offset): Removed
5147 (RE_Static_Offset_To_Top): Removed
5149 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
5151 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
5152 Prim_Op_Count by Max_Predef_Prims.
5154 2007-08-14 Thomas Quinot <quinot@adacore.com>
5155 Vincent Celier <celier@adacore.com>
5157 * binde.adb (Elab_All_Links): Remove unnecessary call to
5158 Generic_Separately_Compiled (if a unit satisfies this predicate, there
5159 won't be an associated Afile).
5160 (Elab_All_Links): Fail if a referenced unit cannot be found
5163 Fix comments in bindgen regarding consistency checks done in Bcheck:
5164 the checks are made across units within a partition, not across several
5166 Fix generation of C binder file for VxWorks.
5168 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
5169 Generic_May_Lack_ALI, more descriptive of the current use of the
5170 predicate, and update documentation.
5172 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
5173 reorganization and documentation update for the case of predefined
5174 library generics (for which we do not reference an Afile).
5176 2007-08-14 Robert Dewar <dewar@adacore.com>
5178 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
5179 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
5180 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
5181 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
5182 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
5183 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
5184 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
5185 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
5186 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
5187 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
5188 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
5189 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
5190 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
5191 g-altcon.adb: Minor reformatting
5193 ada-tree.h: Delete empty line.
5195 ali.ads: Minor reformatting
5196 Clarification of comments.
5197 Minor spelling correction
5199 * exp_dbug.adb: Add Warnings Off to suppress new warning
5201 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
5204 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
5207 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
5209 * a-textio.ads: Reorder the standard input/output/error declarations
5212 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
5214 * par-ch2.adb: Recognize RM specially in errout
5215 Change 'R'M to RM in all error messages
5217 * scng.adb: Recognize RM specially in errout
5219 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
5220 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
5222 * s-direio.adb: Add missing routine header box.
5224 * sem_attr.ads: Add ??? comments
5226 * sem_eval.adb: Recognize RM specially in errout
5227 Change 'R'M to RM in all error messages
5229 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
5231 * s-tasinf.ads: Fix minor comment typo.
5233 * a-cihama.adb: Minor comment addition
5235 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
5238 * s-tasinf-tru64.ads: Fix minor comment typo.
5240 * itypes.ads: Comment update.
5242 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
5245 * argv.c: Added protection against null gnat_argv and gnat_envp.
5247 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
5248 warning message when Tolerate_Consistency_Errors is True.
5250 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
5251 Any_Id, as this subprogram is only applicable to *type* entities (it
5252 sets RM_Size). Instead initialize just Esize and Alignment.
5254 2007-08-14 Bob Duff <duff@adacore.com>
5256 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
5257 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
5258 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
5259 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
5260 a-coorse.ads (Next): Applied pragma Inline.
5261 Make all Containers packages Remote_Types (unless they are already
5263 (Previous): applied pragma Inline
5264 (Elements_Type): is now a record instead of an array
5266 2007-08-14 Thomas Quinot <quinot@adacore.com>
5268 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
5270 (Set_Item): When the new item is an element of the currently allocated
5271 table passed by reference, save a copy on the stack if we're going
5272 to reallocate. Also, in Table.Set_Item, make sure we test the proper
5273 variable to determine whether to call Set_Last.
5275 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
5276 symbols-vms.adb, symbols-processing-vms-alpha.adb,
5277 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
5278 some occurrences of the pattern
5280 T.Table (T.Last) := Value;
5281 with a cleaner call to
5284 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5285 Gary Dismukes <dismukes@adacore.com>
5286 Thomas Quinot <quinot@adacore.com>
5288 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
5289 derived type with interface progenitors use the analyzed formal as the
5290 parent of the actual, to create renamings for all the inherited
5291 operations in Derive_Subprograms.
5292 (Collect_Previous_Instances): new procedure within of
5293 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
5294 unit being loaded, to ensure that the generation of global symbols is
5295 consistent in different compilation modes.
5296 (Is_Tagged_Ancestor): New function testing the ancestor relation that
5297 takes progenitor types into account.
5298 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
5299 traversing over the primitives of the formal and actual types to locate
5300 any abstract subprograms of the actual type that correspond to a
5301 nonabstract subprogram of the formal type's ancestor type(s), and issue
5302 an error if such is found.
5303 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
5304 Instantiate_Package_Body, Instantiate_Subprogram_Body):
5305 Remove bogus guard around calls to Inherit_Context.
5306 (Reset_Entity): If the entity is the selector of a selected component
5307 that denotes a named number, propagate constant-folding to the generic
5308 template only if the named number is global to the generic unit.
5309 (Set_Instance_Env): Only reset the compilation switches when compiling
5310 a predefined or internal unit.
5312 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5314 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
5315 parameter to determine whether operation applies to the prefix.
5316 (Complete_Object_Operation): If actual has an access type and
5317 controlling formal is not an in_parameter, reject the actual if it is
5318 an access_to_constant type.
5319 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
5320 type, the candidate operations are found in the scope of declaration of
5321 the type, because the type has no primitive subprograms.
5322 (Analyze_Selected_Component): If prefix is class-wide, and root type is
5323 a private extension, only examine visible components before trying to
5324 analyze as a prefixed call.
5325 Change Entity_List to Type_To_Use, for better readability.
5326 (Has_Fixed_Op): Use base type when checking whether the type of an
5327 operator has a user-defined multiplication/division
5328 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
5329 user-defined operators are available for fixed-point types.
5331 2007-08-14 Thomas Quinot <quinot@adacore.com>
5332 Ed Schonberg <schonberg@adacore.com>
5334 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
5335 formal At_Any_Place indicating, when True, that we want to test for
5336 availability of the stream attribute at any place (as opposed to the
5337 current visibility context only).
5338 (Missing_Read_Write_Attributes): A stream attribute is missing for the
5339 purpose of enforcing E.2.2(8) only if it is not available at any place.
5340 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
5341 when checking the legality of an extension aggregate in a preelaborable
5342 package. Treat the literal null as a valid default expression in a
5343 component declaration for a type with preelaborable initialization.
5344 A limited interface is a legal progenitor for the designated type of a
5345 remote access to class-wide type.
5347 2007-08-14 Thomas Quinot <quinot@adacore.com>
5348 Ed Schonberg <schonberg@adacore.com>
5350 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
5351 reference): Use correct entity as denoted entity for the selector of
5353 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
5354 setting the Referenced_As_LHS flag for entities that are implicitly
5356 (Find_Type): If the type is an internally generated incomplete type,
5357 mark the full view as referenced, to prevent spurious warnings.
5358 (Find_Selected_Component, Has_Components): Handle properly non-limited
5359 views that are themselves incomplete types.
5360 Handle interfaces visible through limited-with clauses.
5361 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
5362 subprogram generic actual for which we have generated a renaming.
5363 Warn when the renaming introduces a homonym of
5364 the renamed entity, and the renamed entity is directly visible.
5366 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5367 Hristian Kirtchev <kirtchev@adacore.com>
5369 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
5370 appear in the subtree to the current allocator if it is not a static
5372 (Resolve_Allocator): Perform cleanup if resolution has determined that
5373 the allocator is not a coextension.
5374 (Resolve): Skip an interpretation hidden by an abstract operator only
5375 when the type of the interpretation matches that of the context.
5376 (Resolve): When looping through all possible interpretations of a node,
5377 do not consider those that are hidden by abstract operators.
5378 (Resolve_Actuals): When verifying that an access to class-wide object
5379 is an actual for a controlling formal, ignore anonymous access to
5380 subprograms whose return type is an access to class_wide type.
5381 (Resolve_Slice): If the prefix of the slice is a selected component
5382 whose type depends on discriminants, build its actual subtype before
5383 applying range checks on the bounds of the slice.
5384 (Valid_Conversion): In an instance or inlined body, compare root types,
5385 to prevent anomalies between private and public views.
5386 (Resolve): Improve error message for ambiguous fixed multiplication
5387 expressions that involve universal_fixed multiplying operations.
5389 2007-08-14 Javier Miranda <miranda@adacore.com>
5390 Hristian Kirtchev <kirtchev@adacore.com>
5392 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
5393 location to allow the correct generation of errors in case of
5394 restrictions applied to the expanded code.
5395 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
5396 function if the condition does not reference them.
5397 (Expand_Entry_Body_Declarations): Mark the index constant as having a
5400 2007-08-14 Thomas Quinot <quinot@adacore.com>
5401 Pablo Oliveira <oliveira@adacore.com>
5403 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
5404 typecode parameters for a union (in a variant record), remove
5405 extraneous layer of Any wrapping for member label.
5406 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
5407 elabration statements, register the package with the name server
5408 at the beginning, not at the end, of the elaboration statements so
5409 that they can create remote access to subprogram values that designate
5410 remote subprograms from the package.
5412 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
5414 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
5415 values to compute the number of seconds since the Unix Epoc in order to
5416 account for Daylight Savings Time. Perform special processing for dates
5417 that are earlier than the Unix Epoc to obtain a negative number.
5419 2007-08-14 Emmanuel Briot <briot@adacore.com>
5421 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
5424 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
5426 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
5427 binder-generated file is not in Ada.
5428 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
5429 recorded in the ALI file.
5430 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
5432 2007-08-14 Vincent Celier <celier@adacore.com>
5434 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
5435 (Output_Source): Do nothing if parameter is No_Sdep_Id
5437 * make.adb (Gnatmake): Do not rebuild an archive simply because a
5438 shared library it imports has a later time stamp.
5439 (Check): Resolve the symbolic links in the path name of the object
5441 Check that the ALI file is in the correct object directory
5442 Check if a file name does not correspond to the mapping of units
5444 (Display_Version): New procedure
5445 (Initialize): Process switches --version and --help
5446 Use type Path_Name_Type for path name
5448 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
5450 * impunit.adb: Re-organize System.Random_Numbers and
5451 GNAT.Random_Numbers and add to builds.
5453 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
5455 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
5457 * a-assert.ads, a-assert.adb: New files.
5459 2007-08-14 Gary Dismukes <dismukes@adacore.com>
5461 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
5462 if AAMP_On_Target is True, then the size of the type encompasses two
5463 addresses (a static link and a subprogram address), except in the case
5464 of library-level access types.
5466 2007-08-14 Vincent Celier <celier@adacore.com>
5468 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
5470 (Write_Eol_Keep_Blanks): New procedure to write a line, including
5471 possible trailing spaces.
5472 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
5474 2007-08-14 Javier Miranda <miranda@adacore.com>
5476 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
5477 null-excluding access types.
5479 2007-08-14 Javier Miranda <miranda@adacore.com>
5481 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
5482 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
5483 of private types add missing check on matching interfaces in the
5484 partial and full declarations.
5485 (Analyze_Protected_Type): Code cleanup.
5486 (Analyze_Task_Type): Code cleanup.
5488 2007-08-14 Javier Miranda <miranda@adacore.com>
5490 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
5491 generated interface thunk.
5493 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5495 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
5496 obsolescent warning on application of 'Class to an incomplete type.
5498 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
5499 prevent obsolescent warning on application of 'Class to an incomplete
5502 2007-08-14 Pascal Obry <obry@adacore.com>
5504 * s-fileio.adb (Is_Open): Add check for usability of the underlying
5507 2007-08-14 Cyrille Comar <comar@adacore.com>
5509 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
5510 since it is potentially used in cases implying double finalization of
5513 2007-08-14 Jose Ruiz <ruiz@adacore.com>
5515 * s-tasini.adb (Get_Stack_Info): Move this function to
5516 System.Soft_Links.Tasking because it is common to the full and the
5517 restricted run times.
5518 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
5519 in SSL.Tasking.Init_Tasking_Soft_Links.
5521 * s-solita.adb (Get_Stack_Info): Function moved from
5522 System.Tasking.Initialization because it is common to the full and the
5523 restricted run times.
5524 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
5526 2007-08-14 Arnaud Charlet <charlet@adacore.com>
5528 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
5529 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
5530 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
5533 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
5536 2007-08-14 Gary Dismukes <dismukes@adacore.com>
5538 * s-veboop.adb (SU): New named number initialized to
5539 System.Storage_Unit.
5540 (True_Val): The initialization expression is revised to use SU (=
5541 Storage_Unit) rather than assuming 8 for the component size of an
5542 unpacked Boolean array.
5544 2007-08-14 Tristan Gingold <gingold@adacore.com>
5546 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
5548 * tb-ivms.c: New file.
5550 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
5552 2007-08-14 Geert Bosch <bosch@adacore.com>
5554 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
5555 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
5556 Add required linker pragmas for automatically linking with the gnalasup
5557 linear algebra support library, and the systems math library.
5558 Rename cdot to cdotu and zdot to zdotu.
5559 Update header comment to describe purpose of package.
5561 2007-08-14 Thomas Quinot <quinot@adacore.com>
5563 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
5564 an explicitly specified Associated_Final_Chain, use that list.
5565 (Expand_N_Package_Body): Build dispatch tables of library level tagged
5567 (Expand_N_Package_Declaration): Build dispatch tables of library level
5568 tagged types. Minor code cleanup.
5570 2007-08-14 Vincent Celier <celier@adacore.com>
5572 * gnatchop.adb (Terminate_Program): Remove exception and use
5573 Types.Terminate_Program instead.
5575 * osint.ads, osint.adb (Current_Exit_Status): New global variable
5576 (Find_Program_Name): Added protection against empty name.
5577 (OS_Exit_Through_Exception): New procedure
5579 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
5580 (OS_Exit_Default): New procedure that contains the previous
5581 implementation of procedure OS_Exit.
5582 (Final_Value): Remove obsolete Interix stuff.
5584 2007-08-14 Thomas Quinot <quinot@adacore.com>
5586 * g-socket.ads: Reorganize example code so that it also works on
5589 2007-08-14 Tristan Gingold <gingold@adacore.com>
5591 * g-trasym.ads: AIX now supports symbolic backtraces.
5593 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5595 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
5596 units being loaded to detect circularities. A circularity may be
5597 present even if the current chain of pending units to load starts from
5598 a limited_with_clause.
5600 * lib-load.ads: Change profile of Load_Unit to use a with_clause
5601 rather than a boolean flag, in order to detect circularities in
5604 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
5605 than propagating the From_Limited_With flag, in order to handle
5606 properly circularities involving with_clauses.
5608 2007-08-14 Nicolas Setton <setton@adacore.com>
5610 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
5613 2007-08-14 Arnaud Charlet <charlet@adacore.com>
5615 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
5616 to build for libgnala.
5617 libgnat: Add rules to build libgnala.a
5618 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
5619 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
5620 Add s-osinte-vxworks-kernel.adb to the target pairs of the
5621 kernel run-time lib for VxWorks 6, which would provide a different
5622 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
5623 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
5624 running ZCX by default.
5625 Add g-sttsne-locking to LynxOS version.
5626 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
5627 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
5629 * system-darwin-x86.ads: New file.
5631 * Make-lang.in: Delete files before copying onto them, so if they are
5632 read-only, the copy won't fail.
5635 2007-08-14 Pascal Obry <obry@adacore.com>
5637 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
5640 2007-08-14 Vincent Celier <celier@adacore.com>
5642 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
5643 (Gcc): Initialize Gcc_Name at the first call
5645 2007-08-14 Ed Schonberg <schonberg@adacore.com>
5647 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
5648 with_clauses of the enclosing unit when analyzing the package
5649 specification of a nested instance.
5651 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
5653 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
5654 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
5655 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
5656 layout of N_Allocator.
5658 2007-08-14 Thomas Quinot <quinot@adacore.com>
5660 * rtsfind.adb (Check_RPC): Add PCS version check.
5662 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
5663 (Gnat_Free_Software): New function.
5665 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
5666 the PCS_Version value from s-parint, used to check that it is consistent
5667 with what exp_dist expects.
5669 * s-parint.ads (PCS_Version): New entity for checking consistency
5670 between exp_dist and PCS.
5672 * gen-soccon.c: (SO_REUSEPORT): New constant.
5674 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
5676 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
5677 variable Sub_Second to Duration in order to accomodate a larger range
5678 of arithmetic operations.
5680 2007-08-14 Bob Duff <duff@adacore.com>
5682 * g-sttsne-locking.ads: Move comments from spec to body.
5683 * g-sttsne-locking.adb: Move comments from spec to body.
5684 * g-sttsne-vxworks.ads: Removed.
5685 * g-sttsne-vxworks.adb: Removed.
5687 2007-08-11 Ian Lance Taylor <iant@google.com>
5689 * misc.c (gnat_get_alias_set): Change return type to
5692 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5694 * decl.c, utils2.c: Fix whitespace in last change.
5696 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5698 * decl.c (compare_field_bitpos): Constify.
5699 * utils2.c (compare_elmt_bitpos): Likewise.
5701 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
5703 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
5704 anonymous access type.
5705 (pthread_sigmask): Now take an access sigset_t.
5707 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
5709 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
5711 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
5713 PR tree-optimization/25737
5714 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
5716 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
5718 * trans.c (Attribute_to_gnu): When subtracting an
5719 offset from a pointer, use POINTER_PLUS_EXPR with
5720 NEGATE_EXPR instead of MINUS_EXPR.
5721 (gnat_to_gnu): Likewise.
5722 * utils.c (convert): When converting between
5723 thin pointers, use POINTER_PLUS_EXPR and sizetype
5725 * utils2.c (known_alignment): POINTER_PLUS_EXPR
5726 have the same semantics as PLUS_EXPR for alignment.
5727 (build_binary_op): Add support for the semantics of
5728 POINTER_PLUS_EXPR's operands.
5729 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
5731 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
5733 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
5734 of get_signed_or_unsigned_type.
5735 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
5737 2007-06-11 Bob Duff <duff@adacore.com>
5738 Thomas Quinot <quinot@adacore.com>
5740 * g-stsifd-sockets.adb (Create): Work around strange behavior of
5741 'bind' on windows that causes 'connect' to fail intermittently, by
5742 retrying the 'bind'.
5743 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
5745 2007-06-10 Duncan Sands <baldrick@free.fr>
5747 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
5748 than to void, for the fields when making a new fat pointer type.
5749 (gnat_substitute_in_type): Now substitute_in_type.
5750 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
5751 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
5752 * utils.c (update_pointer_to): Update fat pointers by updating the
5753 dummy node pointers used for the fields.
5755 2007-06-06 Thomas Quinot <quinot@adacore.com>
5756 Bob Duff <duff@adacore.com>
5758 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
5759 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
5760 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
5761 constant Thread_Blocking_IO, always True by default, set False
5762 on a per-runtime basis.
5763 (Need_Netdb_Buffer): New constant.
5765 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
5766 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
5769 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
5770 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
5771 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
5772 child package Task_Safe_NetDB
5773 (Host_Error_Messages): Add stub body.
5774 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
5776 * g-soccon-mingw.ads: Add Windows-specific constants.
5777 (Need_Netdb_Buffer): New constant.
5778 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
5779 wrapper and import inet_addr(3) from the standard sockets library
5781 (In_Addr): Add alignment clause.
5782 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
5784 2007-06-06 Robert Dewar <dewar@adacore.com>
5786 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5787 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
5788 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
5789 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
5790 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
5791 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
5792 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
5793 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
5794 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
5795 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
5796 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
5797 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
5798 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
5799 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5800 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
5801 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
5802 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
5803 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
5804 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
5805 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
5806 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
5807 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
5808 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
5809 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
5810 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
5811 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
5812 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
5813 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
5814 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
5815 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
5816 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
5817 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
5818 Unchecked_* by Ada.Unchecked_*
5820 2007-06-06 Robert Dewar <dewar@adacore.com>
5822 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
5823 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
5824 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
5825 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
5826 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
5827 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
5829 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
5830 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
5831 s-tasloc.adb, s-tasloc.ads: New files.
5833 2007-06-06 Bob Duff <duff@adacore.com>
5836 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
5837 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
5838 (Send_Signal, Close): Raise Invalid_Process if the process id is
5840 (Pattern_Matcher_Access): Is now a general access type to be able to
5843 2007-06-06 Thomas Quinot <quinot@adacore.com>
5844 Arnaud Charlet <charlet@adacore.com>
5846 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
5847 (SIGEMT is now used instead of SIGTERM on AIX).
5849 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
5850 (Time_Slice_Supported): Set to True.
5851 Use SIGEMT instead of SIGTERM as SIGADAABORT.
5853 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5855 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
5856 (Time, Time)): Use To_Relative_Time rather than manual calculation to
5857 express the bounds of Duration as Time. Raise Time_Error when the
5858 result is greater or equal to the higher bound of Duration (on the
5860 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
5862 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
5864 ("-" (Time, Time)): Reorder code.
5865 (All_Leap_Seconds): Removed.
5866 (Arithmetic_Operations.Add): Remove sign related kludge.
5867 (Arithmetic_Operations.Difference): Control the leaps seconds processing
5868 with flag Leap_Support.
5869 (Arithmetic_Operations.Subtract): Remove sign related kludge.
5870 (Check_Within_Time_Bounds): New procedure.
5871 (Clock): Control the leap seconds processing with flag Leap_Support.
5872 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
5873 (Formatting_Operations.Split): Control the leap seconds processing with
5875 (Formatting_Operations.Time_Of): Control the leaps seconds processing
5876 with flag Leap_Support. Adjust the year, month and day (if applicable)
5877 when the value of day seconds designates a new day.
5878 (Split): Use parameter associations for better readability. Integrate
5880 (Time_Of): Use parameter associations for better readability. Integrate
5883 * a-calfor.adb (Split): Use parameter associations for better
5884 readability. Integrate flag Is_Ada_05.
5885 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
5886 better readability. Integrate flag Is_Ada_05.
5888 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5890 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
5891 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
5892 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
5893 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
5894 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
5895 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
5896 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
5897 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
5898 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
5899 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
5900 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
5901 time when entering this routine to detect a backward clock setting
5902 (manual setting or DST adjustment), to avoid waiting for a longer delay
5904 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
5905 Remove handling of deferred priority change, and replace by setting the
5906 task priority directly, as required by AI-188.
5908 (Max_Task_Image_Length): New constant.
5909 Replace Warnings (Off) by Unreferenced pragma, cleaner.
5910 (Dynamic_Priority_Support): Removed, no longer needed.
5911 (Poll_Base_Priority_Change): Ditto.
5912 (Set_Ceiling): Add this procedure to change the ceiling priority
5913 associated to a lock. This is a dummy implementation because dynamic
5914 priority ceilings are not supported by the underlying system.
5916 * a-dynpri.adb (Set_Priority): Take into account case where Target is
5917 accepting a RV with its priority boosted.
5918 Remove handling of deferred priority change, and replace by setting the
5919 task priority directly, as required by AI-188.
5921 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
5923 Remove handling of deferred priority change, and replace by setting the
5924 task priority directly, as required by AI-188.
5925 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
5928 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
5929 (Poll_Base_Priority_Change): Removed.
5930 Code clean up: use SSL.Current_Target_Exception.
5932 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
5933 to run as this is a potentially dispatching point.
5934 (Call_Synchronous): Use Local_Defer_Abort.
5935 (Callable): Relax assertion.
5936 (Selective_Wait): Relax assertion in case abort is not allowed.
5937 Remove handling of deferred priority change, and replace by setting the
5938 task priority directly, as required by AI-188.
5940 * s-tasuti.adb (Make_Passive): Adjust assertions.
5941 Remove handling of deferred priority change, and replace by setting the
5942 task priority directly, as required by AI-188.
5944 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5946 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5947 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5948 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
5949 system-vxworks-mips.ads, system-vxworks-alpha.ads,
5950 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
5951 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
5952 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
5953 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
5954 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
5955 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
5956 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
5957 This patch changes the largest non-binary modulus from 2**31-1 to
5959 (Compiler_System_Version): Removed, no longer used.
5960 Clean up system files by removing flags only used on a single target.
5961 Also remove obsolete flags, only used during bootstrap from system.ads
5962 (Address): Add a pragma Preelaborable_Initialization.
5964 * system-aix.ads: Ditto.
5965 (GCC_ZCX_Support): Set to true.
5966 Update priority range on AIX and map Ada priorities to target
5967 priorities appropriately for different scheduling policies.
5969 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
5971 2007-06-06 Vincent Celier <celier@adacore.com>
5973 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
5974 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
5976 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
5977 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
5978 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
5979 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5980 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
5981 MLib.Tgt, containing the default versions of the exported subprograms.
5982 For each platform, create a specific version of the body of new child
5983 package MLib.Tgt.Specific that contains only the body of subprograms
5984 that are different from the default.
5985 (Archive_Builder_Append_Options): New function.
5987 2007-06-06 Matthew Gingell <gingell@adacore.com>
5989 * s-osinte-aix.adb: Map Ada priorities to target priorities
5990 appropriately for different scheduling policies.
5992 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5994 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
5996 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
5997 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
5999 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
6001 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
6002 Noop on VMS, added for interface commonality.
6004 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
6005 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6006 Olivier Hainque <hainque@adacore.com>
6008 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
6009 renamed expression of a full renaming at toplevel.
6010 (gnat_to_gnu_entity, case object): If not defining, do not look inside
6011 the values the constant is initialized to if it is an N_Allocator.
6012 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
6013 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
6014 (make_aligning_type): Accept an extra ROOM argument for storage to be
6015 made available before the aligned field, and an extra BASE_ALIGN
6016 argument for callers to pass the alignment guaranteed to be honored for
6017 the whole aligning object. Avoid call to finish_record_type, which only
6018 interferes with the sizes we want to set.
6019 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
6020 make_aligning_type for super-aligned objects on stack.
6021 (components_to_record): Pass the adjusted size of the type when creating
6022 fields in the qualified union for the variant part.
6023 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
6024 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
6026 (maybe_pad_type): Set TYPE_USER_ALIGN.
6027 (make_aligning_type): Likewise.
6028 ALIGN argument is unsigned int.
6029 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
6030 (gnat_to_gnu_param): Likewise, for parameters.
6031 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
6032 if it is constant and stems from a function call.
6033 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
6034 of the record is specified. Adjust accordingly.
6035 (adjust_packed): New static function.
6036 (gnat_to_gnu_field): Use it to adjust the packedness setting.
6037 (components_to_record): Likewise.
6038 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
6039 side-effects if the object is deemed constant.
6040 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
6041 type instead of merely finalizing it. Tidy.
6042 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
6043 <E_Access_Type>: Likewise.
6044 (defer_debug_incomplete_list): Rename to defer_finalize_list.
6045 (defer_debug_level): Delete.
6046 (gnat_to_gnu_entity) <debug_deferred>: Likewise
6047 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
6049 <E_Record_Type>: Do not explicitly defer finalizing the type.
6050 Adjust for write_record_type_debug_info renaming.
6051 <E_Subprogram_Type>: Likewise.
6052 Finalize deferred types right after deferred incomplete types are
6054 (rest_of_type_decl_compilation): New global function.
6055 (components_to_record): Rename defer_debug parameter to do_not_finalize.
6056 (components_to_record): Propagate the packedness to the fields of the
6057 qualified union type if there is a variant part.
6058 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
6059 instead of inline code to adjust the XUT field offsets.
6060 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
6061 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
6062 and write the debug info if the type derives from a discriminated one.
6063 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
6064 <E_Array_Subtype>: Likewise.
6065 <E_String_Literal_Subtype>: Likewise.
6066 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
6067 an alignment clause.
6068 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
6069 before giving warning.
6070 (prepend_one_attribute_to): New function, helper to prepend an attribute
6071 to an attribute list.
6072 (gnat_to_gnu_entity) <E_Procedure>: Use it.
6073 (prepend_attributes): Likewise.
6074 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
6075 <E_Array_Type>: Declare the padding type for the element type, if any.
6076 <E_Array_Subtype>: Likewise.
6077 (defer_limited_with): New variable.
6078 (Gigi_Equivalent_Type): New function.
6079 (gnat_to_gnu_entity): Use it at start and use result throughout.
6080 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
6081 Gigi_Equivalent_Type, support Limited_With, allow two levels of
6082 indirection, precompute if unconstrained array to simplify logic, and
6083 use defer_limited_with to defer elaboration of some types from limited
6085 (finalize_from_with_types): New function.
6087 2007-06-06 Gary Dismukes <dismukes@adacore.com>
6088 Eric Botcazou <ebotcazou@adacore.com>
6089 Tristan Gingold <gingold@adacore.com>
6090 Olivier Hainque <hainque@adacore.com>
6092 * trans.c (Identifier_to_gnu): Change test for deferred constant by
6093 adding guard that the entity is an E_Constant before testing presence
6094 of Full_view (and remove unnecessary test that entity is not a type).
6095 For a CONST_DECL used by reference, manually retrieve
6096 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
6097 (struct language_function): Move from utils.c to here.
6098 (struct parm_attr): New structure.
6099 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
6100 (f_parm_attr_cache): New macro.
6101 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
6102 expressions for the 'First, 'Last and 'Length attributes of the
6103 unconstrained array IN parameters.
6104 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
6105 Allocate the information structure for the function earlier, as well
6106 as the language-specific part.
6107 If the parameter attributes cache has been populated, evaluate the
6108 cached expressions on entry.
6109 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
6110 N_Procedure_Call_Statement and N_Indexed_Component.
6111 (Pragma_to_gnu): Translate inspection_point to an asm statement
6112 containaing a comment and a reference to the object (either its address
6113 for BLKmode or its value).
6114 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
6115 to go to DECL_INITIAL. Together with the size constraint relaxation
6116 in create_var_decl, enlarges the set of situations in which an
6117 identifier may be used as an initializer without implying elaboration
6119 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
6120 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
6122 (maybe_stabilize_reference): Remove lvalues_only parameter.
6123 (gnat_stabilize_reference): Adjust for above change.
6124 (gnat_to_gnu): Do not set location information on the result
6125 if it is a reference.
6126 (add_cleanup): Add gnat_node parameter and set the location of the
6128 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
6129 (Exception_Handler_to_gnu_zcx): Likewise.
6130 (gigi): Remove the cgraph node if the elaboration procedure is empty.
6131 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
6132 the former right after the latter.
6133 (start_stmt_group): Make global.
6134 (end_stmt_group): Likewise.
6135 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
6137 (gnu_program_error_label_stack): Likewise.
6138 (gigi): Initialize them.
6139 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
6140 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
6142 (push_exception_label_stack): New function.
6143 (takes_address): New function.
6145 * utils.c (struct language_function): Move to trans.c from here.
6146 (unchecked_convert): Do not wrap up integer constants in
6148 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
6149 the latter for aggregate types, unexpected by later passes, and relax an
6150 arbitrary size constraint on the former.
6151 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
6152 to compare the sizes.
6153 (convert_vms_descriptor): When converting to a fat pointer type, be
6154 prepared for a S descriptor at runtime in spite of a SB specification.
6155 (shift_unc_components_for_thin_pointers): New function.
6156 (write_record_type_debug_info): For variable-sized fields, cap the
6157 alignment of the pointer to the computed alignment.
6158 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
6159 If REP_LEVEL is 2, do not compute the sizes.
6160 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
6161 (build_unc_object_type): Likewise.
6162 (declare_debug_type): New function.
6164 * ada-tree.def: USE_STMT: removed (not emitted anymore).
6166 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
6167 no statement is expandable anymore.
6168 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
6169 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
6170 when the user requested it explicitely.
6171 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
6173 (get_alias_set): Return alias set 0 for a type if
6174 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
6176 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
6177 (DECL_FUNCTION_STUB): New accessor macro.
6178 (SET_DECL_FUNCTION_STUB): New setter macro.
6180 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
6182 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
6185 2007-06-06 Jose Ruiz <ruiz@adacore.com>
6187 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
6188 Rename to Abort_Task_Interrupt to be able to keep the same interface
6189 as the rest of the targets.
6191 * s-osinte-vxworks.ads s-osinte-vxworks.adb
6192 (To_VxWorks_Priority): Remove explicit "in" mode indicator
6194 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
6197 2007-06-06 Robert Dewar <dewar@adacore.com>
6199 * a-chahan.ads: Remove obsolescent pragmas
6201 * a-chlat1.ads: Minor reformatting
6203 2007-06-06 Robert Dewar <dewar@adacore.com>
6205 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
6208 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
6211 * errout.ads (Finalize): Changed interface
6212 (Output_Messages): New procedure
6213 (Compilation_Errors): New Interface
6215 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
6216 Finalize/Output_Messages interface for Errout
6217 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
6220 2007-06-06 Thomas Quinot <quinot@adacore.com>
6221 Olivier Hainque <hainque@adacore.com>
6222 Robert Dewar <dewar@adacore.com>
6224 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
6226 (Raise_Current_Excep): Call Debug_Raise_Exception just before
6227 propagation starts, to let debuggers know about the event in a reliable
6229 (Local_Raise): Moved to System.Exceptions
6230 More convenient to have this as a separate unit
6232 * s-except.adb, s-except.ads: New files.
6234 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
6235 Debug_Unhandled_Exception in System.Exceptions where it belongs
6236 together with a couple of other debug helpers.
6237 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
6238 the former Unhandled_Exception.
6240 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
6241 (Warn_No_Exception_Propagation): New procedure
6242 (Warn_If_No_Propagation): Rewritten for new warning generation
6243 (Expand_Exception_Handlers): New warning generation
6244 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
6245 (Add_Exception_Label): Use Special_Exception_Package_Used for test
6246 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
6247 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
6248 even if restriction is set (makes life easier in Check_Returns)
6249 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
6250 checking exception identities.
6251 (Expand_Local_Exception_Handlers): Do not optimize when all others case
6252 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
6253 block for handler (used by Check_Returns)
6254 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
6255 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
6256 remove all exception handlers when optimizing local raise statements.
6257 (Find_Local_Handler): Use Get_Renamed_Entity
6258 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
6259 marked analyzed after expanding exception handlers, do not generate
6260 redundant cleanup actions, because they have been constructed already.
6262 2007-06-06 Thomas Quinot <quinot@adacore.com>
6264 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
6265 presence of this categorization pragma is mandated by the language.
6266 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
6269 2007-06-06 Vincent Celier <celier@adacore.com>
6270 Robert Dewar <dewar@adacore.com>
6272 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
6273 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
6274 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
6275 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
6276 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
6277 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
6278 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
6279 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
6280 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
6281 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
6282 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
6284 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
6285 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
6286 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
6287 Use variables of types File_Name_Type and Unit_Name_Type in error
6289 (Get_Name): Add parameter Ignore_Special, and set it reading file name
6290 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
6292 Define flags Flag217-Flag230 with associated subprograms
6293 (Flag_Word5): New record type.
6294 (Flag_Word5_Ptr): New access type.
6295 (To_Flag_Word5): New unchecked conversion.
6296 (To_Flag_Word5_Ptr): Likewise.
6297 (Flag216): New function.
6298 (Set_Flag216): New procedure.
6300 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6302 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
6305 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
6307 2007-06-06 Javier Miranda <miranda@adacore.com>
6309 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
6311 (Object_Specific_Data_Array): This is now internal to the package.
6312 (Object_Specific_Data): This is now internal to the package.
6313 (Select_Specific_Data_Element): This is now internal to the package.
6314 (Select_Specific_Data_Array): This is now internal to the package.
6315 (Select_Specific_Data): This is now internal to the package.
6316 (Offset_To_Top_Function_Ptr): This is now public.
6317 (To_Offset_To_Top_Function_Ptr): Removed.
6318 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
6319 local to subprogram Offset_To_Top.
6320 (Predefined_DT): Removed.
6321 (Typeinfo_Ptr): Removed.
6322 (OSD): This function is now internal to this package.
6323 (SSD): This function is now internal to this package.
6324 (DT): New function that displaces the pointer to the table of primitives
6325 to get access to the enclosing wrapper record.
6326 (IW_Membership): Code cleanup.
6327 (Offset_To_Top): Code cleanup.
6328 (Predefined_DT): Removed.
6329 (Register_Interface_Tag): Removed.
6330 (Set_Interface_Table): Removed.
6331 (Set_Offset_Index): Removed.
6332 (Set_Offset_To_Top): Code cleanup.
6334 (Set_Signature): Removed.
6336 (Set_Tagged_Kind): Removed.
6337 (Typeinfo_Ptr): Removed.
6339 (Displace): Add missing check on null actual.
6341 * exp_disp.ads, exp_disp.adb
6342 (Select_Expansion_Utilities): Removed.
6343 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
6344 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
6345 the interface requires a new parameter.
6346 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
6347 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
6348 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
6349 Done to remove package Select_Expansion_Utilities.
6350 (Make_DT): New implementation for statically allocated dispatch tables.
6351 (Make_Secondary_DT): Moved to the scope of Make_DT.
6352 (Register_Primitive): Code cleanup plus incoporate the use of the new
6353 function DT_Address_Attribute.
6354 (Expand_Interface_Thunk): The profile of this subprogram has been
6355 changed to return the Thunk_Id and the corresponding code.
6356 (Fill_DT_Entry): Removed. Its functionality is now provided by
6357 subprogram Register_Primitive.
6358 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
6359 subprogram Register_Primitive.
6360 (Register_Primitive): New subprogram that incorporates the previous
6361 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
6362 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
6363 was only required to call Make_DT_Access_Action, which is now removed.
6364 (Ada_Actions): Removed
6365 (Action_Is_Proc): Removed
6366 (Action_Nb_Arg): Removed
6367 Replace all the calls to Make_DT_Access_Action by direct calls to
6368 Make_Procedure_Call_Statement or Make_Function_Call.
6369 (Set_DTC_Entity_Value): New subprogram.
6370 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
6371 (Expand_Interface_Thunk): Add missing support for primitives that are
6372 functions with a controlling result (case in which there is no need
6373 to generate the thunk).
6375 * exp_atag.ads, exp_atag.adb
6376 (Build_DT): New subprogram that displaces the pointer to reference the
6377 base of the wrapper record.
6378 (Build_Typeinfo_Offset): Removed.
6379 (RTE_Tag_Node): Removed.
6380 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
6381 (Build_Get_RC_Offset): Removed.
6382 (Build_Inherit_Predefined_Prims): Removed.
6383 (Build_Inherit_TSD: Removed.
6384 (Build_New_TSD): Removed.
6385 (Build_Set_External_Tag): Removed.
6386 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
6387 (Build_Set_Prim_Op_Address): Add documentation.
6388 (Build_Set_TSD): Removed.
6390 * rtsfind.ads, rtsfind.adb
6391 (Load_Fail): If load fails and we are not in configurable run-time
6392 mode, then raise Unrecoverable_Error.
6393 (Text_IO_Kludge): Generate an error message if a run-time library is
6394 not available in a given run-time (ie. zfp run-time).
6395 (RTE_Record_Component): Add code to check that the component we search
6396 for is not found in two records in the given run-time package.
6397 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
6398 (RE_DT_Predef_Prims_Offset): New entity
6399 (RE_Static_Offset_To_Top): New entity
6400 (RE_HT_Link): New entity.
6401 (System_Address_Image): Addition of this run-time package.
6402 (RE_Address_Image): New entity.
6403 (RE_Abstract_Interface): Removed.
6404 (RE_Default_Prim_Op_Count): Removed.
6405 (RE_DT_Entry_Size): Removed.
6406 (RE_DT_Min_Prologue_Size): Removed.
6407 (RE_DT_Prologue_Size): Removed.
6408 (RE_Ifaces_Table_Ptr): Removed.
6409 (RE_Interface_Data_Ptr): Removed.
6410 (RE_Type_Specific_Data): Removed.
6411 (RE_Primary_DT): Removed.
6412 (RE_Register_Interface_Tag): Removed.
6413 (RE_Set_Offset_Index): Removed.
6414 (RE_Set_OSD): Removed.
6415 (RE_Set_SSD): Removed.
6416 (RE_Set_Signature): Removed.
6417 (RE_Set_Tagged_Kind): Removed.
6418 (RE_Address_Array): New entity.
6419 (RE_DT): New entity.
6420 (RE_Iface_Tag): New entity.
6421 (RE_Interfaces_Table): New entity.
6422 (RE_No_Dispatch_Table): New entity.
6423 (RE_NDT_Prims_Ptr): New entity.
6424 (RE_NDT_TSD): New entity.
6425 (RE_Num_Prims): New entity.
6426 (RE_Offset_To_Top_Function_Ptr): New entity.
6427 (RE_OSD_Table): New entity.
6428 (RE_OSD_Num_Prims): New entity.
6429 (RE_Predef_Prims): New entity
6430 (RE_Predef_Prims_Table_Ptr): New entity.
6431 (RE_Primary_DT): New entity.
6432 (RE_Signature): New entity.
6433 (RE_SSD): New entity.
6434 (RE_TSD): New entity.
6435 (RE_Type_Specific_Data): New entity.
6436 (RE_Tag_Kind): New entity.
6438 2007-06-06 Thomas Quinot <quinot@adacore.com>
6440 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
6441 C imported variable.
6442 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
6445 2007-06-06 Robert Dewar <dewar@adacore.com>
6447 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
6450 2007-06-06 Vincent Celier <celier@adacore.com>
6452 * a-tifiio.adb (Put, internal): For negative numbers, check that there
6453 is room for at least one digit and the minus sign.
6454 (Put.Put_Character): Never put a character outside of the range of
6457 2007-06-06 Olivier Hainque <hainque@adacore.com>
6458 Eric Botcazou <ebotcazou@adacore.com>
6460 * utils2.c (build_allocator): Provide the extra arguments to
6461 make_aligning_type for super-aligned objects allocated from the default
6462 pool. Leave enough room for a pointer before the aligning field, and
6463 store the system's allocator return value there.
6464 (build_call_alloc_dealloc): When releasing a super-aligned object,
6465 retrieve the system's allocator return value from where build_allocator
6466 has stored it, just ahead of the adjusted address we are passed.
6467 (build_call_raise): Handle properly the generation of line numbers when
6468 the node is marked No_Location.
6469 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
6470 by using DECL_UID on ties.
6471 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
6473 (build_call_raise): Handle converting exception into goto; support new
6475 (build_component_ref): Add new arg to build_call_raise.
6477 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
6479 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
6480 "." in the case of nnn.xxx when nnn terminates with an underscore.
6481 Parse the remaining "#" or ":" in the case of nnn#.xxx#
6483 2007-06-06 Robert Dewar <dewar@adacore.com>
6485 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
6487 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6488 Vincent Celier <celier@adacore.com>
6489 Robert Dewar <dewar@adacore.com>
6491 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
6493 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
6494 ((destructor)) for adafinal, even when switch -a is used.
6495 Do not issue pragma Linker_Destructor for adafinal when switch -a is
6497 (Gen_Object_Files_Options): Add formatting of Linker Options, when
6498 Output_Linker_Option_List is set. Suppress this formatting when
6499 Zero_Formatting is set.
6500 Add case for CLI_Target.
6501 (System_Restrictions_Used): New flag, used to avoid generating with of
6502 System_Restrictions and initialization of the data unless there is
6503 some use of System.Restrictions in the partition.
6504 (Check_System_Restrictions_Used): New procedure
6506 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
6507 since we only with this unit in the binder file if it is used elsewhere
6510 2007-06-06 Vincent Celier <celier@adacore.com>
6512 * bindusg.adb: Add line for @<response file>
6513 Add lines for new switches -R and -Z
6515 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
6516 hierarchy in the list of files of the closure when -R is used
6517 (Gnatbind): Accept arguments starting with '@' to indicate response
6518 files and take the arguments from the response files.
6519 If List_Closure is set, display the referenced files
6521 2007-06-06 Javier Miranda <miranda@adacore.com>
6522 Robert Dewar <dewar@adacore.com>
6523 Ed Schonberg <schonberg@adacore.com>
6525 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
6526 which the address-clause is applied to in-mode actuals (allowed by
6528 (Apply_Discriminant_Check): Do not generate a check if the type is
6529 constrained by a current instance.
6530 (Activate_Division_Check): New procedure
6531 (Activate_Overflow_Check): New procedure
6532 (Activate_Range_Check): New procedure
6533 Call these new Activate procedures instead of setting flags directly
6534 (Apply_Array_Size_Check): Removed, no longer needed.
6535 Code clean up: remove obsolete code related to GCC 2.
6536 (Get_E_Length): Protect against bomb in case scope is standard
6537 (Selected_Range_Checks): If the node to be checked is a conversion to
6538 an unconstrained array type, and the expression is a slice, use the
6539 bounds of the slice to construct the required constraint checks.
6540 Improve NOT NULL error messages
6541 (Apply_Constraint_Check): If the context is a null-excluding access
6542 type, diagnose properly the literal null.
6544 2007-06-06 Pascal Obry <obry@adacore.com>
6546 * clean.adb (Clean_Archive): Use untouched casing for the archive name
6547 and the corresponding .deps file.
6548 (Clean_Interface_Copy_Directory): Use untouched casing for the library
6549 src directory. Minor code-clean-up. Use untouched casing for files
6550 read into the library src dir.
6551 (Clean_Library_Directory): Idem.
6552 (Parse_Cmd_Line): Accept new switch -aP
6554 2007-06-06 Javier Miranda <miranda@adacore.com>
6555 Ed Schonberg <schonberg@adacore.com>
6556 Robert Dewar <dewar@adacore.com>
6557 Eric Botcazou <ebotcazou@adacore.com>
6558 Arnaud Charlet <charlet@adacore.com>
6560 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
6561 applicable to types that have the With_Type flag set. Returns the
6562 non-limited view of the type, if available, otherwise the type itself.
6563 For class-wide types, there is no direct link in the tree, so we have
6564 to retrieve the class-wide type of the non-limited view of the Etype.
6565 New attributes Static_Initialization and Static_Elaboration_Desired.
6566 Remove the pragma Thread_Body, and the associated flag
6567 Is_Thread_Body in entities, and all related code.
6568 (Suppress_Value_Tracking_On_Call): New flag
6569 E_Exception has Esize and Alignment fields
6570 (Universal_Aliasing): New function.
6571 (Set_Universal_Aliasing): New procedure.
6572 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
6573 (Check_Nested_Access): New procedure.
6574 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
6575 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6576 (Related_Interface): New attribute. Present in dispatch table pointer
6577 components of records. Set to point to the entity of the corresponding
6579 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
6580 (Original_Access_Type): Remove, not needed.
6581 (Root_Type): Handle properly subtypes of class-wide-types.
6584 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
6585 class-wide types visible through limited-with clauses.
6586 (Try_Primitive_Operation): When examining all primitive operations of a
6587 tagged type, do not consider subprograms labeled as hidden unless they
6588 belong to a private generic type with a tagged parent.
6589 (Try_Object_Operation): Extensive rewriting, to handle properly various
6590 overloading cases, when several ancestors may have class-wide operations
6591 that are possible candidates, and when the overloaded functions return
6592 array types and have defaulted parameters so that the call may be
6593 interpreted as an indexing.
6594 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
6595 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
6596 successive actuals before analyzing the call itself.
6597 (Try_Primitive_Operation): A primitive operation is compatible with the
6598 prefix if the prefix has a synchronized type and the type of the formal
6599 is its corresponding record, as can be the case when the primitive
6600 operation is declared outside of the body of the type.
6601 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
6602 perform homonym traversal, looking for class-wide operation matches
6603 (formerly done in statements of Try_Class_Wide_Operation). Matches on
6604 access parameters are now restricted to anonymous access types.
6605 (Mark_Allocator): An allocator with a discriminant association parent is
6607 (Try_One_Prefix_Interpretation): If the type of the object is
6608 incomplete, as can be happen when it is a limited view obtained through
6609 a limited_with_clause, the selected component is not part of a prefixed
6611 (Complete_Object_Operation): Diagnose properly an object that is not
6612 aliased when the corresponding controlling formal is an access
6614 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
6615 ambiguous calls in prefixed notation, where two primitives differ only
6616 in that the controlling argument of one is an access parameter.
6618 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
6619 whether a function that returns an unconstrained type can be inlined.
6620 (Process_Formals): Diagnose properly the illegal use of an incomplete
6621 type in the profile of an access_to_subprogram declaration.
6622 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
6623 operations are attached to the corresponding record.
6624 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
6625 When processing a primitive of a concurrent type which implements an
6626 interface change the type of all controlling formals to that of the
6627 corresponding record type.
6628 (Check_Synchronized_Overriding): Relax the conditional logic when trying
6629 to determine the tagged type to which a primitive belongs.
6630 (Check_Conventions): Capture condition to ignore a primitive operation
6631 (which is shared between the loop in Check_Conventions and the one in
6632 Check_Convention) in a new local function Skip_Check.
6633 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
6634 confusion with Check_Conventions' own Prim_Op local variable.
6635 (Create_Extra_Formals): Test for a tagged result type rather than a
6636 controlling result when determining whether to add a BIP_Alloc_Form
6637 formal and a BIP_Final_List formal to the function.
6638 (Check_Conformance); For parameters that are anonymous access types,
6639 subtype conformance requires that the not null and the constant
6640 indicators must match
6641 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
6642 to retrieve the appropriate type when processing a concurrent type
6643 declared within a generic. Minor comment reformatting. Change invocation
6644 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
6646 (Analyze_Subprogram_Body): If the return type of a function is an
6647 anonymous access to the limited view of a class-wide type, and the
6648 non-limited view of the type is available, update the type of the
6649 function so that code can be generated.
6650 (Process_Formals): In case of access-subtype itype whose designated
6651 type is also an itype (situation that happens now with access to
6652 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
6653 attribute to avoid backend problems.
6654 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
6655 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
6656 anonymous types' designated types are same before testing
6657 Subtypes_Statically_Match.
6658 (Create_Extra_Formals): Test for a named access parameter that is a
6659 controlling formal as an additional condition for adding an
6660 accessibility level formal. This can occur in the subp type created for
6661 dispatching calls in Expand_Dispatching_Call, and allows calling
6662 Create_Extra_Formals from that procedure rather than special-casing the
6663 extra formals there.
6664 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
6665 when the function has a controlling result.
6666 (Check_Returns): Add much more knowledge of the optimization of local
6667 raise statements to gotos, to retain proper warnings in this case.
6668 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
6669 nodes when looking for last statement.
6671 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
6672 class-wide types visible through limited with clauses.
6673 (Add_One_Interp): If the operands are anonymous access types, the
6674 predefined operator on universal_access is immediately visibles
6675 (Find_Unique_Type): Handle anonymous access to subprogram types just as
6676 other anonymous access types.
6677 (Disambiguate): Take into account CIL convention.
6678 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
6680 2007-06-06 Robert Dewar <dewar@adacore.com>
6682 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
6683 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
6684 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
6685 Fix lower bound of tables.
6688 * nlists.adb: Ditto.
6689 (Prev_Node, Next_Node): Change index type to Int so that it properly
6690 covers the range First_Node_Id - 1 up.
6692 2007-06-06 Javier Miranda <miranda@adacore.com>
6693 Ed Schonberg <schonberg@adacore.com>
6694 Bob Duff <duff@adacore.com>
6695 Hristian Kirtchev <kirtchev@adacore.com>
6697 * exp_aggr.ads, exp_aggr.adb:
6698 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
6699 in extension aggregates.
6700 (Flatten): Other conditions being met, an aggregate is static if the
6701 low bound given by component associations is different from the low
6702 bound of the base index type.
6703 (Packed_Array_Aggregate_Handled): If the component type is itself a
6704 packed array or record, the front-end must expand into assignments.
6705 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
6706 Init_Pr, instead of Ancestor_Is_Expression.
6707 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
6708 coextension chain root, either generate a list controller or use the
6709 already existing one.
6710 (Static_Array_Aggregate): New procedure to construct a positional
6711 aggregate that can be handled by the backend, when all bounds and
6712 components are compile-time known constants.
6713 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
6714 types covering interface types into assignments.
6715 (Replace_Type): move to Build_Record_Aggr_Code.
6716 (Expand_Record_Aggr_Code): if the target of the aggregate is an
6717 interface type, convert to the definite type of the aggregate itself,
6718 so that needed components are visible.
6719 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
6720 components and the context is an extended return statement do not
6721 create a transient block for it, to prevent premature finalization
6722 before the return is executed.
6723 (Gen_Assign): Do not generate a call to deep adjust routine if the
6724 component type is itself an array of controlled (sub)-components
6725 initialized with an inner aggregate.
6726 (Component_Check): New name for Static_Check. This name is now more
6727 appropriate, and documentation is added which was missing.
6728 (Component_Check): Add test for bit aligned component value
6729 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
6730 Tagged_Comps, name is more appropriate given added function below.
6731 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
6733 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
6734 Javier Miranda <miranda@adacore.com>
6735 Robert Dewar <dewar@adacore.com>
6737 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
6738 Terminated: Add unchecked type conversion from System.Address to
6739 System.Tasking.Task_Id when calling the predefined primitive
6741 Disable new Ada 05 accessibility check for JVM.NET targets, which
6742 cannot be implemented in a practical way.
6743 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
6744 the sources always references the tag of the actual object. Therefore,
6745 if 'Tag is applied in the sources to class-wide interface objects we
6746 generate code that displaces "this" to reference the base of the object.
6747 (Expand_N_Attribute_Reference, case Size): Return specified size if
6749 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
6750 has code that displaces the pointer of the object to manage interface
6751 types. However this code must not be executed when the prefix is a
6752 subprogram. This bug caused the wrong expansion of the internally
6753 generated assignment that fills the dispatch table when the primitive
6754 is a function returning a class-wide interface type.
6755 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
6756 Set_Attribute_Name for Name_Unaligned_Valid.
6758 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6759 Gary Dismukes <dismukes@adacore.com>
6761 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
6762 If the initialization is the equivalent aggregate of the initialization
6763 procedure of the type, do not remove it.
6764 (Expand_N_Attribute_Definition_Clause): Exclude access variables
6765 initialized to null from having their expression reset to empty and
6766 note this exception in the comment.
6768 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
6769 Robert Dewar <dewar@adacore.com>
6770 Ed Schonberg <schonberg@adacore.com>
6771 Gary Dismukes <dismukes@adacore.com>
6773 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
6774 Add "with" and "use" clauses for Sem_Attr.
6775 (Expand_Current_Value): Do not replace occurences of attribute
6776 references where the prefix must be a simple name.
6778 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
6779 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
6780 Attribute_Requires_Simple_Name_Prefix.
6781 (Name_Modifies_Prefix): Body of new function.
6782 (Requires_Simple_Name_Prefix): Body of new function.
6783 (Resolve_Attribute, case Access): Improve error message for case of
6784 mismatched conventions.
6785 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
6787 (Analyze_Attribute, case 'Access): If the type of the prefix is a
6788 constrained subtype for a nominal unconstrained type, use its base type
6789 to check for conformance with the context.
6790 (Resolve_Attribute): Remove test of the access type being associated
6791 with a return statement from condition for performing accessibility
6792 checks on access attributes, since this case is now captured by
6793 Is_Local_Anonymous_Access.
6794 (Analyze_Access_Attribute): Set Address_Taken on entity
6795 (Analyze_Attribute, case Address): Set Address_Taken on entity
6796 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
6797 validating an access attribute whose prefix is a current instance.
6798 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
6799 applied to dispatching operations, if freezing is required then we set
6800 the attribute Has_Delayed_Freeze in the prefix's entity.
6801 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
6802 current scope if access of local subprogram taken
6803 (Analyze_Access_Attribute): Check legality of self-reference even if the
6804 expression comes from source, as when a single component association in
6805 an aggregate has a box association.
6806 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
6807 the prefix if it is a protected operation and the attribute is
6808 Unrestricted_Access.
6809 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
6810 reference to the base type of the context, to force a constraint check
6811 when the context is an access subtype with an explicit constraint.
6812 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
6813 node is rewritten as an interface conversion. leave unanalyzed after
6814 resolution, to ensure that type checking against the context will take
6817 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6818 Javier Miranda <miranda@adacore.com>
6819 Robert Dewar <dewar@adacore.com>
6821 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
6822 wrapper when the full view of the controlling type of an inherited
6823 function that dispatches on result implements interfaces.
6824 (Expand_N_Object_Declaration): In cases where the type of the
6825 declaration is anonymous access, create finalization list for it.
6826 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
6827 if the object has no explicit initialization, to match description of
6828 functionality of pragam Persistent_BSS.
6829 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
6830 new function to build static aggregates, to replace initialization call
6831 when static initialization is desired.
6832 (Freeze_Type): Generate a list controller for an access type whenever
6833 its designated type has controlled anonymous access discriminants.
6834 (Build_Equivalent_Aggregate): New procedure to compute a static
6835 aggregate to be used as default initialization for composite types,
6836 instead of a generating a call to the initialization procedure for the
6838 (Build_Initialization_Call): When available, replace a call to the
6839 initialization procedure with a copy of the equivalent static aggregate
6841 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
6842 declarations for objects of a class-wide interface type, rather than
6843 just identifiers, to prevent visibility problems.
6844 (Expand_N_Object_Declaration): When expanding the declaration for an
6845 object of a class-wide interface type, preserve the homonym chain of
6846 the original entity before exchanging it with that of the generated
6847 renaming declaration.
6848 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
6849 active, because there is no way to handle the exception.
6850 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
6851 to do a minimum decoration of the Access_Disp_Table list.
6852 (Expand_Record_Controller): Avoid the addition of the controller between
6853 the component containing the tag of a secondary dispatch table and its
6854 adjacent component that stores the offset to the base of the object.
6855 This latter component is only generated when the parent type has
6856 discriminants ---documented in Add_Interface_Tag_Components).
6857 (Apply_Array_Size_Check): Removed, no longer needed.
6858 (Expand_N_Full_Type_Declaration): If the type has anonymous access
6859 components, create a Master_Entity for it only if it contains tasks.
6860 (Build_Init_Procedure): Suppress the tag assignment compiling under
6862 (Freeze_Record_Type): Remove code associated with creation of dispatch
6864 (Init_Secondary_Tags): Update type of actuals when generating calls to
6865 Ada.Tags.Set_Offset_To_Top
6866 (Stream_Operation_OK): Disable use of streams compiling under no
6868 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
6869 if Has_Init_Expression set.
6870 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
6871 Register_Primitive, which provides the same functionality.
6872 (Requires_Init_Proc): Return false in case of interface types.
6873 (Add_Secondary_Tables): Use the new attribute Related_Interface to
6875 (Predefined_Primitive_Freeze): Do not assume that an internal entity
6876 is always associated with a predefined primitive because the internal
6877 entities associated with interface types are not predefined primitives.
6878 Therefore, the call to Is_Internal is replaced by a call to the
6879 function Is_Predefined_Dispatching_Operation.
6880 (Make_Eq_If): When generating the list of comparisons for the
6881 components of a given variant, omit the controller component that is
6882 present if the variant has controlled components.
6884 2007-06-06 Javier Miranda <miranda@adacore.com>
6885 Hristian Kirtchev <kirtchev@adacore.com>
6886 Bob Duff <duff@adacore.com>
6888 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
6889 handle the creation of finalization lists and calls for nested
6890 coextensions when the root of the chains is part of a return statement.
6891 (Inside_A_Return_Statement): New function inside Complete_Coextension_
6893 (Expand_Record_Equality): Skip components that are interface types.
6894 (Displace_Allocator_Pointer): Add missing support for interface subtypes
6895 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
6896 with Rewrite_Coextension. Change the condition for detecting coextension
6898 (Is_Local_Access_Discriminant): Removed.
6899 (Rewrite_Coextension): New routine which rewrites a static coextension
6900 as a temporary and uses its unrestricted access in the construction of
6902 (Complete_Coextension_Finalization): New routine. Generate finalization
6903 attachment calls to all delayed coextensions.
6904 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
6905 the allocator is not a coextension itself and has delayed coextensions.
6906 If the current allocator is controlled, but also a coextension, delay
6907 the generation of the finalization attachment call.
6908 Rename local variable "Node" to "Nod" in order to avoid confusion with
6910 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
6911 limited types that are not inherently limited. Such an allocator is
6912 illegal, but is generated by the expander for a return statement, to
6913 copy the result onto the secondary stack. This is the only case where a
6914 limited object can be copied. Generate code to displace the pointer
6915 to the object if the qualified expression is a class-wide interface
6916 object. Such displacement was missing and hence the copy of the object
6918 (Apply_Accessibility_Check): Handle allocated objects initialized in
6920 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
6921 and Expand_Allocator_Expression. Allocating class-wide interface objects
6922 this routine displaces the pointer to the allocated object to reference
6923 the component referencing the corresponding secondary dispatch table.
6924 Expand_Allocator_Expression): Add missing support to allocate class-wide
6925 interface objects initialized with a qualified expression.
6926 (Get_Allocator_Final_List): Test for an anonymous access type that is a
6927 function result type, and use the finalization list associated with the
6928 function scope in that case (such an anonymous type should not be
6929 treated like an access parameter's type).
6931 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6932 Gary Dismukes <dismukes@adacore.com>
6933 Javier Miranda <miranda@adacore.com>
6935 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
6936 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
6937 required exception handler.
6938 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
6939 properly the case of a function whose return type is a limited
6940 class-wide interface type. Modify the code of the accessibility
6941 check to handle class-wide interface objects. In this case we need to
6942 displace "this" to reference the primary dispatch table to get access
6943 to the TSD of the object (to evaluate its accessibility level).
6944 (Expand_N_Extended_Return_Statement): Test for a tagged result type
6945 rather than a controlling result as one of the conditions for
6946 generating tests of the implicit BIP_Alloc_Form formal. The
6947 initialization assignment is also handled according to whether the
6948 result is tagged instead of controlling.
6949 In the case where the init assignment is inserted in the "then" part of
6950 the allocation conditional, rewrite the target to be a dereference of
6951 the implicit BIP_Object_Access formal.
6952 If the returned value is unconstrained and created on the secondary
6953 stack, mark the enclosing block and function so that the secondary
6954 stack is not reclaimed on return.
6955 Treat returns from functions with controlling results similarly to
6956 returns from functions with unconstrained result subtypes.
6957 If the object returned is unconstrained, and an allocator must be
6958 created for it, analyze the allocator once the block for the extended
6959 return is installed, to ensure that finalizable components
6960 of the expression use the proper finalization list. Guard the call to
6961 Move_Final_List with a check that there is something to finalize.
6962 (Make_Tag_Ctrl_Assignment): Use "old" handling
6963 of controlled type assignment for virtual machines, since new code uses
6964 unsupported features (such as direct access to bytes in memory).
6966 2007-06-06 Gary Dismukes <dismukes@adacore.com>
6967 Ed Schonberg <schonberg@adacore.com>
6969 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
6970 accessibility actual, check for the case of an aliased object that has
6971 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
6972 we fall into processing for the attribute rather than the name of the
6974 (Expand_Inline_Call): If an actual is a literal, and the corresponding
6975 formal has its address taken in the body, create a temporary to capture
6976 value. If the return type is a limited interface, do not treat the
6977 return value as Controlled.
6978 (Is_In_Place_Function): If the return type is a limited interface,
6979 treat as returning in place. The actual returned object may not always
6980 be limited, but the caller has to assume that it is returned in place.
6981 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
6982 context of an allocator, use the correct finalization chain (that is,
6983 the chain belonging to the access type, rather than the chain belonging
6984 to the current scope).
6985 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
6986 result type rather than a controlling result as a precondition for
6987 adding an allocation form actual to a build-in-place call.
6988 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
6989 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
6990 primitive in the dispatch tables. This work is now done by Make_DT when
6992 (Register_Predefined_DT_Entry): Removed.
6993 (Add_Return): If end label is not present, use sloc of last statement
6994 for generated return statement in procedure, for better gdb behavior
6996 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
6997 object address nodes to ensure proper processing by routines like
6999 (Expand_Call): Fix generation of validity check for parameter
7000 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
7001 the allocation form parameter if the result subtype is constrained,
7002 except when the function has a controlling result.
7003 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
7004 rather than Is_Controlled and Has_Controlled_Component, since we want to
7005 include class-wide result types in this treatment. Also test for a
7006 controlling result, since that also requires passing a finalization
7008 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
7009 even when the result subtype is constrained, to handle calls involving
7010 controlling results.
7011 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
7012 is now called even when the result subtype is constrained, to handle
7013 calls involving controlling results.
7014 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
7015 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
7016 now performs the test).
7017 (Make_Build_In_Place_Call_In_Object_Declaration):
7018 Add_Alloc_Form_Actual_* is now called even when the result subtype is
7019 constrained, to handle calls involving controlling results.
7020 (Add_Return): Accomodate rewritten pattern from local raise to goto
7021 transformation, so that we still recognize an transfer statement
7022 and do the right thing here in that case.
7023 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
7024 and end of subprogram code.
7025 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
7026 support for primitives that are functions (without formals) with a
7028 (Inherited_From_Formal): If the actual subtype has not generic parent
7029 type, it is not an actual for a formal derived type, and there is no
7030 operation to inherit from the formal.
7032 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7033 Thomas Quinot <quinot@adacore.com>
7035 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
7036 inserted cleanup code appropriately for GDB use.
7037 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
7038 exception handler for Deep_Adjust or Deep_Finalize.
7039 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
7040 Raise_From_Controlled_Operation is available, use a call to that
7041 subprogram instead of a plain "raise Program_Error" node to raise
7042 Program_Error if an exception is propagated from an Adjust or Finalize
7044 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
7045 appears in the optional statement list of a triggering alternative, the
7046 scope actions can be inserted directly there, and not in the list that
7047 includes the asynchronous select itself.
7049 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7050 Robert Dewar <dewar@adacore.com>
7051 Hristian Kirtchev <kirtchev@adacore.com>
7053 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
7054 generated exception handler appropriately when debugging generated code.
7055 Deal properly with No_Exception_Propagation restriction mode.
7056 (Expand_N_Abort_Statement): Add an unchecked type conversion from
7057 System.Address to System.Tasking.Task_Id when processing the result of
7058 the predefined primitive _disp_get_task_id.
7059 (Expand_N_Asynchronous_Select): Clarify comment.
7060 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
7061 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
7062 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
7063 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
7064 privals and for generated call to Complete_Entry_Body, for better gdb
7066 (Copy_Result_Type): Utility to construct a parameter and result profile
7067 for protected functions whose return type is an anonymous access to
7069 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
7071 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
7072 point when the local-raise-to-goto transformation has taken place.
7074 2007-06-06 Javier Miranda <miranda@adacore.com>
7075 Nicolas Setton <setton@adacore.com>
7077 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
7078 functionality when the backend is generating code.
7079 Otherwise any serious error
7080 reported by the backend calling the frontend routine Error_Msg
7081 changes the Compilation_Mode to Check_Semantics, disables the
7082 functionality of this routine and causes the generation of
7083 spureous additional errors.
7085 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
7086 debugging information now generated by the compiler for fat-pointer
7088 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
7090 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
7092 2007-06-06 Thomas Quinot <quinot@adacore.com>
7094 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
7095 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
7096 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
7097 For a remote call to a function with a classwide return type, apply an
7098 E.4(18) check to the returned value.
7099 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
7100 stream attributes of the designated type of an RACW, as they are not
7101 dispatching primitive operations.
7103 2007-06-06 Geert Bosch <bosch@adacore.com>
7105 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
7107 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
7109 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
7110 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
7112 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
7114 2007-06-06 Javier Miranda <miranda@adacore.com>
7116 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
7117 attribute compiling package Ada.Tags under No_Run_Time_Mode.
7119 2007-06-06 Javier Miranda <miranda@adacore.com>
7121 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
7122 deallocation of class-wide interface objects.
7123 (Expand_Dispatching_Constructor_Call): Take into account that if the
7124 result of the dispatching constructor is an interface type, the
7125 function returns a class-wide interface type; otherwise the returned
7126 object would be actual. The frontend previously accepted returning
7127 interface types because Expand_Interface_Actuals silently performed
7128 the management of the returned type "as if" it were a class-wide
7130 (Expand_Dispatching_Constructor_Call): Replace call to
7131 Make_DT_Access_Action by direct call to Make_Function_Call.
7133 2007-06-06 Robert Dewar <dewar@adacore.com>
7134 Ed Schonberg <schonberg@adacore.com>
7136 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
7137 compute masking constant, since we now set Esize properly to the
7139 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
7140 to match the alignment.
7141 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
7142 packed arrays of 8 bits or less.
7144 * freeze.adb (Freeze_Entity): When freezing the formals of a
7145 subprogram, freeze the designated type of a parameter of an access type
7146 only if it is an access parameter.
7147 Increase size of C convention enumeration object
7148 (Freeze_Entity, array type case): Make sure Esize value is properly
7149 adjusted for the alignment if it is known.
7150 (Freeze_Entity, array type case): When checking bit packed arrays for
7151 the size being incorrect, check RM_Size, not Esize.
7152 (Freeze_Record_Type): Check for bad discriminated record convention
7153 (In_Exp_Body): Return true if the body is generated for a subprogram
7154 renaming, either an attribute renaming or a renaming as body.
7155 (Check_Itype): If the designated type of an anonymous access component
7156 is a non-protected subprogram type, indicate that it is frozen, to
7157 prevent out-of-scope freeze node at some subsequent call.
7158 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
7159 only if the subprogram is neither imported nor exported, as well as the
7160 NCA descriptor class if the subprogram is exported.
7162 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7163 Arnaud Charlet <charlet@adacore.com>
7164 Robert Dewar <dewar@adacore.com>
7165 Gary Dismukes <dismukes@adacore.com>
7167 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
7168 default initialization on an imported object, when there is no
7169 initialization call generated for it.
7170 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
7173 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
7174 Static_Elaboration_Desired.
7175 Remove pragma Thread_Body.
7176 Implement a new pragma No_Body
7177 Removes the Explicit_Overriding pragma
7178 Remove Optional_Overriding pragma
7179 (Prag): Deal with Universal_Aliasing.
7180 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
7181 Pragma_CIL_Constructor): New names.
7183 * sem_cat.adb (Validate_Object_Declaration): An initialization that
7184 uses the equivalent aggregate of a type must be treated as an implicit
7186 (Get_Categorization): Check a unit for pragma Preelaborate only if it
7187 has none of the other categories.
7188 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
7189 to apply Import to an object renaming declaration.
7191 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
7192 from a C++ class should be declared as limited and that it will be
7193 considererd limited.
7194 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
7195 should be declared as limited and that it will be considererd limited.
7196 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
7197 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
7198 (Analyze_Pragma): Deal with Universal_Aliasing.
7199 (Sig_Flags): Likewise.
7200 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
7201 (Overflow_Checks_Unsuppressed): New flag.
7202 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
7203 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
7204 case of JVM or .NET targets, and compiling user code.
7205 Add debugging convenience routine rv
7207 2007-06-06 Robert Dewar <dewar@adacore.com>
7209 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
7211 (Build_Elementary_Input_Call): For floating-point use right type in the
7212 absence of strange size or stream size clauses.
7213 (Build_Elementary_Write_Call): Same fix
7214 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
7215 set to value that does not match base type size.
7217 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7219 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
7220 object of a limited type can be initialized with a call to a function
7221 that returns in place. If the limited type has unknown discriminants,
7222 and the underlying type is a constrained composite type, build an actual
7223 subtype from the function call, as is done for private types.
7224 (Side_Effect_Free): An expression that is the renaming of an object or
7225 whose prefix is the renaming of a object, is not side-effect free
7226 because it may be assigned through the renaming and its value must be
7227 captured in a temporary.
7228 (Has_Controlled_Coextensions): New routine.
7229 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
7230 as is done for other limited types.
7231 (Non_Limited_Designated_Type): new predicate.
7232 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
7234 Remove all handling of with_type clauses.
7236 * par-ch10.adb: Remove all handling of with_type clauses.
7238 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
7239 checksum if the main source could not be parsed.
7240 (Loat_Unit): When processing a child unit, determine properly whether
7241 the parent unit is a renaming when the parent is itself a child unit.
7242 Remove handling of with_type clauses.
7244 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
7245 (Set_Is_Static_Coextension): New procedure.
7246 (Has_Local_Raise): New function
7247 (Set_Has_Local_Raise): New procedure
7248 (Renaming_Exception): New field
7249 (Has_Init_Expression): New flag
7250 (Delay_Finalize_Attach): Remove because flag is obsolete.
7251 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
7252 Remove all handling of with_type clauses.
7253 (Exception_Junk): Can now be set in N_Block_Statement
7255 2007-06-06 Vincent Celier <celier@adacore.com>
7256 Robert Dewar <dewar@adacore.com>
7258 * frontend.adb (Frontend): Return immediately if the main source could
7259 not be parsed, because of preprocessing errors.
7261 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
7262 (Gnat1drv): Exit with errors if the main source could not be parsed,
7263 because of preprocessing errors.
7264 (Check_Rep_Info): New procedure
7266 2007-06-06 Robert Dewar <dewar@adacore.com>
7268 * g-hesorg.ads, g-heasor.ads,
7269 g-busorg.ads, g-bubsor.ads: Update documentation
7270 GNAT.Heap/Bubble_Sort_G is now pure
7272 2007-06-06 Robert Dewar <dewar@adacore.com>
7274 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
7276 2007-06-06 Robert Dewar <dewar@adacore.com>
7277 Ed Schonberg <schonberg@adacore.com>
7279 * g-comlin.ads, g-comlin.adb:
7280 Add new warning for renaming of function return objects
7282 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
7283 (Tree_Read): Use size of object instead of type'object_size, since the
7284 latter is incorrect for packed array types.
7285 (Tree_Write): Same fix
7287 * opt.ads: Add new warning for renaming of function return objects
7288 (Generating_Code): New boolean variable used to indicate that the
7289 frontend as finished its work and has called the backend to process
7290 the tree and generate the object file.
7291 (GCC_Version): Is now private
7292 (Static_Dispatch_Tables): New constant declaration.
7293 (Overflow_Checks_Unsuppressed): New flag.
7294 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
7295 (List_Closure): New flag for gnatbind (-R)
7296 Zero_Formatting: New flag for gnatbind (-Z)
7297 (Special_Exception_Package_Used): New flag.
7298 (Warn_On_Unrepped_Components): New flag.
7300 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
7301 unit is a compilation unit, rather than relying on its scope, so that
7302 Standard can be renamed.
7303 (Analyze_Object_Renaming): Add new warning for renaming of function
7305 Also reject attempt to rename function return object in Ada 83 mode.
7306 (Attribute_Renaming): In case of tagged types, add the body of the
7307 generated function to the freezing actions of the type.
7308 (Find_Type): A protected type is visible right after the reserved word
7309 "is" is encountered in its type declaration. Set the entity and type
7310 rather than emitting an error message.
7311 (New_Scope): Properly propagate Discard_Names to inner scopes
7312 (Check_Nested_Access): New procedure.
7313 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
7314 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
7316 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
7317 Add new warning for renaming of function return objects
7318 (Check_References): Suppress warnings for objects whose type or
7319 base type has Warnings suppressed.
7320 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
7321 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
7323 2007-06-06 Vincent Celier <celier@adacore.com>
7324 Emmanuel Briot <briot@adacore.com>
7325 Olivier Hainque <hainque@adacore.com>
7327 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
7328 absolute value of Header.Block_Size when displaying the freed physical
7330 (Allocate): Compute Storage_Address using Integer_Address, not
7331 Storage_Offset, because the range of Storage_Offset may not be large
7333 (Configure): New parameter Low_Level_Traces
7334 (Allocate, Deallocation, Free_Physically): Added low-level traces
7335 (Configure): new parameter Errors_To_Stdout.
7336 (Output_File): new subprogram
7337 (Deallocate, Dereference): Send error messages to the proper stream
7338 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
7339 documented. Previous code would send it to the current output file
7340 defined in GNAT.IO, which might not be stdout
7341 (Is_Valid): Adjust comment to mention that a positive reply means that
7342 Header_Of may be used to retrieve the allocation header associated with
7343 the subprogram Storage address argument. Return False early if this
7344 address argument is misaligned.
7346 2007-06-06 Vincent Celier <celier@adacore.com>
7348 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
7350 (ASIS_Main): New global variable
7351 (Get_Closure): New procedure
7352 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
7353 check, metric or pretty. Call Get_Closure in this case.
7354 (Check_Files): For GNAT LIST, check all sources of all projects when
7355 All_Projects is True.
7356 (GNATCmd): Accept -U for GNAT LIST
7358 2007-06-06 Vincent Celier <celier@adacore.com>
7360 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
7362 Correct error message when invocation of the linker fails
7363 Add explicit size clause for the C imported variables
7364 Object_List_File_Supported and Using_GNU_Linker to emphasize that
7365 we expect char size.
7366 Read target parameters earlier, since this is needed to set
7367 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
7370 2007-06-06 Vincent Celier <celier@adacore.com>
7373 Add 3 spaces before the default project directory when displaying
7374 the project search path.
7375 Add new command line switch '-l' to display license information.
7377 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
7379 * gmem.c: Add support for timestamps on memory operations.
7381 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
7382 operations (not used currently, just foundation for future
7383 enhancements). Add possibility to perform full dump of gmem.out file.
7384 (Print_Back_Traces): Declare accesses to root arrays constants since
7385 they aren't modified.
7386 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
7388 2007-06-06 Vincent Celier <celier@adacore.com>
7390 * gnatsym.adb: Update Copyright notice
7391 (Parse_Cmd_Line): Accept new switch -D
7392 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
7395 * prj.ads (Policy): New policy Direct
7396 (Yes_No_Unknown): New enumeration type
7397 (Project_Data): New component Libgnarl_Needed
7399 * prj-nmsc.adb (Check_For_Source): When recording a source file make
7400 use the untouched pathname casing.
7401 (Get_Directories): Ensure that the Display_Exec_Directory is using the
7402 proper casing on non case-sensitive platforms like Windows.
7403 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
7404 on all platforms, as it is not possible to know which one is allowed
7405 before processing the project files.
7406 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
7407 specified when symbol policy is Direct. Check that when there is a
7408 symbol file defined (either by default or with attribute
7409 Library_Symbol_File) it is not the same as the reference symbol file.
7410 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
7411 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
7413 (Record_Ada_Source): Record a source that has been locally removed in an
7416 * symbols.ads (Policy): New policy Direct
7418 * symbols-vms.adb (Initialize): Take new policy Direct in case
7421 2007-06-06 Vincent Celier <celier@adacore.com>
7423 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
7424 Correct obvious bug (return Dir; instead of return Directory;).
7425 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
7427 2007-06-06 Thomas Quinot <quinot@adacore.com>
7429 * g-pehage.adb (Produce): Open output files in Binary mode, so that
7430 they have UNIX line endings (LF only) even on Windows, and thus pass
7431 all GNAT style checks.
7433 2007-06-06 Emmanuel Briot <briot@adacore.com>
7435 * g-regpat.adb (Quote): Fix improper quoting of '.'
7437 2007-06-06 Thomas Quinot <quinot@adacore.com>
7439 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
7440 default, set False on a per-runtime basis.
7441 (Need_Netdb_Buffer): New constant.
7443 * g-socket.ads, g-socket.adb: Import new package
7444 GNAT.Sockets.Thin.Task_Safe_NetDB.
7445 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
7446 binding to obtain proper message.
7447 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
7448 Replace various occurrences of Arry (Arry'First)'Address with the
7449 equivalent Arry'Address (GNAT always follows implementation advice from
7451 (Get_Host_By_Address, Get_Host_By_Name,
7452 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
7453 instead, rely on platform-specific task safe netdb operations provided
7456 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
7457 parameter Process_Blocking_IO.
7458 (Host_Error_Messages): Add stub body.
7459 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7460 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
7461 Safe_Getservbyport): Move functions into new child package
7463 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
7464 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
7465 (In_Addr): Add alignment clause.
7467 2007-06-06 Robert Dewar <dewar@adacore.com>
7469 * g-trasym.ads, g-traceb.ads: Update list of supported targets
7470 Add note about symbolic traceback
7472 2007-06-06 Pascal Obry <obry@adacore.com>
7474 * hostparm.ads (Normalized_CWD): Use the host directory separator
7475 instead of the hardcoded forward slash which is not the proper
7476 character on Windows for example.
7479 2007-06-06 Vincent Celier <celier@adacore.com>
7480 Arnaud Charlet <charlet@adacore.com>
7482 * a-clrefi.adb, a-clrefi.ads: New files
7484 * impunit.adb: Add s-os_lib in the list of user visible units.
7485 (Non_Imp_File_Names_95): Add a-clrefi to this list
7486 Remove obsolete run-time entries.
7487 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
7488 "a-exetim" -- Ada.Execution_Time
7489 "a-extiti" -- Ada.Execution_Time.Timers
7491 * mlib-prj.ads, mlib-prj.adb
7492 (Build_Library): Use untouched object dir and library dir. At the
7493 same time makes sure that the checks are done using the canonical
7494 form. Removes hard-coded directory separator and use the proper host
7496 (Process_Project): Do not look in object directory to check if libgnarl
7497 is needed for a library, if there is no object directory.
7498 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
7500 (Build_Library): When invoking gnatbind, use a response file if the
7501 total size of the arguments is too large.
7503 * Makefile.rtl: (g-sttsne): New object file.
7504 Add entry for a-clrefi, s-utf_32, System.Exceptions
7506 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
7507 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
7508 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
7509 Change g-string to s-string, g-os_lib to s-os_lib
7510 Change all g-utf_32 references to s-utf_32
7512 2007-06-06 Tristan Gingold <gingold@adacore.com>
7513 Olivier Hainque <hainque@adacore.com>
7515 * init.c: Do not adjust IP of an imported VMS exception of ia64.
7516 LIB$STOP is called to raise an exception and the IP of the exception
7517 is the instruction right after the call.
7518 (__gnat_adjust_context_for_raise, AIX): Implement.
7519 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
7520 adjust_context_for_raise before Raise_From_Signal_Hanler.
7521 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
7522 siginfo is passed to the handler, necessary to let the zcx propagation
7523 engine unwind past it.
7525 2007-06-06 Olivier Hainque <hainque@adacore.com>
7527 * initialize.c (__gnat_initialize for vxworks): Update documentation
7528 on the ZCX support, using different sets of crtstuff objects than with
7531 2007-06-06 Robert Dewar <dewar@adacore.com>
7533 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
7535 (Layout_Type): Fix recomputation of size from alignment.
7537 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7538 Javier Miranda <miranda@adacore.com>
7540 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
7541 association in an instance.
7542 (Copy_Generic_Node): If the node is a string literal, no need to copy
7544 (Is_Generic_Formal): For a formal subprogram, the declaration is the
7545 grandparent of the entity.
7546 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
7547 to simplify handling of formal interfaces that derive from other formal
7549 (Instantiate_Subprogram_Body): The defining unit name of the body of
7550 the instance should be a defining identifier.
7551 (Install_Formal_Packages): make global to the package, for use in
7552 instantiations of child units.
7553 (Analyze_Package_Instantiation): Do not attempt to set information on an
7554 enclosing master of an entry when expansion is disabled.
7555 (Instantiate_Type): If the actual is a tagged synchronized type and the
7556 generic ancestor is an interface, create a generic actual for the
7557 corresponding record.
7558 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
7559 declaration, to ensure that the interface list is processed correctly.
7560 (Inline_Instance_Body): If enclosing scope is an instance body, remove
7561 its entities from visibiility as well.
7562 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
7563 given with a named association, analyze the expression only, not the
7564 discriminant association itself.
7565 (Reset_Entity): If the analysis of a selected component is transformed
7566 into an expanded name in the prefix of a call with parameters, do not
7567 transform the original node into an expanded name, to prevent visibility
7568 errors in the case of nested generics.
7569 (Check_Private_View): For an array type, check whether the index types
7570 may need exchanging.
7572 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7573 Vincent Celier <celier@adacore.com>
7575 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
7576 since both are separated.
7577 Add support for imported CIL packages.
7578 Add further special handling of "value_type" for CIL.
7579 Add special handling of pragma Import for CIL.
7581 * make.ads, make.adb: When switch -eS is used, direct all outputs to
7582 standard output instead of standard error, except errors.
7583 (Absolute_Path): Use untouched casing for the parent directory.
7584 (Add_Library_Search_Dir): Use the untouched directory name.
7585 (Add_Source_Search_Dir): Idem.
7586 (Change_To_Object_Directory): Update output to use proper casing.
7587 (Create_Binder_Mapping_File): Use the untouched filename to set
7589 (Gnatmake): Use untouched library and executable directory names.
7590 (Insert_Project_Sources): Use untouched filename for spec and body.
7591 (Is_In_Object_Directory): Use untouched object directory.
7592 (Mark_Directory): Idem.
7593 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
7594 contains the non-canonical filename in all cases.
7595 (Change_To_Object_Directory): In verbose mode, display the name of the
7596 object directory we're changing to.
7597 (Compile_Sources): Make sure, when a project file is used, to compile
7598 the body of the unit, when there is one, even when only the spec is
7599 recorded in an ALI file.
7600 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
7602 (Report_Compilation_Failed): New procedure
7603 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
7604 procedures moved from the spec to the body.
7605 (Extract_Failure): Removed, not used
7606 Replace explicit raises of exception Bind_Failed and Link_Failed with
7607 calls to Make_Failed with the proper message.
7608 Replace explicit raises of exception Compilation_Failed with calls to
7609 procedure Report_Compilation_Failed.
7610 (Initialize): Create mapping files unconditionally when using project
7613 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
7614 Pragma_CIL_Constructor): New names.
7616 * targparm.ads, targparm.adb
7617 (Compiler_System_Version): Removed, no longer used.
7618 (Get_Target_Parameters): Relax checks on system.ads validity. Add
7619 handling of two new system flags: JVM and CLI.
7621 2007-06-06 Jose Ruiz <ruiz@adacore.com>
7622 Arnaud Charlet <charlet@adacore.com>
7624 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
7625 time, use the default s-interr body that provides interrupt support
7627 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
7628 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
7629 g-soccon.ads, and s-taprop.adb for the marte run time.
7630 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
7631 timers are supported on marte.
7632 (EH_MECHANISM for marte): Do not use ZCX.
7633 (THREADSLIB for marte): Use -lmarte.
7634 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
7635 Add mlib-tgt-specific.o to gnatmake objects
7636 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
7638 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
7639 6, either kernel or rtp, use a specialized version of s-osinte.ads.
7641 2007-06-06 Pascal Obry <obry@adacore.com>
7643 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
7645 2007-06-06 Vincent Celier <celier@adacore.com>
7647 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
7648 separator, use instead the proper host directory separator.
7649 (Copy_ALI_Files): Make sure that an already existing ALI file in the
7650 ALI copy dir is writable, before doing the copy.
7652 * mlib-utl.ads, mlib-utl.adb:
7653 (Gcc): If length of command line is too long, put the list of object
7654 files in a response file, if this is supported by the platform.
7655 (Ar): If invocation of the archive builder is allowed to be done in
7656 chunks and building it in one shot would go above an OS dependent
7657 limit on the number of characters on the command line, build the archive
7660 2007-06-06 Vincent Celier <celier@adacore.com>
7662 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
7663 of specified object file is not equal to base name of source.
7665 2007-06-06 Javier Miranda <miranda@adacore.com>
7666 Hristian Kirtchev <kirtchev@adacore.com>
7667 Ed Schonberg <schonberg@adacore.com>
7669 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
7670 the full type declaration.
7671 (Analyze_Component_Declaration): Add local variable E to capture the
7672 initialization expression of the declaration. Replace the occurences of
7673 Expression (N) with E.
7674 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
7675 limited interface object with a function call.
7676 (Array_Type_Declaration): If the declaration lacks subtype marks for
7677 indices, create a simple index list to prevent cascaded errors.
7678 (Is_Null_Extension): Ignore internal components created for secondary
7679 tags when checking whether a record extension is a null extension.
7680 (Check_Abstract_Interfaces): Add missing support for interface subtypes
7681 and generic formals.
7682 (Derived_Type_Declaration): Add missing support for interface subtypes
7683 and generic formals.
7684 (Analyze_Object_Declaration): If an initialization expression is
7685 present, traverse its subtree and mark all allocators as static
7687 (Add_Interface_Tag_Component): When looking for components that may be
7688 secondary tags, ignore pragmas that can appear within a record
7690 (Check_Abstract_Overriding): an inherited function that dispatches on
7691 result does not need to be overriden if the controlling type is a null
7693 (Mentions_T): Handle properly a 'class attribute in an anonymous access
7694 component declaration, when the prefix is an expanded name.
7695 (Inherit_Component): If the derivation is for a private extension,
7696 inherited components remain visible and their ekind should not be set
7698 (Find_Type_Of_Object): In the case of an access definition, always set
7699 Is_Local_Anonymous_Access. We were previously not marking the anonymous
7700 access type of a return object as a local anonymous type.
7701 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
7702 range with character literal bounds.
7703 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
7704 (Access_Subprogram_Declaration): Indicate that the type declaration
7705 depends on an incomplete type only if the incomplete type is declared
7707 (Analyze_Subtype_Declaration): Handle properly subtypes of
7708 synchronized types that are tagged, and that may appear as generic
7710 (Access_Subprogram_Declaration): An anonymous access to subprogram can
7711 appear as an access discriminant in a private type declaration.
7712 (Add_Interface_Tag_Components): Complete decoration of the component
7713 containing the tag of a secondary dispatch table and the component
7714 containing the offset to the base of the object (this latter component
7715 is only generated when the parent type has discriminants --as documented
7717 (Inherit_Components): Use the new decoration of the tag components to
7718 improve the condition that avoids inheriting the components associated
7719 with secondary tags of the parent.
7720 (Build_Discriminanted_Subtype): Indicate to the backend that the
7721 size of record types associated with dispatch tables is known at
7723 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
7724 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
7725 to include task, protected, and synchronized interfaces as limited
7727 (Process_Discriminants): Remove the setting of
7728 Is_Local_Anonymous_Access on the type of (anonymous) access
7729 discriminants of nonlimited types.
7730 (Analyze_Interface_Type_Declaration): Complete the decoration of the
7731 class-wide entity it is is already present. This situation occurs if
7732 the limited-view has been previously built.
7733 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
7735 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
7738 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7740 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
7741 of the type that specify the position of interface tags when the type
7742 inherits discriminated array components from the parent type.
7743 If a component is initialized with a box, check for the presence of a
7744 default expression in its declaration before using its default
7745 initialization procedure.
7746 (Resolve_Record_Aggregate): If a component is box-initialized, and the
7747 component type has a discriminants, create a partial aggregate for it
7748 by copying the discriminants of the component subtype.
7749 Reject attempt to initialize a discriminant with a box.
7750 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
7751 associated with dispatch tables is known at compile time.
7752 (Get_Value): If an association in a record aggregate has a box
7753 association, and the corresponding record component has a default
7754 expression, always copy the default expression, even when the
7755 association has a single choice, in order to create a proper
7756 association for the expanded aggregate.
7758 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7759 Robert Dewar <dewar@adacore.com>
7761 * par-ch12.adb (P_Generic_Associations): The source position of an
7762 Others association is that of the others keyword, not that of the token
7763 that follows the box.
7764 (P_Formal_Type_Definition): Handle formal access types that carry a
7767 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
7768 multiple identifier are present, save Scan_State before scanning the
7769 colon, to ensure that separate trees are constructed for each
7771 (P_Identifier_Declarations): For object declaration, set new flag
7772 Has_Init_Expression if initialization expression present.
7773 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
7774 Improve NOT NULL error messages
7776 2007-06-06 Robert Dewar <dewar@adacore.com>
7778 * par-ch4.adb: (P_Name): Recover from literal used as name
7780 2007-06-06 Vincent Celier <celier@adacore.com>
7782 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
7784 In the "not" case, recursive call with Complemented set to True.
7785 Do not allow "or" or "and" operators when Complemented is True.
7787 2007-06-06 Vincent Celier <celier@adacore.com>
7789 * prj.adb (Project_Empty): Gives default value for new component
7792 * prj-attr.ads: Minor reformatting
7794 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
7795 directory using the untouched casing.
7796 (For_All_Source_Dirs): Idem.
7798 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
7799 directories specified with switches -aP.
7800 (Add_Search_Project_Directory): New procedure
7801 (Initialize_Project_Path): Put the directories in table
7802 Search_Directories in the project search path.
7803 (Initialize_Project_Path): For VMS, transform into canonical form the
7806 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7808 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
7809 true if configurable run-time or No_Run_Time is set.
7810 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
7811 processing an unit which is not the one being compiled.
7813 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7815 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
7816 Replace UC by Ada.UC
7818 * s-bitops.adb: Get rid of System.Pure_Exceptions.
7819 Replace UC by Ada.UC
7821 2007-06-06 Robert Dewar <dewar@adacore.com>
7823 * scng.adb: (Check_End_Of_Line): Deal with very long lines
7825 2007-06-06 Robert Dewar <dewar@adacore.com>
7827 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
7828 Remove no longer used nodes.
7830 2007-06-06 Javier Miranda <miranda@adacore.com>
7831 Ed Schonberg <schonberg@adacore.com>
7832 Robert Dewar <dewar@adacore.com>
7834 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
7835 on obsolescent withed unit in case of limited-withed units.
7836 (Analyze_Compilation_Unit): Add guard to code that removed an
7837 instantiation from visibility, to prevent compiler aborts when
7838 instantiation is abandoned early on.
7839 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
7840 current unit being analyzed, and Distinguish local incomplete types
7841 from limited views of types declared elsewhere.
7842 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
7843 to state that the class-wide entity is shared by the limited-view
7845 (Analyze_With_Clause): Improve placement of flag for case of
7847 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
7848 manner similar to GNAT.Current_Exception. This is a violation of
7849 restriction (No_Exception_Propagation), and also inhibits the
7850 optimization of local raise to goto.
7851 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
7852 and if so set Most_Recent_Exception_Used flag in Opt, and also check
7853 for violation of restriction No_Exception_Propagation.
7855 2007-06-06 Javier Miranda <miranda@adacore.com>
7856 Hristian Kirtchev <kirtchev@adacore.com>
7857 Gary Dismukes <dismukes@adacore.com>
7859 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
7860 use of entity Exception_Occurrence if it is not available in the
7863 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
7864 concurrent types are declared within an Ada 2005 generic, build their
7865 corresponding record types since they are needed for overriding-related
7867 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
7868 protected type does not implement a task interface or a nonlimited
7870 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
7871 type does not implement a protected interface or a nonlimited interface.
7872 (Single_Task_Declaration, Single_Protected_Declaration): use original
7873 entity for variable declaration, to ensure that debugging information
7874 is correcty generated.
7875 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
7876 routines if the expander is not active.
7877 (Analyze_Task_Body): Mark all handlers to stop optimization of local
7878 raise, since special things happen for task exception handlers.
7880 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
7881 concurrent types declared within a generic.
7882 (Check_Dispatching_Operation): Do not emit warning about late interface
7883 operations in the context of an instance.
7884 (Check_Dispatching_Call): Remove restriction against calling a
7885 dispatching operation with a limited controlling result.
7886 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
7887 Register_Interface_DT_Entry by calls to Register_Primitive.
7888 (Check_Dispatching_Formals): Handle properly a function with a
7889 controlling access result.
7891 2007-06-06 Robert Dewar <dewar@adacore.com>
7892 Arnaud Charlet <charlet@adacore.com>
7894 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
7895 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
7896 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
7897 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
7898 message when using a VM, since this attribute is not supported.
7899 (Analyze_Record_Representation_Clause): Give unrepped component warnings
7901 * usage.adb: Add new warning for renaming of function return objects
7902 Indicate that -gnatwp and -gnatwP concern front-end inlining
7903 Add line for -gnatyg
7904 Add usage information for -gnatw.c/C
7906 2007-06-06 Robert Dewar <dewar@adacore.com>
7907 Ed Schonberg <schonberg@adacore.com>
7910 (Find_Var): Do not consider function call in test for infinite loop
7911 warning if warnings set off for function entity.
7912 (One_Bound): Do not create a temporary for a loop bound if it is a
7914 (Analyze_Assignment): Traverse the right hand side of an assignment and
7915 mark all allocators as static coextensions.
7916 (Analyze_Assignment): Exempt assignments involving a dispatching call
7917 to a function with a controlling access result from the check requiring
7918 the target to be class-wide.
7920 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7921 Ed Schonberg <schonberg@adacore.com>
7922 Robert Dewar <dewar@adacore.com>
7923 Javier Miranda <miranda@adacore.com>
7925 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
7926 chain of coextensions when an allocator serves as the root of such a
7928 (Propagate_Coextensions): Remove the test for the root being an
7930 (Resolve_Allocator): Add condition to ensure that all future decoration
7931 occurs on an allocator node. Add processing and cleanup for static
7933 (Valid_Conversion): If the operand type is the limited view of a
7934 class-wide type, use the non-limited view is available to determine
7935 legality of operation.
7936 (Ambiguous_Character): move to spec, for use elsewhere.
7937 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
7938 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
7940 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
7941 Do_Division_Check flag explicitly.
7942 (Resolve_Actuals): If the actual is of a synchronized type, and the
7943 formal is of the corresponding record type, this is a call to a
7944 primitive operation of the type, that is declared outside of the type;
7945 the actual must be unchecked-converted to the type of the actual
7946 (Resolve_Call): Kill all current values for any subprogram call if
7947 flag Suppress_Value_Tracking_On_Call is set.
7948 (Resolve_Type_Conversion): Generate error message the the operand
7949 or target of interface conversions come from a limited view.
7950 (Check_Infinite_Recursion): Ignore generated calls
7951 (Check_Allocator_Discrim_Accessibility): New procedure for checking
7952 that an expression that constrains an access discriminant in an
7953 allocator does not denote an object with a deeper level than the
7954 allocator's access type.
7955 (Resolve_Allocator): In the case of an allocator initialized by an
7956 aggregate of a discriminated type, check that associations for any
7957 access discriminants satisfy accessibility requirements by calling
7958 Check_Allocator_Discrim_Accessibility.
7959 (Resolve_Equality_Op): Handle comparisons of anonymous access to
7960 subprogram types in the same fashion as other anonymous access types.
7961 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
7962 message that is not a continuation message.
7963 (Resolve_Type_Conversion): Add missing support for conversion to
7965 (Resolve_Actuals): Introduce a transient scope around the call if an
7966 actual is a call to a function returning a limited type, because the
7967 resulting value must be finalized after the call.
7968 (Resolve_Actuals): If the call was given in prefix notations, check
7969 whether an implicit 'Access reference or implicit dereference must be
7970 added to make the actual conform to the controlling formal.
7972 2007-06-06 Robert Dewar <dewar@adacore.com>
7973 Javier Miranda <miranda@adacore.com>
7975 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
7976 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
7977 overriding of an inherited private subprogram now there is no need to
7978 inherit its dispatching slot and reduce the size of the dispatch table.
7979 Set_All_DT_Position now ensures that the same slot is now assigned to
7980 both entities. This is required to statically build the dispatch table.
7981 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
7982 of calling Set_All_DT_Position to re-evaluate the position of the
7983 entries in the dispatch table. Such reevaluation is not desired if
7984 the tagged type is already frozen.
7986 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7987 Gary Dismukes <dismukes@adacore.com>
7988 Robert Dewar <dewar@adacore.com>
7989 Javier Miranda <miranda@adacore.com>
7991 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
7992 reference acts as an lvalue when the attribute name modifies the prefix
7993 (Is_Coextension_Root): New routine.
7994 (Mark_Static_Coextensions): New routine.
7995 (Type_Access_Level): Revise code for checking the level of the
7996 anonymous access type of a return object.
7997 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
7998 (Matches_Prefixed_View_Profile): Remove the no longer necessary
7999 retrieval of the corresponding controlling record type.
8000 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
8001 concurrent types declared within a generic as well as class wide types.
8002 Emit a mode incompatibility error whenever a protected entry or routine
8003 override an interface routine whose first parameter is not of mode
8004 "out", "in out" or access to variable.
8005 (Overrides_Synchronized_Primitive): Rename to
8006 Find_Overridden_Synchronized_Primitive.
8007 (Collect_Interface_Components): New subprogram that collects all the
8008 components of a tagged record containing tags of secondary dispatch
8010 (Add_Global_Declaration): New procedure
8011 (Abstract_Interface_List): Handle properly the case of a subtype of a
8013 (Type_Access_Level): In the case of a type whose parent scope is a
8014 return statement, call Type_Access_Level recursively on the enclosing
8015 function's result type to determine the level of the return object's
8017 (Build_Elaboration_Entity): Build name of elaboration entity from the
8018 scope chain of the entity, rather than the unit name of the file name.
8019 (Check_Nested_Access): New procedure.
8020 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
8021 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8022 (Get_Renamed_Entity): Utility routine for performing common operation
8023 of chasing the Renamed_Entity field of an entity.
8025 2007-06-06 Robert Dewar <dewar@adacore.com>
8027 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
8029 (Check_A_Call): Add check for entry call which was causing blowup
8031 2007-06-06 Olivier Hainque <hainque@adacore.com>
8033 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
8034 special code on ia64-vms to handle major incompatibilities between the
8035 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
8036 this routine with a very different set of arguments and expectations on
8039 2007-06-06 Thomas Quinot <quinot@adacore.com>
8041 * socket.c (__gnat_close_signalling_fd): New function.
8042 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
8043 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
8044 New supporting functions for task safe Netdb operations.
8046 2007-06-06 Thomas Quinot <quinot@adacore.com>
8047 Olivier Hainque <hainque@adacore.com>
8049 * a-except-2005.ads, a-except-2005.adb
8050 (Raise_From_Controlled_Operation): New procedure in
8051 (private part of) Ada.Exceptions (standard runtime version). Used to
8052 provide informational exception message when Program_Error is raised as
8053 a result of an Adjust or Finalize operation propagating an exception.
8054 (Rmsg_28): Fix description for E.4(18) check.
8055 (Raise_Current_Excep): Call Debug_Raise_Exception just before
8056 propagation starts, to let debuggers know about the event in a reliable
8058 Take the address of E and dereference to make sure it is homed on stack
8059 and prevent the stores from being deleted, necessary for proper
8060 debugger behavior on "break exception" hits.
8061 (Local_Raise): Moved to System.Exceptions
8063 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
8064 exception message from the current occurrence and raise Program_Error
8065 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
8067 2007-06-06 Jose Ruiz <ruiz@adacore.com>
8068 Arnaud Charlet <charlet@adacore.com>
8070 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
8073 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
8074 priority associated to a lock.
8076 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
8077 assertion to take into account case of no abort restriction.
8078 (Initialize_Protection_Entries): Add initialization for the field
8079 New_Ceiling associated to the protected object.
8080 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
8083 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
8084 since this function needs to be set consistently with Update_Exception.
8086 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
8087 since this function needs to be set consistently with Update_Exception.
8089 * s-taskin.ads: Update comments on
8090 Interrupt_Server_Blocked_On_Event_Flag.
8091 (Unbind_Handler): Fix handling of server_task wakeup
8092 (Server_Task): Set self's state so that Unbind_Handler can take
8093 appropriate actions.
8094 (Common_ATCB): Now use a constant from System.Parameters to determine
8095 the max size of the Task_Image field.
8097 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
8098 Initialize_Analyzer function.
8099 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
8100 take into account case of no abort restriction.
8101 ([Vulnerable_]Complete_Master): Modify assertion.
8103 * s-tataat.adb (Finalize): Use the nestable versions of
8104 Defer/Undefer_Abort.
8106 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
8108 * s-tpobop.ads: Update comments.
8110 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
8111 of locking the object manually, to avoid inconsistencies between
8112 Lock/Unlock_Entry assertions.
8114 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
8116 application and System.Parameters.No_Abort is True.
8117 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
8118 (Unbind_Handler): Fix handling of server_task wakeup
8119 (Server_Task): Set self's state so that Unbind_Handler can take
8120 appropriate actions.
8122 2007-06-06 Thomas Quinot <quinot@adacore.com>
8124 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
8125 declarations instead of an explicit null body, for conciseness.
8127 2007-06-06 Robert Dewar <dewar@adacore.com>
8129 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
8130 illegal aggregate and the type is still Any_Composite.
8131 (Subtypes_Statically_Match): Fix problem of empty discriminant list
8133 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8135 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
8136 to prevent subsequent expansion.
8138 2007-06-06 Robert Dewar <dewar@adacore.com>
8140 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
8142 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8143 Robert Dewar <dewar@adacore.com>
8145 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
8147 (Write_Itype): Handle case of string literal subtype, which
8148 comes up in this context.
8149 (Update_Itype): when debugging expanded code, update sloc of itypes
8150 associated with defining_identifiers and ranges, for gdb use.
8151 (Sprint_Node_Actual): Add static keyword to object or exception
8152 declaration output if Is_Statically_Allocated is True.
8153 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
8154 or task body, so that the tree carries the proper Sloc information for
8156 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
8158 2007-06-06 Arnaud Charlet <charlet@adacore.com>
8160 * s-secsta.adb (Chunk): Ensure this object has a static size known at
8161 compile time, to avoid dynamic memory allocation
8162 (Elaboration code): Only use dynamic memory allocation when needed.
8164 2007-06-06 Quentin Ochem <ochem@adacore.com>
8166 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
8168 (Stack_Analyzer): Added field "Overflow_Guard"
8169 (Task_Result): Added field "Overflow_Guard".
8170 (Index_Str): New constant.
8171 (Task_Name_Str): New constant.
8172 (Actual_Size_Str): New constant.
8173 (Pattern_Array_Element_Size): New constant.
8174 (Get_Usage_Range): New subprogram.
8175 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
8176 Now align the output.
8178 (Initialize): Added value for Overflow_Guard.
8179 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
8180 Update the value of the overflow guard according to the actual
8181 beginning of the pattern array.
8182 (Initialize_Analyzer): Added parameter Overflow_Guard.
8183 Take this parameter into accound when computing the max size.
8184 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
8185 (Report_Result): Removed extra useless procedure.
8186 Updated call to Output_Result.
8187 Moved full computation of the Task_Result here.
8189 2007-06-06 Thomas Quinot <quinot@adacore.com>
8191 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
8192 Thread_Blocking_IO, always True by default, set False on a per-runtime
8194 Add Windows-specific constants
8195 Add new constant Need_Netdb_Buffer.
8196 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
8197 not, whether to use getXXXbyYYY_r.
8199 * gsocket.h: Add new constant Need_Netdb_Buffer.
8200 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
8201 not, whether to use getXXXbyYYY_r.
8203 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
8205 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
8206 than their first call.
8207 Add type Dummy_Communication_Block used in the generation of the pre-
8208 defined dispatching primitive _disp_asynchronous_select.
8209 (Storage_Element): Put Pragma Universal_Aliasing on it.
8211 2007-06-06 Vincent Celier <celier@adacore.com>
8213 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
8216 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
8217 letter if it is not followed by a '/' or a '\'.
8218 (Windows): New Boolean function
8220 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
8222 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
8224 (Containing_Directory): Raise Use_Error when the directory is a root
8226 (Extension): When returning the result, use a conversion to Result_Type,
8227 not a qualification.
8229 2007-06-06 Robert Dewar <dewar@adacore.com>
8231 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
8232 (Set_Style_Check_Options): Recognize new -gnatyg style switch
8234 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
8235 Warn_On_Non_Local_Exception to False, to turn off warnings for
8236 No_Exception_Propagation in ZFP runtime.
8237 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
8239 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
8241 2007-06-06 Vincent Celier <celier@adacore.com>
8243 * switch-b.adb (Scan_Binder_Switches): Add processing for new
8246 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
8247 (Scan_Make_Switches): Recognize new switch -aP
8249 2007-06-06 Matthew Gingell <gingell@adacore.com>
8250 Jose Ruiz <ruiz@adacore.com>
8252 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
8253 VxWorks task descriptor in the Ada run time, call a C subprogram
8254 (__gnat_get_stack_info) that extracts the required information.
8256 * sysdep.c: Back out temporary lynxos workaround.
8257 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
8258 time the stack information associated to the currently executing task.
8259 Only VxWorks systems require this function.
8261 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
8263 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
8264 add the stack bias if the offset is computed from a frame address.
8265 (__gnat_backtrace): Adjust for above change.
8267 2007-06-06 Thomas Quinot <quinot@adacore.com>
8269 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
8270 PE_Non_Transportable_Actual.
8271 (By_Descriptor_Last): New constant.
8272 (By_Copy_Return): Likewise.
8274 2007-06-06 Vincent Celier <celier@adacore.com>
8276 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
8279 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
8280 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
8281 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
8282 Add missing comment for /OPTIMIZE=SPACE
8283 Add entry for OPTIMIZE=SPACE
8284 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
8285 Add documentation for new qualifiers corresponding to -gnatw.c/.C
8287 2007-06-06 Vincent Celier <celier@adacore.com>
8288 Robert Dewar <dewar@adacore.com>
8290 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
8293 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
8294 Document gnatbind switch -a
8295 (case Constructions): Document that variables declarations are allowed
8296 for previously declared variables.
8297 Fix external lib project example
8298 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
8299 Indicate that "#if not X or Y then" is not allowed in input files to
8301 Document gnatw.x and gnatw.X warning flags
8302 Mention -Winline switch to activate warnings when back-end inlining is
8304 Add gnatcheck rule descriptions
8305 Describe how to use the GNAT driver to call a tool on a closure.
8306 Describe how to run project-wide checks or metrics.
8307 Document gnatbind's -R option
8308 Updated to account for Ada 2005 support
8310 * gnat_rm.texi (Case Construction): Allow variable declarations for
8311 previously declared variables.
8312 (Representation Clauses and Pragmas): Lift restriction on alignment
8313 clauses for record types.
8314 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
8315 Document No_Exception_Propagation restriction
8316 Document No_Body pragma
8317 Updated to account for Ada 2005 support; corrected some typos
8318 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
8320 * gnat-style.texi: Make it clear that we never use mode IN for
8321 procedures or functions
8323 * ug_words: Add entries for -gnatw.x and -gnatw.X
8324 Add entries for -gnatw.c/.C
8326 2007-06-06 Pascal Obry <obry@adacore.com>
8327 Vincent Celier <celier@adacore.com>
8329 * makegpr.adb (Add_Archive_Path): Use untouched object and library
8330 dirs and library name.
8331 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
8333 (Build_Library): Idem.
8334 (Compile_Individual_Sources): Idem.
8335 (Compile_Link_With_Gnatmake): Idem.
8336 (Compile_Sources): Idem.
8337 (Get_Imported_Directories): Idem.
8338 (Link_Executables): Idem. Same change for the executable dir.
8339 (Check_Compilation_Needed): C_Source_Path new variable containing
8340 the canonical form of Source_Path to check against the source names
8341 in the dependency file.
8342 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
8343 verbose mode, display the name of the object directory we're changing
8345 (Saved_Switches): New name of table X_Switches
8346 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
8347 (Usage): New line for switch -aP
8348 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
8349 testing if a directory should be added to the search path.
8351 2007-06-06 Javier Miranda <miranda@adacore.com>
8353 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
8354 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
8355 declaration after freezing point of all its associated tagged types;
8356 otherwise such types are frozen too early.
8358 2007-06-06 Robert Dewar <dewar@adacore.com>
8360 * a-reatim.adb: Documentation addition
8362 * g-cgideb.adb: Minor code reorganization
8364 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
8365 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
8366 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
8368 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
8369 function. Change name New_Scope to Push_Scope
8370 (Get_Debug_Flag_K): Remove unused obsolete function.
8372 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
8375 * makeusg.adb: Update Copyright notice
8376 Add line for switch -aP
8378 * makeusg.adb: Fix wording of some usage messages
8380 * s-assert.adb (Raise_Assert_Failure): Add call to
8381 Debug_Raise_Assert_Failure.
8383 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
8384 (2, Standard'Alignment) for compatibility with AAMP (where alignment
8385 is restricted to 1).
8387 * s-wchjis.adb: Remove use of System.Pure_Exceptions
8389 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
8390 node location to No_Location when we're not debugging the expanded
8393 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
8395 * misc.c (enumerate_modes): Consider log2_b to always be one.
8397 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
8399 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
8401 2007-05-02 Pascal Obry <obry@adacore.com>
8403 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
8404 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
8405 encoding support of Stream_IO.
8408 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
8409 filename and corresponding encoding to match the OS requirement.
8410 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
8411 routine will fail on specific devices like CON: AUX: ...
8413 PR ada/29856: Add missing braces
8415 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
8418 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
8420 2007-04-21 Jan Hubicka <jh@suse.cz>
8422 * misc.c (gnat_expand_body): Don't call target for destructors,
8423 avoid redundant check on syntax errors.
8425 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
8427 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
8428 instead of checking GIMPLE_STMT_P in chain_next.
8430 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
8433 * system-linux-alpha.ads: Disable constant condition warning for the
8434 Default_Bit_Order variable.
8435 * system-linux-s390.ads: Likewise.
8436 * system-linux-s390x.ads: Likewise.
8437 * system-linux-sparc.ads: Likewise.
8439 2007-04-06 Javier Miranda <miranda@adacore.com>
8440 Matt Heaney <heaney@adacore.com>
8441 Robert Dewar <dewar@adacore.com>
8443 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
8444 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
8445 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
8446 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
8447 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
8448 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
8449 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
8450 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
8451 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
8452 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
8453 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
8454 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
8455 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
8456 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
8457 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
8458 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
8459 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
8460 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
8461 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
8462 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
8463 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
8464 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
8465 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
8466 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
8467 s-taprop-tru64.adb, s-taprop-irix.adb,
8468 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
8469 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
8470 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
8471 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
8472 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
8473 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
8474 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
8475 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
8476 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
8477 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
8478 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
8479 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
8480 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
8481 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
8482 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
8483 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
8484 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
8485 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
8486 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
8487 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
8489 Update documentation.
8492 2007-04-06 Robert Dewar <dewar@adacore.com>
8494 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
8495 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8496 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
8497 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
8498 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
8499 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8500 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
8501 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
8502 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
8503 system-hpux-ia64.ads, targparm.adb,
8504 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
8506 * system.ads: Move Functions_Return_By_DSP to obsolete section,
8507 kept for bootstrap purposes only.
8509 2007-04-06 Arnaud Charlet <charlet@adacore.com>
8511 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
8512 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
8513 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
8514 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
8516 2007-04-06 Robert Dewar <dewar@adacore.com>
8518 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
8519 (Local_Raise): New dummy procedure called when a raise is converted
8520 to a local goto. Used for debugger to detect that the exception
8523 * debug.adb: Document new d.g flag (expand local raise statements to
8524 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
8526 * exp_sel.adb: Use Make_Implicit_Exception_Handler
8528 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
8529 suppress warnings for unused handlers.
8530 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
8531 warnings for raise statements not handled locally.
8532 (Get_RT_Exception_Entity): New function
8533 (Get_Local_Call_Entity): New function
8534 (Find_Local_Handler): New function
8535 (Warn_If_No_Propagation): New procedure
8536 (Expand_At_End_Handler): Call Make_Implicit_Handler
8537 (Expand_Exception_Handlers): Major additions to deal with local handlers
8538 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
8539 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
8542 * exp_ch11.ads (Get_RT_Exception_Entity): New function
8543 (Get_Local_Call_Entity): New function
8545 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
8546 of restrictions that the binder will never suggest adding.
8548 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
8551 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
8552 be with'ed in the presence of pragma Restriction
8553 (No_Exception_Propagation).
8555 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
8557 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
8558 parameter, then the handler is not a suitable target for a local raise,
8559 and this is a violation of restriction No_Exception_Propagation.
8560 (Analyze_Handled_Statements): Analyze choice parameters in exception
8561 handlers before analyzing statement sequence (needed for proper
8562 detection of local raise statements).
8563 (Analyze_Raise_Statement): Reraise statement is a violation of the
8564 No_Exception_Propagation restriction.
8566 * s-rident.ads: Add new restriction No_Exception_Propagation
8568 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
8569 function, like Make_Exception_Handler but sets Local_Raise_Statements
8571 (Add_Unique_Serial_Number): Deal with case where this is called during
8572 processing of configuration pragmas.
8574 2007-04-06 Thomas Quinot <quinot@adacore.com>
8575 Pat Rogers <rogers@adacore.com>
8576 Pascal Obry <obry@adacore.com>
8578 * g-stsifd-sockets.adb: New file.
8580 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
8581 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
8582 g-socthi-vms.adb: Move signalling
8583 fd management to a nested package, so that they can conveniently be
8584 moved to a subunit that is shared across Windows, VMS, and VxWorks
8585 (Ada implementation) or completed with imported bodies from socket.c
8587 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
8589 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
8590 the signalling file descriptor.
8591 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
8592 signalling file descriptor.
8593 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
8594 instead of creating a pair of sockets for signalling here.
8596 * g-socthi.adb: Ditto.
8597 Set the runtime process to ignore SIGPIPEs on platforms that support
8598 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
8600 * g-socthi-mingw.adb: Ditto.
8601 (WS_Version): Use Windows 2.2.
8602 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
8604 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
8605 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
8607 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
8608 added GNAT byte swapping facility
8609 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
8611 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
8613 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
8615 (__gnat_create_signalling_fds): New subprogram.
8616 Set the runtime process to ignore SIGPIPEs on platforms that support
8617 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
8619 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
8620 Vincent Celier <celier@adacore.com>
8622 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
8623 New version of Ada.Calendar which supports the new upper bound of Ada
8624 time (2399-12-31 86_399.999999999).
8625 The following modifications have been made to the package:
8626 - New representation of time as count of nanoseconds since the start of
8627 Ada time (1901-1-1 0.0).
8628 - Target independent Split and Time_Of routines which service both
8629 Ada 95 and Ada 2005 code.
8630 - Target independent interface to the Ada 2005 children of Calendar.
8631 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
8632 - Handling of non-leap centenial years.
8633 - Updated clock function.
8634 - Updated arithmetic and comparison operators.
8636 * a-caldel.adb (To_Duration): Add call to target independent routine in
8637 Ada.Calendar to handle the conversion of time to duration.
8639 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
8641 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
8643 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
8644 targets do not have a natural time zone, GMT is used as a default.
8645 (__gnat_get_task_options): New.
8647 * a-direct.adb (Modification_Time): Add with and use clauses for
8648 Ada.Calendar and Ada.
8649 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
8650 since it is no longer needed.
8651 (Duration_To_Time): Removed.
8652 (OS_Time_To_Long_Integer): Removed.
8653 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
8654 Formatting Time_Of routines which automatically handle time zones,
8655 buffer periods and leap seconds.
8657 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
8658 target independent routines in Ada.Calendar.
8660 * a-calfor.ads, a-calfor.adb:
8661 Code cleanup and addition of validity checks in various routines.
8662 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
8665 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
8666 independent routine in Ada.Calendar.
8668 2007-04-06 Olivier Hainque <hainque@adacore.com>
8671 (convert_addresses): Adjust prototype and dummy definition to expect an
8672 extra file_name argument.
8674 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
8675 filling the now expected file_name argument with the appropriate
8677 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
8678 (tracebk): Array of void * instead of char *, corresponding to what
8679 convert_addresses expects.
8680 (exename): New static global, to hold the executable file name to be
8681 used in all convert_addresses invocations.
8682 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
8684 (__gnat_gmem_a2l_initialize): Resolve exename.
8685 (__gnat_convert_addresses): Use exename as the convert_addresses
8688 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
8689 "convert_addresses", now expecting a filename argument. Import the
8690 necessary entities to compute the filename to use and pass it to
8693 2007-04-06 Matt Gingell <gingell@adacore.com>
8695 * system-aix.ads: Back out previous change.
8696 (Functions_Return_By_DSP): Removed
8698 2007-04-06 Pascal Obry <obry@adacore.com>
8700 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
8701 or the monotonic used by Ada.Real_Time) to compute the sleep duration
8704 2007-04-06 Jose Ruiz <ruiz@adacore.com>
8706 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
8707 function. Its value changes in different VxWorks versions, and it is
8708 now handled by the function __gnat_get_task_options.
8710 * s-taprop-vxworks.adb (Create_Task): Call the function
8711 __gnat_get_task_options to get the required options for creating a task.
8713 2007-04-06 Pascal Obry <obry@adacore.com>
8714 Thomas Quinot <quinot@adacore.com>
8716 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
8717 dealing with filename.
8718 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
8719 filename from a standard string to a wide-string depending on the
8721 (__gnat_freopen): Idem.
8722 (__gnat_current_time): New function (wrapper for time(3) standard C
8725 * g-os_lib.ads (Current_Time): New function. Returns the current
8726 system time as an OS_Time value.
8728 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
8729 (Monotonic_Clock): Same.
8731 2007-04-06 Quentin Ochem <ochem@adacore.com>
8733 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
8735 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
8737 2007-04-06 Jose Ruiz <ruiz@adacore.com>
8739 * a-retide.adb: Add elaboration code to ensure that the tasking run
8740 time is initialized when using delay operations even when no task is
8743 2007-04-06 Javier Miranda <miranda@adacore.com>
8745 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
8746 component Num_Prim_Ops.
8747 (Set_Num_Prim_Ops): Removed.
8748 Remove all the assertions because all the routines of this
8749 package are inline always.
8750 (Get_Offset_Index): Add support to primary dispatch tables.
8751 Move the documentation about the dispatch table to a-tags.ads
8752 (Set_External_Tag): Removed
8753 (Inherit_TSD): Removed.
8754 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
8756 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
8757 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
8758 of the TSD field "Table" because this field has been renamed to
8760 (Inherit_CPP_DT): Removed.
8761 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
8762 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
8763 declarations have been moved to a-tags.ads
8764 (Check_Size): Removed.
8765 (Expanded_Name): Updated to get access to the new field of TSD
8766 containing the address of the expanded name.
8767 (Get_Access_Level/Set_Access_Level): Removed.
8768 (Get_Predefined_Prim_Op_Address): Removed.
8769 (Set_Predefined_Prim_Op_Address): Removed.
8770 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
8771 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
8772 (Set_Expanded_Name): Removed.
8773 (Inherit_DT): Removed.
8774 (Inherit_CPP_DT): Removed.
8775 (Set_RC_Offset): Removed.
8777 (Base_Address): New function that displaces "this" to point to the base
8778 of the object (that is, to point to the primary tag of the object).
8780 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8781 Javier Miranda <miranda@adacore.com>
8783 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
8784 anonymous access component, do not create a master_id if type already
8785 has one, as may happen if the type is a subcomponent of a packed array
8787 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
8788 Initialize_Tag): Remove code associated with the old CPP pragmas.
8789 CPP_Virtual and CPP_Vtable are no longer supported.
8790 (Build_Offset_To_Top_Internal): Add support for concurrent record types
8791 (Build_Offset_To_Top_Functions): Add support for concurrent record types
8792 (Freeze_Record_Type): Remove call to
8793 Init_Predefined_Interface_Primitives.
8794 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
8795 code required to initialize the tags of the secondary dispatch tables.
8796 This leaves the algoritm more clear.
8797 (Init_Secondary_Tags): Add support for concurrent record types
8798 (Make_Predefined_Primitive_Specs): Code cleanup.
8799 (Predefined_Primitive_Bodies): Code cleanup.
8800 (Build_Master_Renaming): New local subprogram.
8801 (Expand_N_Full_Type_Declaration): Build the master_id associated with
8802 anonymous access to task type components.
8803 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
8804 subtype indication are resolved during analysis, and must not be done
8806 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
8808 2007-04-06 Geert Bosch <bosch@adacore.com>
8809 Ed Schonberg <schonberg@adacore.com>
8810 Javier Miranda <miranda@adacore.com>
8811 Bob Duff <duff@adacore.com>
8813 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
8814 for conversion of a Float_Type'Truncation to integer.
8816 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
8817 check if a node is an attribute that can be handled directly by the
8819 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
8820 attributes that can be handled directly by the back end.
8821 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
8822 use new predicate Is_Access_Protected_Subprogram_Type.
8823 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
8824 and Unchecked_Union if it is generated as part of the default Output
8825 procedure for a type with default discriminants.
8826 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
8827 if we are compiling under restriction No_Dispatching_Calls.
8828 (Constrained): Use Underlying_Type, in case the type is private without
8829 discriminants, but the full type has discriminants.
8830 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
8831 call to Build_Get_Access_Level.
8832 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
8833 interface objects requires a call to the run-time subprogram that
8834 returns the base address of the object.
8835 (Valid_Conversion): Improve error message on illegal attempt to store
8836 an anonymous access to subprogram value into a record component.
8838 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
8840 (Simplify_Type_Conversion): New procedure that performs simplification
8841 of Int_Type (Float_Type'Truncation (X)).
8842 (Resolve_Type_Conversion): Call above procedure after resolving operand
8843 and before performing checks. This replaces the existing ineffective
8845 (Set_String_Literal_Subtype): When creating the internal static lower
8846 bound subtype for a string literal, use a newly created copy of the
8847 subtree representing the lower bound.
8848 (Resolve_Call): Exclude build-in-place function calls from transient
8849 scope treatment. Update comments to describe this exception.
8850 (Resolve_Equality_Op): In case of dispatching call check violation of
8851 restriction No_Dispatching_Calls.
8852 (Resolve_Call): If the call returns an array, the context imposes the
8853 component type of the array, and the function has one non-defaulted
8854 parameter, rewrite the call as the indexing of a call with a single
8855 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
8857 (Resolve_Actuals): If an actual is an allocator for an access parameter,
8858 the master of the created object is the innermost enclosing statement.
8859 (Remove_Conversions): For a binary operator, check if type of second
8860 formal is numeric, to check if an abstract interpretation is present
8861 in the case of exponentiation as well.
8863 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8864 Bob Duff <duff@adacore.com>
8866 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
8867 copying a parameter list in a call, set properly the First_Named_Formal
8868 and Next_Named_Formal fields in the new list and in the enclosing call.
8869 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
8870 names, to ease typing in the debugger. Improve comments.
8871 (Watch_Node): New variable, intended to be set in the debugger.
8872 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
8873 called when the watched node is created.
8874 (New_Node_Debugging_Output): Combined version of local procedures
8875 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
8876 with a parameter so that conditional breakpoints like "if Node = 12345"
8878 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
8881 2007-04-06 Thomas Quinot <quinot@adacore.com>
8882 Ed Schonberg <schonberg@adacore.com>
8883 Gary Dismukes <dismukes@adacore.com>
8885 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
8886 required for a conversion between two access-to-unconstrained-array
8888 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
8889 to discriminant constraints on discriminant objects. This rule must
8890 apply as well to discriminants of protected types in private components.
8891 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
8892 object of a null-excluding access type then don't require the
8893 the object declaration to have an expression and don't emit a
8896 2007-04-06 Arnaud Charlet <charlet@adacore.com>
8897 Eric Botcazou <botcazou@adacore.com>
8899 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
8902 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
8903 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
8906 * fe.h (Compiler_Abort): Add third parameter.
8908 * misc.c (internal_error_function): Build third argument from current
8909 input location and pass it to Compiler_Abort.
8911 2007-04-06 Gary Dismukes <dismukes@adacore.com>
8913 * cstand.adb (Create_Standard): When the target's storage unit size is
8914 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
8917 2007-04-06 Nicolas Roche <roche@adacore.com>
8919 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
8920 absolute path can have the following form: device:/a/b. In this case
8921 '/' should be inserted between the path and the filename.
8923 2007-04-06 Olivier Hainque <hainque@adacore.com>
8924 Eric Botcazou <botcazou@adacore.com>
8926 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
8927 VAR_DECL to a CONST_DECL we make for a public constant when we know the
8928 corresponding definition has created the so made visible variable.
8929 Handle anonymous access to protected subprogram.
8930 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
8931 object with an address clause volatile. Re-enable original fix.
8932 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
8934 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
8935 associated with either the Equivalent or Root type, instead of the
8937 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
8938 subtree for every field of a global record type.
8939 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
8940 discriminants, invoke again variable_size on its newly computed sizes.
8942 2007-04-06 Robert Dewar <dewar@adacore.com>
8943 Thomas Quinot <quinot@adacore.com>
8944 Ed Schonberg <schonberg@adacore.com>
8945 Bob Duff <duff@adacore.com>
8947 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
8948 (Next_Component_Or_Discriminant): New function and procedure
8949 (First_Index, First_Literal, Master_Id,
8950 Set_First_Index, Set_First_Literal, Set_Master_Id):
8951 Add missing Ekind assertions.
8952 (Is_Access_Protected_Subprogram_Type): New predicate.
8953 (Has_RACW): New entity flag, set on package entities to indicate that
8954 the package contains the declaration of a remote accecss-to-classwide
8956 (E_Return_Statement): This node type has the Finalization_Chain_Entity
8957 attribute, in case the result type has controlled parts.
8958 (Requires_Overriding): Add this new flag, because "requires
8959 overriding" is subtly different from "is abstract" (see AI-228).
8960 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
8961 Is_Abstract_Type. Make sure these are called only when appropriate.
8962 (Has_Pragma_Unreferenced_Objects): New flag
8964 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
8965 class-wide, the tag of the right-hand side must be an exact match, not
8966 an ancestor of that of the object on left-hand side.
8967 (Move_Activation_Chain): New procedure to create the call to
8968 System.Tasking.Stages.Move_Activation_Chain.
8969 (Expand_N_Extended_Return_Statement): Generate code to call
8970 System.Finalization_Implementation.Move_Final_List at the end of a
8971 return statement if the function's result type has controlled parts.
8972 Move asserts to Build_In_Place_Formal.
8973 (Move_Final_List): New function to create the call statement.
8974 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
8975 tagged type, replace generation of call to the run-time subprogram
8976 CW_Membership by call to Build_CW_Membership.
8977 (Expand_N_Return_Statement): Replace generation of call to the run-time
8978 subprogram Get_Access_Level by call to Build_Get_Access_Level.
8979 (Expand_N_Simple_Function_Return): Replace generation of call to the
8980 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8982 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
8983 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
8984 access to protected operations.
8985 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
8986 master and chain actual parameters to a build-in-place function call
8988 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
8990 (Make_Build_In_Place_Call_In_Allocator,
8991 Make_Build_In_Place_Call_In_Anonymous_Context,
8992 Make_Build_In_Place_Call_In_Assignment,
8993 Make_Build_In_Place_Call_In_Object_Declaration): Call
8994 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
8995 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
8996 stubbed procedure with a null body, replace the call with a null
8997 statement without using the full inlining machinery, for efficiency
8998 and to avoid invalid values in source file table entries.
9000 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
9001 renamings of calls to build-in-place functions.
9003 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
9004 provides the functionality of RTE_Available to record components.
9005 (RTU_Entity): The function Entity has been renamed to RTU_Entity
9006 to avoid undesired overloading.
9007 (Entity): New subprogram that returns the entity for the referened
9008 unit. If this unit has not been loaded, it returns Empty.
9009 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
9010 Remove no longer used entities.
9011 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
9012 (RE_Type_Specific_Data): New entity.
9013 (RE_Move_Any_Value): New entity.
9014 (RE_TA_A, RE_Get_Any_Type): New entities.
9015 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
9016 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
9017 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
9018 (Entity): New subprogram that returns the entity for the referened
9019 unit. If this unit has not been loaded, it returns Empty.
9020 (RTE): Addition of a new formal that extends the search to the scopes
9021 of the record types found in the chain of the package.
9023 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
9024 "abstract subprograms must be visible" message, whether or not the type
9025 is an interface; that is, remove the special case for interface types.
9026 (Analyze_Function_Return): Remove error message "return of task objects
9027 is not yet implemented" because this is now implemented.
9028 (Create_Extra_Formals): Add the extra master and activation chain
9029 formals in case the result type has tasks.
9030 Remove error message "return of limited controlled objects is not yet
9032 (Create_Extra_Formals): Add the extra caller's finalization list formal
9033 in case the result type has controlled parts.
9034 (Process_Formals): In case of access formal types there is no need
9035 to continue with the analysis of the formals if we already notified
9037 (Check_Overriding_Indicator): Add code to check overriding of predefined
9039 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
9040 flags for formals that do not require them,.
9041 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
9042 hidden entity is use visible or directly visible.
9043 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
9044 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
9045 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
9046 New_Overloaded_Entity): Split Is_Abstract flag into
9047 Is_Abstract_Subprogram and Is_Abstract_Type.
9049 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
9050 a return statement's finalization list to the caller's list, used for
9051 build-in-place functions with result type with controlled parts.
9052 Remove no longer used entities.
9054 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
9055 longer needed, because the full type is now limited, and therefore a
9056 pass-by-reference type.
9057 (Foreign_Task_Level): New constant.
9059 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
9060 move tasks from the activation chain belonging to a return statement to
9061 the one passed in by the caller, and update the master to the one
9062 passed in by the caller.
9063 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
9064 of unactivated tasks, so we don't kill the ones that are being returned
9065 by a build-in-place function.
9066 (Create_Task): Ignore AI-280 for foreign threads.
9068 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9069 Robert Dewar <dewar@adacore.com>
9070 Bob Duff <duff@adacore.com>
9071 Gary Dismukes <dismukes@adacore.com>
9073 * errout.adb (Unwind_Internal_Type): Use predicate
9074 Is_Access__Protected_Subprogram_Type.
9076 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
9077 (Freeze_Entity, packed array case): Do not override explicitly set
9078 alignment and size clauses.
9079 (Freeze_Entity): An entity declared in an outer scope can be frozen if
9080 the enclosing subprogram is a child unit body that acts as a spec.
9081 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
9082 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
9083 Remove all code for DSP option
9085 * layout.adb (Layout_Record_Type): Use First/
9086 Next_Component_Or_Discriminant
9087 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
9088 to handle properly the anonymous access case.
9090 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
9091 for all access attributes, because overload resolution should work the
9092 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
9093 causes the error message for the ambiguous "X'Access = Y'Access" and
9094 "X'Unrestricted_Access = Y'Access" and so forth to match.
9095 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
9096 now that anonymous access to protected operations have their own kind.
9097 (Resolve_Attribute): In case of dispatching call check the violation of
9098 restriction No_Dispatching_Calls.
9099 (Check_Array_Type): Check new -gnatyA array index style option
9101 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
9102 attempt to derive from a synchronized tagged type.
9103 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
9104 type, inherit the class-wide type already created, because it may
9105 already have been used in a self-referential anonymous access component.
9106 (Mentions_T): Recognize self-referential anonymous access components
9107 that use (a subtype of) the class-wide type of the enclosing type.
9108 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
9109 Derived_Type for Prev formal on call to
9110 Check_Anonymous_Access_Components rather than Empty.
9111 (Make_Incomplete_Type_Declaration): Add test for case where the type has
9112 a record extension in deciding whether to create a class-wide type,
9113 rather than just checking Tagged_Present.
9114 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
9115 to stand-alone object declarations as well as component declarations.
9116 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
9117 prevent accidental overwriting when enclosing package appears in
9118 a limited_with_clause.
9119 (Array_Type_Declaration): If the component type is an anonymous access,
9120 the associated_node for the itype is the type declaration itself.
9121 (Add_Interface_Tag_Components): Modified to support concurrent
9122 types with abstract interfaces.
9123 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
9124 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
9125 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
9126 to complete the decoration of synchronized interface types. Add also
9127 a call to Check_Abstract_Interfaces to verify the ARM rules.
9128 (Derive_Interface_Subprograms): Modified to support concurrent types
9129 with abstract interfaces.
9130 (Analyze_Subtype_Indication): Resolve the range with the given subtype
9131 mark, rather than delaying the full resolution depending on context.
9132 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
9133 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
9134 Array_Type_Declaration,Build_Derived_Record_Type,
9135 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
9136 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
9137 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
9138 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
9139 called only when appropriate.
9140 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
9142 (Analyze_Subtype_Declaration): For an access subtype declaration, create
9143 an itype reference for the anonymous designated subtype, to prevent
9144 scope anonmalies in gigi.
9145 (Build_Itype_Reference): New utility, to simplify construction of such
9148 2007-04-06 Vincent Celier <celier@adacore.com>
9150 * errutil.adb (Initialize): Initialize warnings table, if all warnings
9151 are suppressed, supply an initial dummy entry covering all possible
9154 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
9155 and start with only one, such as "-RTS=none".
9156 (Collect_Arguments): Do not check for sources outside of projects.
9157 Do not collect arguments if project is externally built.
9158 (Compile_Sources): Do nothing, not even check if the source is up to
9159 date, if its project is externally built.
9160 (Compile): When compiling a predefined source, add -gnatpg
9161 as the second switch, after -c.
9162 (Compile_Sources): Allow compilation of Annex J renames without -a
9163 (Is_In_Object_Directory): Check if the ALI file is in the object
9164 even if there is no project extension.
9165 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
9166 gnatbind if the ALI file effectively exists.
9167 (Initialize): Add the directory where gnatmake is invoked in front of
9168 the path if it is invoked from a bin directory, even without directory
9169 information, so that the correct GNAT tools will be used when spawned
9170 without directory information.
9172 * makeusg.adb: Change switch -S to -eS
9173 Add lines for new switches -we, -wn and -ws
9174 Add line for new switch -p
9176 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
9177 Treat_As_Error and there are warnings.
9179 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
9180 -gnatww Change gnatmake switch -S to -eS
9181 (Scan_Make_Switches): Code reorganisation. Process separately multi
9182 character switches and single character switches.
9183 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
9184 False when switch is not recognized by gnatmake.
9185 (Scan_Make_Switches): Set Setup_Projects True when -p or
9186 --create-missing-dirs is specified.
9188 * fname.adb (Is_Predefined_File_Name): Return True for annex J
9189 renamings Calendar, Machine_Code, Unchecked_Conversion and
9190 Unchecked_Deallocation only when Renamings_Included is True.
9192 * par.adb: Allow library units Calendar, Machine_Code,
9193 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
9194 when -gnatg is not specified.
9195 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
9196 there is no need to generate always a record_definition_node in case
9197 of synchronized interface types.
9198 (SIS_Entry_Active): Initialize global variable to False
9199 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
9200 indicate cases where AI-447 says "not null" is legal.
9202 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
9204 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
9205 files with with several lines starting with the object fileb name.
9206 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
9208 (Initialize): Add the directory where gprmake is invoked in front of the
9209 path, if it is invoked from a bin directory or with directory
9210 information, so that the correct GNAT tools will be used when invoked
9212 (Check_Compilation_Needed): Process correctly backslashes on Windows.
9214 * vms_data.ads: Update switches/qualifiers
9216 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9217 Thomas Quinot <quinot@adacore.com>
9220 If the array component is a discriminated record, the array aggregate
9221 is non-static even if the component is given by an aggregate with
9223 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
9224 (Convert_Aggr_In_Allocator): If the allocator is for an access
9225 discriminant and the type is controlled. do not place on a finalization
9226 list at this point. The proper list will be determined from the
9228 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
9229 initialize record controller if needed, before the components, to ensure
9230 that they are properly finalized.
9231 (Build_Record_Aggr_Code): For the case of an array component that has a
9232 corresponding array aggregate in the record aggregate, perform sliding
9235 2007-04-06 Javier Miranda <miranda@adacore.com>
9236 Gary Dismukes <dismukes@adacore.com>
9237 Ed Schonberg <schonberg@adacore.com>
9239 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
9240 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
9242 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
9243 accessibility on class-wide allocators if the allocator occurs at the
9244 same scope level as the allocator's type. The check is guaranteed to
9245 succeed in that case, even when the expression originates from a
9246 parameter of the containing subprogram.
9247 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
9248 under No_Dispatching_Calls restriction. During the semantic analysis
9249 we already notified such violation.
9250 (Tagged_Membership): Constant folding. There is no need to check
9251 the tag at run-time if the type of the right operand is non
9252 class-wide abstract.
9253 Replace call to Is_Ancestor by call to Is_Parent
9254 to support concurrent types with interface types.
9255 (Expand_N_Allocator): Add an assertion associated with the generation
9257 (Expand_N_Slice): Do not enable range check to nodes associated
9258 with the frontend expansion of the dispatch table.
9259 (Is_Local_Access_Discriminant): Subsidiary function to
9261 (Tagged_Membership): Replace generation of call to the run-time
9262 subprogram CW_Membership by call to Build_CW_Membership.
9263 (Expand_Allocator_Expression): Replace generation of call to the
9264 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
9266 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
9267 initialize most the TSD components by means of an aggregate.
9268 Modify the declaration of the object containing the TSD
9269 because we now expand code that has a higher level of abstraction.
9270 The TSD has a discriminant containing the Inheritance Depth Level,
9271 value that is used in the membership test but also to fix the size
9272 of the table of ancestors.
9273 (Expand_Interface_Conversion): Insert function body at the closest place
9274 to the conversion expression, to prevent access-before-elaboration
9275 errors in the backend.
9276 Code improved to reduce the size of the dispatch table if
9277 compiling under restriction No_Dispatching_Calls plus code cleanup.
9278 Code reorganization plus removal of calls to Set_Num_Prim_Ops
9279 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
9280 (Expand_Dispatching_Call): Minor code reorganization plus addition of
9281 code to return immediately if compiling under No_Dispatching_Calls
9283 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
9284 CPP_Virtual and CPP_Vtable are no longer supported.
9285 (Expand_Interface_Conversion): Add missing support for interface type
9287 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
9288 Is_Parent to support concurrent types with interfaces.
9289 (Init_Predefined_Interface_Primitives): Removed.
9290 (Make_Secondary_DT): Modified to support concurrent record types.
9291 (Set_All_DT_Position): Modified to support concurrent record types.
9292 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
9293 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
9294 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
9296 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
9297 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
9298 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
9299 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
9300 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
9301 (Expand_Dispatching_Call): Replace generation of call to the run-time
9302 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
9303 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
9305 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
9306 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
9307 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
9308 Build_Set_Prim_Op_Address.
9309 (Get_Remotely_Callable): Subprogram removed.
9310 (Init_Predefined_Interface_Primitives): Replace generation of call to
9311 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
9314 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
9315 First (Parameter_Associations ()) with the call to First_Actual that
9316 returns an actual parameter expression for both named and positional
9319 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
9320 check violation of restriction No_Dispatching_Calls.
9321 (Check_Controlling_Type): A formal of a tagged incomplete type is a
9322 controlling argument.
9324 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
9325 First/Next_Component_Or_Discriminant
9326 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
9327 (Find_Implemented_Interface): Removed. All the calls to this subprogram
9328 specify Any_Limited_Interface, and this functionality is already
9329 provided by the function Has_Abstract_Interfaces.
9330 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
9331 support concurrent types implementing interfaces.
9332 (Find_Implemented_Interface): Removed. All the calls to this subprogram
9333 specify kind Any_Limited_Interface, and this functionality is already
9334 provided by the function Has_Abstract_Interfaces.
9335 (Remove_Side_Effects): replace Controlled_Type by
9336 CW_Or_Controlled_Type whenever the issue is related to
9337 using or not the secondary stack.
9339 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
9340 P_Interface_Type_Definition to fulfill the new interface (the formal
9341 Is_Synchronized is no longer required).
9343 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
9344 Update dependencies.
9346 * exp_atag.ads, exp_atag.adb: New file
9348 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9349 Bob Duff <duff@adacore.com>
9350 Cyrille Comar <comar@adacore.com>
9352 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
9353 anonymous, use finalization list of enclosing dynamic scope.
9354 (Expand_N_Package_Declaration): For a library package declaration
9355 without a corresponding body, generate RACW subprogram bodies in the
9356 spec (just as we do for the task activation call).
9357 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
9358 Is_Abstract_Type. Make sure these are called only when appropriate.
9359 Remove all code for DSP option
9360 (CW_Or_Controlled_Type): new subprogram.
9362 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9363 Ed Schonberg <schonberg@adacore.com>
9364 Gary Dismukes <dismukes@adacore.com>
9366 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
9367 parameter. If it is set to true, return a result capped according to
9368 the global upper bound for the index of an entry family.
9369 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
9370 (Build_Find_Body_Index): Adjust for above change.
9371 (Entry_Index_Expression): Likewise.
9372 (Is_Potentially_Large_Family): New function extracted from...
9373 (Collect_Entry_Families): ...here. Call it to detect whether the family
9374 is potentially large.
9375 (Build_Entry_Count_Expression): If the family is potentially large, call
9376 Family_Size with 'Cap' set to true.
9377 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
9378 a protected version of an operation declared in the private part of
9379 a protected object, because they may be invoked through a callback.
9380 (Set_Privals): If the type of a private component is an anonymous access
9381 type, do not create a new itype for each protected body.
9382 If the body of a protected operation creates
9383 controlled types (including allocators for class-widetypes), the
9384 body of the corresponding protected subprogram must include a
9386 (Build_Activation_Chain_Entity): Build the chain entity for extended
9388 (Type_Conformant_Parameters): Use common predicate Conforming_Types
9389 to determine whether operation overrides an inherited primitive.
9390 (Build_Wrapper_Spec): Add code to examine the parents while looking
9391 for a possible overriding candidate.
9392 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
9393 hold an actual parameter value since its initialization is separated
9394 from the the declaration. Prevents errors on null-excluding access
9397 2007-04-06 Thomas Quinot <quinot@adacore.com>
9398 Pablo Oliveira <oliveira@adacore.com>
9400 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
9401 Do an Unchecked_Conversion to handle the passage from the Underlying
9402 Type to the Base Type when calling Build_To_Any_Call and
9403 Build_From_Any_Call.
9404 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
9405 E_Constant, depending upon Variable formal.
9406 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
9407 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
9408 parameter that requires an extra constrained parameter, declare
9409 temporary for actual as a variable, not a constant.
9410 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
9411 the unit being compiled is the one that contains the stub type.
9412 Change primitive operation name for the RACW associated with a RAS
9413 from Call to _Call so it cannot clash with any legal identifier.
9414 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
9416 (Append_RACW_Bodies): New subprogram.
9417 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
9418 Add_Receiving_Stubs_To_Declarations functions.
9419 When expanding a package body, this list correspond to the
9420 statements in the HSS at the end of the pacakge.
9421 When expanding a package spec, this list correspond to the
9423 (Add_Receiving_Stubs_To_Declarations): Append the function
9424 registering the receiving stubs at the end of the 'Stmts' list.
9425 (RCI_Package_Locator): Pass the new Version generic formal when
9426 instantiating a RCI_Locator package.
9427 (Build_From_Any_Function): To compute the High bound for an
9428 unconstrained array actual, we add the Low bound with the length.
9429 Thus we must convert the low bound and the length to an appropriate
9430 type before doing the sum.
9431 (Build_Subprogram_Receiving_Stubs, PolyORB):
9432 * Retrieve the extra formals parameters at the
9433 end of the parameter stream.
9434 * Use Move_Any_Value to write back out parameters
9435 after executing the request as it is more efficient
9436 than Copy_Any_Value.
9437 * Build the any containing Extra Formals with the
9438 appropriate typecode.
9439 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
9440 empty Component_List.
9441 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
9442 the tree the declaration for an object that serves as actual parameter
9443 in server-side stubs.
9444 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
9445 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
9446 Use Build_Actual_Object_Declaration to prepare the actuals.
9447 (Add_Parameter_To_NVList): Set the parameter mode to In for
9448 Extra Constrained Parameters.
9449 (Build_General_Calling_Stubs): Set the parameter type to boolean for
9450 Extra Constrained parameters.
9451 (Build_To_Any_Function, Build_From_Any_Function,
9452 Built_TypeCode_Function): When Typ is implicit, call the correct
9453 function with the first not implicit parent type.
9454 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
9455 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
9456 typecode from the Etype. Therefore we retrieve the correct typecode
9457 with a call to Get_Any_Type.
9458 (Copy_Specification): Do controlling formal type substitution based on
9459 Is_Controlling_Formal flag, instead of caller-provided object type.
9460 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
9461 a RACW primitive operation, we might get a subprogram declaration for an
9462 ancestor of the RACW designated type (not for the designated type
9463 itself), in the case where this operation is inherited. In this case we
9464 have no easy means of determining the original tagged type for which
9465 the primitive was declared, so instead we now rely on
9466 Copy_Specification to use the Is_Controlling_Formal flag to determine
9467 which formals require type substitution.
9469 2007-04-06 Robert Dewar <dewar@adacore.com>
9470 Ed Schonberg <schonberg@adacore.com>
9472 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
9473 GNAT.Current_Exception are not allowed if pragma Restrictions
9474 (No_Exception_Propagation) is set and in any case make the associated
9475 handler unsuitable as a target for a local raise statement.
9476 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
9477 run-time subprogram CW_Membership by call to Build_CW_Membership.
9478 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
9479 by a function call, a temporary must be created before expanding the
9480 Constructor_Call itself, to prevent out-of-order elaboration in the
9481 back-end when stack checking is enabled..
9483 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9485 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
9486 result are the bounds of the left operand, not the right.
9488 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9491 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
9492 discriminant defaults.
9493 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
9494 (Make_Component_List_Attributes): Ditto.
9496 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9497 Bob Duff <duff@adacore.com>
9499 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
9500 an association with a box as providing a value even though the
9501 initialization procedure for the type is not available.
9502 (Resolve_Record_Aggregate): Check that a choice of an association with a
9503 box corresponds to a component of the type.
9504 (Resolve_Record_Aggregate): Split Is_Abstract flag into
9505 Is_Abstract_Subprogram and Is_Abstract_Type.
9507 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
9510 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
9511 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
9512 called only when appropriate.
9514 2007-04-06 Olivier Hainque <hainque@adacore.com>
9516 * g-alleve.ads (Low Level Vector type definitions): Map each to the
9517 associated vector view instead of all to the unsigned char view.
9519 * g-altcon.adb (Generic_Conversions): New internal generic package,
9520 offering facilities for all the Vector/View conversion routines
9521 implemented by this unit.
9522 (To_View/To_Vector - all versions): Reimplemented in a systematic
9523 manner, using the internal Generic_Conversions facilities.
9525 2007-04-06 Pascal Obry <obry@adacore.com>
9527 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
9529 (Create): Free the source string before storing the new one.
9531 2007-04-06 Vincent Celier <celier@adacore.com>
9533 * g-debpoo.adb (Validity): New package with a complete new
9534 implementation of subprograms Is_Valid and Set_Valid.
9535 (Is_Valid): Move to local package Validity
9536 (Set_Valid): Move to local package Validity
9538 2007-04-06 Arnaud Charlet <charlet@adacore.com>
9539 Pablo Oliveira <oliveira@adacore.com>
9541 * g-expect.adb (Get_Command_Output): When expanding the output buffer
9542 we must ensure that there is enough place for the new data we are going
9545 2007-04-06 Thomas Quinot <quinot@adacore.com>
9547 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
9550 2007-04-06 Jose Ruiz <ruiz@adacore.com>
9551 Vincent Celier <celier@adacore.com>
9553 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
9554 (Stack_String): Add this String that contains the name of the Stack
9555 package in the project file.
9556 (Packages_To_Check_By_Stack): Add this list that contains the packages
9557 to be checked by gnatstack, which are the naming and the stack packages.
9558 (Check_Files): If no .ci files were specified for gnatstack we add all
9559 the .ci files belonging to the projects, including binder generated
9561 (Non_VMS_Usage): Document that gnatstack accept project file switches.
9562 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
9563 Add gnatstack to the list of commands that use project file related
9564 switches, and get the single attribute Switches from the stack package
9565 in a project file when calling gnatstack. Parse the -U flag for
9566 processing files belonging to all projects in the project tree.
9567 Remove all processing for command Setup
9569 * prj-attr.adb: Add new package Stack with single attribute Switches
9571 * vms_conv.ads (Command_Type): Add command Stack.
9572 Move to body declarations that are only used in the body: types Item_Id,
9573 Translation_Type, Item_Ptr, Item and its subtypes.
9575 * vms_conv.adb: (Initialize): Add data for new command Stack.
9576 Add declarations moved from the spec: types Item_Id, Translation_Type,
9577 Item_Ptr, Item and its subtypes.
9578 (Cargs_Buffer): New table
9579 (Cargs): New Boolean global variable
9580 (Process_Buffer): New procedure to create arguments
9581 (Place): Put character in table Buffer or Cargs_Buffer depending on the
9583 (Process_Argument): Set Cargs when processing qualifiers for GNAT
9585 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
9586 empty, for table Cargs_Buffer.
9587 (Initialize): Remove component Setup in Command_List
9589 2007-04-06 Vincent Celier <celier@adacore.com>
9591 * gprep.adb (Process_Files.Process_One_File): Use full file name when
9592 issuing pragma Source_Reference.
9594 2007-04-06 Emmanuel Briot <briot@adacore.com>
9596 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
9597 [[:xdigit:]] character class.
9598 Also raise an exception when an invalid character class is used.
9600 2007-04-06 Pascal Obry <obry@adacore.com>
9602 * i-cstrea.ads: (fopen): Add encoding parameter.
9604 Change reference from a-sysdep.c to sysdep.c in comment.
9605 Update copyright notice.
9606 This set of patch add support for the encoding form parameter.
9608 * mingw32.h (S2WSU): New macro to convert from a string to a
9609 wide-string using the UTF-8 encoding. The S2WS macro supports now only
9610 standard 8bits encoding.
9611 (WS2SU): As above but converting from wide-sring to string.
9612 This is needed as it is necessary to have access to both versions in the
9613 runtime for the form parameter encoding support.
9614 This set of patch add support for the encoding form parameter.
9615 (S2WS): Improve implementation to handle cases where the filename is not
9616 UTF-8 encoded. In this case we default to using the current code page
9619 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
9620 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
9621 the constants defined in adaint.h.
9622 (fopen): Add encoding parameter.
9625 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
9626 encoding. This is needed for the Reset routine (freopen low level-call).
9628 * s-fileio.adb (Open): Decode encoding form parameter and set the
9629 corresponding encoding value into AFCB structure.
9630 (Reset): Pass the encoding value to freopen.
9631 (Close): Move the call to Lock_Task to the beginning of the procedure.
9633 2007-04-06 Geert Bosch <bosch@adacore.com>
9634 Robert Dewar <dewar@adacore.com>
9636 * i-fortra.ads: Add Double_Complex type.
9638 * impunit.adb: (Is_Known_Unit): New function
9639 Add Gnat.Byte_Swapping
9641 Add new Ada 2005 units
9642 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
9643 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
9644 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
9645 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
9647 * impunit.ads (Is_Known_Unit): New function
9649 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
9650 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
9651 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
9652 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
9653 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
9654 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
9657 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
9659 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
9661 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9662 Arnaud Charlet <charlet@adacore.com>
9664 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
9665 __gnat_adjust_context_for_raise.
9666 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
9667 implementation of floating point operations as native x86 targets.
9668 So the FPU should be initialized in the same way using finit. Fix
9669 floating point operations accuracy issues.
9670 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
9671 member in struct sigaction, so as to avoid warning for incompatible
9674 2007-04-06 Serguei Rybin <rybin@adacore.com>
9676 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
9677 switches from previously loaded tree
9679 2007-04-06 Thomas Quinot <quinot@adacore.com>
9681 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
9682 cases where a given dependency has a body or not.
9683 (Write_With_File_Names): New subprogram, common code for the two cases
9686 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9687 Javier Miranda <miranda@adacore.com>
9689 * lib-xref.ads, lib-xref.adb:
9690 Modify the loop that collects type references, to include interface
9691 types that the type implements. List each of these interfaces when
9692 building the entry for the type.
9693 (Generate_Definition): Initialize component Def and Typ of new entry
9694 in table Xrefs, to avoid to have these components unitialized.
9695 (Output_References): Split Is_Abstract flag into
9696 Is_Abstract_Subprogram and Is_Abstract_Type.
9697 (Generate_Reference): Add barrier to do not generate the warning
9698 associated with Ada 2005 entities with entities generated by the
9701 2007-04-06 Robert Dewar <dewar@adacore.com>
9702 Arnaud Charlet <charlet@adacore.com>
9703 Vincent Celier <celier@adacore.com>
9705 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
9706 Update 'Exception Handling Control' chapter which was outdated.
9707 Minor fix to documentation of -gnatwq
9708 Remove section "Adapting the Run Time to a New C++ Compiler" because
9710 Add passage on need of -nostart-files in some non-ada-main cases.
9711 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
9712 Update documentation about Interfacing with C++
9713 Add documentation for new gnatmake switch -p
9714 Add missing protocol part in URLs.
9716 Document pragma Compile_Time_Error
9717 Add documentation for Object_Size indicating that stand alone
9718 objects can have a larger size in some cases.
9719 Add node for GNAT.Byte_Swapping, GNAT.SHA1
9720 Update reference to the Ravenscar profile.
9721 Document pragma Unreferenced_Objects
9723 * gnat-style.texi: Fix typo
9725 2007-04-06 Vincent Celier <celier@adacore.com>
9727 * mlib.adb (Building_Library): Only output "building a library..." in
9730 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
9731 files in verbose mode.
9733 * mlib-utl.adb (Ar): Only output the first object files when not in
9735 (Gcc): Do not display all the object files if not in verbose mode, only
9738 2007-04-06 Robert Dewar <dewar@adacore.com>
9740 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
9741 it no longer destroys the contents of Name_Buffer or Name_Len and
9742 non-standard and invalid names are handled better.
9743 (Get_Decoded_Name_String): Improve performance by using
9744 Name_Has_No_Encodings flag in the name table.
9745 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
9746 Used for debugging printouts.
9748 2007-04-06 Robert Dewar <dewar@adacore.com>
9749 Javier Miranda <miranda@adacore.com>
9750 Bob Duff <duff@adacore.com>
9752 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
9753 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
9754 there is no need to generate always a record_definition_node in case
9755 of synchronized interface types.
9756 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
9757 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
9758 illegal in Ada 95, in cases where it is legal. Change the warnings to
9759 errors in other cases. Don't give the error unless the "not null"
9760 parses properly. Correct the source position at which the error occurs.
9761 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
9762 P_Null_Exclusion, to suppress "not null" warnings.
9763 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
9764 associated goto statements.
9766 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
9769 * scans.ads (Type_Token_Location): New flag
9771 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
9772 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
9773 P_Null_Exclusion, to suppress "not null" warnings.
9775 2007-04-06 Robert Dewar <dewar@adacore.com>
9776 Javier Miranda <miranda@adacore.com>
9777 Bob Duff <duff@adacore.com>
9778 Vincent Celier <celier@adacore.com>
9780 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
9781 (Extensions_Allowed): No longer sets Ada_Version
9782 Entry for pragma Unreferenced_Objects
9784 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
9785 system.tasking if pragma priority used in a procedure
9786 (Analyze_Pragma, case Warning): Handle dot warning switches
9787 (Process_Compile_Time_Warning_Or_Error): New procedure
9788 (Analyze_Pragma): Add processing for Compile_Time_Error
9789 Add support for extra arguments External_Name and Link_Name.
9790 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
9791 (Process_Import_Or_Interface): Add support for the use of pragma Import
9793 (Extensions_Allowed): No longer affects Ada_Version
9794 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
9795 Is_Abstract_Type. Make sure these are called only when appropriate.
9796 Add processing for pragma Unreferenced_Objects
9798 * snames.h, snames.ads, snames.adb: Add entry for pragma
9800 Add new standard name Minimum_Binder_Options for new gprmake
9801 Add new standard names for gprmake: Archive_Suffix,
9802 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
9803 Library_Support, Library_Version_Options,
9804 Shared_Library_Minimum_Options,
9805 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
9806 Change Name_Call to Name_uCall so that it cannot clash with a legal
9808 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
9809 Append C_Plus_Plus to convention identifiers as synonym for CPP
9810 Add new standard names Stack and Builder_Switches
9811 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
9812 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
9813 Run_Path_Option, Toolchain_Version.
9814 Entry for pragma Unreferenced_Objects
9816 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
9817 switches, without repetition of "eD". Make sure that last character of
9818 -gnatep= switch is not taken as -gnat switch character.
9819 Complete rewrite of circuit for handling saving compilation options
9820 Occasioned by need to support dot switchs for -gnatw, but cleans up
9822 -gnatX does not affect Ada_Version
9823 Include -gnatyA in -gnatg style switches
9825 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
9826 warnings on return objects.
9827 (Warn_On_Useless_Assignment): Exclude warnings on return objects
9828 (Set_Dot_Warning_Switch): New procedure
9829 (Check_References): Add missing case of test for
9830 Has_Pragma_Unreferenced_Objects
9831 (Output_Unreferenced_Messages): Implement effect of new pragma
9832 Unreferenced_Objects, remove special casing of limited controlled
9835 2007-04-06 Vincent Celier <celier@adacore.com>
9837 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
9838 the default project path, initially done during elaboration of the
9840 If the prefix returned by Sdefault is null, get the prefix from a call
9841 to Executable_Prefix_Path.
9842 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
9845 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
9846 canonical directory name to open the directory from which files are
9848 (Record_Other_Sources): Idem.
9849 (Locate_Directory): Add the possibility to create automatically missing
9850 directories when Setup_Projects is True.
9851 Call Locate_Directory so that the directory will be created when
9852 Setup_Projects is True, for object dir, library dir, library ALI dir,
9853 library source copy dir and exec dir.
9855 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
9858 2007-04-06 Robert Dewar <dewar@adacore.com>
9860 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
9861 Use First/Next_Component_Or_Discriminant
9862 (Analyze_Record_Representation_Clause):
9863 Use First/Next_Component_Or_Discriminant
9864 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
9865 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
9866 definition if type is unconstrained.
9867 (Adjust_Record_For_Reverse_Bit_Order): New procedure
9868 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
9869 Is_Abstract_Subprogram and Is_Abstract_Type.
9870 (Adjust_Record_For_Reverse_Bit_Order): New procedure
9872 * repinfo.adb (List_Record_Info): Use First/
9873 Next_Component_Or_Discriminant.
9875 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
9878 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
9879 Include -gnatyA in default switches
9881 * opt.ads: (Warn_On_Non_Local_Exception): New flag
9882 (Warn_On_Reverse_Bit_Order): New flag
9883 (Extensions_Allowed): Update the documentation.
9884 (Warn_On_Questionable_Missing_Parens): Now on by default
9886 * usage.adb: Add documentation of -gnatw.x/X switches
9887 Document new -gnatyA style switch
9888 -gnatq warnings are on by default
9890 2007-04-06 Ed Falis <falis@adacore.com>
9892 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
9893 full word is no longer compared twice.
9895 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9897 * sem_ch10.adb (Install_Limited_Context_Clauses.
9898 Expand_Limited_With_Clause): Use a new copy of selector name in the
9899 call to Make_With_Clause. This fixes the tree structure for ASIS
9900 purposes. Nothing is changed in the compiler behaviour.
9901 (Process_Body_Clauses): Handle properly use clauses whose prefix is
9903 (Install_Limited_With_Clauses): Do not install non-limited view when it
9904 is still incomplete.
9906 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9907 Gary Dismukes <dismukes@adacore.com>
9909 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
9910 when capturing size information, instead of base type, which for a
9911 formal array type will be the unconstrained type.
9912 (Analyze_Formal_Object_Declaration): Add check for illegal default
9913 expressions for a formal in object of a limited type.
9914 (Instantiate_Object): Ditto.
9915 (Check_Formal_Package_Instance): Skip entities that are formal objects,
9916 because they were defaulted in the formal package and no check applies
9918 (Check_Formal_Package_Instance): Extend conformance check to other
9919 discrete types beyond Integer.
9920 (Process_Default): Copy directly the unmatched formal. A generic copy
9921 has already been performed in Analyze_Formal_Package.
9922 (Analyze_Associations): If a formal subprogram has no match, check for
9923 partial parametrization before looking for a default, to prevent
9925 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
9926 not set the instantiation environment before analyzing the actuals.
9927 Fixes regression on 8515-003 with implementation of AI-133.
9928 Set_Instance_Env checks whether the generic unit is a predefined
9929 unit, in which case the instance must be analyzed with the latest Ada
9930 mode. This setting must take place after analysis of the actuals,
9931 because the actuals must be analyzed and frozen in the Ada mode extant
9932 outside of the current instantiation.
9933 (Save_Env, Restore_Env): Preserve and restore the configuration
9934 parameters so that predefined units can be compiled in the proper Ada
9936 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
9937 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
9938 and Is_Abstract_Type.
9939 (Analyze_Formal_Package): For better error recovery, Add exception
9940 handler to catch Instantion_Error, which can be raised in
9941 Analyze_Associations
9943 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9944 Bob Duff <duff@adacore.com>
9945 Gary Dismukes <dismukes@adacore.com>
9947 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
9948 prefix type is a discriminated subtype of the type of the formal.
9949 (Analyze_Allocator): Collect all coextensions regardless of the context.
9950 Whether they can be allocated statically is determined in exp_ch4.
9951 (Analyze_Selected_Component): If the prefix is a limited view and the
9952 non-limited view is available, use the non-limited one.
9953 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
9954 therefore illegal), suggest a qualified expression rather than a type
9955 conversion, because a type conversion would be illegal in this context.
9956 (Anayze_Allocator): Trace recursively all nested allocators so that all
9957 coextensions are on the corresponding list for the root. Do no mark
9958 coextensions if the root allocator is within a declaration for a stack-
9959 allocated object, because the access discriminants will be allocated on
9961 (Analyze_Call): Remove restriction on calls to limited functions for the
9962 cases of generic actuals for formal objects, defaults for formal objects
9963 and defaults for record components.
9964 (Analyze_Allocator): Before analysis, chain coextensions on the proper
9965 element list. Their expansion is delayed until the enclosing allocator
9966 is processed and its finalization list constructed.
9967 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
9968 for an operation with the given name among the primitive operations of
9969 the corresponding record type.
9970 (Analyze_Selected_Component): If the prefix is a task type that
9971 implements an interface, and there is no entry with the given name,
9972 check whether there is another primitive operation (e.g. a function)
9974 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
9975 properly the indexing of a function call written in prefix form, where
9976 the function returns an array type, and all parameters of the function
9977 except the first have defaults.
9978 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
9979 the original operands, rather than relocating them, for efficiency and
9980 to work properly when an operand is overloaded.
9981 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
9982 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
9983 (Analyze_Selected_Component): If the prefix is a private extension, only
9984 scan the visible components, not those of the full view.
9985 (Try_Primitive_Operation): If the operation is a procedure, collect all
9986 possible interpretations, as for a function, because in the presence of
9987 classwide parameters several primitive operations of the type can match
9988 the given arguments.
9990 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9991 Robert Dewar <dewar@adacore.com>
9993 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
9994 tag-indeterminate call to an abstract function, when the left-hand side
9996 (Analyze_Loop_Statement): Improve detection of infinite loops
9998 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9999 Thomas Quinot <quinot@adacore.com>
10001 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
10002 out of Analyze_Package_Declaration, because processing must be applied
10003 to package bodies as well, for deferred constants completed by pragmas.
10004 (Analyze_Package_Declaration): When the package declaration being
10005 analyzed does not require an explicit body, call Check_Completion.
10006 (May_Need_Implicit_Body): An implicit body is required when a package
10007 spec contains the declaration of a remote access-to-classwide type.
10008 (Analyze_Package_Body): If the package contains RACWs, append the
10009 pending subprogram bodies generated by exp_dist at the end of the body.
10010 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
10011 Is_Abstract_Subprogram and Is_Abstract_Type.
10012 (Preserve_Full_Attributes): The full entity list is not an attribute
10013 that must be preserved from full to partial view.
10015 * sem_dist.adb (Add_RAS_Dereference_TSS):
10016 Change primitive name to _Call so it cannot clash with any legal
10017 identifier, and be special-cased in Check_Completion.
10018 Mark the full view of the designated type for the RACW associated with
10019 a RAS as Comes_From_Source to get proper view switching when installing
10020 private declarations.
10021 Provite a placeholder nested package body along with the nested spec
10022 to have a place for Append_RACW_Bodies to generate the calling stubs
10023 and stream attributes.
10025 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10026 Robert Dewar <dewar@adacore.com>
10028 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
10029 that is a limited view, check the non-limited view if available.
10030 (Undefined): Refine error message for missing with of Text_IO
10031 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
10032 to distinguish real missing with cases.
10033 Fix format of all missing with messages
10034 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
10035 renaming as body when renamed entity is abstract.
10037 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10038 Javier Miranda <miranda@adacore.com>
10040 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
10041 predicate recursive, to handle complex expressions on literals whose
10042 spurious ambiguity comes from the abstract interpretation of some
10044 (Interface_Present_In_Ancestor): Add support to concurrent record
10046 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
10047 Is_Abstract_Subprogram and Is_Abstract_Type.
10049 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10050 Javier Miranda <miranda@adacore.com>
10052 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
10053 dereference of a local object R created as a reference to another
10054 object O, use the access level of O.
10055 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
10056 rather than local Same_Formal_Type, to check whether protected operation
10057 overrides an inherited one.
10058 (Same_Formal_Type): New predicate, used when matching signatures of
10059 overriding synchronized operations, to handle the case when a formal
10060 has a type that is a generic actual.
10061 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
10062 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
10063 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
10064 syntactic ambiguities involving indexing of function calls that return
10066 (Abstract_Interface_List): New subprogram that returns the list of
10067 abstract interfaces associated with a concurrent type or a
10068 concurrent record type.
10069 (Interface_Present_In_Parent): New subprogram used to check if a
10070 given type or some of its parents implement a given interface.
10071 (Collect_Abstract_Interfaces): Add support for concurrent types
10072 with interface types.
10073 (Has_Abstract_Interfaces): Add support for concurrent types with
10075 (Is_Parent): New subprogram that determines whether E1 is a parent
10076 of E2. For a concurrent type its parent is the first element of its
10077 list of interface types; for other types this function provides the
10078 same result than Is_Ancestor.
10079 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
10080 (Collect_Synchronized_Interfaces): Removed because the subprogram
10081 Collect_Abstract_Interfaces provides this functionality.
10082 (Collect_Abstract_Interfaces): Minor update to give support to
10083 concurrent types and thus avoid undesired code duplication.
10084 (Get_Subprogram_Entity): Handle entry calls.
10085 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
10087 (Enter_Name): Do not give -gnatwh hiding warning for record component
10088 entities, they never result in hiding.
10090 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10091 Robert Dewar <dewar@adacore.com>
10093 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
10094 to chain nested components that are allocators for access discriminants
10095 of the enclosing object.
10096 Add N_Push and N_Pop nodes
10097 New field Exception_Label added
10098 (Local_Raise_Statements): New field in N_Exception_Handler_Node
10099 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
10100 (Is_Coextension): New flag for allocators, to mark allocators that
10101 correspond to access discriminants of dynamically allocated objects.
10102 (N_Block_Statement): Document the fact that the corresponding entity
10103 can be an E_Return_Statement.
10104 (Is_Coextension): New flag for allocators.
10105 Remove all code for DSP option
10107 * sprint.ads, sprint.adb: Display basic information for class_wide
10108 subtypes. Add handling of N_Push and N_Pop nodes
10110 2007-04-06 Arnaud Charlet <charlet@adacore.com>
10112 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
10113 before propagating exception.
10115 2007-04-06 Olivier Hainque <hainque@adacore.com>
10117 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
10118 an address always within the call instruction from a return address.
10120 2007-04-06 Olivier Hainque <hainque@adacore.com>
10121 Eric Botcazou <botcazou@adacore.com>
10123 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
10124 expression with a COMPOUND_EXPR including the call instead of emitting
10125 the call directly here.
10126 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
10127 high bound is constant and the slice is empty. Tidy.
10128 (tree_transform, case N_Op_Not): Handle properly the case where the
10129 operation applies to a private type whose full view is a modular type.
10130 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
10131 Address_Clause, use the associated Expression as the GNAT tree
10132 representing the choice value to ensure the corresponding GCC tree is
10133 of the proper kind.
10134 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
10135 instead of just the operands, as the base GCC stabilize_reference does.
10136 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
10137 requested; otherwise fail.
10138 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
10140 2007-04-06 Thomas Quinot <quinot@adacore.com>
10142 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
10143 implementation of UI_Div.
10144 (UI_Div): Reimplement as a call to UI_Div_Rem.
10145 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
10146 remainder, avoiding the cost of a multiplication and a subtraction.
10147 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
10148 provides both quotient and remainder in a single computation.
10149 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
10150 functions for uint.
10151 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
10152 is undefined if the given n is not inversible.
10154 2007-04-06 Olivier Hainque <hainque@adacore.com>
10156 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
10157 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
10160 2007-04-06 Eric Botcazou <botcazou@adacore.com>
10161 Olivier Hainque <hainque@adacore.com>
10163 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
10164 when updating the contents of the old pointer to an unconstrained array.
10165 (end_subprog_body): Set error_gnat_node to Empty.
10166 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
10167 (unchecked_convert): For subtype to base type conversions, require that
10168 the source be a subtype if it is an integer type.
10169 (builtin_decls): New global, vector of available builtin functions.
10170 (gnat_pushdecl): Add global builtin function declaration nodes to the
10171 builtin_decls list.
10172 (gnat_install_builtins): Adjust comments.
10173 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
10174 calling gnat_pushdecl, so that it knows when it handed a builtin
10175 function declaration node.
10176 (builtin_decl_for): Search the builtin_decls list.
10178 2007-04-06 Eric Botcazou <botcazou@adacore.com>
10180 * s-stchop-vxworks.adb:
10181 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
10183 2007-04-06 Robert Dewar <dewar@adacore.com>
10184 Arnaud Charlet <charlet@adacore.com>
10186 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
10188 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
10190 Add mention of -Sev (set initialize_scalars option from environment
10191 variable at run time) in gnatbind usage message.
10193 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
10195 * fname-uf.ads: Minor comment fix
10197 * osint.ads: Change pragma Elaborate to Elaborate_All
10199 * par-load.adb: Add documentation.
10201 * sem_cat.ads, sem_cat.adb: Minor code reorganization
10203 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
10205 * s-secsta.ads: Extra comments
10207 * s-soflin.ads: Minor comment fixes
10209 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
10211 * s-wchcon.ads: Minor comment addition
10213 * treepr.adb: Minor change in message
10214 (Print_Name,Print_Node): Make these debug printouts more robust: print
10215 "no such..." instead of crashing on bad input.
10217 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
10219 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
10220 instead of gnat_signed_or_unsigned_type.
10221 * utils.c (gnat_signed_or_unsigned_type): Remove.
10222 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
10223 * gigi.h (gnat_signed_or_unsigned_type): Remove
10225 2007-03-09 Roger Sayle <roger@eyesopen.com>
10227 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
10228 fold with the result of buildN.
10229 * decl.c (gnat_to_gnu_entity): Likewise.
10230 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
10231 * utils.c (finish_record_type, merge_sizes, max_size, convert):
10233 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
10234 nonbinary_modular_operation, build_binary_op, build_unary_op,
10235 build_cond_expr): Likewise.
10237 * utils.c (convert): Use fold_build1 when casting values to void.
10238 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
10239 fold_convert instead of convert when appropriate.
10241 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10243 * Make-lang.in: Add install-pdf target as copied from
10244 automake v1.10 rules.
10246 2007-02-28 Andreas Schwab <schwab@suse.de>
10248 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
10249 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
10250 (doc/gnat-style.info): Likewise.
10252 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
10254 * gnat-style.texi: Standardize title page.
10255 * gnat_rm.texi: Likewise.
10256 * gnat_ugn.texi: Likewise.
10258 2007-02-25 Mark Mitchell <mark@codesourcery.com>
10260 * decl.c (annotate_value): Adjust for refactoring of tree_map
10263 2007-02-24 Mark Mitchell <mark@codesourcery.com>
10265 * decl.c (annotate_value): Adjust for refactoring of tree_map
10268 2007-02-21 Ed Schonberg <schonberg@adacore.com>
10271 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
10272 untagged derived type, add hidden components to keep discriminant
10273 layout consistent, when a given discriminant of the derived type
10274 constraints several discriminants of the parent type.
10276 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
10277 Sandra Loosemore <sandra@codesourcery.com>
10279 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
10280 build the call expression.
10281 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
10282 * utils.c (max_size) <tcc_exceptional>: Delete.
10283 <tcc_vl_exp>: New case.
10284 <tcc_expression>: Delete CALL_EXPR subcase.
10285 (build_global_cdtor): Use build_call_nary instead of build3.
10286 * utils2.c (build_call_1_expr): Likewise.
10287 (build_call_2_expr): Likewise.
10288 (build_call_0_expr): Likewise.
10289 (build_call_alloc_dealloc): Likewise.
10291 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10293 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10294 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10295 and _Unwind_SWord with _sleb128_t.
10297 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
10299 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
10300 * decl.c: Include gt-ada-decl.h.
10301 (annotate_value_cache): New.
10302 (annotate_value): Use it instead of TREE_COMPLEXITY.
10304 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
10306 * misc.c, utils2.c: Fix comment typos.
10308 2007-01-24 Roger Sayle <roger@eyesopen.com>
10310 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
10311 TREE_CONSTANT_OVERFLOW.
10312 (allocatable_size_p, annotate_value): Likewise.
10313 * trans.c (gnat_to_gnu): Likewise.
10314 * utils.c (unchecked_convert): Likewise.
10315 * utils2.c (build_simple_component_ref): Likewise.
10317 2007-01-23 Richard Guenther <rguenther@suse.de>
10320 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
10321 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
10322 (gnatboot3): Likewise.
10323 (GNATBIND): Do not define.
10324 * Makefile.in (GNATBIND): Do not define.
10326 2007-01-08 Richard Guenther <rguenther@suse.de>
10328 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
10329 * trans.c (gnat_to_gnu): Likewise.
10331 2006-12-07 Geoffrey Keating <geoffk@apple.com>
10333 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
10334 * adaint.c: Likewise.
10336 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
10338 Merge from gimple-tuples-branch:
10339 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
10341 * ada-tree.h (lang_tree_node): Handle gimple tuples.
10342 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
10343 GIMPLE_MODIFY_STMT.
10345 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
10347 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
10348 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
10351 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
10354 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
10355 if the initializer takes into account the padding.
10357 2006-11-11 Richard Guenther <rguenther@suse.de>
10359 * trans.c (maybe_stabilize_reference): Remove handling of
10360 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
10362 2006-11-05 Arnaud Charlet <charlet@adacore.com>
10365 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
10366 (To_Target_Priority): New function.
10368 2006-10-31 Robert Dewar <dewar@adacore.com>
10370 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
10371 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
10372 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
10373 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
10374 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
10375 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
10376 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
10377 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
10378 a-szbzha.adb: Minor reformatting. Fix header.
10380 * a-numaux-x86.adb: Add parentheses for use of unary minus
10381 * a-ngcefu.adb: Supply missing parentheses for unary minus
10382 * a-ngcoty.adb: Add parens for use of unary minus
10383 * a-ngelfu.adb: Add missing parens for unary minus
10384 * a-tifiio.adb: Add parentheses for uses of unary minus
10386 2006-10-31 Robert Dewar <dewar@adacore.com>
10387 Bob Duff <duff@adacore.com>
10388 Ed Schonberg <schonberg@adacore.com>
10390 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
10391 with multiplying operator.
10392 (Expected_Type_Is_Any_Real): New function to determine from the Parent
10393 pointer whether the context expects "any real type".
10394 (Resolve_Arithmetic_Op): Do not give an error on calls to the
10395 universal_fixed "*" and "/" operators when they are used in a context
10396 that expects any real type. Also set the type of the node to
10397 Universal_Real in this case, because downstream processing requires it
10398 (mainly static expression evaluation).
10399 Reword some continuation messages
10400 Add some \\ sequences to continuation messages
10401 (Resolve_Call): Refine infinite recursion case. The test has been
10402 sharpened to eliminate some false positives.
10403 Check for Current_Task usage now includes entry barrier, and is now a
10404 warning, not an error.
10405 (Resolve): If the call is ambiguous, indicate whether an interpretation
10406 is an inherited operation.
10407 (Check_Aggr): When resolving aggregates, skip associations with a box,
10408 which are priori correct, and will be replaced by an actual default
10409 expression in the course of expansion.
10410 (Resolve_Type_Conversion): Add missing support for conversion from
10411 a class-wide interface to a tagged type. Minor code cleanup.
10412 (Valid_Tagged_Converion): Add support for abstact interface type
10414 (Resolve_Selected_Component): Call Generate_Reference here rather than
10415 during analysis, and use May_Be_Lvalue to distinguish read/write.
10416 (Valid_Array_Conversion): New procedure, abstracted from
10417 Valid_Conversion, to incorporate accessibility checks for arrays of
10418 anonymous access types.
10419 (Valid_Conversion): For a conversion to a numeric type occurring in an
10420 instance or inlined body, no need to check that the operand type is
10421 numeric, since this has been checked during analysis of the template.
10422 Remove legacy test for scope name Unchecked_Conversion.
10424 * sem_res.ads: Minor reformatting
10426 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
10427 (PE_Current_Task_In_Entry_Body): New exception code
10428 (SE_Restriction_Violation): Removed, not used
10430 * a-except.ads: Update comments.
10432 * types.h, types.ads: Add definition for Validity_Check
10433 (PE_Current_Task_In_Entry_Body): New exception code
10434 (SE_Restriction_Violation): Removed, not used
10436 2006-10-31 Thomas Quinot <quinot@adacore.com>
10438 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
10441 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
10442 Jose Ruiz <ruiz@adacore.com>
10444 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
10445 part of Ada.Calendar: all subprogram raise Unimplemented.
10446 (Split_W_Offset): Temp function body, raising Unimplemented
10448 * a-calend.ads, a-calend-vms.ads:
10449 Add imported variable Invalid_TZ_Offset used to designate targets unable
10450 to support time zones.
10451 (Unimplemented): Temporary function raised by the body of new
10453 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
10454 unit provides handling of leap seconds and is used by the new Ada 2005
10455 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
10456 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
10457 version returns an extra value which is the offset to UTC.
10459 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
10460 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
10461 (Split_W_Offset): New function body.
10462 (Time_Of): When a date is close to UNIX epoch, compute the time for
10463 that date plus one day (that amount is later substracted after
10464 executing mktime) so there are no problems with time zone adjustments.
10466 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
10468 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
10469 a-catizo.ads, a-catizo.adb: New files.
10471 * impunit.adb: Add new Ada 2005 entries
10473 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
10474 Rename all occurences of "__gnat_localtime_r" to
10475 "__gnat_localtime_tzoff".
10476 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
10477 zone data and calculate the GMT offset.
10478 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
10479 Use the field "tm_gmtoff" to extract the GMT offset.
10480 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
10481 the external variable "timezone" to calculate the GMT offset.
10483 2006-10-31 Arnaud Charlet <charlet@adacore.com>
10484 Jose Ruiz <ruiz@adacore.com>
10486 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
10487 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
10488 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
10489 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
10490 System.Any_Priority to a POSIX priority on the target.
10492 * system-linux-ia64.ads:
10493 Extend range of Priority types on Linux to use the whole range made
10494 available by the system.
10496 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
10497 function maps from System.Any_Priority to a POSIX priority on the
10499 (PTHREAD_PRIO_PROTECT): Set real value.
10500 (PTHREAD_PRIO_INHERIT): Now a function.
10501 (SIGCPUFAIL): New signal.
10502 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
10503 are documented as reserved by the OS.
10505 * system-aix.ads: Use the full range of priorities provided by the
10508 * s-taprop-posix.adb: Call new function To_Target_Priority.
10509 (Set_Priority): Take into account Task_Dispatching_Policy and
10510 Priority_Specific_Dispatching pragmas when determining if Round Robin
10511 must be used for scheduling the task.
10513 * system-linux-x86_64.ads, system-linux-x86.ads,
10514 system-linux-ppc.ads: Extend range of Priority types on Linux to use
10515 the whole range made available by the system.
10517 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
10518 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
10519 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
10520 when deallocating the TCB in order to avoid potential references to
10522 (Set_Priority): Take into account Task_Dispatching_Policy and
10523 Priority_Specific_Dispatching pragmas when determining if Round Robin
10524 or FIFO within priorities must be used for scheduling the task.
10526 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
10527 the Thread field (to be used internally by the run-time system) and the
10528 kernel-level task id in the LWP field (to be used by the debugger).
10529 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
10530 instance, and propagate the current task options to the spawned task.
10531 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
10532 (Initialize): Set Round Robin dispatching when the corresponding pragma
10535 2006-10-31 Robert Dewar <dewar@adacore.com>
10537 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10538 system-linux-hppa.ads, system-hpux-ia64.ads,
10539 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
10540 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10541 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10542 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
10543 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10544 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10545 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
10546 Default_Bit_Order) to kill constant condition warnings for references
10549 2006-10-31 Vincent Celier <celier@adacore.com>
10550 Eric Botcazou <ebotcazou@adacore.com>
10552 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
10553 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
10554 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
10555 Ext_To, when building the library file name
10557 * mlib-tgt-vxworks.adb: ditto.
10558 (Get_Target_Suffix): Add support for x86 targets.
10560 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
10562 * mlib-tgt-darwin.adb:
10563 Use Append_To, instead of Ext_To, when building the library file name
10564 (Flat_Namespace): New global variable.
10565 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
10566 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
10567 (Link_Shared_Libgcc): Delete.
10568 (Build_Dynamic_Library): Adjust for above changes.
10570 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
10572 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
10574 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
10575 (Initialize): Add type conversions required by above change.
10577 2006-10-31 Jose Ruiz <ruiz@adacore.com>
10579 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
10580 (getpid): New body for this function that uses the underlying taskIdSelf
10581 function for VxWorks 5 and VxWorks 6 in kernel mode.
10582 (unsigned_int): New type, modular to allow logical bit operations.
10583 (taskOptionsGet): New imported function.
10585 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
10586 field to be compliant with the type used by the corresponding operating
10589 2006-10-31 Pascal Obry <obry@adacore.com>
10590 Eric Botcazou <ebotcazou@adacore.com>
10591 Vincent Celier <celier@adacore.com>
10593 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
10594 ASCII version of the registry API. This is needed as the GNAT runtime
10595 is now UNICODE by default.
10597 (get_gcc_version): Do not hardcode the return value.
10598 (__gnat_file_time_name): On Windows properly set the default returned
10599 value to -1 which corresponds to Invalid_Time.
10600 (__gnat_fopen): New routine. A simple wrapper on all plateforms
10601 except on Windows where it does conversion for unicode support.
10602 (__gnat_freopen): Idem.
10603 (__gnat_locate_exec_on_path): If environment variable PATH does not
10604 exist, return a NULL pointer
10606 * adaint.h: (__gnat_fopen): Declare.
10607 (__gnat_freopen): Likewise.
10609 * mingw32.h (_tfreopen): Define this macro here for older MingW
10611 Activate the unicode support on platforms using a MingW runtime
10612 version 3.9 or newer.
10614 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
10615 This is needed for proper unicode support on Windows.
10618 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
10619 Nicolas Setton <setton@adacore.com>
10620 Olivier Hainque <hainque@adacore.com>
10621 Gary Dismukes <dismukes@adacore.com>
10623 * gigi.h: (tree_code_for_record_type): Declare.
10624 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
10625 (get_global_renaming_pointers): Rename to
10626 invalidate_global_renaming_pointers.
10627 (static_ctors): Delete.
10628 (static_dtors): Likewise.
10629 (gnat_write_global_declarations): Declare.
10630 (create_var_decl): Adjust descriptive comment to indicate that the
10631 subprogram may return a CONST_DECL node.
10632 (create_true_var_decl): Declare new function, similar to
10633 create_var_decl but forcing the creation of a VAR_DECL node.
10634 (get_global_renaming_pointers): Declare.
10635 (add_global_renaming_pointer): Likewise.
10637 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
10639 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
10640 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
10642 (gnat_to_gnu_entity): Remove From_With_Type from computation for
10644 <E_Access_Type>: Use the Non_Limited_View as the full view of the
10645 designated type if the pointer comes from a limited_with clause. Make
10646 incomplete designated type if it is in the main unit and has a freeze
10648 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
10649 Underlying_Full_View similarly. Return earlier if the full view already
10650 has an associated tree.
10651 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
10652 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
10653 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
10654 reference type built for objects with an address clause.
10655 Use create_true_var_decl with const_flag set for
10656 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
10658 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
10659 for Character and Wide_Character types. This info is read by the
10660 dwarf-2 writer, and is needed to be able to use the command "ptype
10661 character" in the debugger.
10662 (gnat_to_gnu_entity): When generating a type representing
10663 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
10664 so that debug writers can distinguish it from ordinary integers.
10665 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
10666 addition to TREE_READONLY to assert the constantness of variables for
10667 elaboration purposes.
10668 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
10669 parameters to call new Einfo function First_Formal_With_Extras.
10670 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
10671 protected type with its corresponding discriminant, to obtain a usable
10673 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
10674 for a multiple elaboration of the "equivalent" type.
10675 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
10676 into record_global_renaming_pointer.
10677 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
10678 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
10679 <E_Array_Subtype>: Likewise.
10680 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
10681 incomplete subtypes and incomplete subtypes of incomplete types visible
10682 through a limited with clause.
10683 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
10684 the base index type for the maximum size of the array only if they are
10686 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
10687 expression into a SAVE_EXPR if stabilization failed.
10689 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
10690 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
10691 by lower level compilation passes.
10692 (gnat_genericize): New function, lowering a function body to GENERIC.
10693 Turn the type of RESULT_DECL into a real reference type if the decl
10694 has been marked DECL_BY_REFERENCE, and adjust references to the latter
10696 (gnat_genericize_r): New function. Tree walking callback for
10698 (convert_from_reference, is_byref_result): New functions. Helpers for
10700 (create_type_decl): Call gnat_pushdecl before calling
10701 rest_of_decl_compilation, to make sure that field TYPE_NAME of
10702 type_decl is properly set before calling the debug information writers.
10703 (write_record_type_debug_info): The heuristics which compute the
10704 alignment of a field in a variant record might not be accurate. Add a
10705 safety test to make sure no alignment is set to a smaller value than
10706 the alignment of the field type.
10707 (make_dummy_type): Use the Non_Limited_View as the underlying type if
10708 the type comes from a limited_with clause. Do not loop on the full view.
10709 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
10710 (dummy_node_table): New global variable, moved from decl.c.
10711 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
10712 (save_gnu_tree): Use above macros.
10713 (get_gnu_tree): Likewise.
10714 (present_gnu_tree): Likewise.
10715 (init_dummy_type): New function, moved from decl.c. Use above macros.
10716 (make_dummy_type): Likewise.
10717 (tree_code_for_record_type): New function extracted from make_dummy_type
10718 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
10719 (static_ctors): Change it to a vector, make static.
10720 (static_dtors): Likewise.
10721 (end_subprog_body): Adjust for above change.
10722 (build_global_cdtor): Moved from trans.c.
10723 (gnat_write_global_declarations): Emit global constructor and
10724 destructor, and call cgraph_optimize before emitting debug info for
10725 global declarations.
10726 (global_decls): New global variable.
10727 (gnat_pushdecl): Store the global declarations in global_decls, for
10729 (gnat_write_global_declarations): Emit debug information for global
10731 (create_var_decl_1): Former create_var_decl, with an extra argument to
10732 state whether the creation of a CONST_DECL is allowed.
10733 (create_var_decl): Behavior unchanged. Now a wrapper around
10734 create_var_decl_1 allowing CONST_DECL creation.
10735 (create_true_var_decl): New function, similar to create_var_decl but
10736 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
10737 (create_field_decl): Do not always mark the field as addressable
10738 if its type is an aggregate.
10739 (global_renaming_pointers): New static variable.
10740 (add_global_renaming_pointer): New function.
10741 (get_global_renaming_pointers): Likewise.
10743 * misc.c (gnat_dwarf_name): New function.
10744 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
10745 (gnat_post_options): Add comment about structural alias analysis.
10746 (gnat_parse_file): Do not call cgraph_optimize here.
10747 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
10749 * trans.c (process_freeze_entity): Don't abort if we already have a
10750 non dummy GCC tree for a Concurrent_Record_Type, as it might
10751 legitimately have been elaborated while processing the associated
10752 Concurrent_Type prior to this explicit freeze node.
10753 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
10754 exception handler volatile if it is of variable size.
10755 (process_type): Remove bypass for types coming from a limited_with
10757 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
10758 actual, convert the corresponding gnu_actual to the real destination
10759 type when necessary.
10760 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
10761 originally TREE_READONLY but whose elaboration cannot be performed
10763 Part of fix for F504-021.
10764 (tree_transform, subprogram cases): Change loops on formal parameters to
10765 call new Einfo function First_Formal_With_Extras.
10766 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
10767 stemming from type conversion for the lhs.
10768 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
10769 number of bits per unit for components of records.
10770 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
10771 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
10772 with At_End_Proc after the SJLJ EH cleanup.
10773 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
10775 (elaborate_all_entities): Do not retest type_annotate_only.
10776 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
10777 result type of an abstract subprogram, which may be an itype associated
10778 with an anonymous access result (related to AI-318-02).
10779 (build_global_cdtor): Move to utils.c.
10780 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
10781 this choice is not a null tree nor an integer constant.
10782 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
10783 on the body of elaboration routines instead of mark_unvisited.
10784 (add_stmt): Do not mark the tree.
10785 (add_decl_expr): Tweak comment.
10786 (mark_unvisited): Delete.
10787 (unshare_save_expr): New static function.
10788 (call_to_gnu): Issue an error when making a temporary around a
10789 procedure call because of non-addressable actual parameter if the
10790 type of the formal is by_reference.
10791 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
10792 after building the elaboration routine.
10794 2006-10-31 Bob Duff <duff@adacore.com>
10796 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
10797 as finalization-started, so we can raise Program_Error on 'new'.
10799 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
10800 collection has already started.
10802 * s-finimp.ads (Collection_Finalization_Started): Added new special
10803 flag value for indicating that a collection's finalization has started.
10805 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
10806 create a task whose master has already waited for dependent tasks.
10808 2006-10-31 Robert Dewar <dewar@adacore.com>
10810 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
10812 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
10813 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
10814 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
10815 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
10816 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
10817 a-except-2005.ads: Add pragma Preelaborable_Warning
10819 2006-10-31 Robert Dewar <dewar@adacore.com>
10820 Jose Ruiz <ruiz@adacore.com>
10822 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
10824 * ali.adb (Get_Name): Properly handle scanning of wide character names
10825 encoded with brackets notation.
10826 (Known_ALI_Lines): Add S lines to this list.
10827 (Scan_ALI): Acquire S (priority specific dispatching) lines.
10828 New flag Elaborate_All_Desirable in unit table
10830 * ali.ads (Priority_Specific_Dispatching): Add this range of
10831 identifiers to be used for Priority_Specific_Dispatching table entries.
10832 (ALIs_Record): Add First_Specific_Dispatching and
10833 Last_Specific_Dispatching that point to the first and last entries
10834 respectively in the priority specific dispatching table for this unit.
10835 (Specific_Dispatching): Add this table for storing each S (priority
10836 specific dispatching) line encountered in the input ALI file.
10837 New flag Elaborate_All_Desirable in unit table
10839 * bcheck.adb: (Check_Configuration_Consistency): Add call to
10840 Check_Consistent_Dispatching_Policy.
10841 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
10842 verifying that the use of Priority_Specific_Dispatching,
10843 Task_Dispatching_Policy, and Locking_Policy is consistent across the
10846 * bindgen.adb: (Public_Version_Warning): function removed.
10847 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
10848 required information from ALI files in order to initialize the table
10849 containing the specific dispatching policy.
10850 (Gen_Adainit_Ada): Generate the variables required for priority specific
10851 dispatching entries (__gl_priority_specific_dispatching and
10852 __gl_num_specific_dispatching).
10853 (Gen_Adainit_C): Generate the variables required for priority specific
10854 dispatching entries (__gl_priority_specific_dispatching and
10855 __gl_num_specific_dispatching).
10856 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
10858 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
10859 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
10861 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
10862 a call to gnat_set_globals.
10863 Generate a string containing settings from
10864 Priority_Specific_Dispatching pragma entries.
10865 (Gen_Object_Files_Options): Do not include the runtime libraries when
10866 pragma No_Run_Time is specified.
10868 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
10869 consistency with s-intman-posix.adb.
10870 (__gnat_error_handler, case FreeBSD): Account for the fact that the
10871 handler is installed with SA_SIGINFO.
10872 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
10873 FreeBSD ZCX support, copied from Linux version.
10874 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
10875 sigfillset, and sigemptyset so the routines defined by MaRTE.
10876 (__gl_priority_specific_dispatching): Add this variable that stores the
10877 string containing priority specific dispatching policies in the
10879 (__gl_num_specific_dispatching): Add this variable that indicates the
10880 highest priority for which a priority specific dispatching pragma
10882 (__gnat_get_specific_dispatching): Add this routine that returns the
10883 priority specific dispatching policy, as set by a
10884 Priority_Specific_Dispatching pragma appearing anywhere in the current
10885 partition. The input argument is the priority number, and the result
10886 is the upper case first character of the policy name.
10887 (__gnat_set_globals): Now a dummy function.
10888 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
10889 mechargs instead of sigargs, as the latter can be retrieved from the
10890 former and sigargs is not what we want on ia64.
10891 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
10893 (__gnat_adjust_context_for_raise, ia64-vms): New function.
10894 (tasking_error): Remove unused symbol.
10895 (_abort_signal): Move this symbol to the IRIX specific part since this
10896 is the only target that uses this definition.
10897 (Check_Abort_Status): Move this symbol to the IRIX specific part since
10898 this is the only target that uses this definition.
10899 (Lock_Task): Remove unused symbol.
10900 (Unlock_Task): Remove unused symbol.
10902 * lib-writ.adb (Write_ALI): Output new S lines for
10903 Priority_Specific_Dispatching pragmas.
10904 Implement new flag BD for elaborate body desirable
10906 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
10907 (Specific_Dispatching): Add this table for storing the entries
10908 corresponding to Priority_Specific_Dispatching pragmas.
10909 Document new BD flag for elaborate body desirable
10911 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
10914 2006-10-31 Javier Miranda <miranda@adacore.com>
10916 * a-tags.ads, a-tags.adb:
10917 (Predefined_DT): New function that improves readability of the code.
10918 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
10919 Inherit_DT): Use the new function Predefined_DT to improve code
10921 (Register_Interface_Tag): Update assertion.
10922 (Set_Interface_Table): Update assertion.
10923 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
10924 determining progenitor interfaces in Tags.
10925 (Inherit_CPP_DT): New subprogram.
10927 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
10928 analysis of the thunk code.
10929 (Expand_Interface_Conversion): Handle run-time conversion of
10930 access to class wide types.
10931 (Expand_Dispatching_Call): When generating the profile for the
10932 subprogram itype for a dispatching operation, properly terminate the
10933 formal parameters chaind list (set the Next_Entity of the last formal
10935 (Collect_All_Interfaces): Removed. This routine has been moved to
10936 sem_util and renamed as Collect_All_Abstract_Interfaces.
10937 (Set_All_DT_Position): Hidden entities associated with abstract
10938 interface primitives are not taken into account in the check for
10939 3.9.3(10); this check is done with the aliased entity.
10940 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
10941 interfacing with CPP by default.
10942 (Expand_Interface_Conversion): Add missing support for static conversion
10943 from an interface to a tagged type.
10944 (Collect_All_Interfaces): Add new out formal containing the list of
10945 abstract interface types to cleanup the subprogram Make_DT.
10946 (Make_DT): Update the code to generate the table of interfaces in case
10947 of abstract interface types.
10948 (Is_Predefined_Dispatching_Alias): New function that returns true if
10949 a primitive is not a predefined dispatching primitive but it is an
10950 alias of a predefined dispatching primitive.
10951 (Make_DT): If the ancestor of the type is a CPP_Class and we are
10952 compiling under full ABI compatibility mode we avoid the generation of
10953 calls to run-time services that fill the dispatch tables because under
10954 this mode we currently inherit the dispatch tables in the IP subprogram.
10955 (Write_DT): Emit an "is null" indication for a null procedure primitive.
10956 (Expand_Interface_Conversion): Use an address as the type of the formal
10957 of the internally built function that handles the case in which the
10958 target type is an access type.
10960 2006-10-31 Robert Dewar <dewar@adacore.com>
10962 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
10964 2006-10-31 Robert Dewar <dewar@adacore.com>
10966 * bindusg.ads, bindusg.adb:
10967 Change to package and rename procedure as Display, which
10968 now ensures that it only outputs usage information once.
10970 2006-10-31 Jose Ruiz <ruiz@adacore.com>
10972 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
10975 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
10978 2006-10-31 Robert Dewar <dewar@adacore.com>
10979 Ed Schonberg <schonberg@adacore.com>
10981 * treepr.adb: Use new subtype N_Membership_Test
10983 * checks.ads, checks.adb: Add definition for Validity_Check
10984 (Range_Or_Validity_Checks_Suppressed): New function
10985 (Ensure_Valid): Test Validity_Check suppressed
10986 (Insert_Valid_Check): Test Validity_Check suppressed
10987 (Insert_Valid_Check): Preserve Do_Range_Check flag
10988 (Validity_Check_Range): New procedure
10989 (Expr_Known_Valid): Result of membership test is always valid
10990 (Selected_Range_Checks): Range checks cannot be applied to discriminants
10991 by themselves. Disabling those checks must also be done for task types,
10992 where discriminants may be used for the bounds of entry families.
10993 (Apply_Address_Clause_Check): Remove side-effects if address expression
10994 is non-static and is not the name of a declared constant.
10995 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
10996 Code cleanup and new error messages.
10997 (Enable_Range_Check): Test for some cases of suppressed checks
10998 (Generate_Index_Checks): Suppress index checks if index checks are
10999 suppressed for array object or array type.
11000 (Apply_Selected_Length_Checks): Give warning for compile-time detected
11001 length check failure, even if checks are off.
11002 (Ensure_Valid): Do not generate a check on an indexed component whose
11003 prefix is a packed boolean array.
11004 * checks.adb: (Alignment_Checks_Suppressed): New function
11005 (Apply_Address_Clause_Check): New procedure, this is a completely
11006 rewritten replacement for Apply_Alignment_Check
11007 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
11008 we request a discriminal value only in case of discriminants.
11009 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
11010 assignments where the target subtype is unconstrained and the target
11011 object is a parameter or dereference (other aliased cases are known
11012 to be unconstrained).
11014 2006-10-31 Robert Dewar <dewar@adacore.com>
11016 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
11017 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
11018 vms_conv.adb: Fix bad table increment values (much too small)
11020 * table.adb (Realloc): Make sure we get at least some new elements
11021 Defends against silly small values for table increment
11023 2006-10-31 Robert Dewar <dewar@adacore.com>
11024 Ed Schonberg <schonberg@adacore.com>
11025 Bob Duff <duff@adacore.com>
11027 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
11028 entities. Move other fields around to make this possible
11029 (Is_Derived_Type): Add missing call to Is_Type.
11030 (Extra_Formals): New function for subprograms, entries, subprogram
11032 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
11033 (First_Formal_With_Extras): New function for subprogs, entries, subp
11035 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
11036 Add node information for E_Return_Statement.
11037 (Elaborate_Body_Desirable): New flag
11038 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
11039 to be Is_Inherently_Limited_Type, because return-by-reference has
11040 no meaning in Ada 2005.
11041 (E_Return_Statement): New entity kind.
11042 (Return_Applies_To): Field of E_Return_Statement.
11043 (Is_Return_Object): New flag in object entities.
11044 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
11045 (Must_Have_Preelab_Init): New flag
11046 (Known_To_Have_Preelab_Init): New flag
11047 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
11048 (Is_Visible_Formal): New flag on entities in formal packages.
11049 (Low_Bound_Known): New flag
11050 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
11052 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
11053 output when Id is an incomplete subtype.
11055 2006-10-31 Robert Dewar <dewar@adacore.com>
11057 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
11058 Avoid abbreviation Creat
11059 (Finalize): List all sources in extended mail source if -gnatl
11061 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
11062 (Finalize): Implement new -gnatl=xxx switch to output listing to file
11063 (Set_Specific_Warning_On): New procedure
11064 (Set_Specific_Warning_Off): New procedure
11065 Add implementation of new insertion \\
11066 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
11067 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
11069 (Error_Msg_Internal): Make sure that we set Last_Killed to
11070 True when a message from another package is suppressed.
11071 Implement insertion character ~ (insert string)
11072 (First_Node): Minor adjustments to get better placement.
11075 Implement new -gnatl=xxx switch to output listing to file
11078 Implement new -gnatl=xxx switch to output listing to file
11080 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
11081 (Commands_To_Stdout): New flag
11082 Implement new -gnatl=xxx switch to output listing to file
11083 New switch Dump_Source_Text
11084 (Warn_On_Deleted_Code): New warning flag for -gnatwt
11085 Define Error_Msg_Line_Length
11086 (Warn_On_Assumed_Low_Bound): New switch
11088 * osint.ads, osint.adb
11089 (Normalize_Directory_Name): Fix bug.
11090 Implement new -gnatl=xxx switch to output listing to file
11091 (Concat): Removed, replaced by real concatenation
11092 Make use of concatenation now allowed in compiler
11093 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
11094 we find the 'lib' or 'bin' directory even when the tool has been
11095 invoked with a relative path.
11096 (Executable_Name): New function taking string parameters.
11098 * osint-c.ads, osint-c.adb:
11099 Implement new -gnatl=xxx switch to output listing to file
11101 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
11104 Implement new -gnatl=xxx switch to output listing to file
11105 Recognize new -gnatL switch
11106 (no longer keep in old warning about old style usage)
11107 Use concatenation to simplify code
11108 Recognize -gnatjnn switch
11109 (Scan_Front_End_Switches): Clean up handling of -gnatW
11110 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
11112 2006-10-31 Robert Dewar <dewar@adacore.com>
11114 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
11115 (Set_Specific_Warning_Off): New procedure
11116 (Warning_Specifically_Suppressed): New function
11117 (Validate_Specific_Warnings): New procedure
11118 (Output_Msg_Text): Complete rewrite to support -gnatjnn
11120 * err_vars.ads: Implement insertion character ~ (insert string)
11122 2006-10-31 Bob Duff <duff@adacore.com>
11123 Ed Schonberg <schonberg@adacore.com>
11125 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
11126 the parent part is a build-in-place function call, generate assignments.
11127 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
11128 are build-in-place function calls.
11129 (Replace_Self_Reference): New subsidiary of
11130 Make_OK_Assignment_Statement, to replace an access attribute that is a
11131 self-reference into an access to the appropriate component of the
11132 target object. Generalizes previous mechanism to handle self-references
11133 nested at any level.
11134 (Is_Self_Referential_Init): Remove, not needed.
11135 (Is_Self_Referential_Init): New predicate to simplify handling of self
11136 referential components in record aggregates.
11137 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
11138 check for presence of entity before checking for self-reference.
11139 (Has_Default_Init_Comps): Return True if a component association is a
11140 self-reference to the enclosing type, which can only come from a
11141 default initialization.
11142 (Make_OK_Assignment_Statement): If the expression is of the form
11143 Typ'Acc, where Acc is an access attribute, the expression comes from a
11144 default initialized self-referential component.
11145 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
11146 that has been derived from several abstract interfaces we must also
11147 initialize the tags of the secondary dispatch tables.
11149 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11150 Thomas Quinot <quinot@adacore.com>
11151 Javier Miranda <miranda@adacore.com>
11152 Robert Dewar <dewar@adacore.com>
11155 (Expand_Access_To_Protected_Op): If the context indicates that an access
11156 to a local operation may be transfered outside of the object, create an
11157 access to the wrapper operation that must be used in an external call.
11158 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
11159 target, pass the Valid attribute applied to a floating-point prefix on
11160 to the back end without expansion.
11161 (Storage_Size): Use the new run-time function Storage_Size to retrieve
11162 the allocated storage when it is specified by a per-object expression.
11163 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
11164 Nothing to do here, the attribute has been rewritten during semantic
11166 (Expand_Attribute_Reference): Handle expansion of the new Priority
11168 (Find_Fat_Info): Handle case of universal real
11169 (Expand_Access_To_Protected_Op): Fix use of access to protected
11170 subprogram from inside the body of a protected entry.
11171 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
11172 'Access and 'Unrestricted_Access, to transform the attribute reference
11173 into a fat pointer.
11174 (Is_Constrained_Aliased_View): New predicate to help determine whether a
11175 subcomponent's enclosing variable is aliased with a constrained subtype.
11176 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
11177 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
11178 an aliased prefix must be known to be constrained in order to use True
11179 for the attribute value, and now it's possible for some aliased views
11180 to be unconstrained.
11182 2006-10-31 Robert Dewar <dewar@adacore.com>
11184 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
11185 (Expand_Entity_Reference): Correct error of not handling subprogram
11186 formals in current_value processing.
11188 2006-10-31 Javier Miranda <miranda@adacore.com>
11189 Robert Dewar <dewar@adacore.com>
11190 Ed Schonberg <schonberg@adacore.com>
11191 Gary Dismukes <dismukes@adacore.com>
11193 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
11194 register in the final list objects containing class-wide interfaces;
11195 otherwise we incorrectly register the tag of the interface in the final
11197 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
11198 generate the wrapper if the parent primitive is abstract. This is
11199 required to report the correct error message.
11200 (Expand_N_Subtype_Indication): Do validity checks on range
11201 (Clean_Task_Names): If an initialization procedure includes a call to
11202 initialize a task (sub)component, indicate that the procedure will use
11203 the secondary stack.
11204 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
11205 compatibility for interfacing with CPP by default.
11206 (Expand_N_Object_Declaration): Only build an Adjust call when the
11207 object's type is a nonlimited controlled type.
11208 * exp_ch3.adb: Add with and use of Exp_Ch6.
11209 (Expand_N_Object_Declaration): Check for object initialization that is a
11210 call to build-in-place function and apply Make_Build_In_Place_Call_In_
11211 Object_Declaration to the call.
11212 (Freeze_Type): When the designated type of an RACW was not frozen at the
11213 point where the RACW was declared, validate the primitive operations
11214 with respect to E.2.2(14) when it finally is frozen.
11215 (Build_Initialization_Call,Expand_Record_Controller): Rename
11216 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
11217 return-by-reference has no meaning in Ada 2005.
11218 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
11219 to register tag of the immediate ancestor interfaces in the
11220 run-time structure.
11221 (Init_Secondary_Tags): Moved to the specification to allow the
11222 initialization of extension aggregates with abstract interfaces.
11223 (Build_Master_Renaming): Make public, for use by function declarations
11224 whose return type is an anonymous access type.
11225 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
11226 Insert_List_Before_And_Analyze after the generation of the specs
11227 associated with null procedures.
11228 (Expand_Tagged_Root): Update documentation in its specification.
11229 (Init_Secondary_Tags): Update documentation.
11230 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
11231 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
11232 then generate code to inherit the contents of the dispatch table
11233 directly from the ancestor.
11234 (Expand_Record_Controller): Insert controller component after tags of
11235 implemented interfaces.
11236 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
11237 create null procedure overridings when null procedures are inherited
11239 (Make_Null_Procedure_Specs): New procedure to generate null procedure
11240 declarations for overriding null primitives inherited from interfaces.
11241 (Is_Null_Interface_Procedure): New function in
11242 Make_Null_Procedure_Specs.
11243 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
11244 immediate ancestor of a tagged type is an abstract interface type we
11245 must generate the specification of the predefined primitives associated
11246 with controlled types (because the dispatch table of the ancestor is
11247 null and hence these entries cannot be inherited). This is required to
11248 elaborate well the dispatch table.
11250 2006-10-31 Javier Miranda <miranda@adacore.com>
11251 Ed Schonberg <schonberg@adacore.com>
11252 Bob Duff <duff@adacore.com>
11253 Gary Dismukes <dismukes@adacore.com>
11254 Robert Dewar <dewar@adacore.com>
11256 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
11258 (Expand_N_In): Do validity checks on range
11259 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
11260 (Expand_N_Allocator): For "new T", if the object is constrained by
11261 discriminant defaults, allocate the right amount of memory, rather than
11262 the maximum for type T.
11263 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
11264 when the allocator is initialized by a build-in-place call, since the
11265 allocator is already rewritten as a reference to the function result,
11266 and this prevents an unwanted duplication of the function call.
11267 Add with and use of Exp_Ch6.
11268 (Expand_Allocator_Expresssion): Check for an allocator whose expression
11269 is a call to build-in-place function and apply
11270 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
11271 untagged designated types).
11272 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
11273 optimization if source or target is biased.
11274 (Expand_N_Allocator): Add comments for case of an allocator within a
11275 function that returns an anonymous access type designating tasks.
11276 (Expand_N_Allocator): apply discriminant checks for access
11277 discriminants of anonymous access types (AI-402, AI-416)
11279 2006-10-31 Bob Duff <duff@adacore.com>
11280 Robert Dewar <dewar@adacore.com>
11281 Gary Dismukes <dismukes@adacore.com>
11282 Ed Schonberg <schonberg@adacore.com>
11284 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
11286 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
11287 (Expand_N_Assignment_Statement): Call
11288 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
11289 build-in-place function call. Currently, this can happen only for
11290 assignments that come from aggregates.
11291 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11292 in order to alleviate the upward compatibility introduced by AI-318.
11293 (Expand_N_Extended_Return_Statement): Add support for handling the
11294 return object as a build-in-place result.
11295 (Expand_Non_Function_Return): Implement simple return statements nested
11296 within an extended return.
11297 (Enable_New_Return_Processing): Turn on the new processing of return
11299 (Expand_Non_Function_Return): For a return within an extended return,
11300 don't raise Program_Error, because Sem_Ch6 now gives a warning.
11301 (Expand_N_Extended_Return_Statement): Implement AI-318
11302 (Expand_Simple_Function_Return): Ditto.
11303 (Expand_N_If_Statement): Handle new -gnatwt warning
11304 (Expand_N_Case_Statement): Handle new -gnatwt warning
11305 (Expand_N_Assignment): Handle assignment to the Priority attribute of
11306 a protected object.
11307 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
11308 validity checking of assignments to elementary record components.
11309 (Expand_N_Return_Statement): return Class Wide types on the secondary
11310 stack independantly of their controlled status since with HIE runtimes,
11311 class wide types are not potentially controlled anymore.
11313 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
11316 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
11317 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
11318 it expects a block, procedure, or task. The return statement will get
11319 turned into a block, and Expand_Cleanup_Actions will happen then.
11321 2006-10-31 Robert Dewar <dewar@adacore.com>
11322 Ed Schonberg <schonberg@adacore.com>
11323 Bob Duff <duff@adacore.com>
11324 Gary Dismukes <dismukes@adacore.com>
11326 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
11328 (Expand_Inlined_Call): Tagged types are by-reference types, and
11329 therefore should be replaced by a renaming declaration in the expanded
11330 body, as is done for limited types.
11331 (Expand_Call): If this is a call to a function with dispatching access
11332 result, propagate tag from context.
11333 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
11335 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
11336 build-in-place when the right-hand side of an assignment is a
11337 build-in-place function call.
11338 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
11339 of the explicit dereference of the allocator to the result subtype of
11340 the build-in-place function. This is needed to satisfy type checking
11341 in cases where the caller's return object is created by an allocator for
11342 a class-wide access type and the type named in the allocator is a
11344 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
11345 conversion of the reference to the declared object to the result subtype
11346 of the build-in-place function. This is needed to satisfy type checking
11347 in cases where the declared object has a class-wide type. Also, in the
11348 class-wide case, change the type of the object entity to the specific
11349 result subtype of the function, to avoid passing a class-wide object
11350 without explicit initialization to the back end.
11351 (Register_Interface_DT_Entry): Moved outside the body of
11352 Freeze_Subprogram because this routine is now public; it is called from
11353 Check_Dispatching_Overriding to handle late overriding of abstract
11354 interface primitives.
11355 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
11356 adding an implicit access actual on a call to a build-in-place function.
11357 (Expand_Actuals): Test for an actual parameter that is a call to a
11358 build-in-place function and apply
11359 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
11360 (Is_Build_In_Place_Function): New function to determine whether an
11361 entity is a function whose calls should be handled as build-in-place.
11362 (Is_Build_In_Place_Function_Call): New function to determine whether an
11363 expression is a function call that should handled as build-in-place.
11364 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
11365 calls to build-in-place functions as the initialization of an allocator.
11366 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
11367 handling calls to build-in-place functions in contexts that do not
11368 involve init of a separate object (for example, actuals of subprogram
11370 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
11371 handling calls to build-in-place functions as the initialization of an
11372 object declaration.
11373 (Detect_Infinite_Recursion): Add explicit parameter Process to
11374 instantiation of Traverse_Body to avoid unreferenced warning.
11375 (Check_Overriding_Inherited_Interfaces): Removed.
11376 (Register_Interface_DT_Entry): Code cleanup.
11377 (Register_Predefined_DT_Entry): Code cleanup.
11378 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
11379 inlined statements if within a transient scope.
11380 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
11381 formal parameters with occurrences of actuals in inlined body, establish
11382 visibility on the proper view of the actual's subtype for the body's
11384 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
11385 compatibility mode and we have an imported CPP subprogram because
11386 for now we assume that imported CPP primitives correspond with
11387 objects whose constructor is in the CPP side (and therefore we
11388 don't need to generate code to register them in the dispatch table).
11389 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
11390 aligned selected component.
11391 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
11392 the actual of an in-mode parameter is a type conversion.
11393 (Expand_Actuals): If the call does not come from source and the actual
11394 is potentially misaligned, let gigi handle it rather than rejecting the
11395 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
11396 Class Wide types as returning by reference independantly of their
11397 controlled status since with HIE runtimes class wide types are not
11398 potentially controlled anymore.
11400 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11402 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
11403 references that are private components of the protected object.
11404 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
11405 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
11406 instantiation to deal with warnings.
11407 (Initialize_Protection): If expression for priority is non-static, use
11408 System_Priority as its expected type, in case the expression has not
11411 2006-10-31 Robert Dewar <dewar@adacore.com>
11413 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
11414 initialization of Homonym_Len.
11415 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
11416 names from fully qualified name. Fixes problem of duplicate
11417 external names differing only in the presence of such a block name.
11419 2006-10-31 Thomas Quinot <quinot@adacore.com>
11420 Pablo Oliveira <oliveira@adacore.com>
11422 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
11423 subprogram Ids, even if they are not yet assigned.
11424 (Build_Subprogram_Id): It is now this function that will take care of
11425 calling Assign_Subprogram_Ids if necessary.
11426 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
11427 should be done only once they are assigned.
11428 (Build_From_Any_Function, case of tagged types): Add missing call to
11430 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
11431 type for an RACW type.
11432 (Add_RACW_Features): When processing an RACW declaration for which the
11433 designated type is already frozen, enforce E.2.2(14) rules immediately.
11434 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
11435 special reordering of controlling formals.
11437 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
11438 associated stub type for an RACW type.
11440 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11442 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
11443 fixed-point operations in an integer context, i.e. as operands of a
11444 conversion to an integer type, indicate that result must be rounded.
11446 2006-10-31 Robert Dewar <dewar@adacore.com>
11448 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
11449 cases, pass the encoding method, since it is now required by the run
11452 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
11453 assumption that Str'First = 1.
11454 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
11455 it on to the Value_Wide_Wide_Character call.
11456 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
11457 properly handles a string of the form quote-encoded_wide_char-quote.
11459 * s-wchcnv.adb: Minor reformatting
11461 2006-10-31 Javier Miranda <miranda@adacore.com>
11463 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11464 run-time membership test to ensure that the constructed object
11465 implements the target abstract interface.
11467 2006-10-31 Robert Dewar <dewar@adacore.com>
11469 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
11470 Machine_Attribute pragma internally to implement the user pragma.
11471 Add processing for pragma Interface so that it is now completely
11472 equivalent to pragma Import.
11474 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
11475 so that it can be applied to all entities, including record components
11476 and enumeration literals.
11477 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
11478 priority ranges are correct, verify compatibility against task
11479 dispatching and locking policies, and if everything is correct an entry
11480 is added to the table containing priority specific dispatching entries
11481 for this compilation unit.
11482 (Delay_Config_Pragma_Analyze): Delay processing
11483 Priority_Specific_Dispatching pragmas because when processing the
11484 pragma we need to access run-time data, such as the range of
11485 System.Any_Priority.
11486 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
11487 Allow pragma Unreferenced as a context item
11488 Add pragma Preelaborable_Initialization
11489 (Analyze_Pragma, case Interface): Interface is extended so that it is
11490 now syntactically and semantically equivalent to Import.
11491 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
11492 insertion characters.
11493 Add handling for Pragma_Wide_Character_Encoding
11494 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
11495 never supercedes a real restriction, and that a real restriction
11496 always supercedes a warning.
11497 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
11500 2006-10-31 Bob Duff <duff@adacore.com>
11501 Ed Schonberg <schonberg@adacore.com>
11502 Robert Dewar <dewar@adacore.com>
11504 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
11505 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
11506 Is_Inherently_Limited_Type, because return-by-reference has no meaning
11508 (Find_Node_To_Be_Wrapped): Use new method of determining the result
11509 type of the function containing a return statement, because the
11510 Return_Type field was removed. We now use the Return_Applies_To field.
11512 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
11513 (Build_Task_Image_Decl): If procedure is not called from an
11514 initialization procedure, indicate that function that builds task name
11515 uses the sec. stack. Otherwise the enclosing initialization procedure
11516 will carry the indication.
11517 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
11518 N_Object_Declaration instead.
11519 (Kill_Dead_Code): New interface to implement -gnatwt warning for
11520 conditional dead code killed, and change implementation accordingly.
11521 (Insert_Actions): Add N_Return_Object_Declaration case.
11522 Correct comment to mention N_Extension_Aggregate node.
11523 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
11524 attempts to save information for global variables which cannot be
11526 (Get_Current_Value_Condition): Handle conditions the other way round
11527 (constant on left). Also handle right operand of AND and AND THEN
11528 (Set_Current_Value_Condition): Corresponding changes
11529 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
11530 (Get_Current_Value_Condition): Handle simple boolean operands
11531 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
11532 (Get_Current_Value_Condition): If the variable reference is within an
11533 if-statement, does not appear in the list of then_statments, and does
11534 not come from source, treat it as being at unknown location.
11535 (Get_Current_Value_Condition): Enhance to allow while statements to be
11536 processed as well as if statements.
11537 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
11539 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
11540 of loop. This is safe now that we fixed Kill_Current_Values.
11541 (OK_To_Do_Constant_Replacement): Check whether current scope is
11542 Standard, before examining outer scopes.
11544 2006-10-31 Vincent Celier <celier@adacore.com>
11546 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
11547 When True, apply VMS treatment to children of packages A, G, I and S.
11550 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
11552 2006-10-31 Robert Dewar <dewar@adacore.com>
11553 Ed Schonberg <schonberg@adacore.com>
11555 * freeze.adb: Add handling of Last_Assignment field
11556 (Warn_Overlay): Supply missing continuation marks in error msgs
11557 (Freeze_Entity): Add check for Preelaborable_Initialization
11559 * g-comlin.adb: Add Warnings (Off) to prevent new warning
11561 * g-expect.adb: Add Warnings (Off) to prevent new warning
11563 * lib-xref.adb: Add handling of Last_Assignment field
11564 (Generate_Reference): Centralize handling of pragma Obsolescent here
11565 (Generate_Reference): Accept an implicit reference generated for a
11566 default in an instance.
11567 (Generate_Reference): Accept a reference for a node that is not in the
11568 main unit, if it is the generic body corresponding to an subprogram
11571 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
11573 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
11575 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
11577 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
11578 use clauses, to avoid messages on packages used to qualify, and also
11579 to avoid messages from obsolescent units.
11580 (Warn_On_Useless_Assignments): Don't generate messages for imported
11581 and exported variables.
11582 (Warn_On_Useless_Assignments): New procedure
11583 (Output_Obsolescent_Entity_Warnings): New procedure
11584 (Check_Code_Statement): New procedure
11586 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
11587 Change name Is_Ada_2005 to Is_Ada_2005_Only
11588 (Last_Assignment): New field for useless assignment warning
11590 2006-10-31 Olivier Hainque <hainque@adacore.com>
11592 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
11593 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
11595 2006-10-31 Bob Duff <duff@adacore.com>
11596 Robert Dewar <dewar@adacore.com>
11597 Ed Schonberg <schonberg@adacore.com>
11599 * g-awk.adb (Default_Session, Current_Session): Compile this file in
11600 Ada 95 mode, because it violates the new rules for AI-318.
11602 * g-awk.ads: Use overloaded subprograms in every case where we used to
11603 have a default of Current_Session. This makes the code closer to be
11604 correct for both Ada 95 and 2005.
11606 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
11607 code, relying on the fact that the compiler generates a warning
11608 instead of an error in -gnatg mode.
11610 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
11611 E_Return_Statement entity kind.
11612 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
11614 * par.adb (P_Interface_Type_Definition): Addition of one formal to
11615 report an error if the reserved word abstract has been previously found.
11616 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
11618 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
11619 parenthesized range attribute usage
11620 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
11622 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
11623 in the syntax for extended_return_statement. This is not in the latest
11624 RM, but the ARG is expected to issue an AI allowing this.
11625 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
11626 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
11627 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
11628 P_Return_Statement): Parse the new syntax for extended_return_statement.
11630 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
11631 Output_End_Missing): Add error-recovery code for the new
11632 extended_return_statement syntax; that is, the new E_Return entry on
11635 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
11636 limited to nonlimited, because otherwise we violate the new Ada 2005
11637 rules about returning limited types in function Create_AST_Handler in
11640 * sem.adb (Analyze): Add cases for new node kinds
11641 N_Extended_Return_Statement and N_Return_Object_Declaration.
11643 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
11644 type is in the same category as type of context before applying check,
11645 to prevent anomalies in instantiations.
11646 (Resolve_Aggregate): Remove test for limited components in aggregates.
11647 It's unnecessary in Ada 95, because if it has limited components, then
11648 it must be limited. It's wrong in Ada 2005, because limited aggregates
11650 (Resolve_Record_Aggregate): Move check for limited types later, because
11651 OK_For_Limited_Init requires its argument to have been resolved.
11652 (Get_Value): When copying the component default expression for a
11653 defaulted association in an aggregate, use the sloc of the aggregate
11654 and not that of the original expression, to prevent spurious
11655 elaboration errors, when the expression includes function calls.
11656 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
11657 were missing. We also didn't handle qualified expressions. Now also
11658 allow function calls. Use new common routine OK_For_Limited_Init.
11659 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
11660 with space can upper case letter).
11662 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
11663 Has_Static_Discriminants flag
11664 (Record_Type_Declaration): Diagnose an attempt to declare an interface
11665 type with discriminants.
11666 (Process_Range_Expr_In_Decl): Do validity checks on range
11667 (Build_Discriminant_Constraints): Use updated form of
11668 Denotes_Discriminant.
11669 (Process_Subtype): If the subtype is a private subtype whose full view
11670 is a concurrent subtype, introduce an itype reference to prevent scope
11672 (Build_Derived_Record_Type, Collect_Interface_Primitives,
11673 Record_Type_Declaration): The functionality of the subprograms
11674 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
11675 is now performed by a single routine.
11676 (Build_Derived_Record_Type): If the type definition includes an explicit
11677 indication of limitedness, then the type must be marked as limited here
11678 to ensure that any access discriminants will not be treated as having
11679 a local anonymous access type.
11680 (Check_Abstract_Overriding): Issue a detailed error message when an
11681 abstract subprogram was not overridden due to incorrect mode of its
11683 (Analyze_Private_Extension_Declaration): Add support for the analysis of
11684 synchronized private extension declarations. Verify that the ancestor is
11685 a limited or synchronized interface or in the generic case, the ancestor
11686 is a tagged limited type or synchronized interface and all progenitors
11687 are either limited or synchronized interfaces.
11688 Derived_Type_Declaration): Check for presence of private extension when
11689 dealing with synchronized formal derived types.
11690 Process_Full_View): Enchance the check done on the usage of "limited" by
11691 testing whether the private view is synchronized.
11692 Verify that a synchronized private view is completed by a protected or
11694 (OK_For_Limited_Init_In_05): New function.
11695 (Analyze_Object_Declaration): Move check for limited types later,
11696 because OK_For_Limited_Init requires its argument to have been resolved.
11697 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11698 in order to alleviate the upward compatibility introduced by AI-318.
11699 (Constrain_Corresponding_Record): If the constraint is for a component
11700 subtype, mark the itype as frozen, to avoid out-of-scope references to
11701 discriminants in the back-end.
11702 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
11703 this subprogram against wrong sources.
11704 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
11705 discriminant of limited type completed with a protected type, when the
11706 discriminant is used to constrain a private component of the type, and
11707 expansion is disabled.
11708 (Find_Type_Of_Object): Do not treat a return subtype that is an
11709 anonymous subtype as a local_anonymous_type, because its accessibility
11710 level is the return type of the enclosing function.
11711 (Check_Initialization): In -gnatg mode, turn the error "cannot
11712 initialize entities of limited type" into a warning.
11713 (OK_For_Limited_Init): Return true for generated nodes, since it
11714 sometimes violates the legality rules.
11715 (Make_Incomplete_Declaration): If the type for which an incomplete
11716 declaration is created happens to be the currently visible entity,
11717 preserve the homonym chain when removing it from visibility.
11718 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
11719 inherited subprograms.
11720 (Access_Definition): If this is an access to function that is the return
11721 type of an access_to_function definition, context is a type declaration
11722 and the scope of the anonymous type is the current one.
11723 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
11724 incomplete subtype to the set of private dependents of the original
11726 (Constrain_Discriminated_Type): Emit an error message whenever an
11727 incomplete subtype is being constrained.
11728 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
11729 corresponding subtype of the full view of the original incomplete type.
11730 (Check_Incomplete): Properly detect invalid usage of incomplete types
11733 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11735 * g-catiio.ads, g-catiio.adb (Value): New function.
11736 Given an input String, try and parse a valid Time value.
11738 2006-10-31 Vincent Celier <celier@adacore.com>
11740 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
11741 Integer_Address arithmetic, as in Set_Valid.
11743 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11744 Robert Dewar <dewar@adacore.com>
11746 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
11747 handling executable extension manually and duplicating code.
11749 * make.adb: Implement new -S switch
11750 (Gnatmake): Use new function Osint.Executable_Name instead
11751 of handling executable extension manually.
11753 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
11754 is specified, the executable name ends with this suffix.
11755 Take advantage of Osint.Executable_Name instead of duplicating code.
11757 * switch-m.adb: Recognize new gnatmake -S switch
11759 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
11761 (Get_Target_Parameters): Set Executable_Extension_On_Target if
11764 * makeusg.adb: Add line for gnatmake -S switch
11766 2006-10-31 Vincent Celier <celier@adacore.com>
11768 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
11769 call it with -static-libgcc, as there are some platforms, such as
11770 Darwin, where one of these two switches is compulsory to link.
11772 2006-10-31 Vincent Celier <celier@adacore.com>
11774 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
11775 instead of ADA_PROJECT_PATH, for the project path.
11776 (Gnatls): When displaying the project path directories, use host dir
11779 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
11780 names in the project path, as absolute paths may correspond to
11781 multi-valued VMS logical names.
11783 2006-10-31 Vincent Celier <celier@adacore.com>
11785 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
11786 absolute path name.
11787 (Locate_Regular_File): Ditto
11788 (Change_Dir): Remove, no longer used
11789 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
11790 on Windows. Get it calling Get_Current_Dir.
11791 (OpenVMS): Remove imported boolean, no longer needed.
11792 (Normalize_Pathname)[VMS]: Do not resolve directory names.
11793 (Pid_To_Integer): New function to convert a Process_Id to Integer
11795 2006-10-31 Thomas Quinot <quinot@adacore.com>
11797 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
11798 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
11800 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
11803 2006-10-31 Robert Dewar <dewar@adacore.com>
11805 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
11806 initial letter o as a zero.
11808 2006-10-31 Robert Dewar <dewar@adacore.com>
11810 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
11812 2006-10-31 Robert Dewar <dewar@adacore.com>
11814 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
11816 (Layout_Variant_Record): Retrieve the discriminants from the entity
11817 rather than from the type definition, because in the case of a full
11818 type for a private type we need to take the discriminants from the
11820 (Layout_Component_List): When applying the Max operator to variants with
11821 a nonstatic size, check whether either operand is static and scale that
11822 operand from bits to storage units before applying Max.
11823 (Layout_Type): In VMS, if a C-convention access type has no explicit
11824 size clause (and does not inherit one in the case of a derived type),
11825 then the size is reset to 32 from 64.
11827 2006-10-31 Vincent Celier <celier@adacore.com>
11829 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
11830 its file has already been loaded, according to the unit being loaded,
11831 not to the current value of Multiple_Unit_Index.
11833 2006-10-31 Thomas Quinot <quinot@adacore.com>
11834 Eric Botcazou <ebotcazou@adacore.com>
11835 Arnaud Charlet <charlet@adacore.com>
11837 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
11838 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
11840 (a-except.o): Pass it to the compiler.
11841 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
11842 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
11843 a-calend-mingw.adb version.
11845 * Makefile.rtl: Added s-dsaser.
11846 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
11847 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
11848 Ada.Dispatching.Round_Robin.
11849 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
11851 * Make-lang.in: Remove all references to gt-ada-decl.h.
11852 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
11854 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
11855 Update dependencies.
11857 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
11859 2006-10-31 Vincent Celier <celier@adacore.com>
11861 * mlib-utl.adb (Initialized): Remove, no longer used
11862 (Initialize): Remove, no longer used
11863 (Ar): If Ar_Exec is null, get the location of the archive builder and,
11864 if there is one, the archive indexer. Fail if the archive builder cannot
11866 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
11869 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11871 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
11872 Process_Body_Clauses): If the context of a body includes a use clause
11873 for P.Q then a with_clause for P in the same body is not redundant,
11874 even if the spec also has a with_clause on P.
11875 Add missing continuation mark to error msg
11876 (Build_Limited_Views): A limited view of a type is tagged if its
11877 declaration includes a record extension.
11878 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
11879 node, even if the subunit has errors. This avoids malfunction by
11880 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
11881 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
11882 generation of obsolescent messages for with statements (cannot do
11883 this too early, or we cannot implement avoiding the messages in the
11884 case of obsolescent units withing obsolescent units).
11885 (Install_Siblings): If the with_clause is on a remote descendant of
11886 an ancestor of the current compilation unit, find whether there is
11887 a sibling child unit that is immediately visible.
11888 (Remove_Private_With_Clauses): New procedure, invoked after completing
11889 the analysis of the private part of a nested package, to remove from
11890 visibility the private with_clauses of the enclosing package
11892 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
11893 now centralized in Generate_Reference.
11894 (Install_Limited_Context_Clauses): Remove superfluous error
11895 message associated with unlimited view visible through use
11896 and renamings. In addition, at the point in which the error
11897 is reported, we add the backslash to the text of the error
11898 to ensure that it is reported as a single error message.
11899 Use new // insertion for some continuation messages
11900 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
11901 to create implicit with_clause for parent unit mentioned in original
11902 limited_with_clause.
11903 (Install_Limited_With_Unit): Set entity of parent identifiers if the
11904 unit is a child unit. For ASIS queries.
11905 (Analyze_Subunit): If the subunit appears within a child unit, make all
11906 ancestor child units directly visible again.
11908 2006-10-31 Robert Dewar <dewar@adacore.com>
11910 * par-ch10.adb (P_Context_Clause): Minor error message fix
11912 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11913 Javier Miranda <miranda@adacore.com>
11915 * par-ch12.adb: Grammar update and cleanup.
11916 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
11917 support for synchronized derived type definitions.
11918 Add the new actual Abstract_Present to every call to
11919 P_Interface_Type_Definition.
11920 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
11921 a formal object declaration with an access definition or a subtype mark
11922 with a null exclusion.
11923 (P_Generic_Association): Handle association with box, and others_choice
11924 with box, to support Ada 2005 partially parametrized formal packages.
11926 2006-10-31 Robert Dewar <dewar@adacore.com>
11927 Javier Miranda <miranda@adacore.com>
11929 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
11930 (P_Type_Declaration): Remove barrier against the reserved word "limited"
11931 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
11932 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
11933 private extensions.
11934 (P_Type_Declaration): Add the new actual Abstract_Present to every call
11935 to P_Interface_Type_Definition.
11936 (P_Interface_Type_Definition): Addition of one formal to report an error
11937 if the reserved word abstract has been previously found.
11938 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
11939 object renaming declaration with an access definition or subtype mark
11940 with a possible null exclusion.
11942 * par-ch9.adb: Minor error msg fix
11944 * par-load.adb: Add missing continuation mark to error msg
11946 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
11948 2006-10-31 Vincent Celier <celier@adacore.com>
11950 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
11951 unknown attribute in unknown package or in package that does not need
11953 (Parse_Package_Declaration): Do not issue warning for unknown package in
11956 2006-10-31 Vincent Celier <celier@adacore.com>
11958 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
11959 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
11962 2006-10-31 Vincent Celier <celier@adacore.com>
11964 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
11965 on VMS, change "__" to '.' before checking the name.
11966 (Record_Ada_Source): Always add the source file name in the list of
11967 of sources, even if it is not the first time, as it is for another
11969 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
11970 dot, instead of replacing only the first '_'.
11972 * prj-part.adb (Parse): Convert project file path to canonical form
11974 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
11975 extended, the project id of the project extending it is recorded in its
11976 data, even when it has already been processed as an imported project.
11978 2006-10-31 Robert Dewar <dewar@adacore.com>
11980 * repinfo.adb (List_Entities): Don't list entities from renaming
11983 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11984 Robert Dewar <dewar@adacore.com>
11986 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
11987 only a restriction warning is active for the given restriction. This is
11988 desirable because we do not want to modify code in the case where only
11990 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
11991 causes overriding of real restrictions.
11992 Take advantage of new No_Restrictions constant.
11994 * raise.h: (__gnat_set_globals): Change profile.
11996 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11998 * rtsfind.adb: Remove s-polint from comment as it exists no more.
12001 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
12002 Move all the entities in obsolete package System.PolyORB_Interface to
12003 System.Partition_Interface.
12004 (RE_Storage_Size): New function in System.Tasking.
12005 (RE_Get_Ceiling): New entity.
12006 (RE_Set_Ceiling): New entity.
12007 (RO_PE_Get_Ceiling): New entity.
12008 (RO_RE_Set_Ceiling): New entity.
12009 (Inherit_CPP_DT): New entity
12011 2006-10-31 Robert Dewar <dewar@adacore.com>
12013 * scng.adb (Scan, case of numeric literal): Better msg for identifier
12014 starting with a digit.
12016 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12017 Thomas Quinot <quinot@adacore.com>
12018 Javier Miranda <miranda@adacore.com>
12019 Gary Dismukes <dismukes@adacore.com>
12021 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
12022 properly an attempt to apply Unchecked_Access to a protected operation.
12023 (OK_Self_Reference): New subprogram to check the legality of an access
12024 attribute whose prefix is the type of an enclosing aggregate.
12025 Generalizes previous mechanism to handle attribute references nested
12026 arbitrarily deep within the aggregate.
12027 (Analyze_Access_Attribute): An access attribute whose prefix is a type
12028 can appear in an aggregate if this is a default-initialized aggregate
12029 for a self-referential type.
12030 (Resolve_Attribute, case Access): Ditto.
12031 Add support for new implementation defined attribute Stub_Type.
12032 (Eval_Attribute, case Attribute_Stub_Type): New case.
12033 (Analyze_Attribute, case Attribute_Stub_Type): New case.
12034 (Stream_Attribute_Available): Implement using new subprogram from
12035 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
12036 Has_Specified_Stream_Attribute flag.
12037 Disallow Storage_Size and Storage_Pool for access to subprogram
12038 (Resolve_Attribute, case 'Access et al): Take into account anonymous
12039 access types of return subtypes in extended return statements. Remove
12040 accessibility checks on anonymous access types when Unchecked_Access is
12042 (Analyze_Attribute): Add support for the use of 'Class to convert
12043 a class-wide interface to a tagged type.
12044 Add support for the attribute Priority.
12045 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
12046 whether the designated type is discriminated with a constrained partial
12047 view and require static matching in that case.
12048 Add local variable Des_Btyp. The Designated_Type
12049 of an access to incomplete subtype is either its non-limited view if
12050 coming from a limited with or its etype if regular incomplete subtype.
12052 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
12053 Fix predicate to identify and allow cases of (expander-generated)
12054 references to tag of designated object of a RACW.
12055 (Validate_Static_Object_Name): In Ada 2005, a formal object is
12056 non-static, and therefore cannot appear as a primary in a preelaborable
12058 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
12059 Has_Read_Write_Attributes.
12060 (Has_Read_Write_Attributes): Reimplement in termes of
12061 Has_Stream_Attribute_Definition.
12062 (Missing_Read_Write_Attributes): When checking component types in a
12063 record, unconditionally call Missing_Read_Write_Attributes recursively
12064 (remove guard checking for Is_Record_Type / Is_Access_Type).
12066 2006-10-31 Robert Dewar <dewar@adacore.com>
12068 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
12069 useless assignments here and conditionalize it on absence of exception
12071 (Analyze_Exception_Handlers): Small code reorganization of error
12072 detection code, for new handling of formal packages.
12074 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12075 Hristian Kirtchev <kirtchev@adacore.com>
12077 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
12078 that has been constant-folded, preserve information of original tree,
12080 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
12081 generated private extension declaration if the formal derived type is
12082 synchronized. Carry synchronized present over to the generated private
12084 (Validate_Derived_Type_Instance): Ensure that the actual of a
12085 synchronized formal derived type is a synchronized tagged type.
12086 (Instantiate_Formal_Package): When creating the instantiation used to
12087 validate the actual package of a formal declared without a box, check
12088 whether the formal itself depends on a prior actual.
12089 (Instantiate_Formal_Subprogram): Create new entities for the defining
12090 identifiers of the formals in the renaming declaration, for ASIS use.
12091 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
12092 a renaming declaration or a subtype declaration for an actual in an
12093 instance, capture location information of declaration in generic, for
12095 (Instantiate_Formal_Package): Add comments on needed additional tests.
12096 AI-317 (partial parametrization) is fully implemented.
12097 (Validate_Private_Type_Instance): Add check for actual which
12098 must have preelaborable initialization
12099 Use new // insertion for some continuation messages
12100 (Analyze_Formal_Object_Declaration): Change usage of Expression to
12101 Default_Expression. Add type retrieval when the declaration has an
12102 access definition. Update premature usage of incomplete type check.
12103 (Check_Access_Definition): New subsidiary routine. Check whether the
12104 current compilation version is Ada 05 and the supplied node has an
12106 (Instantiate object): Alphabetize local variables. Handle the creation
12107 of new renaming declarations with respect to the kind of definition
12108 used - either an access definition or a subtype mark. Guard against
12109 unnecessary error message in the context of anonymous access types after
12110 they have been resolved. Add check for required null exclusion in a
12111 formal object declaration.
12112 (Switch_View): A private subtype of a non-private type needs to be
12113 switched (the base type can have been switched without its private
12114 dependents because of the last branch of Check_Private_View.
12115 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
12117 (Instantiate_Type): Emit an error message whenever a class-wide type of
12118 a tagged incomplete type is used as a generic actual.
12119 (Find_Actual_Type): Extend routine to handle a component type in a child
12120 unit that is imported from a formal package in a parent.
12121 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
12122 agree on constrainedness, rather than checking against ultimate ancestor
12123 (Instantiate_Subprogram_Body): Create a cross-reference link to the
12124 generic body, for navigation purposes.
12126 2006-10-31 Robert Dewar <dewar@adacore.com>
12127 Thomas Quinot <quinot@adacore.com>
12129 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
12131 (New_Stream_Subprogram): When processing an attribute definition clause
12132 for a stream-oriented subprogram, record an entity node occurring at
12133 the point of clause to use for checking the visibility of the clause,
12134 as defined by 8.3(23) as amended by AI-195.
12135 (New_Stream_Subprogram): New procedure, factoring behaviour from both
12136 New_Stream_Function and New_Stream_Procedure.
12137 (New_Stream_Function, New_Stream_Procedure): Removed.
12138 (Analyze_Attribute_Definition_Clause, case Address): Check new
12139 Alignment_Check check
12141 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12142 Javier Miranda <miranda@adacore.com>
12143 Robert Dewar <dewar@adacore.com>
12145 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
12146 generate the same errors compiling under -gnatc.
12147 (Try_Object_Operation): If no candidate interpretation succeeds, but
12148 there is at least one primitive operation with the right name, report
12149 error in call rather than on a malformed selected component.
12150 (Analyze_Selected_Component): If the prefix is an incomplete type from
12151 a limited view, and the full view is available, use the full view to
12152 determine whether this is a prefixed call to a primitive operation.
12153 (Operator_Check): Verify that a candidate interpretation is a binary
12154 operation before checking the type of its second formal.
12155 (Analyze_Call): Add additional warnings for function call contexts not
12157 (Analyze_Allocator): Move the check for "initialization not allowed for
12158 limited types" after analyzing the expression. This is necessary,
12159 because OK_For_Limited_Init looks at the structure of the expression.
12160 Before analysis, we don't necessarily know what sort of expression it
12161 is. For example, we don't know whether F(X) is a function call or an
12162 indexed component; the former is legal in Ada 2005; the latter is not.
12163 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
12164 were missing. We also didn't handle qualified expressions. Now also
12165 allow function calls. Use new common routine OK_For_Limited_Init.
12166 (Analyze_Type_Conversion): Do not perform some legality checks in an
12167 instance, because the error message will be redundant or spurious.
12168 (Analyze_Overloaded_Selected_Component): Do not do style check when
12169 setting an entity, since we do not know it is the right entity yet.
12170 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
12171 (Analyze_Overloaded_Selected_Component): Same change
12172 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
12173 since regular incomplete subtypes are transformed into corresponding
12174 subtypes of their full views.
12175 (Complete_Object_Operation): Treat name of transformed subprogram call
12176 as coming from source, for browsing purposes.
12177 (Try_Primitive_Operation): If formal is an access parameter, compare
12178 with base type of object to determine whether it is a primitive
12180 (Operator_Check): If no interpretation of the operator matches, check
12181 whether a use clause on any candidate might make the operation legal.
12182 (Try_Class_Wide_Operation): Check whether the first parameter is an
12183 access type whose designated type is class-wide.
12185 2006-10-31 Robert Dewar <dewar@adacore.com>
12186 Ed Schonberg <schonberg@adacore.com>
12187 Gary Dismukes <dismukes@adacore.com>
12189 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
12190 warn on infinite loops.
12191 Add \\ to some continuation messages
12192 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
12193 (Process_Bounds): If the bounds are integer literals that result from
12194 constant-folding, and they carry a user-defined type, preserve that type
12195 rather than treating this as an integer range.
12196 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
12197 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
12198 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
12199 left hand side of assignment.
12200 (Analyze_Assignment): Add suport to manage assigments to the attribute
12201 priority of a protected object.
12202 (Check_Possible_Current_Value_Condition): Allow fully qualified names
12203 not just identifiers.
12204 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
12205 or AND THEN for possible tracking.
12206 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
12207 case of while loops so we can track values in the loop body.
12209 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12210 Hristian Kirtchev <kirtchev@adacore.com>
12211 Bob Duff <duff@adacore.com>
12213 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
12214 procedure cannot be a protected operation (it is a basic_declaration,
12215 not a subprogram_declaration).
12216 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
12217 Subp. Add logic for entry processing.
12218 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
12219 Determine whether an entry or subprogram of a protected or task type
12220 override an inherited primitive of an implemented interface.
12221 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
12222 Update the actual used in calls to Check_Overriding_Indicator.
12223 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
12224 generate the proper reference to the parent unit, for cross-reference.
12225 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
12227 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
12228 (Add_Extra_Formal): Revise procedure to allow passing in associated
12229 entity, scope, and name suffix, and handle setting of the new
12230 Extra_Formals field.
12231 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
12232 pass new parameters. Add support for adding the new extra access formal
12233 for functions whose calls are treated as build-in-place.
12234 (Analyze_A_Return_Statement): Correct casing in error message.
12235 Move Pop_Scope to after Analyze_Function_Return, because an extended
12236 return statement really is a full-fledged scope. Otherwise, visibility
12237 doesn't work right. Correct use of "\" for continuation messages.
12238 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
12239 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
12240 the node doesn't get properly marked as analyzed.
12241 (Analyze_Subprogram_Body): If subprogram is a function that returns
12242 an anonymous access type that denotes a task, build a Master Entity
12244 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
12245 proper usage of null exclusion in a result definition.
12246 (Process_Formals): Code cleanup and new error message.
12247 (Process_Formals): Detect incorrect application of null exclusion to
12249 (Conforming_Types): Handle conformance between [sub]types and itypes
12250 generated for entities that have null exclusions applied to them.
12251 (Maybe_Primitive_Operation): Add an additional type retrieval when the
12252 base type is an access subtype. This case arrises with null exclusions.
12253 (New_Overloaded_Entity): Do not remove the overriden entity from the
12254 homonym chain if it corresponds with an abstract interface primitive.
12255 (Process_Formals): Replace membership test agains Incomplete_Kind with a
12256 call to the synthesized predicate Is_Incomplete_Type.
12257 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
12259 (Analyze_Subprogram_Declaration): Check that abstract interface
12260 primitives are abstract or null.
12261 (Analyze_Subprogram_Specification): Remove previous check for abstract
12262 interfaces because it was not complete.
12263 (Has_Interface_Formals): Removed.
12265 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12266 Javier Miranda <miranda@adacore.com>
12268 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
12269 of Analyze_Package_Body, to create Itype references for anonymous
12270 access types created in the package declaration, whose designated types
12271 may have only a limited view.
12272 (Analyze_Package_Specification): For the private part of a nested
12273 package, install private_with_clauses of enclosing compilation unit if
12274 we are in its visible part.
12275 (Declare_Inherited_Private_Subprograms): Complete barrier
12276 to ensure that the primitive operation has an alias to some parent
12277 primitive. This is now required because, after the changes done for the
12278 implementation of abstract interfaces, the contents of the list of
12279 primitives has entities whose alias attribute references entities of
12280 such list of primitives.
12281 (Analyze_Package_Specification): Simplify code that handles parent units
12282 of instances and formal packages.
12283 (Uninstall_Declarations): Check the convention consistency among
12284 primitive overriding operations of a tagged record type.
12286 2006-10-31 Robert Dewar <dewar@adacore.com>
12287 Hristian Kirtchev <kirtchev@adacore.com>
12288 Javier Miranda <miranda@adacore.com>
12289 Ed Schonberg <schonberg@adacore.com>
12291 * sem_ch8.adb: Minor error msg rewording
12292 (Undefined): When checking for misspellings, invert arguments (to get
12293 expected and found set right)
12294 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
12295 (Analyze_Generic_Renaming): Same fix
12296 (Use_One_Package): Do not take into account the internal entities of
12297 abstract interfaces during the analysis of entities that are marked
12298 as potentially use-visible.
12299 (Find_Type): Handle the case of an attribute reference for
12300 implementation defined attribute Stub_Type (simply let the analysis of
12301 the attribute reference rewrite it).
12302 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
12303 type that appears in a Use_Type clause.
12304 (Analyze_Object_Renaming): Add support for renaming of the Priority
12306 (Find_Type): In Ada 2005, a task type can be used within its own body,
12307 when it appears in an access definition.
12308 (Analyze_Object_Renaming): Remove warning on null_exclusion.
12309 (Analyze_Object_Renaming): Introduce checks for required null exclusion
12310 in a formal object declaration or in a subtype declaration.
12311 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
12312 (Check_Null_Exclusion): New local routine to
12313 Analyze_Subprogram_Renaming. Check whether the formals and return
12314 profile of a renamed subprogram have required null exclusions when
12315 their counterparts of the renaming already impose them.
12316 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
12317 Determine whether an entity is inside a generic scope.
12318 (In_Open_Scope): First pass of documentation update.
12319 (Find_Expanded_Name): Add support for shadow entities associated with
12320 limited withed packages. This is required to handle nested packages.
12321 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
12322 that makes a renaming of a limited withed package illegal.
12324 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
12325 Ed Schonberg <schonberg@adacore.com>
12327 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
12328 Check_Overriding_Indicator.
12329 (Analyze_Task_Definition): Ditto.
12330 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
12331 (Check_Overriding_Indicator): To find overridden interface operation,
12332 examine only homonyms that have an explicit subprogram declaration, not
12333 inherited operations created by an unrelated type derivation.
12334 (Check_Overriding_Indicator): When checking for the presence of "null"
12335 in a procedure, ensure that the queried node is a procedure
12337 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
12338 type when the formal is an access to variable.
12339 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
12340 (Analyze_Task_Type): Same addition
12341 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
12342 provide navigation capabilities for entries.
12344 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
12345 Ed Schonberg <schonberg@adacore.com>
12346 Javier Miranda <miranda@adacore.com>
12347 Gary Dismukes <dismukes@adacore.com>
12349 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
12350 inherited from an interface ancestor by another interface in the
12351 context of an instance as 'late'.
12352 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
12353 of a call to a function that dispatches on access result.
12354 (Check_Dispatching_Operation): In case of late overriding of a primitive
12355 that covers abstract interface subprograms we register it in all the
12356 secondary dispatch tables associated with abstract interfaces.
12357 (Check_Dispatching_Call): Add check that a dispatching call is not made
12358 to a function with a controlling result of a limited type. This is a
12359 current implementation restriction.
12360 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
12361 (Check_Dispatching_Operation): Do no emit a warning if the controlling
12362 argument is an interface type that is a generic formal.
12363 (Is_Interface_Subprogram): Removed.
12364 (Check_Dispatching_Operation): If the subprogram is not a dispatching
12365 operation, check the formals to handle the case in which it is
12366 associated with an abstract interface type.
12368 2006-10-31 Robert Dewar <dewar@adacore.com>
12369 Ed Schonberg <schonberg@adacore.com>
12371 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
12372 Add new calls to this procedure during traversal
12373 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
12374 another unit if expansion is disabled.
12376 2006-10-31 Robert Dewar <dewar@adacore.com>
12378 * sem_eval.adb (Compile_Time_Compare): Make use of information from
12379 Current_Value in the conditional case, to evaluate additional
12380 comparisons at compile time.
12382 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12383 Hristian Kirtchev <kirtchev@adacore.com>
12384 Javier Miranda <miranda@adacore.com>
12386 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
12387 subprogram type to provide better diagnostics in case of ambiguity.
12388 (Covers): Handle coverage of formal and actual anonymous access types in
12389 the context of generic instantiation.
12390 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
12391 abstract interface types; this is required to handle concurrent types
12392 with discriminants and abstract interface types.
12393 (Covers): Include type coverage of both regular incomplete subtypes and
12394 incomplete subtypes of incomplete type visibles through a limited with
12397 2006-10-31 Robert Dewar <dewar@adacore.com>
12398 Hristian Kirtchev <kirtchev@adacore.com>
12399 Ed Schonberg <schonberg@adacore.com>
12401 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
12402 messages for entities in packages which are not used.
12403 (Collect_Synchronized_Interfaces): New procedure.
12404 (Overrides_Synchronized_Primitive): New function.
12405 (Denotes_Discriminant): Extend predicate to apply to task types.
12406 Add missing continuation marks in error msgs
12407 (Unqualify): New function for removing zero or more levels of
12408 qualification from an expression. There are numerous places where this
12409 ought to be used, but we currently only deal properly with zero or one
12411 (In_Instance); The analysis of the actuals in the instantiation of a
12412 child unit is not within an instantiation, even though the parent
12413 instance is on the scope stack.
12414 (Safe_To_Capture_Value): Exclude the case of variables that are
12416 (Check_Obsolescent): Removed
12417 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
12418 is an aliased view, even when rewritten as a reference to the target
12419 object in an assignment.
12420 (Get_Subprogram_Entity): New function
12421 (Known_To_Be_Assigned): New function
12422 (Type_Access_Level): Compute properly the access level of a return
12423 subtype that is an anonymous access type.
12424 (Explain_Limited_Type): Correct use of "\" for continuation messages.
12425 (Is_Transfer): The new extended_return_statement causes a transfer of
12427 (Has_Preelaborable_Initialization): New function
12428 (Has_Null_Exclusion): New function. Given a node N, determine whether it
12429 has a null exclusion depending on its Nkind.
12430 Change Is_Lvalue to May_Be_Lvalue
12431 (May_Be_Lvalue): Extensive additional code to deal with subprogram
12432 arguments (IN parameters are not Lvalues, IN OUT parameters are).
12433 (Safe_To_Capture_Value): Extend functionality so it can be used for
12434 the current value condition case.
12435 (Has_Compatible_Alignment): New function
12436 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
12437 objects to handle the Ada 2005 case, where aliasedness no longer implies
12438 that the object is constrained. In particular, for dereferenced names,
12439 the designated object must be assumed to be unconstrained.
12440 (Kill_Current_Values): Properly deal with the case where we encounter
12441 a loop in the scope chain.
12442 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
12444 (Compile_Time_Constraint_Error): Improve error message in error case
12446 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
12447 associated with entities of abstract interface primitives.
12448 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
12450 2006-10-31 Robert Dewar <dewar@adacore.com>
12452 * s-osinte-tru64.adb:
12453 Mark Asm statements Volatile to prevent warnings (seems a
12454 reasonable change anyway)
12457 * s-mastop-irix.adb: Add Volatile to Asm statements
12458 Suppresses warning, and seems appropriate in any case
12460 * s-osinte-vms.adb: Add Volatile to Asm statement
12462 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
12464 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
12466 Add call to Check_Code_Statement
12468 2006-10-31 Robert Dewar <dewar@adacore.com>
12469 Ed Schonberg <schonberg@adacore.com>
12470 Bob Duff <duff@adacore.com>
12472 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
12473 Synchronized_Present): Add Formal_Derived_Type_Definition and
12474 Private_Extension_Declaration to the list of assertions.
12475 (Is_Entry_Barrier_Function): New flag
12476 (Has_Self_Reference): New flag on aggregates, to indicate that they
12477 contain a reference to the enclosing type, inserted through a default
12479 (Next_Rep_Item): Move from Node4 to Node5.
12480 (Entity): Add this field for N_Attribute_Definition_Clause.
12481 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
12482 (N_Return_Object_Declaration): Remove this node kind. We now use
12483 N_Object_Declaration instead.
12484 (Actual_Designated_Subtype): Move to a different place to make room in
12485 N_Extended_Return_Statement.
12486 (Procedure_To_Call): Move to a different place to make room in
12487 N_Extended_Return_Statement.
12488 (Return_Type): Removed this field to make room in return statements
12490 (Return_Statement_Entity): New field in return statements, in part to
12491 replace Return_Type, and in part to support the fact that return
12492 statements are now pushed on the scope stack during semantic analysis.
12493 (Return_Object_Declarations): New field to support extended return
12495 (N_Extended_Return_Statement): New node for extended_return_statement
12497 (N_Return_Object_Declaration): New node for part of
12498 extended_return_statement nonterminal. Needed because all the necessary
12499 fields won't fit in N_Extended_Return_Statement.
12500 Generic_associations now carry the Box_Present flag, to indicate a
12501 default for an actual in a partially parametrized formal package.
12503 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
12504 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
12505 and for the new predefined dispatching policies: EDF_Across_Priorities,
12506 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
12507 Introduce new name Stub_Type for implementation defined attribute.
12508 Add pragma Preelaborable_Initialization
12509 Add entry for Priority attribute.
12510 Add Pragma_Wide_Character_Encoding
12511 (Get_Convention_Name): Given a convention id, this function returns the
12512 corresponding name id from the names table.
12514 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12515 Robert Dewar <dewar@adacore.com>
12516 Bob Duff <duff@adacore.com>
12518 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
12519 print null exclusion twice in the case of an access definition,
12520 Implement new -gnatL switch
12521 Remove N_Return_Object_Declaration. We now use
12522 N_Object_Declaration instead. Implement the case for
12523 N_Extended_Return_Statement. Alphabetize the cases.
12524 Add cases for new nodes N_Extended_Return_Statement and
12525 N_Return_Object_Declaration. The code is not yet written.
12526 Update the output for N_Formal_Object_Declaration
12527 and N_Object_Renaming_Declaration.
12528 (Write_Itype): Account for the case of a modular integer subtype whose
12529 base type is private.
12531 2006-10-31 Arnaud Charlet <charlet@adacore.com>
12533 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
12534 Remove elaboration code, now done in the binder.
12536 * s-rident.ads: Make this unit Preelaborate.
12537 (No_Restrictions): New constant used to clean up code and follow
12538 preelaborate constraints.
12541 Add System.Restrictions dependence, referenced directly from the
12542 binder generated file.
12544 2006-10-31 Gary Dismukes <dismukes@adacore.com>
12546 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
12547 True when AAMP extended floating-point is in use (48-bit). Change type
12548 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
12549 the two byte array types on AFloat. Change type of IV_Ilf overlay
12550 variable from Byte8 to ByteLF. Add appropriate initializations of
12551 floating-point overlays for AAMP cases.
12553 2006-10-31 Javier Miranda <miranda@adacore.com>
12555 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
12556 (Get_Ceiling): New subprogram that returns
12557 the ceiling priority of the protected object.
12558 (Set_Ceiling): New subprogram that sets the new ceiling priority of
12559 the protected object.
12561 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
12563 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
12565 2006-10-31 Jose Ruiz <ruiz@adacore.com>
12567 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
12568 requeuing to the same protected object to give higher priority tasks
12569 the opportunity to execute.
12571 2006-10-31 Robert Dewar <dewar@adacore.com>
12573 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
12574 add more precise check for the character sequence that follows '[' to
12575 avoid possible confusion in case if '[' is the last character of a
12577 (Scan_Wide): Always allow brackets encoding
12579 2006-10-31 Olivier Hainque <hainque@adacore.com>
12581 * s-stchop.ads: make this unit preelaborate. This is desirable in
12582 general and made mandatory by the use of this unit by s-taprop which
12583 is itself preelaborate.
12585 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
12586 Td_Events component.
12588 2006-10-31 Vincent Celier <celier@adacore.com>
12590 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
12593 2006-10-31 Vincent Celier <celier@adacore.com>
12595 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
12597 2006-10-31 Vincent Celier <celier@adacore.com>
12599 * makegpr.adb (Check_Compilation_Needed): Take into account path names
12601 (Check_Compilation_Needed): When checking a C or C++ source, do not
12602 resolve symbolic links.
12603 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
12604 When not in verbose mode and Ellipse is True, display "..." for the
12605 first argument with Display set to False.
12606 (Build_Global_Archive): Always set Display True for the first object
12607 file. Call Display_Command with Ellipse set to True.
12609 2006-10-31 Matt Heaney <heaney@adacore.com>
12611 * a-crbtgo.ads: Commented each subprogram
12613 * a-crbtgo.adb: Added reference to book from which algorithms were
12616 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
12617 indicate which child.
12618 (Generic_Conditional_Insert): changed parameter name from "Success" to
12620 (Generic_Unconditional_Insert_With_Hint): improved algorithm
12622 * a-coorse.adb (Replace_Element): changed parameter name in call to
12623 conditional insert operation.
12625 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
12627 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
12630 * a-ciorse.adb (Replace_Element): changed parameter name in call to
12631 conditional insert operation.
12633 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
12636 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
12637 instead of mode inout.
12639 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
12641 (Generic_Read): preserve existing buckets array if possible
12642 (Generic_Write): don't send buckets array length anymore
12644 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
12645 instead of mode inout.
12647 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
12648 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
12650 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
12651 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
12652 (Replace_Element): local operation is now an instantiation
12654 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
12655 check current length.
12656 (Generic_Replace_Element): new operation
12658 2006-10-31 Doug Rupp <rupp@adacore.com>
12660 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
12661 Call TBK$SYMBOLIZE without omitting parameters.
12663 2006-10-31 Vincent Celier <celier@adacore.com>
12665 * symbols-processing-vms-ia64.adb,
12666 symbols-processing-vms-alpha.adb (Process): Do not include symbols
12667 that come from generic instantiations in bodies.
12669 2006-10-31 Pat Rogers <rogers@adacore.com>
12671 * a-rttiev.ads, a-rttiev.adb:
12672 This is a significant redesign primarily for the sake of automatic
12673 timer task termination but also to fix a design flaw.
12674 Therefore we are now using an RTS lock, instead of a protected
12675 object, to provide mutual exclusion to the queue of pending events
12676 and the type Timing_Event is no longer a protected type.
12678 2006-10-31 Robert Dewar <dewar@adacore.com>
12679 Cyrille Comar <comar@adacore.com>
12680 Ben Brosgol <brosgol@adacore.com>
12682 * debug.adb: Update flags documentation
12684 * gnat_ugn.texi: Add documentation for new -gnatwq switch
12685 Clean up documentation for several other warning switches
12686 Clarify how task stack size can be specified with various
12687 versions of Windows.
12688 Add note that -gnatVo includes ranges including loops
12689 Add documentation for -gnatL switch
12690 Add note on elaboration warning for initializing variables
12691 Add documentation for new -gnatwt warning switch
12692 Document new form of pragma Warnings (On|Off, string)
12693 Add comment on use of pragma Warnings to control warnings
12694 Add documentation for -gnatjnn switch
12695 Modify section on interfacing with C for VMS 64-bit.
12696 Add doc for -gnatVe/E
12697 Add documentation of new warning flags -gnatww/-gnatwW
12698 Add warnings about address clause overlays to list of warnings
12699 (Exception Handling Control): Document that the option --RTS must be
12700 used consistently for gcc and gnatbind.
12701 Clarify that inlining is not always possible
12702 Update documentation on pragma Unchecked_Union.
12705 Add documentation for new extended version of pragma Obsolescent
12706 Add documentation for implementation defined attribute 'Stub_Type.
12707 Add note on use of Volatile in asm statements
12708 Add documentation on use of pragma Unreferenced in context clause
12709 Document new form of pragma Warnings (On|Off, pattern)
12710 Document pragma Wide_Character_Encoding
12711 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
12712 enforced if code generation is active.
12713 Add section on pragma Suppress to document GNAT specific check
12715 Clarify difference between No_Dispatching_Calls & No_Dispatch.
12716 Add documentation for pragma Restrictions (No_Elaboration_Code)
12719 Add comments on layout of subprogram local variables in the
12720 presence of nested subprograms.
12722 * ug_words: Resync.
12724 * elists.ads: Minor reformatting
12725 Node returns Node_Or_Entity_Id (doc change only)
12727 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
12729 * g-arrspl.ads (Create): Update comments.
12731 * sem.ads: Add details on the handling of the scope stack.
12733 * usage.adb: Update documentation.
12735 * validsw.ads, validsw.adb:
12736 Add definition of Validity_Check_Components and implement -gnatVe/E
12738 * vms_data.ads: Add missing VMS qualifiers.
12740 * s-addope.ads: Add documentation on overflow and divide by zero
12742 2006-10-31 Robert Dewar <dewar@adacore.com>
12743 Thomas Quinot <quinot@adacore.com>
12744 Arnaud Charlet <charlet@adacore.com>
12746 * fmap.adb: Put routines in alpha order
12748 * g-boumai.ads: Remove redundant 'in' keywords
12750 * g-cgi.adb: Minor reformatting
12752 * g-cgi.ads: Remove redundant 'in' keywords
12754 * get_targ.adb: Put routines in alpha order
12756 * prj-attr.ads: Minor reformatting
12758 * s-atacco.ads: Minor reformatting
12760 * scn.adb: Put routines in alpha order
12762 * sinput-l.adb: Minor comment fix
12764 * sinput-p.adb: Minor comment fix
12766 * s-maccod.ads: Minor reformatting
12768 * s-memory.adb: Minor reformatting
12770 * s-htable.adb: Fix typo in comment.
12772 * s-secsta.adb: Minor comment update.
12774 * s-soflin.adb: Minor reformatting
12777 Add comment about odd qualification in Storage_Offset declaration
12780 Remove unnecessary 'in' keywords for formal parameters.
12782 * treeprs.adt: Minor reformatting
12784 * urealp.adb: Put routines in alpha order
12786 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
12789 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
12791 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
12793 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
12794 workaround as on other platforms.
12796 * g-eacodu-vms.adb: Remove redundant 'in' keywords
12797 * g-expect-vms.adb: Remove redundant 'in' keywords
12799 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
12800 clear error message if the list-of-files file cannot be opened.
12802 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
12803 equality operator is always visible.
12805 * lang.opt: Woverlength-strings: New option.
12808 Update copyright, since nmake.ads and nmake.adb have changed.
12810 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
12811 (Binder_Output_Time_Stamps_Set): removed.
12812 (Old_Binder_Output_Time_Stamp): idem.
12813 (New_Binder_Output_Time_Stamp): idem.
12814 (Recording_Time_From_Last_Bind): idem.
12815 (Recording_Time_From_Last_Bind): Make constant.
12817 * output.ads, output.adb (Write_Str): Allow LF characters
12818 (Write_Spaces): New procedure
12820 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
12822 * inline.adb: Minor reformatting
12824 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
12826 * s-mastop-vms.adb: Remove redundant 'in' keywords
12828 * s-osprim-vms.adb: Remove redundant 'in' keywords
12830 * s-trafor-default.adb: Remove redundant 'in' keywords
12832 * 9drpc.adb: Remove redundant 'in' keywords
12834 * s-osinte-mingw.ads: Minor reformatting
12836 * s-inmaop-posix.adb: Minor reformatting
12838 * a-direio.ads: Remove quotes from Compile_Time_Warning message
12840 * a-exexda.adb: Minor code reorganization
12842 * a-filico.adb: Minor reformatting
12844 * a-finali.adb: Minor reformatting
12846 * a-nudira.ads: Remove quote from Compile_Time_Warning message
12848 * a-numeri.ads: Minor reformatting
12850 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
12852 * exp_pakd.ads: Fix obsolete comment
12854 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
12855 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
12856 Probably not a bug, but certainly neater and more efficient.
12858 * a-tienio.adb: Minor reformatting
12860 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
12861 Avoid assuming low bound of string is 1.
12863 * gnatbind.adb: Change Bindusg to package and rename procedure as
12864 Display, which now ensures that it only outputs usage information once.
12865 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
12867 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
12870 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
12872 (Match): Add pragma Assert to ensure that Matches'First is zero
12874 * g-regpat.ads (Match): Document that Matches lower bound must be zero
12876 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
12877 documented preconditions (also kills warnings about bad indexes).
12879 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
12881 (Build_Import_Library): Ditto;
12883 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
12885 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
12887 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
12888 lower bound of choice table is 1.
12890 * sem_case.ads (Analyze_Choices): Document that lower bound of
12893 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
12896 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
12897 and add appropriate Assert pragma to suppress warnings.
12899 * atree.h, atree.ads, atree.adb
12900 Change Elist24 to Elist25
12901 Add definitions of Field28 and Node28
12902 (Traverse_Field): Use new syntactic parent table in sinfo.
12904 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
12906 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
12908 * exp_tss.adb: Put routines in alpha order
12910 * fe.h: Remove redundant declarations.
12912 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
12914 * utils.c (builtin_function): Rename to gnat_builtin_function.
12915 Move common code to add_builtin_function.
12916 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
12917 gnat_builtin_function.
12918 * gigi.h (builtin_function): Rename to gnat_builtin_function.
12919 Change the signature.
12921 2006-10-16 Brooks Moses <bmoses@stanford.edu>
12923 * Makefile.in: Add TEXI2PDF definition.
12924 * Make-lang.in: Add "ada.pdf" target.
12926 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
12928 * decl.c, utils.c: Fix comment typos.
12929 * utils.c: Fix a typo.
12931 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
12933 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
12934 on "pure" Ada subprograms if SJLJ exceptions are used.
12935 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
12936 on the declaration node of JMPBUF_SAVE.
12937 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
12938 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
12939 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
12941 2006-08-20 Laurent Guerby <laurent@guerby.net>
12944 g-socket.adb (Bind_Socket): Call Set_Address.
12946 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
12949 * decl.c (same_discriminant_p): New static function.
12950 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
12951 subtype and we have discriminants, fix up the COMPONENT_REFs
12952 for the discriminants to make them reference the corresponding
12953 fields of the parent subtype after it has been built.
12955 2006-09-15 Roger Sayle <roger@eyesopen.com>
12958 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
12959 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
12961 2006-09-13 Olivier Hainque <hainque@adacore.com>
12964 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
12965 of a SAVE_EXPR, just make the operand addressable/not-readonly and
12966 let the common gimplifier code make and propagate a temporary copy.
12967 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
12968 out/in-out actuals and defer setting the addressable/readonly bits
12971 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
12974 * decl.c (components_to_record): Defer emitting debug info for the
12975 record type associated with the variant until after we are sure to
12978 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
12981 * gigi.h (gnat_internal_attribute_table): Declare.
12982 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
12983 * utils.c (gnat_internal_attribute_table): New global variable.
12984 (builtin_function): Always call decl_attributes on the builtin.
12985 (handle_const_attribute): New static function.
12986 (handle_nothrow_attribute): Likewise.
12988 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12990 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
12992 2006-06-23 Olivier Hainque <hainque@adacore.com>
12994 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
12995 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
12997 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
12998 Eric Botcazou <ebotcazou@adacore.com>
13001 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
13002 check-gnat into check-acats.
13004 2006-06-17 Karl Berry <karl@gnu.org>
13006 * gnat-style.texi (@dircategory): Use "Software development"
13007 instead of "Programming", following the Free Software Directory.
13009 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13012 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
13014 2006-06-06 Laurent Guerby <laurent@guerby.net>
13017 mlib-utl.adb: Use Program_Name.
13019 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
13021 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
13022 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
13023 trans.c, utils.c: Fix comment typos. Follow spelling
13025 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
13028 2006-05-19 Nicolas Setton <setton@adacore.com>
13030 * misc.c (gnat_dwarf_name): New function.
13031 (LANG_HOOKS_DWARF_NAME): Define to it.
13033 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
13035 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
13036 (ada/misc.o): Likewise.
13037 (ada/utils.o): Likewise.
13039 2006-04-08 Aurelien Jarno <aurel32@debian.org>
13041 * Makefile.in: Add Ada support for GNU/kFreeBSD.
13042 * s-osinte-kfreebsd-gnu.ads: New file.
13044 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
13046 * Make-lang.in: Rename docdir to gcc_docdir.
13048 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
13050 * gigi.h (get_ada_base_type): Delete.
13051 * utils2.c (get_ada_base_type): Likewise.
13052 * trans.c (convert_with_check): Operate in the real base type.
13054 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13056 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
13058 2006-03-02 Richard Sandiford <richard@codesourcery.com>
13060 * utils.c (create_var_decl): Use have_global_bss_p when deciding
13061 whether to make the decl common.
13063 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
13065 * Make-lang.in (Ada): Remove.
13066 (.PHONY): Remove Ada
13068 2006-02-17 Ed Schonberg <schonberg@adacore.com>
13070 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
13071 aggregate, check the interpretations of the other operand to find one
13072 that may be a boolean array.
13074 (Analyze_Selected_Component): Fix flow-of-control typo in case where
13075 the prefix is a private extension.
13077 2006-02-17 Eric Botcazou <botcazou@adacore.com>
13080 * utils2.c (find_common_type): If both input types are BLKmode and
13081 have the same constant size, keep using the first one.
13083 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
13085 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
13087 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
13089 2006-02-17 Jose Ruiz <ruiz@adacore.com>
13091 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
13092 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
13093 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
13094 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
13095 Abort_Defer/Undefer pairs to avoid the possibility of a task being
13096 aborted while owning a lock.
13098 2006-02-17 Javier Miranda <miranda@adacore.com>
13099 Robert Dewar <dewar@adacore.com>
13101 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
13102 through an access to class-wide interface we force the displacement of
13103 the pointer to the allocated object to reference the corresponding
13104 secondary dispatch table.
13105 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
13106 if Long_Shifts are supported on the target, even if 64 bit divides
13107 are not supported (configurable run time mode).
13108 (Expand_N_Type_Conversion): Do validity check if validity checks on
13109 operands are enabled.
13110 (Expand_N_Qualified_Expression): Do validity check if validity checks
13111 on operands are enabled.
13113 2006-02-17 Ed Schonberg <schonberg@adacore.com>
13115 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
13116 must be materialized when the renamed expression is an explicit
13119 2006-02-17 Ed Schonberg <schonberg@adacore.com>
13121 * freeze.adb (Statically_Discriminated_Components): Return false if
13122 the bounds of the type of the discriminant are not static expressions.
13124 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
13125 the bounds of the discriminant type are not static.
13127 2006-02-17 Robert Dewar <dewar@adacore.com>
13129 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
13130 then we close To if it is valid.
13132 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
13134 * init.c (facility_resignal_table): new array
13135 (__gnat_default_resignal_p): enhance default predicate to resignal if
13136 VMS condition has one of the predefined facility codes.
13138 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
13140 * Makefile.in: Use VMS64 specialized versions of several units in
13141 Interfaces.C hierarchy to be compatible with HP C default size choices.
13142 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
13144 2006-02-17 Ed Schonberg <schonberg@adacore.com>
13146 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
13147 instantiation, the corresponding entity is the related_instance of the
13148 wrapper package created for the instance.
13150 2006-02-17 Ed Schonberg <schonberg@adacore.com>
13152 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
13153 the current instance is nested within another instance in a child unit.
13155 2006-02-17 Javier Miranda <miranda@adacore.com>
13156 Ed Schonberg <schonberg@adacore.com>
13158 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
13159 type we cannot inherit the primitive operations; we inherit the
13160 Corresponding_Record_Type (which has the list of primitive operations).
13161 (Check_Anonymous_Access_Types): When creating anonymous access types for
13162 access components, use Rewrite in order to preserve the tree structure,
13164 (Analyze_Object_Declaration): For limited types with access
13165 discriminants with defaults initialized by an aggregate, obtain
13166 subtype from aggregate as for other mutable types.
13167 (Derived_Type_Declaration): If the derived type is a limited interface,
13168 set the corresponding flag (Is_Limited_Record is not sufficient).
13170 2006-02-17 Ed Schonberg <schonberg@adacore.com>
13172 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
13173 to inline a function that returns an unconstrained type, the return
13174 expression must be the first variable declared in the body of the
13177 2006-02-17 Javier Miranda <miranda@adacore.com>
13179 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
13180 abstract interface type, the static analysis is not enough to know if
13181 the interface is implemented or not by the source tagged type. Hence
13182 we must pass the work to the expander to generate the required code to
13183 evaluate the conversion at run-time.
13184 (Resolve_Equality_Op): Do not apply previous
13185 transformation if expansion is disasbled, to prevent anomalies when
13186 locating global references in a generic unit.
13188 2006-02-17 Vincent Celier <celier@adacore.com>
13190 * snames.ads, snames.adb: New standard names for new project attributes:
13191 archive_builder, archive_indexer, compiler_pic_option,
13192 config_body_file_name, config_body_file_name_pattern,
13193 config_file_switches, config_file_unique, config_spec_file_name,
13194 config_spec_file_name_pattern, default_builder_switches,
13195 default_global_compiler_switches, default_language,
13196 dependency_file_kind, global_compiler_switches, include_path,
13197 include_path_file, language_kind, linker_executable_option,
13198 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
13199 roots, runtime_project.
13201 2006-02-17 Matthew Heaney <heaney@adacore.com>
13203 * a-convec.ads, a-convec.adb:
13204 (operator "&"): handle potential overflow for large index types
13205 (Insert): removed Contraint_Error when using large index types
13206 (Insert_Space): removed Constraint_Error for large index types
13207 (Length): moved constraint check from Length to Insert
13209 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
13210 as not null access.
13211 Explicit raise statements now include an exception message.
13212 (operator "&"): handle potential overflow for large index types
13213 (Insert): removed Contraint_Error when using large index types
13214 (Insert_Space): removed Constraint_Error for large index types
13215 (Length): moved constraint check from Length to Insert
13217 2006-02-17 Robert Dewar <dewar@adacore.com>
13219 * s-wchcnv.adb: Document handling of [ on output (we do not change
13220 this to ["5B"] and the new comments say why not.
13223 Add note for -gnatVo that this now includes the cases of type
13224 conversions and qualified expressions.
13225 Add comments on handling of brackets encoding for Text_IO
13227 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
13228 Thomas Quinot <quinot@adacore.com>
13229 Robert Dewar <dewar@adacore.com>
13230 Javier Miranda <miranda@adacore.com>
13232 * expander.adb: Fix typo in comment
13234 * exp_pakd.adb: Fix typo
13235 Minor comment reformatting.
13237 * g-dyntab.adb: Minor reformatting
13239 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
13240 aliased subprograms to look for the abstract interface subprogram.
13242 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
13244 * env.c (__gnat_setenv): Use size_t.
13245 (__gnat_unsetenv): Likewise.
13246 (__gnat_clearenv): Likewise.
13248 2006-02-16 Arnaud Charlet <charlet@adacore.com>
13250 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
13252 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13254 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
13255 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
13256 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
13257 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
13258 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
13259 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
13260 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
13261 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
13262 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
13265 2006-02-13 Jose Ruiz <ruiz@adacore.com>
13267 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
13268 protection against race conditions is not needed.
13269 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
13271 (Set_Specific_Handler): Add mutual exclusive access to the specific
13273 (Specific_Handler): Add mutual exclusive access for retrieving the
13276 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
13279 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
13280 Fall_Back_Handler and Specific_Handler.
13282 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
13283 termination handlers.
13284 Set two different owerflow depending on the maximal stack size.
13286 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
13287 protection against race conditions is not needed when executing the
13288 task termination handler.
13290 2006-02-13 Robert Dewar <dewar@adacore.com>
13292 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
13293 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
13294 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
13295 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
13296 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
13297 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
13298 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
13299 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
13300 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
13301 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
13302 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
13303 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
13304 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
13305 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
13306 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
13307 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
13308 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
13309 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
13310 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
13311 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
13312 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
13313 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
13314 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
13315 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
13316 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
13317 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
13318 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
13319 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
13320 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
13321 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
13322 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
13323 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
13324 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
13325 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
13328 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
13330 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
13331 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
13332 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
13333 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
13334 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
13335 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
13336 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
13337 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
13338 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
13340 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13342 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
13343 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
13344 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
13345 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
13346 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
13347 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
13348 replaced by anonymous access type.
13349 (pthread_sigmask): Now take an access sigset_t
13351 * s-osinte-hpux.ads: Ditto.
13352 (pthread_mutex_t, pthread_cond_t): Update definitions to support
13353 properly 32 and 64 bit ABIs.
13355 2006-02-13 Pascal Obry <obry@adacore.com>
13357 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
13358 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
13359 s-taprop-linux.adb, s-taprop-solaris.adb,
13360 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
13361 adjustement is already done when calling this routine.
13363 2006-02-13 Pascal Obry <obry@adacore.com>
13365 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
13366 table to take advantage of the 16 priority levels available on Windows
13367 2000 and XP. On NT4 there are only 7 priority levels, this is properly
13368 supported by this new mapping.
13370 2006-02-13 Nicolas Setton <setton@adacore.com>
13372 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
13373 (get_encoding): New subprogram. Extracts the encodings from an encoded
13376 2006-02-13 Pascal Obry <obry@adacore.com>
13377 Nicolas Roche <roche@adacore.com>
13378 Arnaud Charlet <charlet@adacore.com>
13380 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
13382 (__gnat_try_lock): Add unicode support by using a specific section on
13384 (__gnat_get_current_dir): Idem.
13385 (__gnat_open_read): Idem.
13386 (__gnat_open_rw): Idem.
13387 (__gnat_open_create): Idem.
13388 (__gnat_create_output_file): Idem.
13389 (__gnat_open_append): Idem.
13390 (__gnat_open_new): Idem.
13391 (__gnat_file_time_name): Idem.
13392 (__gnat_set_file_time_name): Idem.
13393 (__gnat_stat): Idem.
13394 (win32_no_block_spawn): Idem.
13395 (__gnat_locate_exec_on_path): Idem.
13396 (__gnat_opendir): New routine.
13397 (__gnat_closedir): Idem.
13398 (__gnat_readdir): Add new parameter length (pointer to int). Update
13399 implementation to use it and add specific Win32 code for Unicode
13401 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
13402 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
13403 (convert_addresses): Do not define this dummy routine on VMS.
13405 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
13406 runtime Unicode support will be activated.
13407 (S2WS): String to Wide-String conversion. This version just copy a
13408 string in non Unicode version.
13409 (WS2S): Wide-String to String conversion. This version just copy a
13410 string in non Unicode version.
13412 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
13413 (Open): Now import __gnat_opendir from adaint.c.
13414 (Read): Change the implementation to support unicode characters. It is
13415 not possible to use strlen() on Windows as this version supports only
13416 standard ASCII characters. So the length of the directory entry is now
13417 returned from the imported __gnat_readdir routine.
13418 Update copyright notice.
13420 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
13421 (opendir): Moved to adaint.c.
13423 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
13424 (Get_Directory): Fix wrong indexing.
13425 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
13426 __gnat_getenv from env.c
13427 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
13430 * env.h, env.c: New file.
13432 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
13433 adaint.c by __gnat_getenv from env.c
13435 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
13436 adaint.c by __gnat_getenv from env.c
13438 * Make-lang.in: Add env.o in the list of C object needed by gnat1
13440 Update dependencies.
13442 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13443 Olivier Hainque <hainque@adacore.com>
13444 Eric Botcazou <ebotcazou@adacore.com>
13446 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
13448 * gigi.h (value_factor_p): Add prototype and description, now public.
13450 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
13451 promotion for field with rep clause if the associated size was proven
13453 Expand comments describing attempts to use a packable type.
13454 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
13455 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
13456 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
13457 necessary since these are not different types and pointers may
13458 actually designate any subtype in this hierarchy.
13459 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
13460 discriminants but put them into record only if not Unchecked_Union;
13461 pass flag to components_to_record showing Unchecked_Union.
13462 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
13463 components before variants; don't set TYPE_UNCHECKED_UNION_P.
13464 (components_to_record): New argument UNCHECKED_UNION.
13465 Remove special case code for Unchecked_Union and instead use main code
13466 with small changes.
13469 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
13470 variable with the expression being built, only its inner field.
13472 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
13473 emit_sequence_entry_statements.
13474 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
13475 (establish_gnat_vms_condition_handler): Move before
13476 Subprogram_Body_to_gnu.
13477 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
13478 for a subprogram if it has a foreign convention or is exported.
13479 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
13480 substituted for a CONST_DECL.
13481 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
13482 Etype to assoc_to_constructor.
13483 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
13484 discriminants of Unchecked_Union.
13485 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
13486 don't need cluttering preprocessor directives.
13487 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
13488 condition handler as current in the compiled function.
13489 (body_with_handlers_p): New function. Tell whether a given sequence of
13490 statements node is attached to a package or subprogram body and involves
13491 exception handlers possibly nested within inner block statements.
13492 (emit_sequence_entry_statements): New function, to emit special
13493 statements on entry of sequences when necessary. Establish GNAT
13494 condition handler in the proper cases for VMS.
13495 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
13496 emit_sequence_entry_statements.
13498 * utils2.c (find_common_type): If both input types are BLKmode and
13499 have a constant size, use the smaller one.
13500 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
13503 * utils.c (value_factor_p): Make public, to allow uses from other gigi
13505 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
13506 (convert, case UNION_TYPE): Remove special treatment for unchecked
13510 (update_pointer_to): Update variants of pointer types to unconstrained
13511 arrays by attaching the list of fields of the main variant.
13513 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13514 Robert Dewar <dewar@adacore.com>
13516 * a-exexpr.adb, a-exexpr-gcc.adb
13517 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
13518 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
13519 Remove code unused for exception propagation for the compiler itself
13520 from a-except.adb and update to still share separate packages.
13522 * a-except.ads, a-except.adb: Ditto.
13523 Add comments that this version is now used only by the compiler and
13524 other basic tools. The full version that includes the Ada 2005 stuff
13525 is in separate files a-except-2005.ads/adb. The reason is that we do
13526 not want to cause bootstrap problems with compilers not recognizing
13528 Add exception reason code PE_Implicit_Return
13529 Add new exception reason code (Null Exception_Id)
13531 * a-except-2005.adb, a-except-2005.ads: New files.
13533 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
13535 * s-wchcon.adb: New file.
13537 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
13538 (traceback.o deps): Likewise.
13539 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
13540 Activate build of GMEM instrumentation library on VMS targets.
13541 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
13542 Use a-except-2005.ads/adb for all run-time library builds unless
13543 specified otherwise.
13544 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
13545 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
13546 Use s-parame.adb on all native platforms.
13547 Use s-parame-vxworks.adb on all vxworks platforms.
13548 Add env.c env.h in LIBGNAT_SRCS
13549 Add env.o in LIBGNAT_OBJS
13550 (GNATMAKE_OBJS): Remove ctrl_c.o object.
13551 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
13552 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
13553 supports VxWorks 6 RTPs.
13554 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
13555 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
13557 * types.h, types.ads (Terminate_Program): New exception
13558 Add comment on modifying multiple versions of a-except.adb when the
13559 table of exception reasons is modified.
13560 Add exception reason code PE_Implicit_Return
13561 Add new exception reason code (Null Exception_Id)
13563 * clean.adb (Initialize): Get the target parameters before checking
13564 if target is OpenVMS. Move the OpenVMS specific code here from package
13565 body elaboration code.
13567 2006-02-13 Thomas Quinot <quinot@adacore.com>
13568 Vincent Celier <celier@adacore.com>
13569 Robert Dewar <dewar@adacore.com>
13571 * ali-util.adb (Get_File_Checksum): Update to account for change in
13572 profile of Initialize_Scanner.
13574 * gprep.adb (Gnatprep): Update to account for change in profile of
13575 Initialize_Scanner.
13576 (Process_One_File): Same.
13578 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
13579 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
13580 that behaviour using the new Unit information recorded in the source
13581 files table, rather than going through all units every time.
13582 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
13583 (Get_Source_Unit): Same.
13585 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
13586 change in profile of Initialize_Scanner.
13587 (Prepare_To_Preprocess): Same.
13589 * lib.ads: Fix typo in comment (templace -> template).
13591 * prj-part.adb (Parse_Single_Project): Update to account for change in
13592 profile of Initialize_Scanner.
13594 * scn.adb (Initialize_Scanner): Account for change in profile of
13595 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
13596 Also record the association of the given Source_File_Index to the
13597 corresponding Unit_Number_Type.
13599 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
13601 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
13602 Remove Unit formal for generic scanner: this formal
13603 is only relevant to Scn (the scanner instance used to parse Ada source
13604 files), not to other instances. Update comment accordingly.
13605 (Scan): Use new function Snames.Is_Keyword_Name.
13607 * sinfo-cn.adb: Fix typo in comment.
13609 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
13612 * sinput.ads (Source_File_Record): New component Unit, used to capture
13613 the unit identifier (if any) associated to a source file.
13615 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
13616 Unit in Source_File_Record.
13618 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
13619 in profile of Initialize_Scanner.
13621 * scans.adb (Initialize_Ada_Keywords): New procedure
13623 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
13624 Ada keywords in the Namet table, without the need to call
13625 Initialize_Scanner.
13627 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
13628 (Is_Keyword_Name): New function
13630 * snames.ads: Add subtype Configuration_Pragma_Names
13631 Add pragma Ada_2005 (synonym for Ada_05)
13632 (Is_Keyword_Name): New function
13634 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
13636 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13638 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
13641 * a-stwima.adb (To_Set): Add extra check when N = 0.
13643 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
13645 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13647 * s-parame-mingw.adb, s-parame-linux.adb,
13648 s-parame-solaris.adb: Removed, replaced by s-parame.adb
13650 * s-parame-vxworks.ads: Fix typo.
13652 * s-parame-vxworks.adb: New file.
13654 * s-parame.adb: Version now used by all native platforms.
13655 (Default_Stack_Size): Use 2 megs for default stack size and use
13656 __gl_default_stack_size when available.
13657 (Minimum_Stack_Size): Use 12K.
13659 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
13660 (Create_Task): Refine implementation taking advantage of the XP stack
13661 size support. On XP, we now create the thread using the flag
13662 STACK_SIZE_PARAM_IS_A_RESERVATION.
13664 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
13666 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
13667 XP and 0 on older Windows versions.
13669 * interfac-vms.ads: Removed, no longer used.
13671 2006-02-13 Matthew Heaney <heaney@adacore.com>
13673 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
13674 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
13675 a-cohase.adb: All explicit raise statements now include an exception
13678 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
13679 (Update_Element_Preserving_Key): renamed op to just Update_Element.
13680 Explicit raise statements now include an exception message
13682 * a-cihase.ads, a-cohase.ads: Removed comment.
13684 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
13685 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
13686 a-szbzha.adb, a-szfzha.ads: New files.
13688 2006-02-13 Matthew Heaney <heaney@adacore.com>
13690 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
13693 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
13695 * lang.opt: Wvariadic-macros: New option.
13696 Wold-style-definition: Likewise.
13697 Wmissing-format-attribute: Likewise.
13699 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
13700 -Wold-style-definition and -Wmissing-format-attribute.
13702 2006-02-13 Robert Dewar <dewar@adacore.com>
13704 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
13706 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
13708 2006-02-13 Nicolas Roche <roche@adacore.com>
13710 * a-envvar.adb, a-envvar.ads: New files.
13712 2006-02-13 Douglas Rupp <rupp@adacore.com>
13714 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
13716 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
13718 2006-02-13 Pat Rogers <rogers@adacore.com>
13720 * a-rttiev.adb, a-rttiev.ads: New files.
13722 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
13724 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
13725 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
13727 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
13729 2006-02-13 Robert Dewar <dewar@adacore.com>
13731 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
13732 sem_case.adb: Minor code reorganization (not Present should be No)
13734 2006-02-13 Geert Bosch <bosch@adacore.com>
13735 Gary Dismukes <dismukes@adacore.com>
13737 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
13738 0, since the lower bound of the actual string may be greater than one.
13741 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
13742 layout is requested.
13744 2006-02-13 Vincent Celier <celier@adacore.com>
13746 * back_end.adb (Scan_Compiler_Arguments): Check if
13747 Search_Directory_Present is True and, if it is, add the argument in
13748 the source search directory path.
13750 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
13751 Search_Directory_Present to True.
13753 2006-02-13 Joel Brobecker <brobecke@adacore.com>
13755 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
13756 volatile, to tell the compiler to preserve this variable at any level
13758 (Gen_Versions_Ada): Temporarily work around codegen bug.
13760 2006-02-13 Vincent Celier <celier@adacore.com>
13762 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
13763 gcc to link with option -shared-libgcc.
13764 (Gnatlink): Remove duplicate switches -shared-libgcc
13766 2006-02-13 Robert Dewar <dewar@adacore.com>
13768 * gnatvsn.ads (Current_Year): New constant, used to easily update
13769 copyright on all GNAT tools.
13771 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
13774 2006-02-13 Robert Dewar <dewar@adacore.com>
13776 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
13777 after hyphen (small aesthetic change useful for a range of numbers
13779 Suppress range checks for a couple of assignments which otherwise
13780 cause validity checks with validity checking turned on.
13782 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
13783 Improvement in error message for object.
13784 (Rep_Item_Too_Late): Remove '!' in warning message.
13786 2006-02-13 Robert Dewar <dewar@adacore.com>
13787 Eric Botcazou <ebotcazou@adacore.com>
13789 * err_vars.ads: Suppress range checks for a couple of assignments
13790 which otherwise cause validity checks with validity checking turned on.
13793 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
13794 Make message unconditional if it is a warning.
13795 (Error_Msg_NEL): Always output warning messages.
13796 Suppress range checks for a couple of assignments which otherwise
13797 cause validity checks with validity checking turned on.
13799 * errout.ads (Message Insertion Characters): Document that '!' is
13800 implied by '?' in error messages.
13802 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
13803 (Gnat1drv): Use a goto to end of main subprogram instead of
13804 Exit_Program (E_Success) so that finalization can occur normally.
13806 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
13808 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
13811 2006-02-13 Vincent Celier <celier@adacore.com>
13813 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
13814 Unchecked_Conversion functions.
13815 (Modification_Time): Use direct conversion of OS_Time to Calendar time
13816 when OpenVMS returns False.
13818 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
13819 a-dirval.adb (OpenVMS): New Boolean function
13821 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13822 Thomas Quinot <quinot@adacore.com>
13824 * checks.adb (Build_Discriminant_Checks): If the expression being
13825 checks is an aggregate retrieve the values of its discriminants to
13826 generate the check, rather than creating a temporary and a reference
13828 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
13829 (Install_Null_Excluding_Check): Ditto
13830 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
13831 not for the renamed object, so that the actual itype is attached in the
13834 2006-02-13 Robert Dewar <dewar@adacore.com>
13835 Vincent Celier <celier@adacore.com>
13837 * debug.adb: Eliminate numeric switches for binder/gnatmake
13839 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
13840 switches for the compiler.
13841 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
13842 (Scan_Make_Switches): When failing with an illegal switch, output an
13843 error message with the full switch.
13844 Eliminate numeric switches for binder/gnatmake
13846 * switch.ads, switch.adb (Bad_Switch): New procedure
13848 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
13849 Remove 0-9 as debug flag character possibilities
13850 -d is now controlling the primary stack size when its value is a
13851 positive. Also add checks against invalid values, and support for kb,
13852 mb. Ditto for -D switch.
13854 2006-02-13 Robert Dewar <dewar@adacore.com>
13855 Serguei Rybin <rybin@adacore.com>
13857 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
13858 save/restore routines.
13859 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13860 were not always properly handled previously.
13861 Since we are changing the tree format anyway, also get rid of the
13862 junk obsolete Immediate_Errors flag.
13863 (Tree_Read): Change the way of reading Tree_Version_String - now we
13864 read the version string from the tree even if its length is not the
13865 same as the length of the version string computed from Gnatvsn.
13866 (Search_Directory_Present): New Boolean flag for the compiler.
13867 Define Tree_Version_String as a dynamic string.
13868 (Default_Stack_Size): new variable, used to handle switch -d.
13871 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
13872 only for main unit.
13873 Add pragma Ada_2005 (synonym for Ada_05)
13874 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13875 were not always properly handled previously.
13877 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
13878 explicit Ada_95 to Ada_2005.
13880 2006-02-13 Javier Miranda <miranda@adacore.com>
13881 Robert Dewar <dewar@adacore.com>
13882 Ed Schonberg <schonberg@adacore.com>
13884 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
13885 against errors in the source program: a private types for which the
13886 corresponding full type declaration is missing and pragma CPP_Virtual
13888 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
13889 (Is_Known_Null): New flag
13890 (Has_Pragma_Pure): New flag
13891 (No_Return): Present in all entities, set only for procedures
13892 (Is_Limited_Type): A type whose ancestor is an interface is limited if
13893 explicitly declared limited.
13894 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
13895 entities. Only used for component marked Is_Tag. If present it stores
13896 the Offset_To_Top function used to provide this value in tagged types
13897 whose ancestor has discriminants.
13899 * exp_ch2.adb: Update status of new Is_Known_Null flag
13901 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
13903 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
13904 the categorization sense if Is_Pure was set by pragma Pure_Function.
13906 2006-02-13 Quentin Ochem <ochem@adacore.com>
13907 Olivier Hainque <hainque@adacore.com>
13909 * bindusg.adb: Updated documentation for -d and -D switches.
13911 * raise.h (__gnat_set_globals): added new parameter for
13912 Default_Stack_Size.
13914 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
13915 (__gnat_handle_vms_condition): Adjust context before raise.
13916 (__gnat_install_handler): Restore the global vector setup for GCC
13917 versions before 3.4, as the frame based circtuitry is not available
13919 (__gnat_set_globals): added a parameter default_stack_size
13920 (__gl_default_stack_size): new variable.
13922 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13924 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
13925 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
13926 does not exist in the Ada RM.
13927 (Compatible_Int_Bounds): Determine whether two integer range bounds
13928 are of equal length and have the same start and end values.
13929 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
13930 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
13931 aggregate when it is part of an object declaration.
13932 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
13933 constrains discriminants of its parent, add explicitly the discriminant
13934 constraints of the ancestor by retrieving them from the
13935 stored_constraint of the parent.
13937 2006-02-13 Robert Dewar <dewar@adacore.com>
13939 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
13940 attribute Mechanism_Code is applied to renamed subprogram, modify
13941 prefix to point to base subprogram.
13942 Max/Min attributes now violate Restriction No_Implicit_Conditionals
13944 * sinfo.ads: Document that Mechanism_Code cannot be applied to
13945 renamed subprograms so that the front-end must replace the prefix
13948 2006-02-13 Javier Miranda <miranda@adacore.com>
13949 Gary Dismukes <dismukes@adacore.com>
13951 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
13952 availability of RE_Interface_Tag.
13953 (Build_Initialization_Call): Fix wrong access to the discriminant value.
13954 (Freeze_Record_Type): Do not generate the tables associated with
13955 timed and conditional dispatching calls through synchronized
13956 interfaces if compiling under No_Dispatching_Calls restriction.
13957 When compiling for Ada 2005, for a nonabstract
13958 type with a null extension, call Make_Controlling_Function_Wrappers
13959 and insert the wrapper function declarations and bodies (the latter
13960 being appended as freeze actions).
13961 (Predefined_Primitive_Bodies): Do not generate the bodies of the
13962 predefined primitives associated with timed and conditional
13963 dispatching calls through synchronized interfaces if we are
13964 compiling under No_Dispatching_Calls.
13965 (Build_Init_Procedure): Use RTE_Available to check if a run-time
13966 service is available before generating a call.
13967 (Make_Controlling_Function_Wrappers): New procedure.
13968 (Expand_N_Full_Type_Declaration): Create a class-wide master for
13969 access-to-limited-interfaces because they can be used to reference
13970 tasks that implement such limited interface.
13971 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
13972 procedure spec and body of the Offset_To_Top function that is generated
13973 when the parent of a type with discriminants has secondary dispatch
13975 (Init_Secondary_Tags): Handle the case in which the parent of the type
13976 containing secondary dispatch tables has discriminants to generate the
13977 correct arguments to call Set_Offset_To_Top.
13978 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
13980 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
13981 Add Wide_[Wide_]Expanded_Name.
13982 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
13983 the same functionality of Get_Prim_Op_Address but applied to predefined
13984 primitive operations because the pointers to the predefined primitives
13985 are now saved in a separate table.
13986 (Parent_Size): Modified to get access to the separate table of primitive
13987 operations or the parent type.
13988 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
13989 functionality of Set_Prim_Op_Address but applied to predefined primitive
13991 (Set_Signature): New subprogram used to store the signature of a DT.
13992 (Displace): If the Offset_To_Top value is not static then call the
13993 function generated by the expander to get such value; otherwise use
13994 the value stored in the table of interfaces.
13995 (Offset_To_Top): The type of the actual has been changed to Address to
13996 give the correct support to tagged types with discriminants. In this
13997 case this value is stored just immediately after the tag field.
13998 (Set_Offset_To_Top): Two new formals have been added to indicate if the
13999 offset_to_top value is static and hence pass this value to the run-time
14000 to store it in the table of interfaces, or else if this value is dynamic
14001 and then pass to the run-time the address of a function that is
14002 generated by the expander to provide this value for each object of the
14005 * rtsfind.ads (Default_Prin_Op_Count): Removed.
14006 (Default_Prim_Op_Count): New entity
14007 (Get_Predefined_Prim_Op_Address): New entity
14008 (Set_Predefined_Prim_Op_Address): New entity
14009 (RE_Set_Signature): New entity
14011 2006-02-13 Thomas Quinot <quinot@adacore.com>
14012 Ed Schonberg <schonberg@adacore.com>
14014 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
14015 Make_Adjust_Call done for a newly-allocated object.
14017 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
14018 in a subprogram are wrapped in a cleanup block, indicate that the
14019 subprogram contains an inner block with an exception handler.
14020 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
14021 Adjust call is for a newly-allocated object. In that case we must not
14022 assume that the finalization list chain pointers are correct (since they
14023 come from a bit-for-bit copy of the original object's pointers) so if
14024 the attach level would otherwise be zero (no change), we set it to 4
14025 instead to cause the pointers to be reset to null.
14027 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
14028 reset chain pointers to null.
14030 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14032 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
14033 string, and the context requires a loop for the assignment (e.g.
14034 because the left-hand side is packed), generate a unique name for the
14035 temporary that holds the string, to prevent spurious name clashes.
14037 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14038 Javier Miranda <miranda@adacore.com>
14039 Robert Dewar <dewar@adacore.com>
14040 Gary Dismukes <dismukes@adacore.com>
14042 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
14043 return unconstrained arrays.
14045 (Expand_Call): An indirect call through an access parameter of a
14046 protected operation is not a protected call.
14047 Add circuit to raise CE in Ada 2005 mode following call
14048 to Raise_Exception.
14049 (Register_DT_Entry): Do nothing if
14050 the run-time does not give support to abstract interfaces.
14051 (Freeze_Subprogram): In case of dispatching operations, do not generate
14052 code to register the operation in the dispatch table if the source
14053 is compiled with No_Dispatching_Calls.
14054 (Register_Predefined_DT_Entry): Generate code that calls the new
14055 run-time subprogram Set_Predefined_Prim_Op_Address instead of
14056 Set_Prim_Op_Address.
14058 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
14059 on array assignments if the right-hand side is a function call that has
14060 been inlined. Check is performed on the assignment in the block.
14061 (Process_Bounds): If bounds and range are overloaded, apply preference
14062 rule for root operations to disambiguate, and diagnose true ambiguity.
14063 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
14064 a tag-indeterminate right-hand side even when Expander_Active is True.
14065 Needed to ensure that dispatching calls to T'Input are allowed and
14066 get the tag of the target class-wide object.
14068 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
14069 an inherited primitive operation that already overrides several
14070 abstract interface primitives. For transitivity, the new entity must
14071 also override all the abstract interface primitives covered by the
14072 inherited overriden primitive.
14073 Emit warning if new entity differs from homograph in same scope only in
14074 that one has an access parameter and the other one has a parameter of
14075 a general access type with the same designated type, at the same
14076 position in the signature.
14077 (Make_Inequality_Operator): Use source locations of parameters and
14078 subtype marks from corresponding equality operator when creating the
14079 tree structure for the implicit declaration of "/=". This does not
14080 change anything in behaviour except that the decoration of the
14081 components of the subtree created for "/=" allows ASIS to get the
14082 string images of the corresponding identifiers.
14083 (Analyze_Return_Statement): Remove '!' in warning message.
14084 (Check_Statement_Sequence): Likewise.
14085 (Analyze_Subprogram_Body): For an access parameter whose designated type
14086 is an incomplete type imported through a limited_with clause, use the
14087 type of the corresponding formal in the body.
14088 (Check_Returns): Implicit return in No_Return procedure now raises
14089 Program_Error with a compile time warning, instead of beging illegal.
14090 (Has_Single_Return): Function returning unconstrained type cannot be
14091 inlined if expression in unique return statement is not an identifier.
14092 (Build_Body_To_Inline): It is possible to inline a function call that
14093 returns an unconstrained type if all return statements in the function
14094 return the same local variable. Subsidiary procedure Has_Single_Return
14095 verifies that the body conforms to this restriction.
14097 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
14098 same type, and one of them is of an anonymous access type, convert
14099 the other operand to it, so that this is a valid binary operation for
14101 (Resolve_Type_Conversion): Handle subtypes of protected types and
14102 task types when accessing to the corresponding record type.
14103 (Resolve_Allocator): Add '\' in 2-line warning message.
14104 Remove '!' in warning message.
14105 (Resolve_Call): Add '\' in 2-line warning message.
14106 (Valid_Conversion): Likewise.
14107 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
14108 resulting type may be an access type with an implicit dereference.
14109 Obtain the proper component from the designated type.
14110 (Make_Call_Into_Operator): Handle properly a call to predefined equality
14111 given by an expanded name with prefix Standard, when the operands are
14112 of an anonymous access type.
14113 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
14114 Explicit_Dereference and Resolve_Selected_Component, to verify that the
14115 prefix of the expression is not of an incomplete type. Allows full
14116 diagnoses of all semantic errors.
14117 (Resolve_Actuals): If the actual is an allocator whose directly
14118 designated type is a class-wide interface we build an anonymous
14119 access type to use it as the type of the allocator. Later, when
14120 the subprogram call is expanded, if the interface has a secondary
14121 dispatch table the expander will add a type conversion to force
14122 the displacement of the pointer.
14123 (Resolve_Call): If a function that returns an unconstrained type is
14124 marked Inlined_Always and inlined, the call will be inlined and does
14125 not require the creation of a transient scope.
14126 (Check_Direct_Boolean_Op): Removed
14127 (Resolve_Comparison_Op): Remove call to above
14128 (Resolve_Equality_Op): Remove call to above
14129 (Resolve_Logical_Op): Inline above, since this is only call.
14130 (Valid_Conversion): Handle properly conversions between arrays of
14131 convertible anonymous access types.
14134 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
14135 the literal in an unchecked conversion, because GCC 4.x needs a static
14136 value for a string bound.
14138 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14139 Hristian Kirtchev <kirtchev@adacore.com>
14141 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
14142 components of the corresponding record, take into account component
14143 definitions that are access definitions.
14144 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
14145 procedure is not considered a dispatching call and will be expanded
14148 2006-02-13 Javier Miranda <miranda@adacore.com>
14150 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
14151 controlling argument of the dispatching call is an abstract interface
14152 class-wide type then we use it directly.
14153 Check No_Dispatching_Calls restriction.
14154 (Default_Prim_Op_Position): Remove the code that looks for the last
14155 entity in the list of aliased subprograms. This code was wrong in
14157 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
14158 when the source is compiled with the No_Dispatching_Calls restriction.
14159 (Init_Predefined_Interface_Primitives): No need to inherit primitives
14160 if we are compiling with restriction No_Dispatching_Calls.
14161 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
14162 subprograms if we are compiling under No_Dispatching_Calls restriction.
14163 (Make_DT): Generate a dispatch table with a single dummy entry if
14164 we are compiling with the No_Dispatching_Calls restriction. In
14165 addition, in this case we don't generate code that calls to the
14166 following run-time subprograms: Set_Type_Kind, Inherit_DT.
14167 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
14168 of this subprogram if compiling with the No_Dispatching_Calls
14170 (Expand_Type_Conversion): Instead of using the actual parameter,
14171 the argument passed as parameter to the conversion function was
14172 erroneously referenced by the expander.
14173 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
14174 Set_Predefined_Primitive_Op_Address and Set_Signature.
14175 (Expand_Dispatching_Call): Generate call to
14176 Get_Predefined_Prim_Op_Address for predefined primitives.
14177 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
14178 predefined primitives.
14179 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
14180 primitives we reserve one dummy entry to ensure that the tag does not
14181 point to some memory that is associated with some other object. In
14182 addition, remove all the old code that generated the assignments
14183 associated with the signature of the dispatch table and replace them
14184 by a call to the new subprogram Set_Signature.
14185 (Set_All_DT_Position): Change the algorithm because now we have a
14186 separate dispatch table associated with predefined primitive operations.
14187 (Expand_Interface_Conversion): In case of non-static offset_to_top
14188 add explicit dereference to get access to the object after the call
14189 to displace the pointer to the object.
14190 (Expand_Interface_Thunk): Modify the generation of the actual used
14191 in the calls to the run-time function Offset_To_Top to fulfil its
14193 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
14195 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14197 * exp_dist.adb (Copy_Specification): For access parameters, copy
14198 Null_Exclusion flag, which will have been set for stream subprograms
14201 2006-02-13 Pascal Obry <obry@adacore.com>
14203 * expect.c (__gnat_expect_portable_execvp): New implementation. The
14204 previous implementation was using the C runtime spawnve routine but
14205 the corresponding wait was using directly the Win32 API. This was
14206 causing some times a lock when waiting for an event using
14207 WaitForSingleObject in __gnat_waitpid. This new implementation uses
14208 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
14209 API fixes this problem.
14211 2006-02-13 Robert Dewar <dewar@adacore.com>
14213 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
14216 2006-02-13 Thomas Quinot <quinot@adacore.com>
14218 * exp_pakd.ads: Fix typos in comments.
14220 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
14221 array reference that is an explicit dereference, mark the converted
14222 (packed) array reference as analyzed to prevent a forthcoming
14223 reanalysis from resetting its type to the original (non-packed) array
14226 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14227 Javier Miranda <miranda@adacore.com>
14228 Eric Botcazou <ebotcazou@adacore.com>
14230 * exp_util.ads, exp_util.adb (Find_Prim_Op,
14231 Is_Predefined_Primitive_Operation): When
14232 searching for the predefined equality operator, verify that operands
14233 have the same type.
14234 (Is_Predefined_Dispatching_Operation): Remove the code that looks
14235 for the last entity in the list of aliased subprograms. This code
14236 was wrong in case of renamings.
14237 (Set_Renamed_Subprogram): New procedure
14238 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
14239 Exp_Type constant computed when entering this subprogram.
14240 (Known_Null): New function
14241 (OK_To_Do_Constant_Replacement): New function
14242 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
14243 (Side_Effect_Free): An attribute reference 'Input is not free of
14244 side effect, unlike other attributes that are functions. (from code
14246 (Remove_Side_Effects): Expressions that involve packed arrays or records
14247 are copied at the point of reference, and therefore must be marked as
14248 renamings of objects.
14249 (Is_Predefined_Dispatching_Operation): Return false if the operation is
14250 not a dispatching operation.
14253 (Remove_Side_Effects): Lift enclosing type conversion nodes for
14254 elementary types in all cases.
14256 2006-02-13 Javier Miranda <miranda@adacore.com>
14258 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
14259 task types when accessing to the corresponding record type.
14260 Remove '!' in warning message.
14262 2006-02-13 Olivier Hainque <hainque@adacore.com>
14264 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
14265 to avoid useless and space inefficient overalignments on targets where
14266 Max_Alignment is larger than 16.
14268 2006-02-13 Pascal Obry <obry@adacore.com>
14270 * g-catiio.adb (Sec_Number): New type used to compute the number of
14271 seconds since 1-1-1970.
14272 (Image) [Natural]: The parameter was an Integer, as we can't deal with
14273 negative numbers (years, months...) it is better to have a Natural here.
14275 (Image) [Number]: Change parameter from Long_Integer to Number.
14276 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
14277 overflow for dates past year 2038.
14279 2006-02-13 Matthew Heaney <heaney@adacore.com>
14281 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
14284 2006-02-13 Arnaud Charlet <charlet@adacore.com>
14286 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
14288 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
14289 finalization can occur normally.
14291 2006-02-13 Vincent Celier <celier@adacore.com>
14293 * gnatcmd.adb (Rules_Switches): New table
14294 (Add_To_Rules_Switches): New procedure
14295 (GNATCmd): For command CHECK, put all options following "-rules" in the
14296 Rules_Switches table. Append these -rules switches after the -cargs
14299 2006-02-13 Robert Dewar <dewar@adacore.com>
14301 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
14302 These two cases were generating incorrect output, and if this unit
14303 was built with checks on, generated a discriminant mismatch constraint
14306 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14307 Robert Dewar <dewar@adacore.com>
14309 * lib-xref.adb (Get_Type_Reference): For a private type whose full
14310 view is an array type, indicate the component type as well, for
14311 navigation purposes.
14312 (Generate_Reference): Don't consider array ref on LHS to be a case
14313 of violating pragma Unreferenced.
14314 Do not give Ada 2005 warning except on real reference.
14316 2006-02-13 Vincent Celier <celier@adacore.com>
14318 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
14319 main source, add switch -mdebug-main=_ada_ so that the executable can
14320 be debugged by the standard VMS debugger.
14321 (Gnatmake): Set No_Main_Subprogram to True when there is no main
14322 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
14323 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
14324 of the last source, as the binding and linking phases are never
14326 Set all executable obsolete when rebuilding a library.
14328 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
14331 2006-02-13 Javier Miranda <miranda@adacore.com>
14334 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
14335 code to improve the error message reported when the program has
14336 declarations of abstract interface types and it is not compiled with
14337 the -gnat05 switch.
14338 (P_Access_Definition): Reorganize the code to improve the error
14339 message reported when the new Ada 2005 syntax for anonymous
14340 access types is used and the program is not compiled with the
14343 2006-02-13 Robert Dewar <dewar@adacore.com>
14345 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
14346 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
14349 2006-02-13 Javier Miranda <miranda@adacore.com>
14351 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
14352 against source containing syntax errors.
14354 2006-02-13 Vincent Celier <celier@adacore.com>
14356 * prj.adb (Reset): Initialize the first element of table Namings with
14357 the standard naming data.
14359 2006-02-13 Vincent Celier <celier@adacore.com>
14361 * prj.ads (Error_Warning): New enumeration type
14363 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
14364 unknown, use the location of the project to report the error.
14365 (When_No_Sources): New global variable
14366 (Report_No_Ada_Sources): New procedure
14367 (Check): New parameter When_No_Sources. Set value of global variable
14369 (Find_Sources): Call Report_No_Ada_Sources when appropriate
14370 (Get_Sources_From_File): Ditto
14371 (Warn_If_Not_Sources): Better warning messages indicating the unit name
14374 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
14375 Call Prj.Proc.Process with parameter When_No_Sources.
14377 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
14378 Call Recursive_Check with parameter When_No_Sources.
14379 (Recursive_Check): New parameter When_No_Sources. Call itself and
14380 Prj.Nmsc.Check with parameter When_No_Sources.
14381 (Process): New parameter When_No_Sources. Call Check with parameter
14383 (Copy_Package_Declarations): New procedure to copy renamed parameters
14384 and setting the location of the declared attributes to the location
14385 of the renamed package.
14386 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
14389 2006-02-13 Vincent Celier <celier@adacore.com>
14391 * prj-makr.adb (Make): Preserve the comments from the original project
14393 When removing nodes (attributes Source_Dirs, Source_Files,
14394 Source_List_File and package Naming), save the comments and attach the
14395 saved comments to the newly created nodes.
14396 Do not add a with clause for the naming package if one already exists.
14398 2006-02-13 Javier Miranda <miranda@adacore.com>
14399 Gary Dismukes <dismukes@adacore.com>
14400 Robert Dewar <dewar@adacore.com>
14402 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
14404 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
14405 aliased entities to look for the overriden abstract interface
14407 (Is_Interface_Subprogram): Complete documentation.
14408 (Check_Dispatching_Operation): Do not generate code to register the
14409 operation in the dispatch table if the source is compiled with
14410 restriction No_Dispatching_Calls.
14411 (Override_Dispatching_Operation): Check for illegal attempt to override
14412 No_Return procedure with procedure that is not No_Return
14413 (Check_Dispatching_Call): Suppress the check for an abstract operation
14414 when the original node of an actual is a tag-indeterminate attribute
14415 call, since the attribute, which must be 'Input, can never be abstract.
14416 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
14417 call to the Input attribute (even when rewritten).
14418 (Propagate_Tag): Augment comment to indicate the possibility of a call
14419 to an Input attribute.
14421 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
14422 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
14424 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
14425 No_Wide_Characters is no longer partition-wide
14426 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
14429 2006-02-13 Douglas Rupp <rupp@adacore.com>
14431 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
14433 2006-02-13 Javier Miranda <miranda@adacore.com>
14435 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
14436 handles default-initialized components to keep separate the management
14437 of this feature but also avoid the unrequired resolution and
14438 expansion of components that do not have partially initialized
14440 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
14441 (Check_Bounds): Likewise.
14442 (Check_Length): Likewise.
14444 2006-02-13 Javier Miranda <miranda@adacore.com>
14445 Ed Schonberg <schonberg@adacore.com>
14447 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
14448 abstract interface type call analyze_and_resolve to expand the type
14449 conversion into the corresponding displacement of the
14450 reference to the base of the object.
14451 (Eval_Attribute, case Width): For systems where IEEE extended precision
14452 is supported, the maximum exponent occupies 4 decimal digits.
14453 (Accessibility_Message): Add '\' in 2-line warning message.
14454 (Resolve_Attribute): Likewise.
14455 (case Attribute_Access): Significantly revise checks
14456 for illegal access-to-subprogram Access attributes to properly enforce
14457 the rules of 3.10.2(32/2).
14458 Diagnose use of current instance with an illegal attribute.
14460 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
14462 (Enclosing_Generic_Unit): New function to return a node's innermost
14463 enclosing generic declaration node.
14464 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
14465 (Type_Access_Level): The accessibility level of anonymous acccess types
14466 associated with discriminants is that of the current instance of the
14467 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
14468 (Compile_Time_Constraint_Error): Handle case of conditional expression.
14469 (Kill_Current_Values_For_Entity): New function
14470 (Enter_Name): Change formal type to Entity_Id
14472 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
14473 Ed Schonberg <schonberg@adacore.com>
14474 Gary Dismukes <dismukes@adacore.com>
14476 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
14477 Analyze_Compilation_Unit.
14478 Detect and warn on redundant with clauses detected in a package spec
14479 and/or body when -gnatwr is used.
14480 (Analyze_Context): Analyze config pragmas before other items
14481 (Install_Context_Items): Don't analyze config pragmas here
14482 (Install_Limited_Withed_Unit): Set limited entity of package in
14483 with_clause so that cross-reference information or warning messages on
14484 unused packages can be properly generated
14485 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
14486 has Error_Posted set. Prevent infinite loops in illegal programs.
14487 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
14488 to the point of the error test requiring the current unit to be private.
14489 This ensures that private with clauses are not exempted from the basic
14490 checking for being a descendant of the same library unit parent as a
14491 withed private descendant unit.
14492 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
14493 handle private with clauses properly, as well as to account for cases
14494 where the withed unit is a public descendant of a private ancestor
14495 (in which case the current unit must be a descendant of the private
14496 ancestor's parent). The spec comments were updated accordingly. Also,
14497 the old error message in this subprogram was replaced with error
14498 messages that mirror the errors tested and reported by
14499 Check_Private_Child_Unit.
14500 Parameter and variable names improved for readability.
14501 (Install_Limited_Context_Clauses): Remove test for a withed unit being
14502 private as the precondition for calling
14503 Check_Private_Limited_Withed_Unit since that subprogram has been
14504 revised to test public units as well as private units.
14506 2006-02-13 Thomas Quinot <quinot@adacore.com>
14507 Robert Dewar <dewar@adacore.com>
14508 Ed Schonberg <schonberg@adacore.com>
14509 Javier Miranda <miranda@adacore.com>
14511 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
14512 that Scope_Stack.First = 1.
14513 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
14514 were not always properly handled previously.
14515 (Formal_Entity): Complete rewrite, to handle properly some complex case
14516 with multiple levels of parametrization by formal packages.
14517 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
14518 to the corresponding derived type declaration for proper semantics.
14520 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
14521 (Check_Component): Enforce restriction on components of
14522 unchecked_unions: a component in a variant cannot contain tasks or
14524 (Unchecked_Union): Allow nested variants and multiple discriminants, to
14526 Add pragma Ada_2005 (synonym for Ada_05)
14527 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
14528 were not always properly handled previously.
14529 Document that pragma Propagate_Exceptions has no effect
14530 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
14531 (Set_Convention_From_Pragma): Check that if a convention is
14532 specified for a dispatching operation, then it must be
14533 consistent with the existing convention for the operation.
14534 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
14535 longer required to specify an vtable-ptr component in the record. For
14536 compatibility reasons we leave the support for the previous definition.
14537 (Analyze_Pragma, case No_Return): Allow multiple arguments
14539 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
14540 non-overrideen inherited operation with a controlling result as
14541 illegal only its implicit declaration comes from the derived type
14542 declaration of its result's type.
14543 (Check_Possible_Deferred_Completion): Relocate the object definition
14544 node of the subtype indication of a deferred constant completion rather
14545 than directly analyzing it. The analysis of the generated subtype will
14546 correctly decorate the GNAT tree.
14547 (Record_Type_Declaration): Check whether this is a declaration for a
14548 limited derived record before analyzing components.
14549 (Analyze_Component_Declaration): Diagnose record types not explicitly
14550 declared limited when a component has a limited type.
14551 (Build_Derived_Record_Type): Code reorganization to check if some of
14552 the inherited subprograms of a tagged type cover interface primitives.
14553 This check was missing in case of a full-type associated with a private
14555 (Constant_Redeclaration): Check that the subtypes of the partial and the
14556 full view of a constrained deferred constant statically match.
14557 (Mentions_T): A reference to the current type in an anonymous access
14558 component declaration must be an entity name.
14559 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
14560 class_wide type to refer to full type, not to the incomplete one.
14561 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
14562 available. Required to give support to the certified run-time.
14563 (Analyze_Component_Declaration): In case of anonymous access components
14564 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
14565 (Process_Discriminants): For an access discriminant, use the
14566 discriminant specification as the associated_node_for_itype, to
14567 simplify accessibility checks.
14569 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14570 Javier Miranda <miranda@adacore.com>
14572 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
14573 abstract interpretations on an operator, remove interpretations that
14574 yield Address or a type derived from it, if one of the operands is an
14576 (Try_Object_Operation.Try_Primitive_Operation,
14577 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
14578 location when creating the new reference to a primitive or class-wide
14579 operation as a part of rewriting a subprogram call.
14580 (Try_Primitive_Operations): If context requires a function, collect all
14581 interpretations after the first match, because there may be primitive
14582 operations of the same type with the same profile and different return
14583 types. From code reading.
14584 (Try_Primitive_Operation): Use the node kind to choose the proper
14585 operation when a function and a procedure have the same parameter
14587 (Complete_Object_Operation): If formal is an access parameter and prefix
14588 is an object, rewrite as an Access reference, to match signature of
14589 primitive operation.
14590 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
14591 by an expanded name with prefix Standard, when the operands are of an
14592 anonymous access type.
14593 (Remove_Abstract_Operations): If the operation is abstract because it is
14594 inherited by a user-defined type derived from Address, remove it as
14595 well from the set of candidate interpretations of an overloaded node.
14596 (Analyze_Membership_Op): Membership test not applicable to cpp-class
14599 2006-02-13 Bob Duff <duff@adacore.com>
14601 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
14602 redundant use clauses.
14603 In particular, if the scope of two use clauses overlaps, but one is not
14604 entirely included in the other, we should not warn. This can happen
14605 with nested packages.
14606 (Analyze_Subprogram_Renaming): Protect the compiler against previously
14607 reported errors. The bug was reported when the compiler was built
14608 with assertions enabled.
14609 (Find_Type): If the node is a 'Class reference and the prefix is a
14610 synchronized type without a corresponding record, return the type
14613 2006-02-13 Javier Miranda <miranda@adacore.com>
14615 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
14616 if this is the full-declaration associated with a private declaration
14617 that implement interfaces, then the private type declaration must be
14619 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
14620 as aliased. The use of the 'access attribute is not available for such
14621 object (for this purpose the object should be explicitly marked as
14622 aliased, but being an anonymous type this is not possible).
14624 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14625 Robert Dewar <dewar@adacore.com>
14627 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
14628 compilation unit is an elaboration scope.
14629 (Add_Task_Proc): Add '\' in 2-line warning message.
14630 (Activate_All_Desirable): Deal with case of unit with'ed by parent
14632 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14633 Javier Miranda <miranda@adacore.com>
14635 * sem_type.adb (Write_Overloads): Improve display of candidate
14637 (Add_One_Interp): Do not add to the list of interpretations aliased
14638 entities corresponding with an abstract interface type that is an
14639 immediate ancestor of a tagged type; otherwise we have a dummy
14640 conflict between this entity and the aliased entity.
14641 (Disambiguate): The predefined equality on universal_access is not
14642 usable if there is a user-defined equality with the proper signature,
14643 declared in the same declarative part as the designated type.
14644 (Find_Unique_Type): The universal_access equality operator defined under
14645 AI-230 does not cover pool specific access types.
14646 (Covers): If one of the types is a generic actual subtype, check whether
14647 it matches the partial view of the other type.
14649 2006-02-13 Thomas Quinot <quinot@adacore.com>
14651 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
14652 line. This is necessary to allow In_Extended_Main_Unit to provide
14653 correct results for itypes while writing out expanded source.
14654 (Close_File): No need to update the source_index_table here since it's
14655 now done for each line.
14657 2006-02-13 Ed Schonberg <schonberg@adacore.com>
14658 Robert Dewar <dewar@adacore.com>
14660 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
14661 preserve the source unit where the itype is declared, and prevent a
14663 (Note_Implicit_Run_Time_Call): New procedure
14664 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
14667 * sprint.ads: Document use of $ for implicit run time routine call
14669 2006-02-13 Quentin Ochem <ochem@adacore.com>
14671 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
14674 2006-02-13 Bob Duff <duff@adacore.com>
14676 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
14677 Scan_Unsigned, so we do not scan leading blanks and sign twice.
14678 Integer'Value("- 5") and Integer'Value("-+5") now correctly
14679 raise Constraint_Error.
14681 * s-vallli.adb (Scan_Long_Long_Integer): Call
14682 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
14683 do not scan leading blanks and sign twice.
14684 Integer'Value("- 5") and Integer'Value("-+5") now correctly
14685 raise Constraint_Error.
14687 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
14688 Scan_Long_Long_Unsigned): Split out most of the processing from
14689 Scan_Long_Long_Unsigned out into
14690 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
14691 This prevents scanning leading blanks and sign twice.
14692 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
14695 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
14696 out most of the processing from Scan_Unsigned out into
14697 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
14698 This prevents scanning leading blanks and sign twice.
14700 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
14701 use with Modular'Value attribute.
14702 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
14705 2006-02-13 Robert Dewar <dewar@adacore.com>
14707 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
14709 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
14711 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
14712 (PPC VxWorks): Likewise.
14713 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
14714 (forced_callee): Make non-inlinable and non-pure.
14715 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
14717 2006-02-13 Arnaud Charlet <charlet@adacore.com>
14718 Ben Brosgol <brosgol@adacore.com>
14719 Robert Dewar <dewar@adacore.com>
14721 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
14723 Document that gnatbind -M option is for cross environments only.
14724 Added description of using gnatmem to trace gnat rtl allocs and deallocs
14725 Add note on use of $ to label implicit run time calls
14726 Add documentation for -gnatyI (check mode IN)
14727 Updated chapter on compatibility with HP Ada
14728 VMS-oriented edits.
14729 Ran spell and corrected errors
14730 Add documentation for gnatbind -d and rework documentation of -D
14732 Add subprogram/data elimination section.
14733 Minor editing of annex A.
14734 Add section for gnatcheck.
14735 Add documentation for restriction No_Dispatching_Calls
14736 Add documentation for pragma Ada_2005
14737 Remove mention of obsolete pragma Propagate_Exceptions
14738 Document that pragma Unreferenced can appear after DO in ACCEPT
14739 Clarify Pure_Function for library level units
14740 Mention Max/Min in connection with No_Implicit_Conditionals
14741 No_Wide_Characters restriction is no longer partition-wide
14742 Add a nice example for Universal_Literal_String attribute
14743 Document that pragma No_Return can take multiple arguments
14745 * ug_words: Added entry for gnatcheck
14747 * g-ctrl_c.ads (Install_Handler): Enhance comments
14749 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
14751 * g-trasym.ads: Add documentation on how to do off line symbolic
14752 traceback computation.
14754 * s-fatgen.adb: Add comments for Unaligned_Valid
14756 * stand.ads: Fix typo in comment
14758 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14760 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
14762 2006-02-06 Roger Sayle <roger@eyesopen.com>
14764 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
14766 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14769 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
14770 implementation that calls __main.
14772 2006-01-25 Peter O'Gorman <peter@pogma.com>
14775 * Makefile.in (GCC_LINK): Remove quotes.
14776 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
14779 (powerpc-darwin): Pass -shared-libgcc when building shared library.
14781 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14784 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
14786 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14788 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
14790 2005-12-12 Arnaud Charlet <charlet@adacore.com>
14792 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
14795 2005-12-12 Arnaud Charlet <charlet@adacore.com>
14797 * Make-lang.in: Update dependencies
14799 2005-12-12 Arnaud Charlet <charlet@adacore.com>
14801 * Make-lang.in: Add rule for ada/exp_sel.o
14803 2005-12-12 Arnaud Charlet <charlet@adacore.com>
14805 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
14807 2005-12-09 Arnaud Charlet <charlet@adacore.com>
14809 * gnatvsn.ads (Library_Version): Bump to version 4.2
14810 (ASIS_Version_Number): Bumped.
14812 2005-12-09 Doug Rupp <rupp@adacore.com>
14814 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
14815 Ada bind file prefix on VMS from b$ to b__.
14816 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
14819 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
14820 Targparm.OpenVMS_On_Target.
14821 (Object_Suffix): Initialize with target object suffix.
14822 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
14824 * butil.adb: Change some Hostparm.OpenVMS checks to
14825 Targparm.OpenVMS_On_Target.
14827 * clean.adb: Change some Hostparm.OpenVMS checks to
14828 Targparm.OpenVMS_On_Target.
14829 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
14830 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
14831 Ada bind file prefix on VMS from b$ to b__.
14833 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
14834 --GCC so that Get_Target_Parameters can find system.ads.
14835 (Gnatlink): Call Get_Target_Parameters in mainline.
14836 Initialize standard packages for Targparm.
14837 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
14838 (Process_Args): Also Check for object files with target object
14840 (Make_Binder_File_Names): Create with target object extension.
14841 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
14844 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
14845 Targparm.OpenVMS_On_Target.
14846 ({declaration},Build_Library,Check_Library): Change Ada bind file
14847 prefix on VMS from b$ to b__.
14849 * osint-b.adb: Change some Hostparm.OpenVMS checks to
14850 Targparm.OpenVMS_On_Target.
14851 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
14854 * targext.c: New file.
14856 * Makefile.in: add support for vxworks653 builds
14857 (../../vxaddr2line): gnatlink with targext.o.
14858 (TOOLS_LIBS): Move targext.o to precede libgnat.
14859 (init.o, initialize.o): Minor clean up in dependencies.
14860 (GNATLINK_OBJS): Add targparm.o, snames.o
14861 Add rules fo building targext.o and linking it explicitly with all
14863 Also add targext.o to gnatlib.
14865 * Make-lang.in: Add rules for building targext.o and linking it in
14866 with gnat1 and gnatbind.
14867 Add entry for exp_sel.o.
14869 * osint.adb Change some Hostparm.OpenVMS checks to
14870 Targparm.OpenVMS_On_Target.
14871 (Object_File_Name): Use target object suffix.
14873 * osint.ads (Object_Suffix): Remove, no longer used.
14874 (Target_Object_Suffix): Initialize with target object suffix.
14876 * rident.ads: Add special exception to license.
14878 * targparm.adb (Get_Target_Parameters): Set the value of
14879 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
14881 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
14883 * targparm.ads: Add special exception to license.
14885 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
14887 (Copy_File): Make sure from file is closed if error on to file
14888 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
14890 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
14891 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
14893 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
14894 target object suffix.
14896 2005-12-09 Jose Ruiz <ruiz@adacore.com>
14897 Quentin Ochem <ochem@adacore.com>
14898 Florian Villoing <villoing@adacore.com>
14900 * a-taster.ads, a-taster.adb: New files.
14902 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
14903 link to the version that does nothing. This way the task termination
14904 routine is not executed twice for the environment task when finishing
14905 because of an unhandled exception.
14907 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
14908 handler because of an unhandled exception.
14910 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
14911 System.Tasking.Utilities instead of that in System.Tasking.Stages.
14913 * s-finimp.adb (initialization code): Modify the soft link for the
14914 finalization of the global list instead of Adafinal.
14916 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
14917 non-tasking version of the soft link for task termination. We do
14918 nothing since if we are using the non-tasking version it
14919 means that the task termination functionality is not used.
14920 (Null_Finalize_Global_List): Add this null version for the procedure
14921 in charge of finalizing the global list for controlled objects.
14922 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
14923 instead for handling run-time termination in a more flexible way.
14924 (Adafinal_NT): This new procedure will take care of finalizing the
14925 global list for controlled objects if needed, but no tasking
14928 * s-tarest.adb (Task_Lock): Do not try to lock again the
14929 Global_Task_Lock if we already own it. Otherwise, we get blocked in
14930 some run-time operations.
14931 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
14932 until all nested locks have been released.
14933 (Task_Wrapper): Call the fall-back task termination handler. It
14934 applies to all tasks but the environment task.
14935 (Finalize_Global_Tasks): Add the call for the task termination
14936 procedure for the environment task.
14937 (Task_Wrapper): suppress warnings around declaration of
14938 Secondary_Stack_Address.
14940 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
14941 moved to the Common_ATCB record.
14942 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
14943 Common_ATCB record.
14944 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
14945 Common_ATCB record.
14947 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
14948 Fall_Back_Handler, and Specific_Handler.
14950 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
14951 defined in Ada.Task_Termination, to avoid circular dependencies.
14952 (Termination_Handler): Redefine this type here, alredy defined in
14953 Ada.Task_Termination, for avoiding circular dependencies.
14954 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
14955 for storing task termination handlers. In addition,
14956 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
14957 Common_ATCB because it is used by both the regular and the restricted
14959 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
14960 Common_ATCB because it is used by both the regular and the restricted
14962 (Common_ATCB): Added a dynamic task analyzer field.
14964 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
14965 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
14966 (Task_Wrapper): Call the task termination handler. It applies to all
14967 tasks but the environment task.
14968 (Finalize_Global_Tasks): Call the task termination procedure for the
14969 environment task. The call to Finalize_Global_List is now performed
14970 using the soft links mechanism.
14971 (Task_Wrapper): added dynamic stack analysis.
14973 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
14974 potentially blocking operations has been moved from
14975 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
14976 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
14977 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
14978 this run-time check.
14980 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
14981 of task termination procedure.
14982 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
14983 link for the task termination procedure.
14985 * bindusg.adb: (Bindusg): Added documentation for -u option.
14987 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
14988 (Get_Main_C): Add handling of dynamic stack analysis.
14989 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
14991 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
14992 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
14993 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
14995 * opt.ads: Added flags used by dynamic stack measurement.
14996 (Max_Line_Length): Remove (not used anymore)
14998 * s-io.ads, s-io.adb (Standard_Error): new subprogram
14999 (Standart_Output): new subprogram
15000 (Set_Output): new subprogram
15001 (Put): now uses the value of Current_Out to know if the output has to be
15002 send to stderr or stdout.
15004 * s-stausa.ads: Complete implementation.
15006 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
15008 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
15009 list of Ada 05 files.
15010 (GNAT Library Units): Add AltiVec files.
15012 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
15013 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
15014 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
15016 2005-12-09 Nicolas Setton <setton@adacore.com>
15018 * adaint.c (__gnat_locate_regular_file): Return immediately if
15019 file_name is empty.
15021 2005-12-09 Javier Miranda <miranda@adacore.com>
15022 Hristian Kirtchev <kirtchev@adacore.com>
15024 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
15025 to the specification because the frontend generates code that uses this
15027 (Set_Interface_Table): Add missing assertion.
15028 Update documentation describing the run-time structure.
15029 (Displace): New subprogram that displaces the pointer to the object
15030 to reference one of its secondary dispatch tables.
15031 (IW_Membership): Modified to use the new table of interfaces.
15032 (Inherit_TSD): Modified to use the new table of interfaces.
15033 (Register_Interface_Tag): Use the additional formal to fill the
15034 contents of the new table of interfaces.
15035 (Set_Interface_Table): New subprogram that stores in the TSD the
15036 pointer to the table of interfaces.
15037 (Set_Offset_To_Top): Use the additional formal to save copy of
15038 the offset value in the table of interfaces.
15039 Update structure of GNAT Primary and Secondary dispatch table diagram.
15040 Add comment section on GNAT dispatch table prologue.
15041 (Offset_To_Signature): Update the constant value of the Signature field.
15042 (Dispatch_Table): Update comment on hidden fields in the prologue.
15043 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
15044 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
15045 the type of formal parameter T to Tag, introduce additional assertions.
15046 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
15048 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
15050 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
15051 in all the calls to Expand_Interface_Thunk. Instead of referencing the
15052 record component containing the tag of the secondary dispatch table we
15053 have to use the Offset_To_Top run-time function to get this information;
15054 otherwise if the pointer to the base of the object has been displace
15055 we get a wrong value if we use the 'position attribute.
15057 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
15058 all the calls to Expand_Interface_Thunk.
15059 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
15060 interfaces; hence the call to Set_Interface_Table was clearly wrong.
15061 (Collect_All_Interfaces): Modify the internal subprogram Collect to
15062 ensure that the interfaces implemented by the ancestors are placed
15063 at the header of the generated list.
15064 (Expand_Interface_Conversion): Handle the case in which the displacement
15065 associated with the interface conversion is not statically known. In
15066 this case we generate a call to the new run-time subprogram Displace.
15067 (Make_DT): Generate and fill the new table of interfaces.
15068 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
15069 Get_Tagged_Kind and Set_Tagged_Kind.
15070 (Tagged_Kind): New function that determines the tagged kind of a type
15071 with respect to limitedness and concurrency and returns a reference to
15073 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
15074 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
15075 primary dispatch table for a type.
15076 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
15077 secondary dispatch table respectively of a tagged type.
15079 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
15080 (Expand_Interface_Conversion): New subprogram to indicate if the
15081 displacement of the type conversion is statically known.
15082 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
15084 * rtsfind.ads (RE_Offset_To_Top): New entity
15085 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
15086 accessible to users.
15087 (Re_Displace): New entity
15088 (RE_Interface_Data): New entity
15089 (RE_Set_Interface_Data): New_Entity
15090 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
15091 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
15092 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
15093 RE_TK_Tagged, RE_TK_Task.
15095 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
15096 Init_Secondary_Tags_Internal to allow its use with interface types and
15097 also to generate the code for the new additional actual required
15098 by Set_Offset_To_Top.
15099 (Build_Init_Statements): In case of components associated with abstract
15100 interface types there is no need to generate a call to its IP.
15101 (Freeze_Record_Type): Generate Select Specific Data tables only for
15103 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
15104 the bodies and specifications of the predefined primitive operations
15105 dealing with dispatching selects and abort, 'Callable, 'Terminated only
15106 for concurrent types.
15108 * exp_sel.ads, exp_sel.adb: New files.
15110 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
15111 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
15112 properly protected objects and attach handler in the case of the
15113 restricted profile.
15114 Move embeded package Select_Expansion_Utilities into a separate external
15116 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
15117 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
15118 (Build_K, Build_S_Assignment): New subprograms, part of the select
15119 expansion utilities.
15120 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
15121 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
15122 where the trigger is a dispatching procedure of a limited tagged type.
15124 2005-12-09 Olivier Hainque <hainque@adacore.com>
15126 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
15127 pointer initialization values. Make a SAVE_EXPR instead. Add comments
15128 about the use and expansion of SAVE_EXPRs in the various possible
15129 renaming handling cases.
15130 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
15131 abusing DECL_FCONTEXT.
15133 2005-12-09 Matthew Heaney <heaney@adacore.com>
15135 * a-convec.adb (Merge): Added assertions to check whether vector params
15138 * a-coinve.adb (Merge): Added assertions to check whether vector params
15141 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
15143 (Cursor'Read): raises PE
15145 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
15146 to its default value.
15148 * a-cihama.adb: Manually check whether cursor's key and elem are
15151 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
15152 (Merge): Assert that target and source lists are in order
15153 (Swap): Declare non-const temporaries, to pass to Splice
15155 * a-cdlili.ads: (Splice): Changed param name and param mode
15157 * a-cdlili.adb: (Splice): Changed param name and param mode
15158 (Merge): Assert that target and source lists are in order
15159 (Swap): Declare non-const temporaries, to pass to Splice
15161 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
15162 (Write): declare Stream param as not null
15164 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
15165 an exception message.
15167 2005-12-09 Thomas Quinot <quinot@adacore.com>
15168 Robert Dewar <dewar@adacore.com>
15170 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
15171 which is the absolute maximum length we can support.
15173 * frontend.adb: For the processing of configuration pragma files,
15174 remove references to Opt.Max_Line_Length, which is not checked anymore.
15176 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
15179 * scn.adb, scng.adb:
15180 Always check line length against the absolute supported maximum,
15181 Hostparm.Max_Line_Length.
15183 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
15184 value for the maximum line length is Max_Line_Length (not
15185 Column_Number'Last).
15186 Minor error msg update
15187 (Set_Style_Check_Options): New interface returning error msg
15188 Minor code reorganization (processing for 'M' was out of alpha order)
15190 * switch-c.adb: New interface for Set_Style_Check_Options
15192 * stylesw.ads (Set_Style_Check_Options): New interface returning error
15195 2005-12-09 Javier Miranda <miranda@adacore.com>
15197 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
15198 with IP subprogram were only supported if there were limited types.
15200 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
15201 records with IP subprogram were only supported if there were limited
15204 2005-12-09 Olivier Hainque <hainque@adacore.com>
15205 Eric Botcazou <ebotcazou@adacore.com>
15207 * trans.c (tree_transform, emit_check): Adjust calls to
15208 build_call_raise, passing the now expected GNAT_NODE argument.
15210 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
15211 source line information than what the current global locus indicates
15214 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
15215 field has overflowed.
15216 (build_call_raise): Add a GNAT_NODE argument to convey better source
15217 line information than what the current global locus indicates when
15219 (build_component_ref): Adjust call to build_call_raise.
15221 2005-12-09 Pascal Obry <obry@adacore.com>
15223 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
15224 the iterator is quitting iteration on parent directory.
15226 2005-12-09 Javier Miranda <miranda@adacore.com>
15228 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
15229 and the assignment to a class-wide object, before the assignment we
15230 generate a run-time check to ensure that the tag of the Target is
15231 covered by the tag of the source.
15233 2005-12-09 Robert Dewar <dewar@adacore.com>
15235 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
15236 parameter in call to Image_Wide_Character.
15238 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
15239 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
15240 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
15241 annoying FFFE/FFFF inconsistency.
15243 2005-12-09 Robert Dewar <dewar@adacore.com>
15244 Javier Miranda <miranda@adacore.com>
15245 Ed Schonberg <schonberg@adacore.com>
15247 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
15248 of type conversion.
15249 (Find_Interface): New subprogram that given a tagged type and one of its
15250 component associated with the secondary table of an abstract interface
15251 type, return the entity associated with such abstract interface type.
15252 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
15253 base type to create anonymous subtype, because entity may be a locally
15254 declared subtype or generic actual.
15255 (Find_Interface): New subprogram that given a tagged type and one of its
15256 component associated with the secondary table of an abstract interface
15257 type, return the entity associated with such abstract interface type.
15259 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
15260 conversion cannot be handled at compile time. In this case we pass this
15261 information to the expander to generate the appropriate code.
15263 2005-12-09 Robert Dewar <dewar@adacore.com>
15264 Ed Schonberg <schonberg@adacore.com>
15265 Gary Dismukes <dismukes@adacore.com>
15266 Javier Miranda <miranda@adacore.com>
15267 Hristian Kirtchev <kirtchev@adacore.com>
15269 * einfo.adb (Itype_Printed): New flag
15270 (Is_Limited_Type): Derived types do not inherit limitedness from
15271 interface progenitors.
15272 (Is_Return_By_Reference_Type): Predicate does not apply to limited
15275 * einfo.ads (Itype_Printed): New flag
15276 Move Is_Wrapper_Package to proper section
15277 Add missing Inline for Is_Volatile
15279 * output.ads, output.adb (Write_Erase_Char): New procedure
15280 (Save/Restore_Output_Buffer): New procedures
15281 (Save/Restore_Output_Buffer): New procedures
15283 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
15284 Add missing support for anonymous access type
15285 (Write_Id): Insert calls to Write_Itype
15286 (Write_Itype): New procedure to output itypes
15288 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
15289 use of "limited" in declaration.
15291 * sinfo.ads, sinfo.adb:
15292 Formal derived types can carry an explicit "limited" indication.
15294 * sem_ch3.adb: Add with and use of Targparm.
15295 (Create_Component): If Frontend_Layout_On_Target is True and the
15296 copied component does not have a known static Esize, then reset
15297 the size and positional fields of the new component.
15298 (Analyze_Component_Declaration): A limited component is
15299 legal within a protected type that implements an interface.
15300 (Collect_Interfaces): Do not add to the list the interfaces that
15301 are implemented by the ancestors.
15302 (Derived_Type_Declaration): If the parent of the full-view is an
15303 interface perform a transformation of the tree to ensure that it has
15304 the same parent than the partial-view. This simplifies the job of the
15305 expander in order to generate the correct object layout, and it is
15306 needed because the list of interfaces of the full-view can be given in
15308 (Process_Full_View): The parent of the full-view does not need to be
15309 a descendant of the parent of the partial view if both parents are
15311 (Analyze_Private_Extension_Declaration): If declaration has an explicit
15312 "limited" the parent must be a limited type.
15313 (Build_Derived_Record_Type): A derived type that is explicitly limited
15314 must have limited ancestor and progenitors.
15315 (Build_Derived_Type): Ditto.
15316 (Process_Full_View): Verify that explicit uses of "limited" in partial
15317 and full declarations are consistent.
15318 (Find_Ancestor_Interface): Remove function.
15319 (Collect_Implemented_Interfaces): New procedure used to gather all
15320 implemented interfaces by a type.
15321 (Contain_Interface): New function used to check whether an interface is
15323 (Find_Hidden_Interface): New function used to determine whether two
15324 lists of interfaces constitute a set equality. If not, the first
15325 differing interface is returned.
15326 (Process_Full_View): Improve the check for the "no hidden interface"
15327 rule as defined by AI-396.
15329 2005-12-09 Robert Dewar <dewar@adacore.com>
15331 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
15332 types, not on record subtypes.
15333 (Freeze_Entity): Code cleanup. Add barrier to the loop
15334 that generates the references for primitive operations. This allows to
15335 remove an unnecessary exception handler.
15336 Code reformatting and comment clean ups.
15338 2005-12-09 Vincent Celier <celier@adacore.com>
15340 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
15341 If GNAT CHECK is called with a project file, but with no
15342 source on the command line, call gnatcheck with all the compilable
15343 sources of the project.
15344 Take into account the new command Check, for gnatcheck. Treat as for
15345 other ASIS tools: take into account project, specific package Check and
15347 For ASIS tools, add the switches in package Compiler for
15348 the invocation of the compiler.
15350 * prj-attr.adb: Add package Check and its attributes
15352 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
15354 * vms_conv.adb (Initialize): Change Params of command Check to
15356 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
15357 Add data for new command Check
15359 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
15361 Add qualifiers for Check command options
15362 (Command_Type): New command Check
15364 2005-12-09 Thomas Quinot <quinot@adacore.com>
15366 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
15367 command line switch overruns the output buffer.
15369 2005-12-09 Robert Dewar <dewar@adacore.com>
15371 * sem_prag.adb: Processing for new pragma Complete_Representation
15372 (Analyze_Pragma, case Debug): Implement two argument form.
15374 * par-prag.adb: Entry for new pragma Complete_Representation
15375 (Prag, case Debug): Recognize two argument form of pragma Debug
15376 New interface for Set_Style_Check_Options.
15378 * sem_ch13.adb: Implement new pragma Complete_Representation.
15380 * snames.adb, snames.ads, snames.h: Entry for new pragma
15381 Complete_Representation.
15383 2005-12-09 Gary Dismukes <dismukes@adacore.com>
15385 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
15386 available user-specified stream attributes on limited parameters to
15387 also test the type directly rather than only its underlying type (for
15388 Ada 95) and, in the case of Ada 2005, to check that the user-specified
15389 attributes are visible at the point of the subprogram declaration.
15390 For Ada 2005, the error message is modified to indicate that the
15391 type's stream attributes must be visible (again, only for -gnat05).
15393 2005-12-09 Ed Schonberg <schonberg@adacore.com>
15395 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
15396 anonymous access types.
15398 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
15399 matching of anonymous access types and anonymous access to subprogram
15400 types. 'R'M 4.9.1 (2/2).
15402 2005-12-09 Ed Schonberg <schonberg@adacore.com>
15404 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
15405 rule prematurely when operands are universal, remaining ambiguities
15406 will be removed during resolution.
15409 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
15410 that are Ada 2005 functions.
15411 (Has_Abstract_Interpretation): Subsidiary to
15412 Remove_Conversions, to remove ambiguities caused by abstract operations
15413 on numeric types when operands are universal.
15415 2005-12-09 Robert Dewar <dewar@adacore.com>
15417 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
15418 for case where spec is categorized.
15420 2005-12-09 Javier Miranda <miranda@adacore.com>
15422 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
15423 types use the corresponding record type. This was not needed before
15424 the implementation of Ada 2005 synchronized types because
15425 concurrent types were never tagged types in Ada 95.
15427 2005-12-09 Ed Schonberg <schonberg@adacore.com>
15429 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
15430 first subtype of the type of the expression to verify that it is a
15433 2005-12-09 Robert Dewar <dewar@adacore.com>
15435 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
15438 2005-12-09 Quentin Ochem <ochem@adacore.com>
15439 Robert Dewar <dewar@adacore.com>
15440 Ed Falis <falis@adacore.com>
15441 Florian Villoing <villoing@adacore.com>
15442 Thomas Quinot <quinot@adacore.com>
15443 Arnaud Charlet <charlet@adacore.com>
15445 * gnat_ugn.texi: Created section "Stack Related Tools"
15446 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
15447 "Stack Related Tools"
15448 Added subsection "Static Stack Usage Analysis"
15449 Added subsection "Dynamic Stack Usage Analysis"
15450 Include documentation of itypes in sprint listing (-gnatG)
15451 Documented gnatbind -D switch (default sec stack size for fixed sec
15453 Added Interrupt_State and Persistent_BSS to list of configuration
15455 Add missing doc for maximum value of nnn in -gnatyMnnn
15457 * gnat_rm.texi: Document the AltiVec binding.
15458 Add documentation for pragma Complete_Representation
15459 Shortened an overly long line (> 79 chars)
15460 Clarify documentation of unchecked conversion in implementation
15462 Document two argument form of pragma Debug
15464 * types.ads (Column_Number): Update documentation.
15466 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
15467 library level Finalize_Storage_Only objects (these are not attached to
15468 any finalization list).
15470 * system-mingw.ads: (Underlying_Priorities): Update comment.
15472 2005-12-09 Robert Dewar <dewar@adacore.com>
15474 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
15475 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
15476 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
15477 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
15478 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
15479 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
15480 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
15481 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
15484 2005-12-09 Robert Dewar <dewar@adacore.com>
15486 * s-vaflop-vms-alpha.adb: (Ne_F): New function
15487 (Ne_G): New function
15489 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
15490 for tag assignment.
15491 (Rewrite_Comparison): Handle case where operation is not a comparison
15492 and ignore, and also handle type conversion case.
15494 2005-12-09 Thomas Quinot <quinot@adacore.com>
15496 * exp_aggr.ads: Fix typo in comment.
15497 ???-mark Convert_Aggr_In_Assignment as needing documentation.
15499 2005-12-09 Gary Dismukes <dismukes@adacore.com>
15501 * layout.adb: Replace various uses of byte by storage unit throughout.
15502 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
15503 static size, convert to storage units before returning, to conform to
15506 2005-12-09 Matthew Gingell <gingell@adacore.com>
15508 * g-exctra.ads: Fix typo in comment.
15510 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15512 * utils.c: Minor reformatting.
15514 2005-12-09 Robert Dewar <dewar@adacore.com>
15517 Further comment fixes to make the status of the default file clear
15519 * s-bitops.adb: Clarify comment for Bits_Array
15521 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
15523 * Make-lang.in (ada.install-normal): Remove.
15525 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
15527 * Make-lang.in: Remove all dependencies on s-gtype.
15529 2005-12-05 Richard Guenther <rguenther@suse.de>
15531 * utils.c (convert): Use fold_convert where appropriate.
15533 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
15535 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
15538 2005-12-02 Richard Guenther <rguenther@suse.de>
15540 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
15542 2005-12-01 Roger Sayle <roger@eyesopen.com>
15544 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
15547 2005-11-23 Laurent Guerby <laurent@guerby.net>
15549 * mlib-prj.adb (Build_Library): Initialize Delete.
15551 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
15553 * socket.c: Add extern int h_errno for rtems since networking header
15554 files are not available at this point in a tool bootstrap. Newlib
15555 only has basic C library header files.
15557 2005-11-19 Richard Guenther <rguenther@suse.de>
15558 Roger Sayle <roger@eyesopen.com>
15561 * misc.c (internal_error_function): Don't use vsprintf to format
15562 the error message text, instead use pp_format_text and the new
15563 pretty printer APIs. This allows handling of %qs, %w, etc.
15565 2005-11-18 Laurent Guerby <laurent@guerby.net>
15568 * Makefile.in: Use s-auxdec-empty for RTEMS.
15570 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15573 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
15574 a temporary if taking the address of something that is neither
15575 reference, declaration, or constant, since the gimplifier
15576 can't handle that case.
15578 2005-11-17 Laurent Guerby <laurent@guerby.net>
15581 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
15583 2005-11-16 Richard Guenther <rguenther@suse.de>
15585 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
15587 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
15590 * raise-gcc.c: Add missing stdarg.h include.
15592 2005-11-16 Richard Guenther <rguenther@suse.de>
15594 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
15595 (ada/misc.o): Likewise.
15597 2005-11-14 Thomas Quinot <quinot@adacore.com>
15599 * g-soccon.ads: Minor reformatting. Update comments.
15601 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
15602 gain visibility on the declaration of struct timeval.
15604 * g-soccon-freebsd.ads,
15605 g-soccon-darwin.ads,
15606 g-soccon-tru64.ads,
15610 g-soccon-solaris.ads,
15612 g-soccon-mingw.ads,
15613 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
15615 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
15616 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
15617 g-soccon-linux-x86.ads: New files.
15619 * g-socthi-mingw.adb:
15620 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
15622 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
15623 (time_t, suseconds_t): New types constructed to match the tv_sec
15624 and tv_usec fields of C struct timeval.
15625 (Timeval): Construct structure in terms of the new types.
15626 (Host_Errno): New function (imported from socket.c), returns last hosts
15629 * g-socthi-vxworks.adb: Add error handling circuitry.
15631 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
15632 components of struct timeval.
15633 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
15634 (Check_Selector): In error conditions, clear internal socket sets to
15635 avoid a memory leak.
15636 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
15637 Send_Timeout, Receive_Timeout.
15639 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
15640 the tv_sec and tv_usec fields of C struct timeval.
15641 (Timeval): Construct structure in terms of the new types.
15642 (Host_Errno): New function (imported from socket.c), returns last hosts
15645 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
15646 hosts database last error code.
15648 * gen-soccon.c: Complete value expansion should not be performed on
15649 TARGET, as it has the form of a math expression, and some components
15650 may be platform-defined macros.
15651 For VxWorks, generate the OK and ERROR values.
15652 New constants giving the sizes of the components of C struct timeval.
15654 2005-11-14 Robert Dewar <dewar@adacore.com>
15655 Ed Schonberg <schonberg@adacore.com>
15658 * types.ads: Include All_Checks in Suppress_Array
15660 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
15661 not(a=b), since we no longer do this rewriting, and hence it is not
15663 (Elaboration_Checks_Suppressed): Add special casing to
15664 deal with different cases of static and dynamic elaboration checks (all
15665 checks does not count in the first case, but does in the second).
15666 (Expr_Known_Valid): Do not assume that the result of any arbitrary
15667 function call is valid, since this is not the case.
15668 (Ensure_Valid): Do not apply validity check to a real literal
15669 in a universal or fixed context
15671 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
15672 elementary types using the operator in standard. It is cleaner not to
15673 modify the programmers intent, especially in the case of floating-point.
15674 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
15675 it did not matter because we always rewrote a/=b to not(a=b).
15676 (Expand_Allocator_Expression): For an allocator expression whose nominal
15677 subtype is an unconstrained packed type, convert the expression to its
15678 actual constrained subtype.
15679 Implement warning for <= or >= where < or > not possible
15680 Fix to Vax_Float tests (too early in many routines, causing premature
15681 Vax_Float expansions.
15683 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
15684 to be used with packages and generic packages as well as with
15686 (Suppress): Set All_Checks, but not Elaboration_Check, for case
15687 of pragma Suppress (All_Checks)
15688 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
15689 a string literal for precise control over warnings.
15690 Avoid raise of pragma in case of unrecognized pragma and just return
15693 * sem_prag.ads: Minor reformatting
15695 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
15696 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
15697 Switch. Do not handle any exception.
15698 Include -gnatwx as part of -gnatg (warn on redundant parens)
15699 Allow optional = after -gnatm
15700 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
15701 longer sets Elaboration_Checks.
15702 Code to set warning mode moved to Sem_Warn
15703 so that it can be shared by pragma processing.
15705 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
15708 * s-taprop-solaris.adb:
15709 Change some <= to =, to avoid new warning
15711 * a-exexda.adb, prj-proc.adb:
15712 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
15713 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
15715 2005-11-14 Robert Dewar <dewar@adacore.com>
15717 * exp_vfpt.adb: Handle /= case
15718 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
15719 so that we do not get duplicate scaling for fixed point conversions.
15721 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
15723 2005-11-14 Matthew Gingell <gingell@adacore.com>
15725 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
15726 Increase default priority on Lynx from 15 to 17, and meet the Ada
15727 requirement that Default_Priority be ((Priority'First +
15728 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
15730 2005-11-14 Vincent Celier <celier@adacore.com>
15732 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15733 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15734 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
15735 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
15736 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
15737 mlib-tgt-lynxos.adb (DLL_Prefix): New function
15739 2005-11-14 Doug Rupp <rupp@adacore.com>
15741 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
15744 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15746 * s-traces-default.adb, s-trafor-default.ads,
15747 s-tratas-default.adb: Fix compilation errors.
15749 2005-11-14 Jose Ruiz <ruiz@adacore.com>
15751 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
15752 raising the exception so the memory used is freed.
15754 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15756 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
15757 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
15758 (convert_address): Update comments and list of platforms using this.
15760 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
15763 2005-11-14 Pascal Obry <obry@adacore.com>
15764 Vincent Celier <celier@adacore.com>
15766 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
15769 * memroot.adb: Remove redundant with/use clause on
15770 System.Storage_Elements.
15772 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15774 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
15775 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
15776 related code to a-exexpr.adb
15777 (Save_Occurrence_And_Private): Move GCC EH related code to
15779 (Raise_Current_Excep): Add new variable Id with pragma
15780 volatile, to ensure that the variable lives on stack.
15782 * a-exexpr-gcc.adb, raise-gcc.c: New file.
15784 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
15786 Move GCC EH related code to a-exexpr-gcc.adb
15788 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
15790 Split the Linux version of g-soccon into separate variants for 32 and 64
15792 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
15793 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
15794 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
15795 of host variable $(RANLIB_FLAGS).
15796 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
15797 Code clean up: remove unused/obsolete targets.
15798 (EH_MECHANISM): New variable introduced to differenciate between the
15799 two EH mechanisms statically.
15800 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
15801 (LIBGNAT_OBJS): Add raise-gcc.o
15802 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
15803 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15804 supports VxWorks 6 RTPs.
15805 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
15806 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15808 * raise.c: Move all GCC EH-related routines to raise-gcc.c
15810 2005-11-14 Jose Ruiz <ruiz@adacore.com>
15812 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
15813 deferral level, when abort is not allowed, to a later stage (the
15815 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
15816 it will not get changed by the generated code. It was previously done
15819 2005-11-14 Thomas Quinot <quinot@adacore.com>
15820 Olivier Hainque <hainque@adacore.com>
15821 Eric Botcazou <ebotcazou@adacore.com>
15824 Factor common code to build a storage type for an unconstrained object
15825 from a fat or thin pointer type and a constrained object type.
15826 (annotate_value): Handle BIT_AND_EXPR.
15827 (annotate_rep): Don't restrict the back annotation of inherited
15828 components to the type_annotate_only case.
15829 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
15830 we are not defining the type.
15831 <E_Record_Type>: Likewise.
15832 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
15833 to get advantage of the new maybe_stabilize_reference interface, to
15834 ensure that what we reference is indeed stabilized instead of relying
15835 on assumptions on what the stabilizer does.
15836 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
15837 type imported through a limited_with clause, use its non-limited view.
15838 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
15840 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
15841 of #if sections + explicit comparisons of convention identifiers.
15842 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
15843 before early-returning for certain types when code generation is
15845 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
15846 nullification of gnu_expr we do for objects with address clause and
15847 that we are not defining.
15848 (elaborate_expression_1): Do not create constants when creating
15849 variables needed by the debug info: the dwarf2 writer considers that
15850 CONST_DECLs is used only to represent enumeration constants, and emits
15852 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
15853 object with an address clause into an indirect reference, drop the
15854 initializing expression.
15856 (STACK_CHECK_BUILTIN): Delete.
15857 (STACK_CHECK_PROBE_INTERVAL): Likewise.
15858 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
15859 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
15860 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
15861 corresponding to the renamed object as ignored for debugging purposes.
15863 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
15864 related): For a prefix that is a dereference of a fat or thin pointer,
15865 if there is an actual subtype provided by the front-end, use that
15866 subtype to build an actual type with bounds template.
15867 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
15868 is provided by the front-end, use that subtype to compute the size of
15869 the deallocated object.
15870 (gnat_to_gnu): When adding a statement into an elaboration procedure,
15871 check for a potential violation of a No_Elaboration_Code restriction.
15872 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
15873 with extra arguments to control whether to recurse through non-values
15874 and to let the caller know if the stabilization has succeeded.
15875 (gnat_stabilize_reference): Now a simple wrapper around
15876 maybe_stabilize, for common uses without restriction on lvalues and
15877 without need to check for the success indication.
15878 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
15879 pass false instead of 0 as the FORCE argument which is a bool.
15880 (Identifier_to_gnu): Remove checks ensuring that an renamed object
15881 attached to a renaming pointer has been properly stabilized, as no such
15882 object is attached otherwise.
15883 (call_to_gnu): Invoke create_var_decl to create the temporary when the
15884 function uses the "target pointer" return mechanism.
15885 Reinstate conversion of the actual to the type of the formal
15886 parameter before any other specific treatment based on the passing
15887 mechanism. This turns out to be necessary in order for PLACEHOLDER
15888 substitution to work properly when the latter type is unconstrained.
15890 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
15892 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
15893 with extra arguments to control whether to recurse through non-values
15894 and to let the caller know if the stabilization has succeeded.
15896 * utils2.c (gnat_build_constructor): Only sort the fields for possible
15897 static output of record constructor if all the components are constant.
15898 (gnat_build_constructor): For a record type, sort the list of field
15899 initializers in increasing bit position order.
15900 Factor common code to build a storage type for an unconstrained object
15901 from a fat or thin pointer type and a constrained object type.
15902 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
15903 types variants, and process special cases of VIEW_CONVERT expressions
15904 as their NOP_EXPR counterpart to ensure we get to the
15905 CORRESPONDING_VARs associated with CONST_DECls.
15906 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
15907 on the right-hand side.
15909 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
15911 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
15912 are converting back to its original type.
15913 (convert) <JM input>: Fallthrough regular conversion code instead of
15914 extracting the object if converting to a type variant.
15915 (create_var_decl): When a variable has an initializer requiring code
15916 generation and we are at the top level, check for a potential violation
15917 of a No_Elaboration_Code restriction.
15918 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
15919 SIZE and SIZE_UNIT which we need for later back-annotations.
15920 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
15921 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
15922 is an unchecked union.
15923 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
15924 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
15925 main variant, just replace the VIEW_CONVERT_EXPR.
15926 <UNION_TYPE>: Revert 2005-03-02 change.
15928 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
15930 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
15932 2005-11-14 Matthew Heaney <heaney@adacore.com>
15934 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
15935 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
15936 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
15937 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
15938 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
15939 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
15940 Compiles against the spec for ordered maps described in sections
15941 A.18.6 of the most recent (August 2005) AI-302 draft.
15943 2005-11-14 Olivier Hainque <hainque@adacore.com>
15945 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
15946 to ensure bias adjustments take place when need be and to prevent
15947 occurrences of intermediate overflows.
15949 2005-11-14 Matthew Gingell <gingell@adacore.com>
15950 Olivier Hainque <hainque@adacore.com>
15952 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
15955 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
15956 tracebacks on ia64 HP-UX and provide explanatory comment.
15957 Enable backtraces on ia64 GNU/Linux.
15958 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
15959 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
15961 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
15962 Javier Miranda <miranda@adacore.com>
15964 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
15965 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
15966 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
15967 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
15969 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
15970 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
15973 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
15974 subprogram that generates the external name associated with a
15975 secondary dispatch table.
15976 (Get_Secondary_DT_External_Name): New subprogram that generates the
15977 external name associated with a secondary dispatch table.
15979 2005-11-14 Emmanuel Briot <briot@adacore.com>
15981 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
15982 line in the ALI file to include both an instantiation reference, and a
15985 2005-11-14 Vincent Celier <celier@adacore.com>
15987 * clean.adb (Check_Project): Look for Ada code in extending project,
15988 even if Ada is not specified as a language.
15989 Use new function DLL_Prefix for DLL_Name
15990 (Clean_Interface_Copy_Directory): New procedure
15991 (Clean_Library_Directory): New procedure
15992 (Clean_Directory): Remove procedure, no longer used
15993 (Clean_Project): Do not delete any file in an externally built project
15995 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
15996 directory of an extending project, even when there are no Ada source
15998 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
15999 (Set_Ada_Paths.Add.Recursive_Add): Ditto
16001 * mlib-prj.adb (Check_Library): For all library projects, get the
16002 library file timestamp.
16003 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
16004 (Build_Library): Use new function DLL_Prefix for the DLL_Name
16005 (Clean): Remove procedure, no longer used
16006 (Ultimate_Extension_Of): New function
16007 (Build_Library): When cleaning the library directory, only remove an
16008 existing library file and any ALI file of a source of the project.
16009 When cleaning the interface copy directory, remove any source that
16010 could be a source of the project.
16012 * prj.ads, prj.adb (Project_Empty): Add values of new components
16013 Library_TS and All_Imported_Projects.
16014 (Project_Empty): Add values for new components of Project_Data:
16015 Library_ALI_Dir and Display_Library_ALI_Dir
16017 * prj-attr.adb: New project level attribute name Library_ALI_Dir
16019 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
16020 attribute Library_ALI_Dir.
16021 (Check_Library_Attributes): The library directory cannot be the same as
16022 any source directory of the project tree.
16023 (Check_Stand_Alone_Library): The interface copy directory cannot be
16024 the same as any source directory of the project tree.
16026 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
16027 all temporary files.
16029 2005-11-14 Robert Dewar <dewar@adacore.com>
16030 Ed Schonberg <schonberg@adacore.com>
16032 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
16033 (Check_Elab_Call): A call within a protected body is never an
16034 elaboration call, and does not require checking.
16035 (Same_Elaboration_Scope): Take into account protected types for both
16037 (Activate_Elaborate_All_Desirable): New procedure
16039 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
16042 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
16043 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
16045 * lib-writ.ads, lib-writ.adb:
16046 Implement new AD/ED for Elaborate_All/Elaborate desirable
16047 Use new Elaborate_All_Desirable flag in N_With_Clause node
16049 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
16050 N_Free_Statement nodes.
16051 Define new class N_Subprogram_Instantiation
16052 Add Elaborate_Desirable flag to N_With_Clause node
16053 Add N_Delay_Statement (covering two kinds of delay)
16055 * debug.adb: Introduce d.f flag for compiler
16056 Add -da switch for binder
16058 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16059 Cyrille Comar <comar@adacore.com>
16061 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
16062 for task component, in the case of a limited aggregate. The enclosed
16063 object declaration will create it earlier. Otherwise, in the case of a
16064 nested aggregate, the object may appear in the wrong scope.
16065 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
16066 (Gen_Assign): If the component being assigned is an array type and the
16067 expression is itself an aggregate, wrap the assignment in a block to
16068 force finalization actions on the temporary created for each row of the
16070 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
16071 structures are initialized after all discriminants are set so that
16072 they can be accessed even when their offset is dynamic.
16074 2005-11-14 Robert Dewar <dewar@adacore.com>
16075 Hristian Kirtchev <kirtchev@adacore.com>
16077 * sem_attr.adb: Implement Machine_Rounding attribute
16078 (Analyze_Access_Attribute): The access attribute may appear within an
16079 aggregate that has been expanded into a loop.
16080 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
16081 'Terminated whenever the prefix is of a task interface class-wide type.
16082 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
16083 the prefix is of a task interface class-wide type.
16085 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
16088 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
16089 Remove pragma Inline for [Unaligned_]Valid.
16090 Add comments that Valid routines do not work for Vax_Float
16092 * exp_attr.adb: Implement Machine_Rounding attribute
16094 * snames.h: Add entry for Machine_Rounding attribute
16096 2005-11-14 Javier Miranda <miranda@adacore.com>
16097 Robert Dewar <dewar@adacore.com>
16098 Hristian Kirtchev <kirtchev@adacore.com>
16100 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
16101 and related): For a prefix that is an explicit dereference of an
16102 access to unconstrained packed array type, annotate the dereference
16103 with an actual subtype so GIGI can make a correct size computation.
16104 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
16105 'Unrestricted_Access, if the designated type is an interface we
16106 add a type conversion to force the displacement of the pointer
16107 to the secondary dispatch table.
16108 Use Universal_Real instead of Long_Long_Float when we need a high
16109 precision float type for the generated code (prevents gratuitous
16110 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
16111 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
16112 'Terminated for task interface class-wide objects. Generate a call to
16113 the predefined dispatching routine used to retrieve the _task_id from
16114 a task corresponding record.
16115 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
16117 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
16118 (Check_Dispatching_Operation): Protect the frontend againts
16119 previously detected errors.
16121 * Makefile.rtl: Add new instantiations of system.fat_gen
16123 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
16124 Change name of instantiated package for better consistency
16125 with newly added system.fat_gen instantiations.
16127 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
16128 s-fvagfl.ads: New files.
16130 2005-11-14 Cyrille Comar <comar@adacore.com>
16131 Thomas Quinot <quinot@adacore.com>
16133 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
16134 assignment of a value of a tagged type that has been rewritten to a
16135 block statement, it is known by construction that no checks are
16136 necessary for the statements within the block: analyze it with checks
16138 (Expand_N_If_Statement): When killing a dead then-branch in an
16139 if-statement that has elsif_parts, recompute the Current_Value node
16140 for any entity whose value is known from the condition of the first
16142 (Expand_N_Return_Statement): When returning a mutable record, convert
16143 the return value into its actual subtype in order to help the backend
16144 to return the actual size instead of the maximum. This is another
16145 aftermath of not returning mutable records on the sec-stack anymore.
16147 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
16148 handling of error msg for suspicious reverse range iteration.
16149 (Check_Possible_Current_Value_Condition): Move declaration from body to
16150 spec, to allow this subprogram to be called from exp_ch5.
16152 2005-11-14 Thomas Quinot <quinot@adacore.com>
16154 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
16155 generate a set of nested array aggregates instead of a single flat
16156 aggregate for multi-dimensional arrays.
16158 2005-11-14 Pascal Obry <obry@adacore.com>
16160 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
16161 by spawnve is a process handle, no need to convert. Add a parameter
16162 close to control wether the process handle must be closed.
16163 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
16164 a process handle, not need to convert.
16165 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
16167 * g-expect.adb: (Kill): Document the new close parameter.
16168 (Close): Do not release the process handle in the kill there as
16169 waitpid() is using it.
16170 (Send_Signal): Release the process handle.
16172 2005-11-14 Robert Dewar <dewar@adacore.com>
16174 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
16175 need a high precision float type for the generated code (prevents
16176 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
16179 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
16180 need a high precision float type for the generated code (prevents
16181 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
16183 (Expand_Width_Attribute): In configurable run-time, the attribute is not
16184 allowed on non-static enumeration subtypes. Force a load error to emit
16185 the correct diagnostic.
16187 2005-11-14 Thomas Quinot <quinot@adacore.com>
16188 Robert Dewar <dewar@adacore.com>
16189 Ed Schonberg <schonberg@adacore.com>
16191 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
16192 subtype to compute the size of the designated object at run-time,
16193 create such a subtype and store it in the Actual_Designated_Subtype
16194 attribute of the N_Free_Statement.
16195 Generate itype for classwide designated object in both cases of
16196 user-specified storage pool: specific and class-wide, not only in the
16198 Raise CE when trying to set a not null access type object to null.
16199 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
16200 an explicit loop, because freeze nodes make its position variable.
16202 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
16205 2005-11-14 Javier Miranda <miranda@adacore.com>
16207 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
16208 Build_Stream_Procedure): Add the null-excluding attribute to the first
16210 This has no semantic meaning under Ada95 mode but it is a
16211 requirement under Ada05 mode.
16213 * par-ch3.adb (P_Access_Definition): Addition of warning message if
16214 the null exclusion is used under Ada95 mode
16215 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
16216 (P_Access_Definition): Remove assertion that forbids the use of
16217 the null-exclusion feature in Ada95.
16219 2005-11-14 Robert Dewar <dewar@adacore.com>
16221 * impunit.adb: Exclude container helper units not intended for use by
16224 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16226 * freeze.adb (Freeze_Entity): For an access formal that is an access
16227 to subprogram, freeze the anonymous subprogram type at the same time,
16228 to prevent later freezing in the wrong scope, such as the enclosing
16230 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
16231 subprogram whenever available.
16233 2005-11-14 Arnaud Charlet <charlet@adacore.com>
16236 * gnatvsn.ads (Library_Version): Bump to 4.1
16238 2005-11-14 Robert Dewar <dewar@adacore.com>
16240 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
16241 Storage_Offset to avoid wrap around causing invalid results.
16243 2005-11-14 Pascal Obry <obry@adacore.com>
16245 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
16247 (Scan_Bind_Arg): Fail with an error message if -M option is used
16248 on a native compiler.
16250 2005-11-14 Robert Dewar <dewar@adacore.com>
16251 Vincent Celier <celier@adacore.com>
16253 * gprep.adb: Implement -C switch to scan comments
16255 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
16257 * scans.ads: Comment updates (including new use of Tok_Comment in
16260 * opt.ads: Add documentation for flags that are used by gprmake,
16261 currently and in the next version of gprmake.
16262 (Verbosity_Level): New variable
16263 Add Replace_In_Comments switch
16265 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
16267 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
16269 2005-11-14 Arnaud Charlet <charlet@adacore.com>
16271 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
16272 message, friendlier.
16274 2005-11-14 Robert Dewar <dewar@adacore.com>
16276 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
16278 2005-11-14 Doug Rupp <rupp@adacore.com>
16280 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
16282 2005-11-14 Robert Dewar <dewar@adacore.com>
16284 * interfac.ads: Change declarations of IEEE float types so that we no
16285 longer need a separate version of this package for VMS.
16287 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16289 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
16290 internal entity created for the declaration of a child subprogram body
16291 with no spec as coming from source, to generate proper cross-reference
16294 2005-11-14 Vincent Celier <celier@adacore.com>
16296 * make.adb (Compile_Sources): Change verbose message to minimum
16297 verbosity level High for "is in an Ada library", "is a read-only
16298 library" and "is an internal library",
16299 (Create_Binder_Mapping_File): Path name of ALI file for library project
16300 must include the library directory, not the object directory.
16301 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
16302 for new switches -vl, -vm and -vh.
16303 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
16304 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
16305 (Compile_Sources): Do not attempt to compile if an ALI file is missing
16306 in a project that is externally built.
16307 (Compute_All_Imported_Projects): New procedure
16308 (Gnatmake): Check if importing libraries should be regenerated because
16309 at least an imported library is more recent.
16310 (Initialize): For each project compute the list of the projects it
16311 imports directly or indirectly.
16312 (Add_Library_Search_Dir): New procedure, used in place of
16313 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
16314 put in the search paths.
16315 (Add_Source_Search_Dir): New procedure, used in place of
16316 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
16317 put in the search paths.
16318 (Mark_Directory): Resolve the absolute path the directory before marking
16321 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
16322 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
16323 Switch. Do not handle any exception.
16324 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
16325 so that the switch is recognized as valid.
16326 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
16328 2005-11-14 GNAT Script <nobody@adacore.com>
16330 * Make-lang.in: Makefile automatically updated
16332 2005-11-14 Pascal Obry <obry@adacore.com>
16334 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
16336 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
16337 In both cases the last argument was dropped.
16339 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
16341 * namet.h: (Column_Numbe): New type.
16342 (Get_Column_Number): Define to sinput__get_column_number.
16343 (Instantiation): Define to sinput__instantiation.
16344 (Get_Column_Number): Declare.
16345 (Instantiation): Likewise.
16347 2005-11-14 Robert Dewar <dewar@adacore.com>
16349 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
16350 syntax, which could cause compiler hangs.
16352 2005-11-14 Vincent Celier <celier@adacore.com>
16354 * prj-ext.adb: Take into account new environment variable
16355 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
16357 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
16358 normalize its path name, making it absolute and resolving symbolic
16359 links, and replace the original if resolved path is different.
16361 2005-11-14 Vincent Celier <celier@adacore.com>
16363 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
16364 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
16366 2005-11-14 Emmanuel Briot <briot@adacore.com>
16368 * prj-pp.adb (Print): Do not output the with statement if the
16369 associated name is empty, which happens for virtual extending projects.
16370 (Print): Preserve the "extends all" attribute when printing the project.
16372 * prj-tree.ads (String_Value_Of): Add comment about returned value for
16373 a virtual extending project.
16375 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16377 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
16378 rhs of an assignment even if the type is unconstrained, when the
16379 context is non-expanding.
16380 In an inlined body, if the context type is private,
16381 resolve with its full view, which must be a composite type.
16383 2005-11-14 Robert Dewar <dewar@adacore.com>
16384 Ed Schonberg <schonberg@adacore.com>
16386 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
16387 Do not give obsolescent warning on with of subprogram (since we
16389 (Analyze_With_Clause): Add test for obsolescent package
16390 (Install_Context_Clauses): If the unit is the body of a child unit, do
16391 not install twice the private declarations of the parents, to prevent
16392 circular lists of Use_Clauses in a parent.
16393 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
16394 compiling body of child unit.
16395 Use new class N_Subprogram_Instantiation
16396 (Expand_With_Clause): If this is a private with_clause for a child unit,
16397 appearing in the context of a package declaration, then the implicit
16398 with_clauses generated for parent units are private as well.
16399 (License_Check): Do not generate message if with'ed unit is internal
16401 2005-11-14 Gary Dismukes <dismukes@adacore.com>
16402 Ed Schonberg <schonberg@adacore.com>
16403 Thomas Quinot <quinot@adacore.com>
16405 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
16406 names are internal, because they will not have a corresponding partner
16407 in the actual package.
16408 (Analyze_Formal_Package): Move the setting of the formal package spec's
16409 Generic_Parent field so that it occurs prior to analyzing the package,
16410 to allow proper operation of Install_Parent_Private_Declarations.
16411 (Analyze_Package_Instantiation): Set the instantiated package entity's
16412 Package_Instantiation field.
16413 (Get_Package_Instantiation_Node): Move declaration to package spec.
16414 Retrieve the N_Package_Instantiation node when the Package_Instantiation
16416 (Check_Generic_Child_Unit): Within an inlined call, the only possible
16417 instantiation is Unchecked_Conversion, for which no parents are needed.
16418 (Inline_Instance_Body): Deinstall and record the use_clauses for all
16419 parent scopes of a scope being removed prior to inlining an instance
16421 (Analyze_Package_Instantiation): Do not perform front-end inlining when
16422 the current context is itself an instance within a non-instance child
16423 unit, to prevent scope stack errors.
16424 (Save_References): If the node is an aggregate that is an actual in a
16425 call, rewrite as a qualified expression to preserve some type
16426 information, to resolve possible ambiguities in the instance.
16427 (Instance_Parent_Unit): New global variable to record the ultimate
16428 parent unit associated with a generic child unit instance (associated
16429 with the existing Parent_Unit_Visible flag).
16430 (type Instance_Env): New component Instance_Parent_Unit for stacking
16431 parents recorded in the global Instance_Parent_Unit.
16432 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
16434 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
16435 it's not a top-level unit, and only do this if Instance_Parent_Unit is
16436 not already set. Replace test of Is_Child_Unit with test of parent's
16437 scope against package Standard. Add comments and a ??? comment.
16438 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
16439 on a child instance parent to test that the parent equals
16440 Instance_Parent rather than simply checking that the unit is not a
16442 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
16443 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
16444 a formal interface are ancestors of the corresponding actual.
16445 (Validate_Formal_Interface_Type): Additional legality checks.
16446 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
16447 interface types with ancestors.
16448 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
16449 to diagnose attempts to use generic within its own declaration.
16451 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16452 Javier Miranda <miranda@adacore.com>
16454 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
16456 (Build_Private_Derived_Type): The entity of the created full view of the
16457 derived type does not come from source. If after installing the private
16458 declarations of the parent scope the parent is still private, use its
16459 full view to construct the full declaration of the derived type.
16460 (Build_Derived_Record_Type): Relax the condition that controls the
16461 execution of the check that verifies that the partial view and
16462 the full view agree in the set of implemented interfaces. In
16463 addition, this test now only takes into account the progenitors.
16464 (Derive_Interface_Subprograms): No need to derive subprograms
16465 of ancestors that are interfaces.
16466 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
16468 Change name Is_Package to Is_Package_Or_Generic_Package
16469 (Complete_Subprograms_Derivation): Handle the case in which the full
16470 view is a transitive derivation of the ancestor of the partial view.
16471 (Process_Full_View): Rename local subprogram Find_Interface_In_
16472 Descendant to Find_Ancestor_Interface to leave the code more clear.
16473 Remove wrong code that avoids the generation of an error message
16474 when the immediate ancestor of the partial view is an interface.
16475 In addition some minor reorganization of the code has been done to
16476 leave it more clear.
16477 (Analyze_Type_Declaration): If type has previous incomplete tagged
16478 partial view, inherit properly its primitive operations.
16479 (Collect_Interfaces): Make public, for analysis of formal
16481 (Analyze_Interface_Declaration): New procedure for use for regular and
16482 formal interface declarations.
16483 (Build_Derived_Record_Type): Add support for private types to the code
16484 that checks if a tagged type implements abstract interfaces.
16485 (Check_Aliased_Component_Type): The test applies in the spec of an
16487 (Access_Type_Declaration): Clean up declaration of malformed type
16488 declared as an access to its own classwide type, to prevent cascaded
16490 (Collect_Interfaces): For private extensions and for derived task types
16491 and derived protected types, the parent may be an interface that must
16492 be included in the interface list.
16493 (Access_Definition): If the designated type is an interface that may
16494 contain tasks, create Master_Id for it before analyzing the expression
16495 of the declaration, which may be an allocator.
16496 (Record_Type_Declaration): Set properly the interface kind, for use
16497 in allocators, the creation of master id's for task interfaces, etc.
16499 2005-11-14 Javier Miranda <miranda@adacore.com>
16500 Ed Schonberg <schonberg@adacore.com>
16502 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
16503 omitted in case of stream attribute subprograms.
16504 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
16505 appear immediately after a subprogram body, when there is no previous
16506 subprogram declaration.
16507 Change name Is_Package to Is_Package_Or_Generic_Package
16508 (Process_Formals): A non null qualifier on a non null named access
16509 type is not an error, and is a warning only if Redundant_Constructs
16512 2005-11-14 Gary Dismukes <dismukes@adacore.com>
16513 Ed Schonberg <schonberg@adacore.com>
16515 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
16516 nested within Analyze_Package_Specification to install the private
16517 declarations and use clauses within each of the parent units of a
16518 package instance of a generic child package.
16519 (Analyze_Package_Specification): When entering a private part of a
16520 package associated with a generic instance or formal package, the
16521 private declarations of the parent must be installed (by calling new
16522 procedure Install_Parent_Private_Declarations).
16523 Change name Is_Package to Is_Package_Or_Generic_Package
16524 (Preserve_Full_Attributes): For a synchronized type, the corresponding
16525 record is absent in a generic context, which does not indicate a
16528 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16530 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
16531 not try to rewrite a renamed stream attribute, because the operations
16532 on the type may not have been generated.
16533 Handle properly a renaming_as_body generated for a stream operation
16534 whose default is abstract because the object type itself is abstract.
16535 (Find_Type): If the type is incomplete and appears as the prefix of a
16536 'Class reference, it is tagged, and its list of primitive operations
16537 must be initialized properly.
16538 (Chain_Use_Clauses): When chaining the use clauses that appear in the
16539 private declaration of a parent unit, prior to compiling the private
16540 part of a child unit, find on the scope stack the proper parent entity
16541 on which to link the use clause.
16542 (Note_Redundant_Use): Emit a warning when a redundant use clause is
16544 (Analyze_Object_Renaming): An attribute reference is not a legal object
16545 if it is not a function call.
16547 2005-11-14 Robert Dewar <dewar@adacore.com>
16548 Ed Schonberg <schonberg@adacore.com>
16550 * sem_eval.adb: Implement d.f flag
16551 (Subtype_Statically_Match): A generic actual type has unknown
16552 discriminants when the corresponding actual has a similar partial view.
16553 If the routine is called to validate the signature of an inherited
16554 operation in a child instance, the generic actual matches the full view,
16556 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
16557 Ed Schonberg <schonberg@adacore.com>
16558 Robert Dewar <dewar@adacore.com>
16559 Thomas Quinot <quinot@adacore.com>
16561 * sem_res.adb (Resolve_Call): Provide a better error message whenever
16562 a procedure call is used as a select statement trigger and is not an
16563 entry renaming or a primitive of a limited interface.
16564 (Valid_Conversion): If the operand has a single interpretation do not
16565 remove address operations.
16566 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
16567 statement to inhibit warning.
16568 (Resolve_Unary_Op): Do not produce a warning when
16569 processing an expression of the form -(A mod B)
16570 Use Universal_Real instead of Long_Long_Float when we need a high
16571 precision float type for the generated code (prevents gratuitous
16572 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
16573 (Resolve_Concatenation_Arg): Improve error message when argument is an
16574 ambiguous call to a function that returns an array.
16575 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
16576 there is an implicit operator in the given scope if we are within an
16577 instance: legality check has been performed on the generic.
16578 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
16579 after resolving operand, to avoid false warnings on overloaded calls.
16581 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16582 Javier Miranda <miranda@adacore.com>
16585 * sem_type.adb (Covers): In an inlined body, a composite type matches
16586 a private type whose full view is a composite type.
16587 (Interface_Present_In_Ancestor): Protect the frontend against
16588 previously detected errors to ensure that its compilation
16589 with assertions enabled gives the same output that its
16590 compilation without assertions.
16591 (Interface_Present_In_Ancestor): Add support for private types.
16592 Change name In_Actual to In_Generic_Actual (clean up)
16593 (Disambiguate): New predicate In_Actual, to recognize expressions that
16594 appear in the renaming declaration generated for generic actuals, and
16595 which must be resolved in the outer context.
16597 2005-11-14 Robert Dewar <dewar@adacore.com>
16598 Thomas Quinot <quinot@adacore.com>
16599 Hristian Kirtchev <kirtchev@adacore.com>
16600 Ed Schonberg <schonberg@adacore.com>
16602 * sem_util.ads, sem_util.adb: Change name Is_Package to
16603 Is_Package_Or_Generic_Package.
16604 (Check_Obsolescent): New procedure.
16605 (Set_Is_Public): Remove obsolete junk test.
16606 (Set_Public_Status): Do not set Is_Public on an object whose declaration
16607 occurs within a handled_sequence_of_statemets.
16608 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
16609 for a parameterless procedure.
16610 (Enter_Name): Recognize renaming declarations created for private
16611 component of a protected type within protected operations, so that
16612 the source name of the component can be used in the debugger.
16614 2005-11-14 Ed Schonberg <schonberg@adacore.com>
16615 Robert Dewar <dewar@adacore.com>
16617 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
16618 of a generic subprogram are not visible outside the body.
16619 (Set_Warning_Switch): New procedure (code to set warning mode moved
16620 here from Switch.C so that it can be shared by pragma processing.
16621 (Check_References): Special case warning for non-modified non-imported
16623 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
16624 form with a string literal argument
16626 2005-11-14 Javier Miranda <miranda@adacore.com>
16628 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
16630 (Write): Addition of "not null" to the anonymous access.
16631 (Read): Addition of "not null" to the anonymous access.
16632 (Write): Addition of "not null" to the anonymous access.
16634 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
16635 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
16636 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
16637 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
16638 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
16639 "not null" to the anonymous access.
16641 2005-11-14 Robert Dewar <dewar@adacore.com>
16643 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
16646 2005-11-14 Vincent Celier <celier@adacore.com>
16648 * switch.adb (Bad_Switch): New procedure
16649 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
16650 message when in error.
16652 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
16653 Too_Many_Output_Files): Remove declarations, no longer used.
16654 (Scan_Nat): New parameter Switch
16656 (Bad_Switch): New procedure
16658 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
16659 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
16660 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
16661 to Osint.Fail. Do not handle any exception.
16663 2005-11-14 Vincent Celier <celier@adacore.com>
16665 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
16666 designates a non existent directory.
16668 2005-11-14 Robert Dewar <dewar@adacore.com>
16670 * xgnatugn.adb: Replace invalid membership test by 'Valid
16672 2005-11-14 Vincent Celier <celier@adacore.com>
16674 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
16675 there is no object directory.
16677 2005-11-14 Robert Dewar <dewar@adacore.com>
16679 * usage.adb: Minor adjustment to output format, use nn instead of nnn
16680 (so that -gnateInnn does not run into next column)
16682 2005-11-14 Ed Falis <falis@adacore.com>
16684 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
16687 2005-11-14 Cyrille Comar <comar@adacore.com>
16689 * s-chepoo.ads: Add comments on Dereference.
16690 Remove unnecessary inherited abstract primitives.
16693 2005-11-14 Robert Dewar <dewar@adacore.com>
16695 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
16696 node parameter, not needed, since it is available as Declaration_Node.
16698 2005-11-14 Geert Bosch <bosch@adacore.com>
16700 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
16701 grammatically correct.
16703 2005-11-14 Vincent Celier <celier@adacore.com>
16705 * s-fileio.ads: Correct spelling error in comment
16707 2005-11-14 Cyrille Comar <comar@adacore.com>
16708 Robert Dewar <dewar@adacore.com>
16709 Vincent Celier <celier@adacore.com>
16710 Ben Brosgol <brosgol@adacore.com>
16711 Jose Ruiz <ruiz@adacore.com>
16712 Pascal Obry <obry@adacore.com>
16715 Document that -fstack-check is needed for strict compliance with the
16716 Ada 95 Reference Manual.
16717 Correct reference to VAX systems to meet HP guidelines
16718 Add documentation for new gnatmake switches -vl, -vm and -vh
16719 Replace DEC Ada by HP Ada
16720 Replace DIGITAL by HP
16721 Remove empty section on tools in compatibility section
16722 Clarify the Windows convention semantics.
16723 Document the Win32 calling convention.
16724 The Stdcall, Win32 and DLL convention are synonyms.
16725 Add a note in -gnatR description about zero size record components
16726 Note on new >= and <= warnings for -gnatwc
16727 Document that equal sign after -gnatm is optional.
16728 Note that strip is working fine on DLL built with a Library
16729 Project. The restriction apply only to DLL built with gnatdll.
16730 Update section about the way to debug a DLL.
16731 Update information about the DLL convention.
16732 Document -C switch for gnatprep
16733 Document new attribute Library_ALI_Dir
16734 Update elaboration doc to include implicit Elaborate pragmas now
16735 generated for subprogram instantiations.
16736 Document limitation on executable names that include spaces for --GCC,
16737 --GNATBIND, and --GNATLINK switches.
16738 Document that -w causes -gnatws to be added at start of gcc switches
16740 * gnat_rm.texi: Document that -mieee is needed for generating infinite
16741 and NaN values in case of overflow on machines that are not fully
16742 compliant with the IEEE floating-point standard.
16743 Create a section describing the set of compiler options needed for
16744 strict compliance with the Ada 95 Reference Manual.
16745 Add documentation for pragma Obsolescent applied to a package
16746 Clarify potential issues of mixed language programs related to the
16747 I/O buffering enabling in the elaboration of the GNAT runtime.
16748 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
16749 This documentation only patch adds extra documentsion for pragma
16750 Restrictions (No_Elaboration_Code), explaining why it is not possible
16751 to document this restriction in terms of allowed source constructs.
16752 Document string literal form of pragma Warnings
16753 Document new attribute Library_ALI_Dir
16754 Add documentation on stable attributes in project files that was missing
16756 * gnat-style.texi: Indicate that paragraphs within a single comment
16757 should be separated by empty comment lines
16759 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
16762 * bindusg.adb: Minor cleanup, put -m before -M for consistency
16764 2005-11-14 Robert Dewar <dewar@adacore.com>
16766 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
16767 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
16768 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
16769 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
16770 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
16771 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
16772 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
16773 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
16774 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
16775 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
16776 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
16777 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
16778 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
16779 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
16780 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
16781 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
16782 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
16783 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
16784 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
16785 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
16786 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
16787 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
16788 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
16789 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
16790 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
16791 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
16792 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
16793 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
16794 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
16795 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
16796 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
16797 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
16798 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
16799 system-interix.ads, system-solaris-sparc.ads,
16800 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
16801 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
16802 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
16803 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
16804 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
16805 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
16806 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
16807 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16808 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
16809 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
16810 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
16811 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
16812 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
16813 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
16814 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
16815 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
16816 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
16817 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
16818 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
16819 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
16820 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
16821 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
16822 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
16823 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
16824 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
16825 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
16826 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
16827 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
16828 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
16829 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
16830 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
16831 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
16832 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
16833 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
16834 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
16835 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
16836 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
16837 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
16838 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
16839 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
16840 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
16841 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
16842 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
16843 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
16844 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
16845 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
16846 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
16847 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
16848 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
16849 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
16850 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
16851 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
16852 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
16853 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
16854 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
16855 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
16856 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
16857 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
16858 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
16859 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
16860 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
16861 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
16862 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
16863 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
16864 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
16865 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
16866 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
16867 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
16868 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
16869 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
16870 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
16871 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
16872 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
16873 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
16874 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
16875 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
16876 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
16877 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
16878 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
16879 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
16880 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
16881 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
16882 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
16883 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
16884 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
16885 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
16886 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
16887 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
16888 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
16889 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
16890 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
16891 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
16892 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
16893 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
16894 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
16895 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
16896 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
16897 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
16898 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
16899 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
16900 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
16901 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
16902 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
16903 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
16904 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
16905 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
16906 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
16907 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
16908 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
16909 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
16910 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
16911 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
16912 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
16913 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
16914 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
16915 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
16916 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
16917 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
16918 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
16919 a-numaux-darwin.ads, a-numaux-darwin.adb,
16920 a-swuwha.ads, a-stunha.ads: Minor reformatting
16922 2005-11-14 Robert Dewar <dewar@adacore.com>
16925 * osint-m.adb: Add pragma Elaborate_All for Osint
16927 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
16930 * trans.c (call_to_gnu): Restore statement lost in translation.
16932 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
16934 * init.c: Use the Linux-specific section for the IA-64/Linux target.
16935 (__gnat_adjust_context_for_raise): Add conditional code so that the
16936 IA-64 is also supported.
16938 2005-11-03 James E Wilson <wilson@specifix.com>
16941 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
16942 TREE_OVERFLOW check.
16944 2005-09-21 Olivier Hainque <hainque@adacore.com>
16947 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
16948 as we create them to store a size in bits.
16950 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
16958 * utils2.c (build_return_expr): New helper function.
16959 * gigi.h (build_return_expr): Declare it.
16960 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
16961 of manually building the RETURN_EXPR tree.
16962 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
16963 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
16964 build_binary_op for the "target pointer" case. Use build_return_expr
16965 instead of manually building the RETURN_EXPR tree.
16967 2005-09-16 Laurent Guerby <laurent@guerby.net>
16970 * s-tpinop.ads: Make this unit Preelaborate.
16972 2005-09-16 Andreas Jaeger <aj@suse.de>
16974 * socket.c: Add string.h for memcpy.
16976 2005-09-05 Arnaud Charlet <charlet@adacore.com>
16978 * dec-io.ads, dec-io.adb: Removed, no longer used.
16980 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16982 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
16984 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16985 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
16986 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
16987 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
16988 dependent units are Preelaborate.
16989 (Initialize): Call Interrupt_Managemeent.Initialize and
16990 OS_Primitives.Initialize to ensure proper initialization of this unit.
16991 Remove use of System.Soft_Links
16992 Make this unit Preelaborate.
16994 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16995 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
16996 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
16997 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
16998 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
16999 s-tratas.ads, s-tasinf.ads: Minor reformatting.
17000 Add pragma Preelaborate, since these packages are suitable for this
17004 * s-traent-vms.ads, s-intman-dummy.adb,
17005 s-taprop-dummy.adb: Make this unit Preelaborate.
17007 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
17008 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
17009 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
17010 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
17011 s-intman-solaris.adb, s-intman-irix-athread.adb,
17012 s-intman-irix.adb: Mark this unit Preelaborate.
17013 (Initialize): New procedure.
17016 * s-taspri-linux.ads: Removed.
17018 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
17019 as done by other implementations (e.g. posix).
17021 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
17022 responsible for deferring abort.
17023 Mark this unit Preelaborate.
17025 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
17026 proper initialization of the tasking run-time.
17028 * s-tasdeb.ads: Mark this unit Preelaborate.
17029 (Known_Tasks): Add explicit default value to avoid elaboration code.
17031 * s-inmaop-vms.adb (Elaboration code): Add call to
17032 Interrupt_Management.Initialize since the elaboration code depends on
17033 proper initialization of this package.
17035 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
17036 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
17037 s-osprim-posix.adb: Make this unit Preelaborate.
17039 * a-calend.adb: Add call to OS_Primitives.Initialize
17041 * a-elchha.adb: Update use of Except.Id.Full_Name.
17042 Minor reformatting.
17043 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
17045 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
17046 Move with clauses outside Warnings Off now that dependent units are
17048 Use raise xxx with "..."; Ada 2005 form.
17050 * a-taside.ads, a-taside.adb:
17051 Remove some dependencies, to make it easier to make this unit truly
17053 Rewrite some code to be conformant with Preelaborate rules.
17055 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
17056 marked Preelaborate in the future.
17058 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
17059 these units Preelaborate.
17061 * s-exctab.adb: Update use of Except.Id.Full_Name.
17063 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
17064 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
17065 Set_Exc_Stack_Addr): Removed, no longer used.
17066 Remove reference to *Machine_State_Addr*, no longer needed.
17068 * s-stalib.ads: Mark this unit as Preelaborate[_05].
17069 (Exception_Data): Full_Name is now a System.Address so that this unit
17070 can be made Preelaborate.
17071 Clean up/simplify code thanks to Full_Name being a System.Address.
17072 Remove obsolete pragma Suppress (All_Checks), no longer needed.
17074 * s-taskin.ads, s-taskin.adb:
17075 Move with clauses outside Warnings Off now that dependent units are
17077 Make this unit Preelaborate.
17078 (Initialize): New proceduure, replace elaboration code and makes the
17079 set up of the tasking run-time cleaner.
17080 (Detect_Blocking): Now a function instead of a deferred boolean, to
17081 obey Preelaborate rules.
17083 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
17084 soft links, no longer used.
17086 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
17087 packages are suitable for this categorization.
17089 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
17090 since we compile run-time sources in Ada 2005 mode.
17091 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
17092 avoid having s-taprop*.adb depend on s-soflin and to avoid code
17094 Remove reference to *Machine_State_Addr*, no longer needed.
17096 2005-09-01 Arnaud Charlet <charlet@adacore.com>
17098 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
17099 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
17100 Remove reference to System.Exceptions.
17102 * s-mastop-x86.adb: Removed, no longer used.
17104 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
17106 * a-excach.adb: Minor reformatting.
17108 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
17109 instead fix new warnings that were hidden by this change.
17110 (AAA, ZZZ): Removed, replaced by...
17111 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
17112 are used instead of constants, to help make Ada.Exception truly
17114 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
17115 Raise_Storage_Error): File is now a System.Address, to simplify code.
17116 (Elab code): Removed, no longer used.
17117 (Null_Occurrence): Remove Warnings Off and make this construct
17119 Remove code related to front-end zero cost exception handling, since
17120 it is no longer used.
17121 Remove -gnatL/-gnatZ switches.
17123 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
17124 Update use of Except.Msg.
17126 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
17127 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
17128 to front-end zero cost exception handling, since it is no longer used.
17129 Remove -gnatL/-gnatZ switches.
17131 * lib-writ.ads: Minor reformatting
17134 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
17136 * Make-lang.in: Remove references to s-except.ads
17138 * s-except.ads: Removed, no longer used.
17140 * s-mastop.ads, s-mastop.adb:
17141 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
17142 Remove reference to System.Exceptions.
17144 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
17145 switch-b.adb: Remove code related to front-end zero cost exception
17146 handling, since it is no longer used.
17147 Remove -gnatL/-gnatZ switches.
17149 2005-09-01 Robert Dewar <dewar@adacore.com>
17150 Gary Dismukes <dismukes@adacore.com>
17151 Javier Miranda <miranda@adacore.com>
17153 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
17154 type by valid test and generate warning.
17155 (Tagged_Membership): Generate call to the run-time
17156 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
17157 Change formal name Subtype_Mark to Result_Definition in several calls to
17158 Make_Function_Specification.
17159 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
17160 check for proper accessibility of the operand of a class-wide allocator.
17161 The check can be left out if checks are suppressed or if the expression
17162 has a specific tagged type whose level is known to be safe.
17164 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
17165 generates the run-time check associated with null-excluding entities.
17166 (Expand_N_Return_Statement): Add tests to determine if the accessibility
17167 check on the level of the return expression of a class-wide function
17168 can be elided. The check usually isn't needed if the expression has a
17169 specific type (unless it's a conversion or a formal parameter). Also
17170 add a test for whether accessibility checks are suppressed. Augment
17171 the comments to describe the conditions for performing the check.
17173 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
17174 Javier Miranda <miranda@adacore.com>
17175 Gary Dismukes <dismukes@adacore.com>
17176 Ed Schonberg <schonberg@adacore.com>
17178 * a-tags.adb (IW_Membership): Give support to
17179 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
17180 subprogram has been extended to look for the tag in the ancestors tag
17182 Update the structure of the GNAT Dispatch Table to reflect the
17183 additional two tables used in dispatching selects.
17184 Introduce appropriate array types and record components in
17185 Type_Specific_Data to reflect the two tables.
17186 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
17187 the TSD of a tag, indexed by position.
17188 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
17189 operation kind in the TSD of a tag, indexed by position.
17191 * a-tags.ads: Introduce an enumeration type to capture different
17192 primitive operation kinds. Define a constant reflecting the number of
17193 predefined primitive operations.
17194 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
17195 of an entry wrapper.
17196 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
17197 callable entity of a primitive operation.
17199 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
17200 primitive operations used in dispatching selects for limited
17201 interfaces, limited tagged, task and protected types what implement a
17203 (Freeze_Type): Generate the bodies of the primitive operations used in
17204 dispatching selects for limited tagged, task and protected types that
17205 implement a limited interface. Generate statements to populate the two
17206 auxiliary tables used for dispatching in select statements.
17207 (Freeze_Record_Type): Add call to initialize the dispatch table entries
17208 associated with predefined interface primitive operations.
17209 (Build_Dcheck_Function): Change Set_Subtype_Mark to
17210 Set_Result_Definition.
17211 (Build_Variant_Record_Equality): Change Subtype_Mark to
17213 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
17214 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
17215 (Build_Assignment): Simplify the code that adds the run-time-check.
17216 (Expand_N_Object_Declaration): Code cleanup.
17218 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
17219 entries when there is a protected type that implements a limited
17222 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
17223 common routines used in expansion of dispatching selects.
17224 (Add_Private_Declarations): Select the appropriate protection type when
17225 there is a protected type that implements a limited interface.
17226 (Build_Parameter_Block): Generate a wrapped parameter block.
17227 (Build_Protected_Subprogram_Body): Select the appropriate type for
17228 locking entries when there is a protected type that implements a
17230 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
17231 classified as entry wrappers.
17232 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
17233 asynchronous selects.
17234 (Expand_N_Conditional_Entry_Call): Add support for expansion of
17235 dispatching conditional selects.
17236 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
17237 protection when there is a protected type that implements limited
17239 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
17241 (Extract_Dispatching_Call): Extract the entity of the name of a
17242 dispatching call, the object parameter, actual parameters and
17243 corresponding formals.
17244 (Make_Initialize_Protection): Correct logic of protection initialization
17245 when there is a protected type that implements a limited interface.
17246 (Parameter_Block_Pack): Populate a wrapped parameter block with the
17247 values of actual parameters.
17248 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
17249 block and assign them to the original actual parameters.
17251 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
17252 (Build_Protected_Sub_Specification): Change the type and name of the
17253 last formal to account for the increased variety of protection modes.
17255 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
17256 entities. Used to save the value of the Is_Hidden attribute when the
17257 limited-view is installed.
17258 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
17259 the attribute of procedures classified as entry wrappers.
17260 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
17261 entity of a primitive wrapper.
17262 (Write_Entity_Flags): Output the name and value of the
17263 Is_Primitive_Wrapper attribute.
17264 (Write_Field27_Name): Output the name and entity of the field Wrapped_
17266 (Underlying_Type): If we have an incomplete entity that comes from
17267 the limited view then we return the Underlying_Type of its non-limited
17268 view if it is already available.
17269 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
17270 including operators.
17271 (Write_Field26_Name): Add entry for Overridden_Operation
17272 (Overridden_Operation): New attribute of functions and procedures.
17274 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
17275 predefined position in the dispatch table for the primitive operations
17276 used in dispatching selects.
17277 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
17278 predefined primitive operations and replace it with
17279 Default_Prim_Op_Count.
17280 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
17281 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
17282 the names of the generated primitive operations used in dispatching
17284 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
17285 case of abstract interface types. They will be inherit by the objects
17286 implementing the interface.
17287 (Make_DT): There is no need to inherit the dispatch table of the
17288 ancestor interface for the elaboration of abstract interface types.
17289 The dispatch table will be inherited by the object implementing the
17291 (Copy_Secondary_DTs): Add documentation.
17292 (Validate_Position): Improve this static check in case of
17293 aliased subprograms because aliased subprograms must have
17295 (Init_Predefined_Interface_Primitives): New subprogram that initializes
17296 the entries associated with predefined primitives of all the secondary
17298 (Build_Anonymous_Access_Type): Removed.
17299 (Expand_Interface_Actuals): With the previous cleanup there is no need
17300 to build an anonymous access type. This allows further cleanup in the
17301 code generated by the expander.
17302 (Expand_Interface_Conversion): If the actual is an access type then
17303 build an internal function to handle the displacement. If the actual
17304 is null this function returns null because no displacement is
17305 required; otherwise performs a type conversion that will be
17306 expanded in the code that returns the value of the displaced actual.
17307 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
17308 conversions that have no effect in the generated code because no
17309 displacement is required. Code cleanup; use local variables to
17310 avoid repeated calls to the subprogram directly_designated_type().
17312 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
17313 Classify the primitive operations used in dispatching selects as
17315 (Implements_Limited_Interface): Determine whether some type either
17316 directly implements a limited interface or extends a type that
17317 implements a limited interface.
17318 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
17319 (Expand_Subtype_From_Expr): Do not build actual subtype if the
17320 expression is limited.
17321 (Find_Interface_Tag): Add code to handle class-wide types and
17322 entities from the limited-view.
17324 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
17325 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
17326 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
17327 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
17330 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
17331 of procedure name or prefix that appears as a trigger in a triggering
17334 * uintp.ads: Introduce constants Uint_11 and Uint_13.
17336 2005-09-01 Arnaud Charlet <charlet@adacore.com>
17338 * s-tataat.adb, a-tasatt.adb:
17339 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
17341 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
17342 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
17343 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
17346 2005-09-01 Arnaud Charlet <charlet@adacore.com>
17347 Jose Ruiz <ruiz@adacore.com>
17349 * s-taprop-vxworks.adb:
17350 Move with clauses outside Warnings Off now that dependent units are
17352 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
17353 initialization of this unit.
17354 (Specific): Add new procedures Initialize and Delete so that this
17355 package can be used for VxWorks 5.x and 6.x
17356 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
17357 differences between VxWorks 5.x and 6.x
17358 Minor reformatting.
17359 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
17361 Use only Preelaborate-compatible constructs.
17363 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
17364 Primitives.Operations.
17365 (Delete, Initialize): New procedures.
17367 * s-osinte-vxworks.adb: Body used to handle differences between
17368 VxWorks 5.x and 6.x
17369 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
17371 * s-osinte-vxworks.ads: Minor reformatting.
17372 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
17373 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
17375 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
17376 between Vxworks 5 and 6.
17377 (taskLock, taskUnlock): Removeed, no longer used.
17379 * adaint.c: The wait.h header is not located in the sys directory on
17380 VxWorks when using RTPs.
17381 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
17383 (__gnat_dup): dup is available on Vxworks when using RTPs.
17384 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
17386 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
17388 * expect.c: The wait.h header is not located in the sys directory on
17389 VxWorks when using RTPs.
17391 2005-09-01 Thomas Quinot <quinot@adacore.com>
17393 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
17395 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
17397 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
17398 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
17399 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
17400 g-soccon-freebsd.ads: Add new constants:
17402 SO_RCVTIMEO/SO_SNDTIMEO
17406 Move all target-specific file inclusions and macro definitions to
17407 gsocket.h, in order to ensure that any C code in socket.c will see a
17408 set of constants that is consistent with the contents of g-soccon.ads.
17410 * gsocket.h: Code imported from gen-soccon.c:
17411 Move all target-specific file inclusions and macro definitions to
17412 gsocket.h, in order to ensure that any C code in socket.c will see a set
17413 of constants that is consistent with the contents of g-soccon.ads.
17414 This change also makes gen-soccon self-contained (removing dependencies
17415 upon GCC internal headers).
17417 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
17419 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
17421 * socket.c: Minor reformatting.
17423 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17424 Thomas Quinot <quinot@adacore.com>
17426 * fname-sf.adb, mlib-tgt.ads,
17427 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
17428 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
17429 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
17430 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
17431 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
17432 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
17433 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
17434 makegpr.adb: Remove redundant use_clauses.
17436 2005-09-01 Arnaud Charlet <charlet@adacore.com>
17438 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
17439 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
17440 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
17441 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
17442 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
17443 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
17444 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
17445 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
17446 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17447 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
17448 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
17449 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
17450 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
17451 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
17452 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
17453 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
17454 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17455 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
17456 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
17457 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
17458 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
17459 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
17460 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
17461 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
17462 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
17463 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
17464 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
17465 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
17466 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
17467 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
17468 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
17469 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
17470 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
17471 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
17472 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
17473 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
17474 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
17475 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
17476 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
17477 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
17478 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
17479 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
17480 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
17481 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
17482 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
17483 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
17484 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
17485 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
17486 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
17487 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
17488 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
17489 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
17490 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
17491 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
17492 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
17493 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
17494 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
17495 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
17496 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
17497 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
17498 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
17499 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
17500 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
17501 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
17502 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
17503 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
17504 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
17505 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
17506 and always use the no parameter form for consistency.
17508 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
17510 2005-09-01 Robert Dewar <dewar@adacore.com>
17512 * binde.adb: Minor reformatting
17513 (Find_Elab_Order): Output warning if -p used with static elab order
17515 2005-09-01 Robert Dewar <dewar@adacore.com>
17517 * checks.adb (Check_Needed): New procedure, deals with removing checks
17518 based on analysis of short-circuited forms. Also generates warnings for
17519 improper use of non-short-circuited forms.
17522 2005-09-01 Robert Dewar <dewar@adacore.com>
17524 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
17527 2005-09-01 Robert Dewar <dewar@adacore.com>
17529 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
17531 Implement new insertion char < (conditional warning)
17532 * errutil.adb, erroutc.adb: Implement new insertion char <
17533 (conditional warning).
17534 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
17535 (Error_Msg_Warn): New variable for < insertion char.
17536 * prj-nmsc.adb: Implement new errout insertion char < (conditional
17538 (Check_For_Source): Change value of Source_Id only after the current
17539 source has been dealt with.
17541 2005-09-01 Robert Dewar <dewar@adacore.com>
17542 Doug Rupp <rupp@adacore.com>
17544 * exp_attr.adb: Handle vax fpt for 'Valid attribute
17545 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
17546 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
17547 (Valid_D, Valid_F, Valid_G): New functions
17549 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17550 Hristian Kirtchev <kirtchev@adacore.com>
17551 Javier Miranda <miranda@adacore.com>
17553 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
17554 from object notation, the original node is unanalyzed and carries no
17555 semantic information, so that accessiblity checks must be performed on
17556 the type of the actual itself.
17557 (Expand_N_Subprogram_Declaration): Change last actual parameter for
17558 compatibility with Build_Protected_Sub_Specification.
17559 (Check_Overriding_Inherited_Interfaces): Add suport to handle
17560 overloaded primitives.
17561 (Register_Interface_DT_Entry): Use the new name of the formal
17562 the the calls to Expand_Interface_Thunk
17564 * exp_dbug.ads: Augment comments on encoding of protected types to
17565 include the generation of dispatching subprograms when the type
17566 implements at least one interface.
17568 * lib.ads: Extend information in Load_Stack to include whether a given
17569 load comes from a Limited_With_Clause.
17571 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
17572 whether a potential circularity is harmless, because it includes units
17573 loaded through a limited_with clause. Extends previous treatment which
17574 did not handle properly arbitrary combinations of limited and
17575 non-limited clauses.
17577 2005-09-01 Nicolas Setton <setton@adacore.com>
17579 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
17580 to be encoded as typ___XBLU_lowerbound__upperbound instead of
17581 typ___XB_lowerbound__upperbound.
17583 2005-09-01 Thomas Quinot <quinot@adacore.com>
17585 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
17586 dummy access formal for RACW/RAS TypeCode TSS.
17587 (Build_TypeCode_Call): Do not generate dummy null access actual for
17588 calls to the TypeCode TSS.
17590 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17592 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
17593 fully qualified name, to distinguish instances with the same local name.
17595 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
17598 2005-09-01 Robert Dewar <dewar@adacore.com>
17600 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
17603 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
17605 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
17606 (Free): New deallocation procedure for filter elements
17607 (Close): Deallocate any existing filter for the concerned connection
17609 2005-09-01 Laurent Pautet <pautet@adacore.com>
17611 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
17612 position set is provided, we compute one in order to reduce the maximum
17613 length of the keys. This computation first selects a character
17614 position between 1 and the minimum length of the keys in order to
17615 avoid reducing one of the keys to an empty string.
17616 (Initialize, Compute): When the ratio V to K is too low, the algorithm
17617 does not converge. The initialization procedure now comes with a
17618 maximum number of iterations such that when exceeded, an exception is
17619 raised in Compute. The user can initialize this ratio to another value
17621 Reformating and updated headers.
17623 2005-09-01 Javier Miranda <miranda@adacore.com>
17625 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
17626 that given an entity T creates and returns an Itype that duplicates the
17627 contents of T. The returned Itype has the null-exclusion
17628 attribute set to True, and its Etype attribute references T
17629 to keep the association between the two entities.
17630 Update copyright notice
17632 * sem_aggr.adb (Check_Can_Never_Be_Null,
17633 Aggregate_Constraint_Checks, Resolve_Aggregate,
17634 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
17636 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
17638 2005-09-01 Gary Dismukes <dismukes@adacore.com>
17639 Robert Dewar <dewar@adacore.com>
17640 Hristian Kirtchev <kirtchev@adacore.com>
17642 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
17645 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
17647 Call Set_Result_Definition instead of Set_Subtype_Mark.
17648 (P_Subprogram_Specification): Add parsing of anonymous access result
17649 plus null exclusions. Call Set_Result_Definition instead of
17652 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
17653 (P_Access_Type_Definition): Add parsing for an anonymous access result
17654 subtype, plus parsing for null exclusions. Call Set_Result_Definition
17655 instead of Set_Subtype_Mark.
17657 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
17658 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
17659 (Result_Definition): New function for N_Function_Specifications.
17660 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
17661 N_Function_Specification.
17662 (Set_Null_Exclusion_Present): Allow this flag for
17663 N_Function_Specification.
17664 (Set_Result_Definition): New procedure for N_Function_Specifications.
17665 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
17666 and N_Function_Specification.
17668 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
17669 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
17670 Add support for LIMITED NEW for Ada 2005 AI-419
17671 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
17672 syntax for anonymous access results.
17673 Replace Subtype_Mark field by Result_Definition in
17674 N_Function_Specification and N_Access_Definition specs.
17675 Add Null_Exclusion_Present to spec of N_Function_Specification.
17676 (Result_Definition): New function for N_Function_Specification and
17677 N_Access_Function_Definition.
17678 (Set_Result_Definition): New procedure for N_Function_Specification and
17679 N_Access_Function_Definition.
17681 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
17682 Result_Definition for cases of N_Access_Function_Definition and
17683 N_Function_Specification.
17684 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
17686 2005-09-01 Vincent Celier <celier@adacore.com>
17688 * lib-writ.adb: Update Copyright notice
17689 (Write_With_Lines): On platforms where file names are case-insensitive,
17690 record the file names in lower case.
17691 (Write_ALI): For D lines, on platforms where file names are
17692 case-insensitive, record the file names in lower case.
17694 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17695 Emmanuel Briot <briot@adacore.com>
17697 * lib-xref.adb (Output_Overridden_Op): Display information on
17698 overridden operation.
17700 * lib-xref.ads: Add documentation on overridden operations.
17702 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
17705 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
17706 overriding entity information.
17708 2005-09-01 Vincent Celier <celier@adacore.com>
17710 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
17711 including those that are inherited.
17713 2005-09-01 Robert Dewar <dewar@adacore.com>
17715 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
17717 * par-prag.adb: Implement new pragma Debug_Policy
17719 * sem_prag.adb Implement new pragma Debug_Policy
17720 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
17721 Component_Size attribute specification. Give warning for ignored pragma
17724 * snames.h, snames.ads, snames.adb: Introduce entries in
17725 Preset_Names for Name_Disp_Asynchronous_Select,
17726 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
17727 Name_Disp_Timed_Select.
17728 New pragma Debug_Policy
17730 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
17732 Switch -gnata also sets Debug_Pragmas_Enabled
17734 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
17735 handle an explicit -gnata when compiling predefined files.
17737 2005-09-01 Vincent Celier <celier@adacore.com>
17739 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
17740 directories of projects that have no Ada sources.
17742 2005-09-01 Robert Dewar <dewar@adacore.com>
17744 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
17745 (makes a difference for wide characters)
17747 * widechar.adb, widechar.ads:
17748 Add Wide_Char_Byte_Count feature to count chars vs bytes
17750 2005-09-01 Thomas Quinot <quinot@adacore.com>
17751 Ed Schonberg <schonberg@adacore.com>
17752 Robert Dewar <dewar@adacore.com>
17754 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
17755 'Address attribute reference with an overloaded prefix, use the
17756 location of the prefix (not the location of the attribute reference) as
17757 the error location.
17758 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
17759 a function renaming thereof, is a valid prefix for 'Size (where it is
17760 intepreted as a function call).
17761 (Statically_Denotes_Entity): New predicate to determine whether the
17762 prefix of an array attribute can be considered static.
17765 (Eval_Attr): Fix failure to evaluate Component_Size for
17766 unconstrained arrays (resulted in wrong value in packed case, since
17767 back end cannot handle this case)
17769 2005-09-01 Robert Dewar <dewar@adacore.com>
17771 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
17772 error msgs for most common cases.
17773 Use new errout insertion char < (conditional warning)
17775 2005-09-01 Javier Miranda <miranda@adacore.com>
17776 Ed Schonberg <schonberg@adacore.com>
17778 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
17779 become local to the whole package.
17780 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
17781 the package was already analyzed the new algorithm "replaces" the
17782 real entities by the shadow ones. This is required to ensure that
17783 the order of these entities in the homonym chains does not change;
17784 otherwise we can have undefined references at linking time because
17785 in case of conflicts the external name of the entities will have
17786 a suffix that depends on the order of the entities in the chain.
17787 (Remove_Limited_With_Clause): Complementary code that completes the
17788 new algorithm and replaces the shadow entities by the real ones.
17789 (Install_Limited_Withed_Unit): When unchaining entities before the
17790 installation of the shadow entities, only regular entities of the
17791 public part must be taken into account. This is required to
17792 keep this routine in synch with the work done by Remove_Limited_
17794 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
17795 even if unit is analyzed, because the analysis of the unit is
17796 idempotent in any case, and the limited view of the unit may have to
17797 be installed for proper visibility.
17798 (Expand_Limited_With_Clause): Even if the unit in the implicit
17799 with_clause has been analyzed already, a limited view of the package
17800 must be built for the current context, if it does not exist yet.
17802 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17803 Javier Miranda <miranda@adacore.com>
17804 Gary Dismukes <dismukes@adacore.com>
17806 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
17807 defining entity for the instance body, make a new defining identifier
17808 rather than copying the entity of the spec, to prevent accidental
17809 sharing of the entity list.
17810 (Check_Private_View): When exchanging views of private types, build the
17811 list of exchanged views as a stack, to ensure that on exit the exchanges
17812 are undone in the proper order.
17813 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
17814 Restore the compilation environment in case of instantiation_error.
17815 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
17816 for an anonymous access result.
17817 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
17818 (Formal_Entity): Handle properly the case of a formal package that
17819 denotes a generic package renaming.
17821 2005-09-01 Thomas Quinot <quinot@adacore.com>
17823 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
17824 clause if the array aggregate is surrounded by parentheses.
17826 2005-09-01 Cyrille Comar <comar@adacore.com>
17827 Gary Dismukes <dismukes@adacore.com>
17828 Ed Schonberg <schonberg@adacore.com>
17829 Javier Miranda <miranda@adacore.com>
17831 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
17833 to check if a type is Constrained in cases related to code generation
17834 (rather than semantic checking) since otherwise we do not generate
17835 similar code for mutable private types depending if their
17836 discriminants are visible or not.
17837 (Check_Abstract_Overriding): Do not complain about failure to override
17838 the primitive operations used in dispatching selects since they will
17839 always be overriden at the freeze point of the type.
17840 (Access_Definition): Separate out handling for resetting the scope
17841 of an anonymous access function result type. Retrieve the scope
17842 of the associated function rather than using Current_Scope, which
17843 does not have a consistent value (depends on whether we're in the
17844 middle of analyzing formal parameters). Add ??? comment about
17845 finding a cleaner way to handle the special cases of scope setting.
17846 (Process_Incomplete_Dependents): A protected operation is never a
17847 dispatching operation (only its wrapper may be).
17848 (Build_Derived_Record_Type): In case of tagged private types that
17849 implement interfaces add derivation of predefined primitive
17851 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
17852 by two parameters that are used in case of derivation from abstract
17853 interface types: No_Predefined_Prims is used to avoid the derivation
17854 of predefined primitives from the interface, and Predefined
17855 Prims_Only is used to complete the derivation predefined primitives
17856 in case of private tagged types implementing interfaces.
17857 Fix typo in comments
17858 (Find_Interface_In_Descendant): Protect the frontend against
17859 wrong code with large circularity chains.
17860 (Is_Private_Overriding): Add support for entities overriding interface
17861 subprograms. The test failed because Entities associated with overriden
17862 interface subprograms are always marked as hidden (and used to build
17863 the secondary dispatch table); in this case the overriden entity is
17864 available through the field abstract_interface_alias (cf. override_
17865 dispatching_operation)
17866 (Access_Definition): Set the scope of the type to Current_Scope for the
17867 case of a function with an anonymous access result type.
17868 (Access_Subprogram_Declaration): Handle creation of the type entity for
17869 an access-to-function type with an anonymous access result.
17870 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
17871 in handling for N_Access_Function_Definition.
17872 (Analyze_Subtype_Declaration): Modify the text of error message.
17873 (Derived_Type_Declaration): Modify the text of error message.
17874 (Process_Subtype): Modify the text of error message plus cleanup
17875 of one redundant error message.
17876 (Analyze_Component_Declaration): Code cleanup.
17877 (Analyze_Object_Declaration): Code cleanup.
17878 (Analyze_Subtype_Declaration): Propagate the null-exclusion
17879 attribute in case of access types. Code cleanup.
17880 (Array_Type_Declaration): Code cleanup.
17881 (Process_Discriminants): Create the new null-excluding itype
17882 if required. Code cleanup.
17883 (Process_Subtype): Create the new null-excluding itype if
17884 required. Code cleanup.
17885 (Build_Derived_Record_Type): Code cleanup to avoid calling
17886 twice the subprogram derive_subprograms in case of private
17887 types that implement interfaces. In this particular case the
17888 subprogram Complete_Subprograms_Derivation already does the
17889 job associated with the second call.
17891 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
17892 conversion to the full view when generating an operation for a
17893 discriminant whose type may currently be private.
17895 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17896 Javier Miranda <miranda@adacore.com>
17898 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
17899 V (Obj.F), the rewriting does not involve the indexed component, but
17900 only the selected component itself.
17901 Do not apply the transformation if the analyzed node is an actual of a
17902 call to another subprogram.
17903 (Complete_Object_Operation): Retain the entity of the
17904 dispatching operation in the selector of the rewritten node. The
17905 entity will be used in the expansion of dispatching selects.
17906 (Analyze_One_Call): Improve location of the error message associated
17908 (Analyze_Selected_Component): No need to resolve prefix when it is a
17909 function call, resolution is done when parent node is resolved, as
17911 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
17912 when attempting to resolve a call transformed from its object notation.
17913 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
17914 of the argument list for each interpretation of the operation.
17915 (Try_Object_Operation): The designated type of an access parameter may
17916 be an incomplete type obtained through a limited_with clause, in which
17917 case the primitive operations of the type are retrieved from its full
17919 (Analyze_Call): If this is an indirect call, and the return type of the
17920 access_to_subprogram is incomplete, use its full view if available.
17922 2005-09-01 Javier Miranda <miranda@adacore.com>
17923 Gary Dismukes <dismukes@adacore.com>
17925 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
17926 access types the null-exclusion and access-to-constant attributes must
17928 (Analyze_Return_Statement): When the result type is an anonymous access
17929 type, apply a conversion of the return expression to the access type
17930 to ensure that appropriate accessibility checks are performed.
17931 (Analyze_Return_Type): For the case of an anonymous access result type,
17932 generate the Itype and set Is_Local_Anonymous_Access on the type.
17933 Add ??? placeholder for check to disallow returning a limited object
17934 in Ada 2005 unless it's an aggregate or a result of a function call.
17935 Change calls from Subtype_Mark to Result_Definition.
17936 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
17937 Result_Definition in call to Make_Function_Specification.
17938 (Build_Body_To_Inline): Change Set_Subtype_Mark to
17939 Set_Result_Definition.
17940 (Make_Inequality_Operator): Change formal Subtype_Mark to
17941 Result_Definition in call to Make_Function_Specification.
17942 (Process_Formals): Create the new null-excluding itype if required.
17943 (New_Overloaded_Entity): For an entity overriding an interface primitive
17944 check if the entity also covers other abstract subprograms in the same
17945 scope. This is required to handle the general case, that is, overriding
17946 other interface primitives and overriding abstract subprograms inherited
17947 from some abstract ancestor type.
17948 (New_Overloaded_Entity): For an overriding entity that comes from
17949 source, note the operation that it overrides.
17950 (Check_Conformance, Type_Conformant): Addition of one new formal
17951 to skip controlling formals in the analysis. This is used to
17952 handle overloading of abstract interfaces.
17953 (Base_Types_Match): Add missing case for types imported from
17954 limited-with clauses
17955 (New_Overloaded_Entity): Add barrier to protect the use of
17956 the "alias" attribute.
17958 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17960 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
17961 verify that the procedure and the entry are mode conformant.
17962 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
17963 as a different operator, which is often a cut-and-paste error.
17965 2005-09-01 Javier Miranda <miranda@adacore.com>
17966 Ed Schonberg <schonberg@adacore.com>
17968 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
17969 used in controlling parameters exclude null because it is necessary to
17970 read the tag to dispatch, and null has no tag.
17971 (Override_Dispatching_Operation): If the previous operation is inherited
17972 from an interface, it becomes hidden and does not participate in later
17975 2005-09-01 Javier Miranda <miranda@adacore.com>
17976 Ed Schonberg <schonberg@adacore.com>
17977 Gary Dismukes <dismukes@adacore.com>
17979 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
17980 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
17981 the expander will generate the corresponding run-time check to evaluate
17983 (Resolve_Call): Check for legal type of procedure name or prefix that
17984 appears as a trigger in a triggering alternative.
17985 (Valid_Conversion): If expression is ambiguous and the context involves
17986 an extension of System, remove System.Address interpretations.
17987 (Resolve_Qualified_Expression): Reject the case of a specific-type
17988 qualification applied to a class-wide argument. Enhance comment
17989 to explain checking of Original_Node.
17990 (Resolve_Type_Conversion): The location of the error message was not
17991 general enough to handle the general case and hence it has been removed.
17992 In addition, this patch improves the text of the message.
17993 (Resolve_Type_Conversion): Add missing support for access to interface
17995 (Resolve_Type_Conversion): If the target is a class-wide interface type,
17996 do not expand if the expression is the actual in a call, because proper
17997 expansion will take place when the call itself is expanded.
17998 (Resolve_Allocator): If the context is an unchecked conversion, the
17999 allocator inherits its storage pool, if any, from the target type of
18002 2005-09-01 Ed Schonberg <schonberg@adacore.com>
18003 Javier Miranda <miranda@adacore.com>
18005 * sem_type.adb (Add_One_Interp): If a candidate operation is an
18006 inherited interface operation that has an implementation, use the
18007 implementation to avoid spurious ambiguities.
18008 (Interface_Present_In_Ancestor): In case of concurrent types we can't
18009 use the Corresponding_Record_Typ attribute to look for the interface
18010 because it is set by the expander (and hence it is not always
18011 available). For this reason we traverse the list of interfaces
18012 (available in the parent of the concurrent type).
18013 (Interface_Present_In_Ancestor): Handle entities from the limited view
18015 2005-09-01 Ed Schonberg <schonberg@adacore.com>
18017 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
18018 from the list of required components.
18019 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
18020 primitive procedure of a limited interface with a controlling first
18022 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
18024 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
18025 capture if it is generated in the second operand of a short-circuit
18027 Do not capture values for variables with address clauses.
18028 (Is_Object_Reference): Treat a function call as an object reference only
18029 if its type is not Standard_Void_Type.
18031 2005-09-01 Ed Schonberg <schonberg@adacore.com>
18033 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
18034 to a variable that is statically known to be constant.
18036 2005-09-01 Geert Bosch <bosch@adacore.com>
18037 Robert Dewar <dewar@adacore.com>
18039 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
18040 (VAXGF_Safe_First): Idem.
18042 2005-09-01 Robert Dewar <dewar@adacore.com>
18043 Arnaud Charlet <charlet@adacore.com>
18045 * g-dirope.ads: Minor reformatting
18046 Document that bounds of result of Base_Name match the input index
18048 Add documentation on environment variable syntax for Expand_Path
18050 * gnat_ugn.texi: Update documentation to include mention of -m switches
18051 Document new treatment of wide characters in max line length
18053 Remove -gnatL/-gnatZ switches, no longer used.
18054 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
18057 * gnat_rm.texi: Add doc for two argument form of pragma
18058 Float_Representation.
18059 Add documentation for pragma No_Strict_Aliasing
18060 Add note that explicit component clause overrides pragma Pack.
18061 Add documentation of pragma Debug_Policy
18063 2005-09-01 Matthew Heaney <heaney@adacore.com>
18065 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
18066 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
18067 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
18068 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
18069 draft (Draft 13, August 2005) of Ada Amendment 1.
18071 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18073 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
18074 Note that the platform-specific version of g-soccon.ads for VMS is now
18075 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
18076 really is a package spec).
18077 Replace s-taspri-linux.ads by s-taspri-posix.ads
18078 Remove references to s-mastop-x86.adb
18080 * system-vxworks-xscale.ads: Removed, no longer used.
18081 * s-vxwork-xscale.ads: Removed, no longer used.
18083 2005-09-01 Robert Dewar <dewar@adacore.com>
18085 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
18086 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
18087 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
18088 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
18089 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
18090 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
18091 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
18092 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
18093 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
18094 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
18095 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
18096 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
18097 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
18098 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
18099 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
18100 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
18101 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
18102 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
18103 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
18104 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
18105 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
18107 2005-08-29 Arnaud Charlet <charlet@adacore.com>
18111 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
18113 2005-08-29 Arnaud Charlet <charlet@adacore.com>
18114 Doug Rupp <rupp@adacore.com>
18116 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
18118 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
18119 this code in the GNAT run-time.
18121 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
18124 * init.c (__gnat_error_handler [many]): Mark "msg" as const
18125 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
18127 (__gnat_inside_elab_final_code): Moved here from
18128 Standard_Library and only defined for the compiler.
18129 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
18130 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
18131 using RTPs because directly vectored Interrupt routines are not
18132 supported on this configuration.
18133 (getpid): Do not redefine this function on VxWorks when using RTPs
18134 because this primitive is well supported by the RTP libraries.
18135 (copy_msg): Correct the code that checks for buffer overflow.
18136 Discovered during code reading.
18138 2005-08-29 Olivier Hainque <hainque@adacore.com>
18140 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
18141 a library level mutable variable with an initializer, tell
18142 build_allocator to ignore the initializer's size. It may not be large
18143 enough for all the values that might be assigned to the variable later
18146 2005-08-29 Arnaud Charlet <charlet@adacore.com>
18147 Eric Botcazou <ebotcazou@adacore.com>
18149 * trans.c: Protect < in error msg with quote
18150 Replace GCC_ZCX by Back_End_Exceptions.
18151 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
18152 has been sufficiently aligned in the record.
18154 2005-08-15 James E. Wilson <wilson@specifix.com>
18156 * system-linux-alpha.ads: Change ia64 to alpha.
18158 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
18160 * decl.c, utils.c: Fix comment typos.
18162 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
18164 * decl.c, init.c, initialize.c: Fix comment typos.
18166 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
18168 Make CONSTRUCTOR use VEC to store initializers.
18169 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
18171 * trans.c (extract_values): Likewise.
18172 * utils.c (convert, remove_conversions): Likewise.
18173 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
18174 gnat_build_constructor): Likewise.
18176 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
18178 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
18180 (compare_field_bitpos): Likewise.
18182 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
18184 * utils.c (create_var_decl): Only set DECL_COMMON on
18185 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
18186 VAR_OR_FUNCTION_DECL_P.
18188 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
18190 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
18193 2005-07-07 Pascal Obry <obry@adacore.com>
18195 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
18196 returned type on Windows.
18198 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
18201 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
18202 exception in this case.
18203 Simplify the code as "Image (Image'Range)" = "Image".
18205 2005-07-07 Vincent Celier <celier@adacore.com>
18207 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
18208 the destructor/constructor attributes for <lib>final/<lib>init.
18210 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
18212 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
18214 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
18215 type if the parameter is not passed by copy but reference by default.
18217 2005-07-07 Javier Miranda <miranda@adacore.com>
18219 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
18220 Reimplementation of the support for abstract interface types in order
18221 to leave the code more clear and easy to maintain.
18223 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
18224 abstract interface types in order to leave the code clearer and easier
18227 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
18228 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
18229 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
18230 appropriate entry of the secondary dispatch table.
18231 (Make_DT): Add code to inherit the secondary dispatch tables of
18234 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
18235 implementing both functionalities by means of a common routine, each
18236 routine has its own code.
18238 2005-07-07 Javier Miranda <miranda@adacore.com>
18240 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
18242 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
18245 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
18248 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
18249 use of tag incomplete types.
18251 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
18252 give support to tagged incomplete types.
18254 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
18255 expression is a discriminant reference and its type is private, as can
18256 happen within a stream operation for a mutable record, use the full
18257 view of the type to resolve the case alternatives.
18258 (Analyze_Assignment): Check wrong dereference of incomplete types.
18260 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
18263 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
18266 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
18267 N_Incomplete_Type_Declaration nodes.
18269 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
18270 Tag_Present to give support to tagged incomplete types:
18272 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
18275 2005-07-07 Olivier Hainque <hainque@adacore.com>
18278 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
18279 definitions for the Unwind wrappers in the compiler case.
18281 2005-07-07 Ed Schonberg <schonberg@adacore.com>
18282 Javier Miranda <miranda@adacore.com>
18284 * par-load.adb (Load): If a child unit is loaded through a limited_with
18285 clause, each parent must be loaded as a limited unit as well.
18287 * sem_ch10.adb (Previous_Withed_Unit): Better name for
18288 Check_Withed_Unit. Return true if there is a previous with_clause for
18289 this unit, whether limited or not.
18290 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
18292 (Is_Visible_Through_Renamings): New local subprogram of install_limited
18293 _withed_unit that checks if some package installed through normal with
18294 clauses has a renaming declaration of package whose limited-view is
18295 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
18296 of the current Draft document for Ada 2005.
18297 (Analyze_Context): Complete the list of compilation units that
18298 are allowed to contain limited-with clauses. It also contains
18299 checks that were previously done by Install_Limited_Context_Clauses.
18300 This makes the code more clear and easy to maintain.
18301 (Expand_Limited_With_Clause) It is now a local subprogram of
18302 Install_Limited_Context_Clauses, and contains the code that adds
18303 the implicit limited-with clauses for parents of child units.
18304 This functionality was prevously done by Analyze_Context.
18306 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
18309 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
18310 been erroneously named in a limited-with clause of its own context.
18311 In this case the error has been previously notified by Analyze_Context.
18313 2005-07-07 Ed Schonberg <schonberg@adacore.com>
18315 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
18316 generic package that contains local declarations with the same name.
18317 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
18319 2005-07-07 Bernard Banner <banner@adacore.com>
18321 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
18322 ia64 platform only on platforms that you the GCC unwind library
18323 rather than the system unwind library.
18325 2005-07-07 Thomas Quinot <quinot@adacore.com>
18327 * expect.c: Minor reformatting
18329 2005-07-07 Sergey Rybin <rybin@adacore.com>
18331 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
18334 * gnat_ugn.texi: Add description for new gnatpp option
18337 2005-07-04 Thomas Quinot <quinot@adacore.com>
18339 * g-expect-vms.adb, g-expect.ads, g-expect.adb
18340 (Get_Command_Output): New subprogram to launch a process and get its
18341 standard output as a string.
18343 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
18344 Olivier Hainque <hainque@adacore.com>
18346 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
18347 fetch a code-range descriptor associated with the machine state. On
18348 failure set the machine state's PC to 0; on success, pass the
18349 descriptor to exc_virtual_unwind.
18351 * init.c (Tru64 section): New function __gnat_set_code_loc.
18353 2005-07-04 Vincent Celier <celier@adacore.com>
18355 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18356 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18357 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
18358 Remove all auto-initialization code, as this is now done through the
18359 constructor mechanism.
18361 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
18362 __gnat_sals_init_using_constructors): New functions.
18364 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
18365 Linker_Constructor and Linker_Destructor when switch -a is used.
18367 * bindusg.adb: Add line for new switch -a
18369 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
18370 (Gnatbind): When switch -a is used, check if it is allowed
18372 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
18374 2005-07-04 Joel Brobecker <brobecker@adacore.com>
18376 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
18377 This prevents us from hitting a limitation during the debug info
18378 generation when using stabs.
18379 (Prims_Ptr): Likewise.
18381 2005-07-04 Gary Dismukes <dismukes@adacore.com>
18382 Ed Schonberg <schonberg@adacore.com>
18383 Javier Miranda <miranda@adacore.com>
18385 * checks.adb (Null_Exclusion_Static_Checks): In the case of
18386 N_Object_Declaration, only perform the checks if the Object_Definition
18387 is not an Access_Definition.
18389 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
18390 where the parent of an the access definition is an N_Object_Declaration
18391 when determining the Associated_Node_For_Itype and scope of an
18392 anonymous access-to-subprogram type.
18394 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
18395 Corresponding_Spec on the body created for a null procedure. Add ???
18396 comment. Remove New_Copy_Tree call on body argument to
18397 Set_Body_To_Inline.
18399 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
18400 discriminants, use the type of the actual as well, because the
18401 discriminants may be read by the called subprogram.
18403 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
18404 access type we do not need to handle non-limited views.
18405 (Build_Derived_Record_Type): Additional check to check that in case of
18406 private types, interfaces are only allowed in private extensions.
18408 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
18410 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
18411 <Pragma_Linker_Destructor>: Likewise.
18413 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
18414 Pragma_Linker_Destructor.
18416 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
18417 ATTR_LINK_DESTRUCTOR.
18418 (static_ctors, static_dtors): New variables.
18420 * misc.c (gnat_expand_body): Output current function as constructor
18421 and destructor if requested.
18423 * par-prag.adb: Add processing for pragma Linker_Constructor and
18426 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
18427 extracted from Check_Interrupt_Or_Attach_Handler.
18428 (Check_Interrupt_Or_Attach_Handler): Invoke it.
18429 Implement pragma Linker_Constructor and Linker_Destructor with the
18430 help of Find_Unique_Parameterless_Procedure.
18431 Replace Name_Alias with Name_Target for pragma Linker_Alias.
18433 * snames.h, snames.ads, snames.adb:
18434 Add Name_Linker_Constructor and Name_Linker_Destructor.
18435 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
18436 * snames.adb: Remove Name_Alias.
18438 * trans.c: Include cgraph.h.
18439 (build_global_cdtor): New function.
18440 (Compilation_Unit_to_gnu): Build global constructor and destructor if
18442 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
18444 (addressable_p) <COMPONENT_REF>: Unconditionally test
18445 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
18447 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
18448 variable if it is external.
18450 (static_ctors, static_dtors): New global variables.
18451 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
18452 <ATTR_LINK_DESTRUCTOR>: Likewise.
18453 (end_subprog_body): Chain function as constructor and destructor
18456 * exp_util.adb (Force_Evaluation): Unconditionally invoke
18457 Remove_Side_Effects with Variable_Ref set to true.
18458 (Remove_Side_Effects): Handle scalar types first. Use a renaming
18459 for non-scalar types even if Variable_Ref is true and for class-wide
18462 2005-07-04 Ed Schonberg <schonberg@adacore.com>
18464 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
18465 to prevent spurious warnings.
18467 2005-07-04 Thomas Quinot <quinot@adacore.com>
18469 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
18470 Itypes. Itypes are really unexpected there.
18471 (Build_TypeCode_Function): Generalise special processing for Itypes to
18472 handle the case of numeric implicit base types as well as enumerated
18475 2005-07-04 Ed Schonberg <schonberg@adacore.com>
18477 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
18478 controlled, indicate the expected type of the dereference that is
18479 created for the call to Deep_Finalize, to prevent spurious errors when
18480 the designated type is private and completed with a derivation from
18481 another private type.
18483 2005-07-04 Vincent Celier <celier@adacore.com>
18485 * make.adb (Change_To_Object_Directory): When unable to change the
18486 current dir to the object directory, output the full path of the
18489 2005-07-04 Matthew Gingell <gingell@adacore.com>
18491 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
18493 * indepsw-linux.adb: Replace by...
18495 * indepsw-gnu.adb: ...this new file
18497 2005-07-04 Vincent Celier <celier@adacore.com>
18499 * mlib-prj.adb (Auto_Initialize): New constant String
18500 (SALs_Use_Constructors): New Boolean function
18501 (Build_Library): Call gnatbind with Auto_Initialize switch when
18502 SALs_Use_Constructors returns True.
18504 * mlib-tgt.ads: Minor reformatting
18506 * mlib-utl.ads: Minor reformatting
18508 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
18510 2005-07-04 Ed Schonberg <schonberg@adacore.com>
18512 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
18513 single protected declarations can have an interface list.
18514 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
18515 with seriously malformed entry declarations, and lead to compilation
18516 abandoned messages.
18518 2005-07-04 Javier Miranda <miranda@adacore.com>
18520 * par-load.adb: Load the context items in two rounds.
18522 2005-07-04 Robert Dewar <dewar@adacore.com>
18524 * scng.adb: Do not consider Mod used as an attribute to be a keyword
18526 2005-07-04 Ed Schonberg <schonberg@adacore.com>
18527 Javier Miranda <miranda@adacore.com>
18529 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
18530 type extension needs a limited view.
18531 Remove previous restriction on private types available through the
18532 limited-view (only tagged private types were previously allowed).
18533 (Install_Withed_Unit): In the code that implements the
18534 legality rule given in AI-377, exclude a child unit with the name
18535 Standard, because it is a homonym of the Standard environment package.
18537 2005-07-04 Thomas Quinot <quinot@adacore.com>
18539 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
18540 overloaded function call, carry interpretations from the original tree
18543 2005-07-04 Ed Schonberg <schonberg@adacore.com>
18545 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
18546 types check whether some designated type is a limited view, and use
18547 the non-limited view if available.
18549 2005-07-04 Gary Dismukes <dismukes@adacore.com>
18551 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
18552 constraint of full view of a private view T1 if present, when T2 is a
18553 discriminated full view.
18555 2005-07-04 Thomas Quinot <quinot@adacore.com>
18557 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
18558 actual that is a view conversion of a bit packed array reference.
18560 2005-07-04 Ed Schonberg <schonberg@adacore.com>
18562 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
18563 present before checking whether an interface type covers a synchronized
18566 2005-07-04 Ed Schonberg <schonberg@adacore.com>
18568 * sem_util.adb (Is_Object_Reference): An indexed or selected component
18569 whose prefix is an implicit dereference is an object reference. Removes
18570 spurious errors when compiling with -gnatc.
18572 2005-07-04 Robert Dewar <dewar@adacore.com>
18575 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
18577 2005-07-04 Matthew Gingell <gingell@adacore.com>
18579 * tracebak.c: Enable tracebacks on ia64 platforms
18581 2005-07-04 Vincent Celier <celier@adacore.com>
18583 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
18584 the GNAT BIND command, as gnatbind accepts multiples ALI files with
18585 the -L or -n switches.
18587 2005-07-04 Vincent Celier <celier@adacore.com>
18589 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
18590 correctly computed and the main project data is not modified while
18592 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
18593 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
18594 c++linker as this does not work on some platforms.
18596 2005-07-04 Matthew Heaney <heaney@adacore.com>
18598 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
18600 * a-coinve.adb: Perform constraint checks explicitly.
18602 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18603 Thomas Quinot <quinot@adacore.com>
18605 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
18606 new target gen-soccon.
18608 2005-07-04 Robert Dewar <dewar@adacore.com>
18610 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
18612 2005-07-04 Thomas Quinot <quinot@adacore.com>
18614 * g-socket.ads (Check_Selector): Minor rewording of comment.
18616 2005-07-04 Vincent Celier <celier@adacore.com>
18618 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
18620 2005-07-04 Thomas Quinot <quinot@adacore.com>
18622 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
18624 2005-07-04 Sergey Rybin <rybin@adacore.com>
18626 * gnat_ugn.texi: Add description of --eol gnatpp option
18628 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
18629 Thomas Quinot <quinot@adacore.com>
18631 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
18632 if the user wants all calls of a subprogram to be flagged,
18633 independently of whether they are made from within the same unit or
18635 Mention restriction for pragma Linker_Alias on some platforms.
18636 Document pragma Linker_Constructor and Linker_Destructor.
18637 Rewrite documentation of Weak_External, Linker_Section and
18638 Linker_Alias pragmas.
18640 2005-07-04 Arnaud Charlet <charlet@adacore.com>
18642 * s-stausa.ads, s-stausa.adb: New files.
18644 2005-06-30 Kelley Cook
18646 * all files: Update FSF address in copyright headers.
18647 * gen-soccon.co (main): Output new FSF address in generated files.
18649 2005-06-28 Paul Brook <paul@codesourcery.com>
18651 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
18653 2005-06-14 Olivier Hainque <hainque@adacore.com>
18654 Eric Botcazou <ebotcazou@adacore.com>
18656 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
18657 exc_unwind, now that we are generating proper .debug_frame output for
18660 * tracebak.c: Remove the mips-irix section, as we are now using the
18661 s-mastop based unwinder again.
18662 Under SPARC/Solaris, take into account the stack bias to compute the
18663 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
18666 2005-06-14 Doug Rupp <rupp@adacore.com>
18668 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
18670 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
18672 2005-06-14 Pascal Obry <obry@adacore.com>
18674 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
18675 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
18676 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
18679 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
18680 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
18681 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
18682 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18683 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
18684 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
18685 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
18686 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
18687 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
18688 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
18689 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
18690 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
18691 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
18692 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
18693 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
18694 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
18695 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
18696 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
18697 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
18698 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
18699 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
18700 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
18701 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
18702 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
18703 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
18704 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
18705 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
18706 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
18707 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
18708 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
18709 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
18710 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
18711 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
18712 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
18713 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
18714 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
18715 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
18716 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
18717 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
18718 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
18719 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
18720 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
18721 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
18722 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
18723 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
18724 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
18725 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
18726 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
18727 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
18728 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
18729 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18730 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
18731 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
18732 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
18733 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
18734 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18735 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
18736 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
18737 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
18738 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
18739 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
18740 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
18741 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
18742 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
18743 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
18744 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
18745 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
18746 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
18747 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
18748 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
18749 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
18750 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
18751 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
18752 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
18753 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
18754 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
18755 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
18756 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
18757 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
18758 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
18759 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
18760 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
18761 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
18762 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
18763 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
18764 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
18765 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
18766 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
18767 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
18768 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
18769 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
18770 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
18771 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
18772 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
18773 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
18774 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
18775 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
18776 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
18777 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
18778 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
18779 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
18780 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
18781 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
18782 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
18783 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
18784 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
18785 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
18786 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
18787 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
18788 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
18789 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
18790 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
18791 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
18792 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
18793 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
18794 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
18795 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
18796 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
18797 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
18798 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
18799 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
18800 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
18801 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
18802 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
18803 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
18804 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
18805 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
18806 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
18807 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
18808 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
18809 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
18810 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
18811 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
18813 2005-06-14 Jose Ruiz <ruiz@adacore.com>
18814 Arnaud Charlet <charlet@adacore.com>
18816 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
18817 longer protected objects. They have been replaced by lower-level
18818 suspension objects made up by a mutex and a condition variable (or
18819 their equivalent given a particular OS) plus some internal data to
18820 reflect the state of the suspension object.
18821 (Initialize, Finalize): Add this initialization procedure for
18822 Suspension_Object, which is a controlled type.
18823 (Finalize): Add the finalization procedure for Suspension_Object,
18824 which is a controlled type.
18826 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
18827 Ada.Synchronous_Task_Control because there is no longer a need for a
18828 VxWorks specific version of this package. Target dependencies
18829 has been moved to System.Task_Primitives.Operations.
18831 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
18833 (InitializeCriticalSection, EnterCriticalSection,
18834 LeaveCriticalSection, DeleteCriticalSection): Replace the type
18835 pCriticalSection by an anonymous access type so that we avoid problems
18836 of accessibility to local objects.
18838 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
18839 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18840 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
18841 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
18842 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
18843 set the environment task mask here.
18844 (Current_State): Add this function that returns the state of the
18846 (Set_False): Add this procedure that sets the state of the suspension
18848 (Set_True): Add this procedure that sets the state of the suspension
18849 object to True, releasing the task that was suspended, if any.
18850 (Suspend_Until_True): Add this procedure that blocks the calling task
18851 until the state of the object is True. Program_Error is raised if
18852 another task is already waiting on that suspension object.
18853 (Initialize): Add this procedure for initializing the suspension
18854 object. It initializes the mutex and the condition variable which are
18855 used for synchronization and queuing, and it sets the internal state
18857 (Finalize): Add this procedure for finalizing the suspension object,
18858 destroying the mutex and the condition variable.
18860 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18861 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
18862 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
18863 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
18864 which provides a low-level abstraction (using operating system
18865 primitives) for Ada.Synchronous_Task_Control.
18866 This object is made up by a mutex (for ensuring mutual exclusion), a
18867 condition variable (for queuing threads until the condition is
18868 signaled), a Boolean (State) indicating whether the object is open,
18869 and a Boolean (Waiting) reflecting whether there is a task already
18870 suspended on this object.
18872 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
18873 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
18874 s-intman-vms.ads, s-intman-mingw.adb,
18875 (Initialize_Interrupts): Removed, no longer used.
18877 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
18878 (Setup_Interrupt_Mask): New procedure.
18880 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
18882 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
18884 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
18885 this is no longer done in the body of s-taprop
18886 (Server_Task): Explicitely test for Pending_Action in case
18887 System.Parameters.No_Abort is True.
18889 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
18890 is no longer done in the body of s-taprop
18892 2005-06-14 Robert Dewar <dewar@adacore.com>
18894 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18895 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18896 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18897 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18898 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18899 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
18900 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
18901 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18902 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
18903 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
18904 system-linux-hppa.ads, system-vms_64.ads,
18905 system-vxworks-alpha.ads: Minor comment update for
18906 AI-362 (unit is Pure).
18908 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
18909 Add pragma Pure_05 for AI-362
18910 Make remaining conversion functions obsolescent in Ada 95
18912 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
18913 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
18914 Add entries for a-wichun and a-zchuni
18915 Add a-widcha a-zchara for AI-395
18916 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
18918 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
18919 Add entries for a-wichun.o and a-zchuni.o
18920 Entries for a-widcha.o and a-zchara.o
18921 Add entry for a-chacon.o
18923 * a-ztenau.adb: Add with of Ada.Characters.Conversions
18925 * a-chacon.ads, a-chacon.adb: New files.
18927 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
18928 categorization violations.
18930 * a-strmap.ads: Add pragma Pure_05 for AI-362
18931 * a-strmap.ads: Add note on implicit categorization for AI-362
18933 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
18935 * par-prag.adb: Dummy entry for pragma Persistent_BSS
18936 Set Ada_Version_Explicit, for implementation of AI-362
18937 Add processing for pragma Pure_05 and Preelaborate_05
18938 Add entry for Assertion_Policy pragma
18940 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
18941 when needed for proper processing of categorization stuff
18944 For several cases, make errors in preealborate units warnings,
18945 instead of errors, if GNAT_Mode is set. For AI-362.
18947 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
18948 preelaborate unit is now warning if in GNAT mode
18950 * s-stoele.ads: Document AI-362 for pragma preelaborate
18952 2005-06-14 Doug Rupp <rupp@adacore.com>
18954 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
18955 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
18956 Default_Exception_Msg_Max_Length: new parameter.
18958 * a-except.ads: (Exception_Msg_Max_Length): Set to
18959 System.Parameters.Default_Exception_Msg_Max_Length
18960 Add pragma Preelaborate_05 for AI-362
18961 Add warnings off to allow categorization violations for AI-362
18963 2005-06-14 Vincent Celier <celier@adacore.com>
18965 * gnatsym.adb: Adapt to modification of package Symbols: procedure
18966 Process is now in package Processing.
18968 * symbols.ads, symbols.adb:
18969 (Processing): New package, containing procedure Process
18971 * symbols-vms-alpha.adb:
18972 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
18974 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
18975 symbols-processing-vms-ia64.adb: New files.
18977 2005-06-14 Pascal Obry <obry@adacore.com>
18979 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
18980 implementation. This new version generates the proper DllMain routine
18981 to initialize the SAL. The DllMain is generated in Ada and compiled
18982 before being added as option to the library build command.
18984 2005-06-14 Doug Rupp <rupp@adacore.com>
18985 Pascal Obry <obry@adacore.com>
18987 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
18988 call to decc$translate_vms.
18989 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
18990 need to remove those quotes before catenating the filename.
18991 (__gnat_locate_exec_on_path): improvements to the Win32 section:
18992 * avoid allocating the memory twice for better efficiency;
18993 * allocate 32K buffer for environment expansion as suggested by MSDN;
18994 * prepend ".;" to the path so that current directory is searched too.
18996 2005-06-14 Robert Dewar <dewar@adacore.com>
18998 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
18999 instead of raising CE (AI-241)
19000 Add warnings off to allow categorization violations for AI-362
19002 2005-06-14 Robert Dewar <dewar@adacore.com>
19004 * ali-util.adb, gnatbind.adb: Remove references to
19005 Force_RM_Elaboration_Order.
19007 * switch-b.adb: Remove recognition of -f switch
19009 2005-06-14 Pascal Obry <obry@adacore.com>
19011 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
19012 implementation which is slightly more efficient.
19014 2005-06-14 Gary Dismukes <dismukes@adacore.com>
19015 Javier Miranda <miranda@adacore.com>
19016 Ed Schonberg <schonberg@adacore.com>
19017 Hristian Kirtchev <kirtchev@adacore.com>
19019 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
19020 allocator's designated type is a class-wide type, and compiling for
19021 Ada 2005, emit a run-time check that the accessibility level of the
19022 type given in the allocator's expression is not deeper than the level
19023 of the allocator's access type.
19025 (Tagged_Membership): Modified to gives support to abstract interface
19028 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
19030 (Descendant_Tag): New predefined function
19031 (Is_Descendant_At_Same_Level): New predefined function
19032 (Get_Access_Level): New private function
19033 (Set_Access_Level): New private procedure
19034 (IW_Membership): New function. Given the tag of an object and the tag
19035 associated with an interface, evaluate if the object implements the
19037 (Register_Interface_Tag): New procedure used to initialize the table of
19038 interfaces used by the IW_Membership function.
19039 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
19040 of the dispatch table.
19041 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
19042 table of interfaces of the parent.
19043 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
19044 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
19045 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
19046 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
19047 Ada 2005 semantics for the new predefined function.
19049 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
19050 call to Descendant_Tag rather than Internal_Tag.
19051 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
19052 the accessibility level of the attribute's Item parameter is not deeper
19053 than the level of the attribute's prefix type. Tag_Error is raised if
19054 the check fails. The check is only emitted for Ada_05.
19055 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
19056 requested stream attribute, use it.
19057 (Expand_N_Attribute_Reference): If the designated type is an interface
19058 then rewrite the referenced object as a conversion to force the
19059 displacement of the pointer to the secondary dispatch table.
19060 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
19061 is a dereference of an object with a constrained partial view.
19063 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
19064 type is a class-wide type, emit a run-time check that the accessibility
19065 level of the returned object is not deeper than the level of the
19066 function's master (only when compiling for Ada 2005).
19068 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
19069 Action_Nb_Arg): Add entries for new Get_Access_Level and
19070 Set_Access_Level routines in these tables.
19071 (Make_DT): Generate a call to set the accessibility level of the
19072 tagged type in its TSD.
19073 (Make_DT): Code cleanup. The functionality of generating all the
19074 secondary dispatch tables has been moved to freeze_record_type.
19075 (Make_Abstract_Interface_DT): Minor code cleanup.
19076 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
19077 this subprogram implements a new algorithm that provides the
19078 same functionality and it is more clear in case of primitives
19079 associated with abstract interfaces.
19080 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
19081 clean up, the functionality of this subprogram is now provided
19082 by Set_All_DT_Position.
19083 (Write_DT): New subprogram: a debugging procedure designed to be called
19084 within gdb to display the dispatch tables associated with a tagged
19086 (Collect_All_Interfaces): New subprogram that collects the whole list
19087 of interfaces that are directly or indirectly implemented by a tagged
19089 (Default_Prim_Op_Position): New subprogram that returns the fixed
19090 position in the dispatch table of the default primitive operations.
19091 (Expand_Interface_Actuals): New subprogram to generate code that
19092 displaces all the actuals corresponding to class-wide interfaces to
19093 reference the interface tag of the actual object.
19094 (Expand_Interface_Conversion): New subprogram. Reference the base of
19095 the object to give access to the interface tag associated with the
19096 secondary dispatch table.
19097 (Expand_Interface_Thunk): New subprogram that generates the code of the
19098 thunk. This is required for compatibility with the C+ ABI.
19099 (Make_Abstract_Interface_DT): New subprogram that generate the
19100 declarations for the secondary dispatch tables associated with an
19101 abstract interface.
19102 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
19103 attribute for each primitive operation covering interface subprograms
19104 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
19105 These subprograms were upgraded to give support to abstract interfaces
19107 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
19108 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
19109 RE_Set_Access_Level.
19110 (RE_Unit_Table): Add entries for new Ada.Tags operations.
19111 Add support to call the followig new run-time subprograms:
19112 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
19114 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
19115 match its full declaration when both have an access definition with
19116 statically matching designated subtypes.
19117 (Analyze_Component_Declaration): Delete commented out code that was
19118 incorrectly setting the scope of an anonymous access component's type.
19119 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
19120 an access discriminant when the containing type is nonlimited.
19121 (Make_Incomplete_Type_Declaration): Create an incomplete type
19122 declaration for a record type that includes self-referential access
19124 (Check_Anonymous_Access_Types): Before full analysis of a record type
19125 declaration, create anonymous access types for each self-referential
19127 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
19128 an access component in this context is a Local_Anonymous_Access, for
19129 proper accessibility checks.
19130 (Access_Definition): Set properly the scope of the anonymous access type
19131 created for a stand-alone access object.
19132 (Find_Type_Of_Object): An object declaration may be given with an access
19134 (Complete_Subprograms_Derivation): New subprogram used to complete
19135 type derivation of private tagged types implementing interfaces.
19136 In this case some interface primitives may have been overriden
19137 with the partial-view and, instead of re-calculating them, they
19138 are included in the list of primitive operations of the full-view.
19139 (Build_Derived_Record_Type): Modified to give support to private
19140 types implemening interfaces.
19141 (Access_Definition): Reject ALL on anonymous access types.
19142 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
19143 type derivation to occur at a deeper accessibility level than the
19145 For the case of derivation within a generic body however, disallow the
19146 derivation if the derived type has an ancestor that is a formal type
19147 declared in the formal part of an enclosing generic.
19148 (Analyze_Object_Declaration): For protected objects, remove the check
19149 that they cannot contain interrupt handlers if not declared at library
19151 (Add_Interface_Tag_Components): New subprogram to add the tag components
19152 corresponding to all the abstract interface types implemented by a
19153 record type or a derived record type.
19154 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
19155 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
19156 Process_Full_View, Record_Type_Declaration): Modified to give
19157 support to abstract interface types
19158 (Collect_Interfaces): New subprogram that collects the list of
19159 interfaces that are not already implemented by the ancestors
19160 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
19161 when partial view has no discriminants and full view has defaults.
19162 (Constrain_Access): Reject a constraint on a general access type
19163 if the discriminants of the designated type have defaults.
19164 (Access_Subprogram_Declaration): Associate the Itype node with the inner
19165 full-type declaration or subprogram spec. This is required to handle
19166 nested anonymous declarations.
19167 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
19168 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
19169 Process_Full_View, Record_Type_Declaration): Modified to give
19170 support to abstract interface types
19171 (Derive_Subprograms): Addition of a new formal to indicate if
19172 we are in the case of an abstact-interface derivation
19173 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
19174 to the specification because it is requied to analyze all the
19175 identifiers found in a list of interfaces
19177 * debug.adb: Complete documentation of flag "-gnatdZ"
19179 * exp_ch3.adb: Implement config version of persistent_bss pragma
19180 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
19181 testing for TSS presence to properly enforce visibility rules.
19182 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
19183 Make_Abstract_Interfaces_DT to generate the secondary tables
19184 associated with abstract interfaces.
19185 (Build_Init_Procedure): Modified to initialize all the tags
19187 (Component_Needs_Simple_Initialization): Similar to other tags,
19188 interface tags do not need initialization.
19189 (Freeze_Record_Type): Modified to give support to abstract interface
19191 (Expand_N_Object_Declaration): Do not generate an initialization for
19192 a scalar temporary marked as internal.
19194 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
19195 in-out parameter that is a component in an initialization procedure,
19196 whose constraint might depend on discriminants, and that may be
19197 misaligned because of packing or representation clauses.
19198 (Is_Legal_Copy): New predicate to determine whether a possibly
19199 misaligned in-out actual can actually be passed by copy/return. This
19200 is an error in case the type is by_reference, and a warning if this is
19201 the consequence of a DEC import pragma on the subprogram.
19202 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
19204 (Expand_Inlined_Call): Mark temporary generated for the return value as
19205 internal, so that no useless scalar normalization is generated for it.
19206 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
19207 null procedure can always be inlined.
19208 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
19209 procedure, generate an explicit empty body for it.
19211 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
19212 Given a type implementing an interface, returns the corresponding
19213 access_disp_table value.
19214 (Find_Interface_Tag): New subprogram. Given a type implementing an
19215 interface, returns the record component containing the tag of the
19217 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
19218 previous ones that return the corresponding tag and access_disp_table
19220 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
19221 is a predefined primitive operation.
19222 (Expand_Subtype_From_Expr): If the expression is a selected component
19223 within an initialization procedure, compute its actual subtype, because
19224 the component may depend on the discriminants of the enclosing record.
19226 * i-cpp.ads, i-cpp.adb:
19227 This package has been left available for compatibility with previous
19228 versions of the frontend. As part of the new layout this is now a
19229 dummy package that uses declarations available at a-tags.ads
19231 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
19232 "constant access" and "aliased [constant] access" when not compiling
19234 Suppress Ada 2005 keyword warning if -gnatwY used
19235 (P_Identifier_Declarations): Add support for object declarations with
19236 access definitions.
19237 (Private_Extension_Declaration): Complete the documentation
19238 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
19239 attribute in case of private extension declaration
19240 (P_Type_Declaration): Mark as "abstract" the type declarations
19241 corresponding with protected, synchronized and task interfaces
19242 (P_Declarative_Items): "not" and "overriding" are overriding indicators
19243 for a subprogram or instance declaration.
19245 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
19246 instantiation that is a dispatching operation has controlling access
19247 parameters that are null excluding.
19248 Save and restore Ada_Version_Explicit, for implementation of AI-362
19249 (Validate_Derived_Type_Instance): Add check for abstract interface
19251 (Analyze_Formal_Package): Establish Instantiation source for the copy of
19252 the generic that is created to represent the formal package.
19253 (Analyze_Package_Instantiation): Instantiate body immediately if the
19254 package is a predefined unit that contains inlined subprograms, and
19255 we are compiling for a Configurable_Run_Time.
19256 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
19257 If the program has a null default, generate an empty body for it.
19259 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
19260 error message condition, null procedures are correctly detected now.
19261 (New_Overloaded_Entity): Bypass trivial overriding indicator check
19262 for subprograms in the context of protected types. Instead, the
19263 indicator is examined in Sem_Ch9 while analysing the subprogram
19265 (Check_Overriding_Indicator): Check consistency of overriding indicator
19266 on subprogram stubs as well.
19267 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
19269 (Analize_Subprogram_Specification): When analyzing a subprogram in which
19270 the type of the first formal is a concurrent type, replace this type
19271 by the corresponding record type.
19272 (Analyze_Subprogram_Body): Undo the previous work.
19273 (Analyze_Procedure_Call): If the call has the form Object.Op, the
19274 analysis of the prefix ends up analyzing the call itself, after which
19276 (Has_Interface_Formals): New subprogram subsidiary to analyze
19277 subprogram_specification that returns true if some non
19278 class-wide interface subprogram is found
19279 (New_Overloaded_Entity): Modified to give support to abstract
19281 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
19282 access to subprograms must be recursive.
19283 (Is_Unchecked_Conversion): Improve the test that recognizes
19284 instantiations of Unchecked_Conversion, and allows them in bodies that
19285 are to be inlined by the front-end. When the body comes from an
19286 instantiation, a reference to Unchecked_Conversion will be an
19287 Expanded_Name, even though the body has not been analyzed yet.
19288 Replace Is_Overriding and Not_Overriding in subprogram_indication with
19289 Must_Override and Must_Not_Override, to better express intent of AI.
19290 (Analyze_Subprogram_Body): If an overriding indicator is given, check
19291 that it is consistent with the overrinding status of the subprogram
19293 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
19295 If the subprogram is a null procedure, indicate that it does not need
19298 * sem_disp.adb (Check_Controlling_Type): Give support to entities
19299 available through limited-with clauses.
19300 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
19301 allowed as the last primitive of a tagged type if it has no previous
19303 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
19304 to give support to abstract interface types
19306 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
19307 in the case where the target type is an anonymous access type of an
19308 object or component (that is, when Is_Local_Anonymous_Access is true).
19309 Prevent the special checks for conversions of access discriminants in
19310 the case where the discriminant belongs to a nonlimited type, since
19311 such discriminants have their accessibility level defined in the same
19312 way as a normal component of an anonymous access type.
19313 (Resolve_Allocator): When an allocator's designated type is a class-wide
19314 type, check that the accessibility level of type given in the
19315 allocator's expression or subtype indication is not statically deeper
19316 than the level of the allocator's access type.
19317 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
19318 name in a discriminant constraint of a record component.
19319 (Resolve_Explicit_Dereference): Do not check whether the type is
19320 incomplete when the dereference is a use of an access discriminant in
19321 an initialization procedure.
19322 (Resolve_Type_Conversion): Handle conversions to abstract interface
19324 (Valid_Tagged_Conversion): The conversion of a tagged type to an
19325 abstract interface type is always valid.
19326 (Valid_Conversion): Modified to give support to abstract interface types
19327 (Resolve_Actuals): Enable full error reporting on view conversions
19328 between unrelated by_reference array types.
19329 The rule for view conversions of arrays with aliased components is
19330 weakened in Ada 2005.
19331 Call to obsolescent subprogram is now considered to be a violation of
19332 pragma Restrictions (No_Obsolescent_Features).
19333 (Check_Direct_Boolean_Operator): If the boolean operation has been
19334 constant-folded, there is nothing to check.
19335 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
19336 check on possible violation of restriction No_Direct_Boolean_Operators
19337 until after expansion of operands, to prevent spurious errors when
19338 operation is constant-folded.
19340 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
19341 Has_Compatible_Type): Modified to give support to abstract interface
19343 (Interface_Present_In_Ancestor): New function to theck if some ancestor
19344 of a given type implements a given interface
19346 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
19347 prefix is a parameterless function that returns an access_to_procedure.
19348 (Transform_Object_Operation): Handle properly function calls of the
19349 form Obj.Op (X), which prior to analysis appear as indexed components.
19350 (Analyze_One_Call): Complete the error notification to help new Ada
19352 (Analyze_Allocator): For an allocator without an initial value, where
19353 the designated type has a constrained partial view, a discriminant
19354 constraint is illegal.
19356 2005-06-14 Robert Dewar <dewar@adacore.com>
19358 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
19359 do with treatment of Set_Col when positioned at end of line character.
19361 2005-06-14 Robert Dewar <dewar@adacore.com>
19363 * atree.adb: (Elist*): Protect against uninitialized field
19365 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19367 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
19368 for an attribute reference that returns an access type.
19369 (Apply_Discriminant_Check): No need for check if (designated) type has
19370 constrained partial view.
19372 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
19373 both bound checks, rather than a conjunction.
19374 (Insert_Valid_Check): If the expression is an actual that is an indexed
19375 component of a bit-packed array, force expansion of the packed element
19376 reference, because it is specifically inhibited elsewhere.
19378 2005-06-14 Vincent Celier <celier@adacore.com>
19380 * clean.adb (Clean_Project): Correctly delete executable specified as
19381 absolute path names.
19383 * make.adb (Gnatmake): Allow relative executable path names with
19384 directory information even when project files are used.
19385 (Change_To_Object_Directory): Fail gracefully when unable to change
19386 current working directory to object directory of a project.
19387 (Gnatmake): Remove exception handler that could no longer be exercized
19388 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
19389 may be deallocated by Normalize_Arguments.
19390 (Collect_Arguments): Eliminate empty arguments
19392 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
19393 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
19394 (Check_Project): Return False when Project is No_Project. Return True
19395 when All_Projects is True.
19396 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
19397 All_Projects to True.
19400 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19401 Javier Miranda <miranda@adacore.com>
19402 Thomas Quinot <quinot@adacore.com>
19403 Robert Dewar <dewar@adacore.com>
19404 Hristian Kirtchev <kirtchev@adacore.com>
19405 Gary Dismukes <dismukes@adacore.com>
19407 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
19408 anonymous access types, to indicate that the accessibility level of
19409 the type is determined by that of the enclosing declaration.
19410 (Has_Persistent_BSS): New flag
19411 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
19412 of this attribute with functions.
19413 (Is_Primitive_Wrapper): Remove the barrier.
19414 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
19415 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
19417 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
19418 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
19420 (Is_Pure_Unit_Access_Type): New flag
19421 (Abstract_Interfaces): Complete the assertion to cover all usages.
19422 (Set_Is_Interface): Complete the assertion to cover all usages.
19423 (Is_Primitive_Wrapper): New attribute.
19424 (Is_Obsolescent): Now applies to all entities (though it is only set
19425 for subprograms currently)
19426 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
19427 which solves various problems concerning access subtypes.
19428 (Has_Persistent_BSS): New flag
19429 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
19430 Remove these subprograms because this attribute is currently
19433 Has_Specified_Stream_Input (Flag190)
19434 Has_Specified_Stream_Output (Flag191)
19435 Has_Specified_Stream_Read (Flag192)
19436 Has_Specified_Stream_Write (Flag193)
19437 Present in all type and subtype entities. Set for a given view if the
19438 corresponding stream-oriented attribute has been defined by an
19439 attribute definition clause. When such a clause occurs, a TSS is set
19440 on the underlying full view; the flags are used to track visibility of
19441 the attribute definition clause for partial or incomplete views.
19442 (Is_Pure_Unit_Access_Type): New flag
19443 Clarify use of Is_Internal.
19444 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
19445 internally generated to wrap the invocation of tasks and protected
19446 types that implement interfaces.
19447 (Implementation_Base_Type): Documentation correction
19448 (Is_Obsolescent): Now applies to all entities (though it is only set
19449 for subprograms currently)
19450 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
19451 which solves various problems concerning access subtypes.
19453 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
19454 for examined parameters. Identify unequal parameter list lengths as
19455 non-conformant parameters.
19456 (Overriding_Possible): Do not check for "All" qualifier in declaration
19457 of controlling access parameter, following prescription of AI-404.
19458 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
19459 that build the procedure body that wraps an entry invocation
19460 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
19461 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
19462 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
19463 give support to abstract interface types
19465 * freeze.adb (Freeze_Entity): Issue error message if
19466 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
19467 type has no storage pool (Ada 2005) AI-366.
19468 Also modified to give support to abstract interface types
19469 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
19470 Inline_Always pragma.
19472 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
19473 now begin an entry declaration.
19474 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
19475 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
19476 a subprogram declaration preceded by an overriding indicator.
19477 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
19478 declarations or subprogram declarations preceded by reserved words
19479 "not" or "overriding".
19480 (P_Entry_Declaration): Update comment. Parse and check overriding
19481 indicator, set semantic flags of entry declarations.
19482 (P_Task): New error message in case of private applied
19483 to a task type declaration.
19484 (P_Protected): New error message in case of private applied
19485 to a task type declaration.
19487 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
19488 in which the full view of a type implementing an interface is a
19490 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
19491 Declare_Inherited_Private_Subprograms): If an explicit operation
19492 overrides an operation that is inherited in the private part, mark the
19493 explicit one as overriding, to enable overriding indicator checks.
19494 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
19495 full view to partial view, to simplify handling in back-end.
19497 * sprint.adb: Print interface lists where needed: derived types,
19498 protected types, task types.
19499 output "is null" for null procedures. Part of implementation of
19501 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
19502 relaxation of rules for access types in pure, shared passive partitions.
19504 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
19505 first read discriminants into temporary objects, performing checks on
19506 the read values, then possibly performing discriminant checks on the
19507 actual (if it is constrained), and only finally reading the components
19508 into a constrained temporary object.
19509 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
19510 case of reading discriminants of a mutable record type to recognize
19511 the new form of the code generated by
19512 Build_Mutable_Record_Read_Procedure.
19514 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
19515 of a simple call to Make_TSS_Name.
19516 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
19517 buffer, in order for Is_TSS to work correctly on local TSS names.
19519 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
19520 Is_Local_Anonymous_Access to check legaliy of attributes in the
19521 context of access components and stand-alone access objects.
19522 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
19523 treated as available for a limited private type if there is an
19524 attribute_definition_clause that applies to its full view, but not in
19525 other cases where the attribute is available for the full view
19526 (specifically, the sole fact that the full view is non-limited does not
19527 make the attribute available for the partial view).
19528 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
19529 non-overloaded intrinsic subprogram.
19530 (Check_Stream_Attribute): Reject an attribute reference for an
19531 unavailable stream attribute even if the prefix is not a limited type
19532 (case of a 'Input attribute reference for an abstract, non-classwide
19534 (Stream_Attribute_Available): New function to determine whether a stream
19535 attribute is available at a place.
19536 (Check_Attribute): Use Stream_Attribute_Available instead of just
19537 testing for TSS presence on the implementation base type.
19538 (Analyze_Attribute): Modified to give support to task interfaces.
19539 (Analyze_Access_Attribute): Add error check for use of an Access (or
19540 Unrestricted_Access) attribute with a subprogram marked as
19542 (Analyze_Attribute, case Attribute_Address): Add error check for use of
19543 an Address attribute with a subprogram marked as Inline_Always.
19544 Update Eval_Attribute to handle new value of Width from AI-395
19546 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
19547 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
19548 Factor common code across the stream-oriented attribute circcuits into
19549 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
19550 processing is functionally identical to the previous duplicated one,
19551 except that an expression that denotes an abstract subprogram will now
19552 be rejected, as mandated by AI-195 item 5.
19554 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
19555 Is_Local_Anonymous_Access to apply accessibility checks to access
19556 components and stand-alone access objects.
19557 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
19559 (Is_Potentially_Persistent_Type): New function
19560 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
19561 a heap-object whose type has a constrained partial view, the object is
19562 unconstrained and the component may depend on a discriminant, making its
19565 * sinfo.ads, sinfo.adb
19566 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
19567 (Must_Override): Flag applicable to N_Entry_Declaration.
19568 Indicate that interface_list can appear in single task and single
19569 protected declarations.
19570 Replace Is_Overriding and Not_Overriding with Must_Override and
19571 Must_Not_Override, to better express intent of AI.
19572 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
19573 of an overriding indicator in a subprogram or instance.
19574 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
19575 Add the overriding indicator [[not] overriding] construct to the
19576 following grammar productions:
19578 GENERIC_INSTANTIATION
19579 SUBPROGRAM_SPECIFICATION
19581 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
19582 can start with an overriding indicator.
19584 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
19585 flags accordingly on subrogram specifications or instances.
19588 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
19589 overriding_indicator, if present, is consistent with status of spec.
19590 Improve error message for null-excluding checks on controlling access
19592 (Check_In_Previous_With_Clause): Protect the frontend against
19593 previously reported critical errors in the context clauses.
19594 Save and restore Ada_Version_Explicit, for implementation of AI-362
19595 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
19596 operation verify that controlling formals of the renamed entity that
19597 are access parameters are explicitly non-null.
19598 (Find_Expanded_Name): Improve error message when prefix is an illegal
19599 reference to a private child unit.
19601 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
19602 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
19603 Rewrite to correspond to new wide character names in AI-395
19605 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
19606 default procedures.
19608 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19609 Robert Dewar <dewar@adacore.com>
19611 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
19612 code, not on the bodies of predefined operations, to cut down on
19615 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19617 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
19618 be expanded in place. The size computation does not require a
19619 subtraction, which would raise an exception on a compiler built with
19620 assertions when the upper bound is Integer'first.
19621 (Flatten): For an array of composite components, take into account the
19622 size of the components to determine whether it is safe to expand the
19623 array into a purely positional representation.
19625 2005-06-14 Thomas Quinot <quinot@adacore.com>
19627 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
19628 denoting a formal parameter into account.
19630 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19632 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
19633 the entry_call alternative of a conditional entry call, wrap the
19634 conditional entry call itself.
19636 2005-06-14 Nicolas Setton <setton@adacore.com>
19637 Ed Schonberg <schonberg@adacore.com>
19639 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
19640 the "simple_choice" member in a variant record, in accordance with the
19641 description in the package spec: the information output for a constant
19642 should be "S number", not "SS number".
19643 (Get_Encoded_Name): Return at once if not generating code. Avoids name
19644 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
19646 2005-06-14 Thomas Quinot <quinot@adacore.com>
19648 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
19649 RACW without any primitives, do not generate the if statement for
19650 dispatching by name in the PolyORB/DSA case, as it would be malformed
19651 (it would have an Elsif_Parts list that is not No_List, but with a
19654 2005-06-14 Robert Dewar <dewar@adacore.com>
19656 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
19658 2005-06-14 Jose Ruiz <ruiz@adacore.com>
19660 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
19661 can determine whether pragma Suppress_Exception_Locations is in effect.
19663 * utils2.c (build_call_raise): Do not pass the file name to the
19664 exception handler if pragma Suppress_Exception_Locations is in effect.
19665 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
19667 2005-06-14 Emmanuel Briot <briot@adacore.com>
19669 * g-debpoo.adb (Deallocate, Dereference): Improve output.
19671 2005-06-14 Nicolas Roche <roche@adacore.com>
19673 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
19675 (Next_Level): Fix minor bug in handling of ../dir case
19676 (Read): Add dir separator to Directory name so that "" is understood as
19679 2005-06-14 Pascal Obry <obry@adacore.com>
19681 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
19682 releasing the items.
19684 2005-06-14 Vincent Celier <celier@adacore.com>
19685 Cyrille Comar <comar@adacore.com>
19687 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
19688 with output file descriptor and with output file name.
19689 (Dup, Dup2): Now global procedures as they are used by two subprograms
19690 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
19692 2005-06-14 Thomas Quinot <quinot@adacore.com>
19695 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
19697 (Create_Selector): Bind listening socket used to create the signalling
19698 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
19699 Set listen backlog to 1 to ensure that we detect socket theft by a
19700 failure of our own connect(2) call.
19701 (Check_Selector): Improve documentation of the selector mechanism.
19702 (Broadcast_Inet_Addr): New constant.
19704 2005-06-14 Gary Dismukes <dismukes@adacore.com>
19706 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
19707 type which turns out to be an incomplete and incorrect fix.
19708 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
19709 of the type is declared in a record (for determination of insertion
19711 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
19712 a private type and ensure that the primary entity is used for the type
19713 of the newly created function's V formal by taking the Etype of the
19716 2005-06-14 Javier Miranda <miranda@adacore.com>
19717 Jose Ruiz <ruiz@adacore.com>
19718 Robert Dewar <dewar@adacore.com>
19719 Ed Schonberg <schonberg@adacore.com>
19721 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
19722 that indicates if we are parsing a compilation unit found in a
19723 limited-with clause.
19724 It is use to avoid the circularity check.
19726 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
19727 we are parsing a compilation unit found in a limited-with clause. This
19728 is use to avoid the circularity check.
19730 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
19731 unit as a consequence of parsing a limited-with clause. This is used
19732 to avoid the circularity check.
19734 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
19735 (Analyze_Context): Limited-with clauses are now allowed
19736 in more compilation units.
19737 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
19738 againts previously reported critical errors in context clauses
19739 (Install_Limited_Withed_Unit): Code cleanup plus static detection
19740 of two further errors: renamed subprograms and renamed packages
19741 are not allowed in limited with clauses.
19742 (Install_Siblings): Do not install private_with_clauses on the package
19743 declaration for a non-private child unit.
19744 (Re_Install_Parents): When a parent of the subunit is reinstalled,
19745 reset visibility of child units properly.
19746 (Install_Withed_Unit): When a child unit appears in a with_clause of its
19747 parent, it is immediately visible.
19749 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19750 Emmanuel Briot <briot@adacore.com>
19752 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
19753 declared within an inlined body as referenced, to prevent spurious
19755 (Output_One_Ref): If an entity renames an array component, indicate in
19756 the ALI file that this aliases (renames) the array. Capture as well
19757 function renamings that rename predefined operations.
19758 Add information about generic parent for package and subprogram
19760 (Get_Type_Reference): For a subtype that is the renaming of an actual in
19761 an instantiation, use the first_subtype to ensure that we don't generate
19762 cross-reference information for internal types.
19763 For objects and parameters of a generic private type, retain the '*'
19764 indicator to distinguish such an entity from its type.
19766 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
19767 to store information about instantiated entities.
19769 * ali.adb (Scan_ALI): Add support for parsing the reference to the
19772 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
19773 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
19776 2005-06-10 Doug Rupp <rupp@adacore.com>
19777 Arnaud Charlet <charlet@adacore.com>
19778 Olivier Hainque <hainque@adacore.com>
19779 Jose Ruiz <ruiz@adacore.com>
19781 * Make-lang.in: Add initialize.o when needed.
19782 Remove obsolete references to RT_FLAGS.
19783 Add missing dependencies for sdefault.o
19785 * initialize.c: New file.
19787 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
19788 [VMS] cond_signal_table: Fix problem in declaration.
19789 [VMS] __gnat_error_handler: rewrite.
19790 Move all __gnat_initialize() routines to initialize.c
19791 Specialize the former "hpux" section to "hppa hpux", as this is what the
19792 section really is here for and we now have other hpux ports that need
19793 different contents.
19794 (__gnat_adjust_context_for_raise) i386-linux: First version of this
19795 function for this target. Adjust PC by one in the machine context. This
19796 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
19797 it is more reliable to do that in the signal handler itself.
19798 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
19799 flags, so that the handler is passed the context structure to adjust
19800 prior to the raise.
19801 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
19802 SA_SIGINFO sigaction should look like. Call
19803 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
19804 Machine_State_Operations stuff.
19805 Add conditional code so that the x86_64 is also supported.
19807 2005-06-14 Pascal Obry <obry@adacore.com>
19809 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
19812 2005-06-14 Robert Dewar <dewar@adacore.com>
19814 * opt.ads, opt.adb: New flags for persistent_bss mode
19815 Add Ada_Version_Explicit, for implementation of AI-362
19816 Add Assertions_Enabled_Config and associated handling
19817 Needed since setting can be changed with Assertion_Policy pragma
19818 Add new flag Warn_On_Ada_2005_Compatibility
19820 * switch-c.adb: Recognize -gnatwy/Y
19821 Set Ada_Version_Explicit, for implementation of AI-362
19822 The -gnatg switch now includes -gnatyu
19824 * usage.adb: Add -gnatwy/Y
19825 Remove wrong asterisk on -gnatwX line
19826 Add line for -gnatyu switch
19828 2005-06-14 Vincent Celier <celier@adacore.com>
19830 * osint.adb (Add_Default_Search_Dirs): Put source and object
19831 directories of project files before directories coming from
19832 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
19834 2005-06-14 Robert Dewar <dewar@adacore.com>
19837 * par-ch2.adb (Scan_Pragma_Argument): New procedure
19838 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
19840 2005-06-14 Vincent Celier <celier@adacore.com>
19842 * prep.adb (Preprocess): Ignore error when scanning the first token of
19845 2005-06-14 Vincent Celier <celier@adacore.com>
19847 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
19848 (Check_Stand_Alone_Library): If the specified reference symbol file does
19849 not exist, only issue a warning when the symbol policy is not
19850 Controlled. And, when symbol policy is Compliant, set the symbol
19851 policy to Autonomous.
19853 2005-06-14 Vincent Celier <celier@adacore.com>
19855 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
19856 when the project file in a with clause is not the last one, that is the
19857 project file name is followed by a comma.
19858 * prj-pp.adb: (First_With_In_List): New Boolean global variable
19859 (Print): Issue list of project files separated by commas in with clauses
19860 according to the values returned by Is_Not_Last_In_List.
19861 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
19862 (Set_Is_Not_Last_In_List): New procedure
19864 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
19866 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
19868 2005-06-14 Robert Dewar <dewar@adacore.com>
19870 * scng.adb: Add call to new Check_EOF routine
19871 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
19872 Add some comments regarding wide character handling
19874 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
19876 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
19878 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
19879 characters are now considered graphic characters and hence yield false
19882 * nmake.adt: Modify header so that xnmake does not generate output
19883 files with multiple blank lines.
19885 * treeprs.adt: Remove a blank line so that output from xtreeprs does
19886 not have an extra blank line
19888 2005-06-14 Gary Dismukes <dismukes@adacore.com>
19890 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
19891 expression when the component type is an anonymous access type to
19892 ensure that appropriate accessibility checks are done.
19894 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
19895 expression of an assignment when the target object is of an anonymous
19896 access type. This ensures that required accessibility checks are done.
19897 (One_Bound): Move the check for type Universal_Integer to
19899 (Process_Bounds): Check whether the type of the preanalyzed range is
19900 Universal_Integer, and in that case set Typ to Integer_Type prior
19901 to setting the type of the original range and the calls to One_Bound.
19903 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19905 * sem_case.adb (Expand_Others_Choice): Improve warning.
19907 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19909 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
19910 constraint of full view if present, when other type is discriminated.
19911 (Eval_Relational_Op): Recognize tests of pointer values against Null,
19912 when the pointer is known to be non-null, and emit appropriate warning.
19914 2005-06-14 Robert Dewar <dewar@adacore.com>
19915 Ed Schonberg <schonberg@adacore.com>
19918 * sem_prag.adb: Implement pragma Persistent_BSS
19919 Remove obsolete pragma Persistent_Data, Persistent_Object
19920 Set Ada_Version_Explicit, for implementation of AI-362
19921 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
19922 Add processing for pragma Pure_05 and Preelaborate_05
19923 Add processing for Assertion_Policy pragma
19924 Add pragma identifiers for Assert
19925 (Analyze_Pragma, case Assert): Check number of arguments
19926 (Process_Inline): Additional guard against an illegal program, where the
19927 argument of the pragma is undefined, and warnings on redundant
19928 constructs are enabled.
19929 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
19930 Ada_05 to this pragma, specifying that the pragma is only active in
19932 (Check_Arg_Order): New procedure
19933 Add appropriate calls to this procedure throughout
19934 Also throughout, check entity name before doing any other checks
19936 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
19937 Remove obsolete pragma Persistent_Data, Persistent_Object
19938 Add entries for pragma Pure_05 and Preelaborate_05
19939 Add entries for Assertion_Policy pragma and associated names
19940 Add some names for pragma argument processing
19942 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
19944 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19946 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
19947 appears within a negation (either from source or as a rewriting of
19948 inequality) adjust text of warning accordingly.
19950 2005-06-14 Thomas Quinot <quinot@adacore.com>
19952 * s-strxdr.adb: Follow AI95-00132
19954 2005-06-14 Arnaud Charlet <charlet@adacore.com>
19956 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
19958 2005-06-14 Arnaud Charlet <charlet@adacore.com>
19959 Jose Ruiz <ruiz@adacore.com>
19961 * s-tposen.adb, s-tpobop.adb
19962 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
19964 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
19965 there is no violation of the Max_Entry_Queue_Length restriction (if it
19966 has been set); Program_Error is raised otherwise.
19967 (Requeue_Call): Before requeuing the task on the target entry queue we
19968 check that there is no violation of the Max_Entry_Queue_Length
19969 restriction (if it has been set); Program_Error is raised otherwise.
19971 2005-06-14 Robert Dewar <dewar@adacore.com>
19973 * styleg.adb: Fix several remaining problems in -gnatyu switch
19974 Blank line count not reset at start
19975 Scanning outside source buffer in some cases
19976 Confusing message for blanks at end of file
19977 Non-empty blank lines not recognized
19979 * nmake.adt: Modify header so that xnmake does not generate output
19980 files with multiple blank lines.
19982 * treeprs.adt: Remove a blank line so that output from xtreeprs does
19983 not have an extra blank line
19985 2005-06-14 Sergey Rybin <rybin@adacore.com>
19987 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
19989 2005-06-14 Doug Rupp <rupp@adacore.com>
19990 Vincent Celier <celier@adacore.com>
19992 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
19995 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19996 Remove "Library" command.
19997 Change keyword for style check -gnatyd from NOCRLF to
19999 Remove useless second style check keyword NONE
20000 Remove help documentation for inexistent style check keyword
20002 Add help documentation for style check keywords DOS_LINE_ENDINGS,
20003 UNNECESSARY_BLANK_LINES and XTRA_PARENS
20004 Add UNNECESSARY_BLANK_LINES for -gnatyu
20005 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
20007 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
20009 2005-06-14 Vincent Celier <celier@adacore.com>
20011 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
20012 gprmake was invoked with -d.
20013 (Compile_Sources): If -d was used, output the "completed ..." message
20014 for each compilation.
20015 (Scan_Arg): Recognize new switch -d
20016 When -c and at least one main is specified, set
20017 Unique_Compile to True to guarantee that no other sources will be
20020 2005-06-14 Matthew Heaney <heaney@adacore.com>
20022 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
20023 * a-swuwha.ads, a-swuwha.adb: New files
20025 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
20026 * a-szuzha.ads, a-szuzha.adb: New files.
20028 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
20029 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
20030 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
20031 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
20032 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
20033 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
20034 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
20035 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
20036 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
20037 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
20040 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
20041 Olivier Hainque <hainque@adacore.com>
20042 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20043 Pascal Obry <obry@adacore.com>
20045 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
20047 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
20048 making a temporary around a procedure call because of non-addressable
20050 (process_freeze_entity): If entity is a private type, capture size
20051 information that may have been computed for the full view.
20052 (tree_transform, case N_Allocator): If have initializing expression,
20053 check type for Has_Constrained_Partial_View and pass that to
20055 (tree_transform, case N_Return_Statement): Pass extra arg to
20058 * decl.c (annotate_value): Remove early return if -gnatR is not
20060 (gnat_to_gnu_field): Don't make a packable type for a component clause
20061 if the position is byte aligned, the field is aliased, and the clause
20062 size isn't a multiple of the packable alignment. It serves no useful
20063 purpose packing-wise and would be rejected later on.
20064 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
20067 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
20068 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
20070 (create_concat_name): Idem.
20072 2005-06-10 Robert Dewar <dewar@adacore.com>
20073 Eric Botcazou <ebotcazou@adacore.com>
20074 Ben Brosgol <brosgol@adacore.com>
20075 Cyrille Comar <comar@adacore.com>
20076 Sergey Rybin <rybin@adacore.com>
20077 Pascal Obry <obry@adacore.com>
20079 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
20080 Document second argument (Ada_05) of pragma Obsolescent
20081 Add note that call to subprogram marked with pragma Obsolescent
20082 is now considered to be a violation of program Restrictions
20083 (No_Obsolescent_Features).
20084 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
20085 that only machine-dependent attributes are supported.
20088 Commented out menu lines and empty section for gnatclean examples
20090 Fix some over long lines
20091 Clarify and enhance documentation of ADA_PROJECT_PATH.
20092 Rework section 2.11.2(3) about linking with a non-GNU compiler.
20093 Mention new switch -fcallgraph-info.
20094 Mention new switch -fstack-usage.
20095 For gnatpp, replace '-notab' with '-N' and add this option to Index
20096 Corrected VMS example.
20097 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
20099 Add documentation for -gnatyu switch (unnecessary blank lines)
20100 Document new switch -U for GNAT PRETTY and GNAT METRIC
20101 Add note about Stdcall being handled as C convention on non Windows OS.
20102 Remove some junk typo in description of gnatbind -S switch
20103 Remove reference to Extensions_Allowed pragma
20104 Document the new order of the directories to be searched (source and
20105 object directories of project files before directories in ADA_*_PATH
20106 environment variables.
20108 * g-trasym.ads: Document that IRIX is supported
20110 2005-06-10 Arnaud Charlet <charlet@adacore.com>
20112 * Makefile.in: Add initialize.o when needed.
20113 Adapt to new VMS package body Symbols and subunits
20114 No specialized version of a-sytaco is needed for VxWorks.
20116 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
20117 * a-zchara.ads, a-widcha.ads: New files.
20119 * system-hpux-ia64.ads: New file.
20121 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
20122 is imported from the VxWorks kernel.
20124 2005-06-14 Robert Dewar <dewar@adacore.com>
20126 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
20127 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
20128 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
20129 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
20130 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
20131 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
20132 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
20133 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
20134 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
20135 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
20136 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
20137 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
20139 2005-06-14 Thomas Quinot <quinot@adacore.com>
20141 * xeinfo.adb: Fix typo in comment
20143 2005-06-14 Javier Miranda <miranda@adacore.com>
20145 * repinfo.ads: Fix typo in comment
20147 2005-06-14 Gary Dismukes <dismukes@adacore.com>
20149 * s-finimp.adb (Parent_Tag): Delete this imported function (function
20150 Parent_Tag is now in the visible part of Ada.Tags).
20151 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
20152 using imported function.
20154 2005-06-14 Bernard Banner <banner@adacore.com>
20156 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
20157 also apply for handling support for VxSim 653.
20159 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
20161 * xsnames.adb: Add automatic generation of snames.h.
20163 2005-06-14 Thomas Quinot <quinot@adacore.com>
20165 * gen-soccon.c: Add IP_MULTICAST_IF constant
20166 Minor reformatting and adjustments to prevent warnings.
20168 2005-06-14 Pascal Obry <obry@adacore.com>
20170 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
20172 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
20174 * trans.c (gnat_gimplify_expr): Call
20175 recompute_tree_invarant_for_addr_expr when we change
20176 the operand of the ADDR_EXPR.
20178 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20180 * misc.c: Don't include errors.h.
20182 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20184 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
20186 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
20188 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
20190 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
20192 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
20195 * Makefile.in: Make TGT_LIB behave correctly.
20197 2005-04-23 DJ Delorie <dj@redhat.com>
20199 * misc.c: Adjust warning() callers.
20201 2005-04-16 Laurent Guerby <laurent@guerby.net>
20204 * a-nudira.adb (Value): Check for valid string.
20205 * a-nuflra.adb (Value): Likewise.
20207 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
20209 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
20211 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
20213 * adaint.c, init.c, tracebak.c: Fix comment typos.
20214 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
20216 2005-04-07 Laurent Guerby <laurent@guerby.net>
20217 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20219 * Makefile.in: Add make ifeq define for hppa linux tasking support.
20220 * system-hpux.ads: Define Signed_Zeros to be True.
20221 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
20223 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
20225 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
20226 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
20229 2005-03-30 Tom Tromey <tromey@redhat.com>
20231 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
20233 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
20235 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
20237 2005-03-29 Robert Dewar <dewar@adacore.com>
20239 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
20240 fixed-point expression has value that is not a multiple of the Small
20243 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
20245 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
20248 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
20250 2005-03-29 Vincent Celier <celier@adacore.com>
20252 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
20253 (Build_Dynamic_Library.Version_String): Return the empty string when
20254 Lib_Version is empty or when the symbol policy is not Autonomous.
20256 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
20257 a symbol is not in the reference symbol file, increase the Major ID
20258 and set the Minor ID to 0.
20259 Use gsmatch=lequal instead of gsmatch=equal
20261 2005-03-29 Doug Rupp <rupp@adacore.com>
20263 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
20264 name and translate.
20266 2005-03-29 Javier Miranda <miranda@adacore.com>
20268 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
20269 (Inherit_DT): The first formal has been redefined as a Tag.
20270 This allows us the removal of the subprogram Get_TSD.
20271 (TSD): Replace the call to Get_TSD by the actual code.
20273 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
20274 (Make_DT): Upgrade the call to Inherit_TSD according to the
20275 new interface: the first formal is now a Tag.
20277 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
20278 redefined as a Tag.
20279 This change allows us to remove the subprogram Get_TSD.
20280 (CPP_Get_TSD): Subprogram removed.
20281 (TSD): Replace the call to CPP_Get_TSD by the actual code.
20283 * rtsfind.ads: Remove support to call the run-time
20286 2005-03-29 Robert Dewar <dewar@adacore.com>
20288 * errutil.adb, errout.adb:
20289 Minor comment updates on Line_Terminator references
20291 * par-ch10.adb: Add ??? comment about line terminator
20293 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
20294 (check dos line terminator).
20295 (Check_Line_Max_Length): New procedure, split off from the existing
20296 Check_Line_Terminator routine. Separating this out allows -gnatyf to
20297 be properly recognized.
20299 * styleg.adb: Add ??? comment for line terminator reference
20301 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
20302 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
20304 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
20305 (check dos line terminator).
20306 (Check_Line_Max_Length): New procedure, split off from the existing
20307 Check_Line_Terminator routine. Separating this out allows -gnatyf to
20308 be properly recognized.
20310 * stylesw.ads, stylesw.adb:
20311 Add handling for new -gnatyd switch (check dos line terminator)
20313 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
20314 Recognize -gnatwb/-gnatwB switches
20315 Include Warn_On_Bad_Fixed_Value for -gnatg
20318 Add line for new -gnatyd switch (check dos line terminator)
20320 * usage.adb: Add lines for -gnatwb/-gnatwB
20322 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
20324 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
20326 * gnat_ugn.texi: Fix overlong lines
20327 Document new -gnatyd switch
20328 Document new -gnatwb/-gnatwB switches
20330 2005-03-29 Ed Schonberg <schonberg@adacore.com>
20332 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
20333 order to retrieve the component list of the type, before examining
20334 individual components.
20336 * sem_type.adb (Covers): Types are compatible if one is the base type
20337 of the other, even though their base types might differ when private
20338 views are involved.
20340 2005-03-29 Thomas Quinot <quinot@adacore.com>
20342 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
20343 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
20344 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
20345 analyzed if expansion is disabled (which could otherwise cause spurious
20346 error messages if expansion has been disabled due to previous
20347 (unrelated) errors).
20349 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
20350 is disabled, the entity denoted by the argument is the access type
20351 itself, not an underlying record type, so there is no need to go back
20352 to the Corresponding_Remote_Type.
20354 2005-03-29 Gary Dismukes <dismukes@adacore.com>
20355 Robert Dewar <dewar@adacore.com>
20357 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
20358 expand a call to an instance of
20359 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
20360 Constructor actual of the instance. A class-wide membership
20361 check is also generated, to ensure that the tag passed to the instance
20362 denotes a type in the class.
20363 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
20364 of Name_Generic_Dispatching_Constructor.
20366 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
20367 05 unit for AI-260-02).
20369 * a-tgdico.ads: New file.
20371 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
20372 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
20374 * snames.ads, snames.adb (Preset_Names): Add entry for
20375 Generic_Dispatching_Constructor.
20378 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
20379 character type cases.
20380 (Analyze_Subprogram_Renaming): Add special handling for
20381 the case of renaming of stream attributes when the renaming denotes a
20382 generic formal subprogram association for an abstract formal subprogram.
20383 Check that the attribute is a primitive stream attribute (and not
20384 a class-wide stream attribute) and then rewrite the attribute name
20385 as the name of the appropriate compiler-generated stream primitive.
20387 2005-03-29 Robert Dewar <dewar@adacore.com>
20389 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
20391 (Is_Possibly_Unaligned_Object): Correct typo that
20392 resulted in inaccurate result for unaligned scalars within records.
20394 2005-03-29 Ed Schonberg <schonberg@adacore.com>
20396 * freeze.adb (Freeze_Record_Type): If the type of the component is an
20397 itype whose parent is controlled and not yet frozen, do not create a
20398 freeze node for the itype if expansion is disabled.
20400 2005-03-29 Vincent Celier <celier@adacore.com>
20402 * make.adb (Gnatmake): Don't fail if the main project file is declared
20403 as having no Ada sources. Do not display message "no sources to
20404 compile" in quiet output.
20406 2005-03-29 Doug Rupp <rupp@adacore.com>
20408 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
20411 2005-03-29 Robert Dewar <dewar@adacore.com>
20413 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
20416 2005-03-29 Robert Dewar <dewar@adacore.com>
20418 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
20419 missing TYPE Improve the error message generated when compiling a
20420 limited interface in Ada83 or Ada95 mode.
20422 2005-03-29 Robert Dewar <dewar@adacore.com>
20424 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
20425 rather than proceed ahead using a junk attribute name.
20427 2005-03-29 Vincent Celier <celier@adacore.com>
20429 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
20431 * prj-part.adb (Parse_Single_Project): Set the location of a project
20432 on its defining identifier, rather than on the reserved word "project".
20434 * prj-proc.adb (Expression): Adapt to the fact that default of external
20435 references may be string expressions, not always literal strings.
20436 (Recursive_Process): Set Display_Name equal to Name
20437 when Location is No_Location, that is when there is no actual file.
20438 Get the Display_Name of the project from the source, when it is not a
20440 (Process): Use the Display_Name in error messages
20442 * prj-strt.adb (External_Reference): Allow default to be string
20443 expressions, not only literal strings.
20445 2005-03-29 Vincent Celier <celier@adacore.com>
20447 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
20448 file and the reference symbol file to be the same file.
20450 2005-03-29 Thomas Quinot <quinot@adacore.com>
20452 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
20453 forbid conversion of a local access-to-subprogram type to a remote one.
20455 * sem_util.adb (Wrong_Type): For a record type that is the expanded
20456 equivalent type for a remote access-to-subprogram type, go back to the
20457 original RAS entity when displaying an error message, so the casing is
20458 the original source casing.
20460 2005-03-29 Robert Dewar <dewar@adacore.com>
20462 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
20465 2005-03-29 Ed Schonberg <schonberg@adacore.com>
20467 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
20468 subtype if code is being pre-analyzed, to prevent un-expanded
20469 references to protected formals, among others.
20470 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
20471 interpretation that can be a call, include the result of the call as a
20472 possible interpretation of the dereference.
20474 * sem_ch5.adb (Process_Bounds): Determine type of range by
20475 pre-analyzing a copy of the original range, and then analyze the range
20476 with the expected type.
20478 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
20479 with an overloaded prefix where not all interpretations yield an
20480 access to subprogram, do not rewrite node as a call.
20481 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
20482 the node as a call once the context identifies the interpretation of
20483 the prefix whose call yields the context type.
20484 (Valid_Conversion): For the case of a conversion between
20485 local access-to-subprogram types, check subtype conformance using
20486 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
20487 detailed error message.
20489 2005-03-29 Ed Schonberg <schonberg@adacore.com>
20491 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
20492 indicator, indicate that the formal can never be null.
20493 (Process_Formals): If a formal has a non_null indicator, insert the
20494 resulting subtype immediately before the enclosing subprogram decl,
20495 and not at the beginning of the corresponding declarative part, to
20496 prevent access before elaboration (Ada2005).
20498 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20501 * utils.c (finish_record_type): Use variable_size when setting sizes.
20503 2005-03-29 Robert Dewar <dewar@adacore.com>
20505 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
20506 guarantee Unix style line terminators for the output files, even when
20507 running on windows.
20509 2005-03-29 Robert Dewar <dewar@adacore.com>
20511 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
20512 buffer if an exception is raised.
20514 2005-03-29 Ed Falis <falis@adacore.com>
20516 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
20519 2005-03-29 Robert Dewar <dewar@adacore.com>
20521 * sem_util.ads: Minor reformatting
20522 * gnat_rm.texi: Minor editing.
20524 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
20526 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
20527 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
20529 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
20531 * adaint.c (__gnat_portable_spawn): Adjust cast.
20533 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
20535 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
20537 2005-03-17 Pascal Obry <obry@adacore.com>
20539 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
20542 * expect.c (__gnat_waitpid): Moved here from adaint.c.
20543 Reimplement under Win32 using Win32 API.
20545 (__gnat_kill) [Win32]: Properly close the process handle before leaving
20548 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
20550 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
20551 (DECL_RENAMED_OBJECT): New accessor macro.
20552 (SET_DECL_RENAMED_OBJECT): New setter macro.
20554 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
20555 object in all cases. Attach the renamed object to the VAR_DECL.
20556 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
20557 field is not prescribed.
20559 * misc.c (gnat_handle_option): Handle -gnatO separately.
20560 (gnat_print_decl) <VAR_DECL>: New case.
20561 Print the DECL_RENAMED_OBJECT node.
20563 * lang.opt: Declare separate -gnatO option.
20565 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
20566 pointer, replace it with the renamed object.
20567 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
20568 pointer type if the source is not a fat pointer type whose underlying
20569 array has the same non-zero alias set as that of the destination array.
20571 2005-03-17 Javier Miranda <miranda@adacore.com>
20573 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
20574 (Get_Inheritance_Depth): Removed.
20575 (Set_Inheritance_Depth): Removed.
20577 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
20578 subprogram Get_Expanded_Name because it is not referenced by the
20581 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
20582 (CPP_Get_Inheritance_Depth): Removed.
20583 (CPP_Set_Inheritance_Depth): Removed.
20585 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
20587 2005-03-17 Robert Dewar <dewar@adacore.com>
20589 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
20590 3, since we now expect GCC 3 to do all the work.
20592 2005-03-17 Javier Miranda <miranda@adacore.com>
20594 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
20595 of one barrier to avoid wrong usage of this attribute.
20597 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
20598 First_Private_Entity.
20600 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
20601 the subprogram against wrong usage.
20602 Adapt the code to traverse the entities in the
20603 scope of a record_type because in addition to its usage regarding
20604 packages, this subprogram is also called by Expand_N_Freeze_Entity
20605 to install the visible declarations of the enclosing scope of a
20606 record_type_with_private to establish the proper visibility before
20607 freezing the entity and related subprograms.
20609 2005-03-17 Ed Schonberg <schonberg@adacore.com>
20611 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
20614 2005-03-17 Thomas Quinot <quinot@adacore.com>
20616 * exp_ch3.adb (Check_Attr): New subprogram.
20617 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
20618 into a new Check_Attr subprogram, in order to provide a more
20619 explanatory error message (including the name of the missing attribute).
20620 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
20621 subprogram determines whether a default implementation exists for a
20622 given stream attribute.
20623 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
20624 Determine whether to generate a default implementation for each stream
20625 attribute separately, as this depends on the specific attribute.
20627 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
20628 limited extension where a stream attribute is missing for a limited
20629 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
20630 generate a bogus reference to the missing attribute to prevent
20631 cascaded errors. Instead, generate a null statement.
20633 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
20634 available for a limited type if it has been specified for an ancestor
20637 2005-03-17 Ed Schonberg <schonberg@adacore.com>
20639 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
20640 entity is an operator.
20642 2005-03-17 Thomas Quinot <quinot@adacore.com>
20644 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
20645 spec, to make this predicate available to other units.
20647 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
20650 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
20651 when no distribution runtime library is available.
20653 * sem_res.adb, sem_dist.adb: Disable expansion of remote
20654 access-to-subprogram types when no distribution runtime library is
20656 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
20657 predicate available to other units.
20659 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
20660 spec, to make this predicate available to other units.
20662 2005-03-17 Vincent Celier <celier@adacore.com>
20664 * make.adb (Insert_Project_Sources): Make sure the Q is always
20667 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
20668 the default for the tree, not the global default naming.
20670 * prj-proc.adb (Recursive_Process): No need to put the default naming
20671 in the project data, it's already there.
20673 2005-03-17 Doug Rupp <rupp@adacore.com>
20675 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
20677 * 5xcrtl.ads: Renamed to...
20678 * s-crtl-vms64.ads: ...this new file
20680 2005-03-17 Robert Dewar <dewar@adacore.com>
20683 * namet.adb (Copy_One_Character): Set proper wide character encoding
20684 for upper half character if we have upper half encoding.
20686 2005-03-17 Robert Dewar <dewar@adacore.com>
20688 * par.adb (Par): Improved msg for attempt to recompile predefined unit
20690 2005-03-17 Thomas Quinot <quinot@adacore.com>
20692 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
20693 tagged limited type, the TSS is a newly built renaming declaration:
20694 insert it using Set_TSS, not Copy_TSS.
20696 2005-03-17 Javier Miranda <miranda@adacore.com>
20698 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
20699 Try_Object_Operation): Analyze the object that is accessible
20700 through the prefix of the subprogram call before we apply
20701 the transformation of the object-operation notation.
20703 2005-03-17 Jose Ruiz <ruiz@adacore.com>
20705 * s-taprob.adb (Initialize_Protection): Initialize the protected
20706 object's owner to Null_Task.
20707 (Lock): If pragma Detect_Blocking is in effect and the caller of this
20708 procedure is already the protected object's owner then Program_Error
20709 is raised. In addition the protected object's owner is updated.
20710 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
20711 of this procedure is already the protected object's owner then
20712 Program_Error is raised.
20713 In addition the protected object's owner is updated.
20714 (Unlock): Remove the ownership of the protected object.
20716 * s-taprob.ads (Protection): Add the field Owner, used to store the
20717 protected object's owner.
20718 This component is needed for detecting one type of potentially blocking
20719 operations (external calls on a protected subprogram with the same
20720 target object as that of the protected action). Document the rest of
20723 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
20724 Initialize the protected object's owner to Null_Task.
20725 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
20726 caller of this procedure is already the protected object's owner then
20727 Program_Error is raised.
20728 Do not raise Program_Error when this procedure is called from a
20730 (Unlock_Entries): Remove the ownership of the protected object.
20731 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
20732 of this procedure is already the protected object's owner then
20733 Program_Error is raised.
20734 Do not raise Program_Error when this procedure is called from
20735 a protected action.
20737 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
20738 used to store the protected object's owner.
20740 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
20741 effect and this procedure (a potentially blocking operation) is called
20742 from whithin a protected action, Program_Error is raised.
20743 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
20744 and this procedure (a potentially blocking operation) is called from
20745 whithin a protected action, Program_Error is raised.
20747 2005-03-17 Vincent Celier <celier@adacore.com>
20748 Nicolas Setton <setton@adacore.com>
20750 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
20751 switch, not supported by the linker on Darwin. Add '_' before
20752 <library>init, as this character is added unconditionally by the
20754 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
20755 correct one ".dylib". This fixes detection of the archive files when
20756 building library projects.
20758 2005-03-17 Vincent Celier <celier@adacore.com>
20760 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
20761 -gnat83, -gnat95 and -gnat05.
20763 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
20765 * gnat_ugn.texi: Document gnatmem restriction
20767 2005-03-17 Thomas Quinot <quinot@adacore.com>
20769 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
20772 2005-03-17 Robert Dewar <dewar@adacore.com>
20774 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
20775 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
20776 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
20778 * casing.adb: Comment improvements
20780 2005-03-17 Pascal Obry <obry@adacore.com>
20782 * g-expect.adb: Minor reformatting.
20784 2005-03-15 Zack Weinberg <zack@codesourcery.com>
20786 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
20787 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
20790 2005-03-15 Vincent Celier <celier@adacore.com>
20792 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
20793 Add new parameter In_Tree to specify the project tree: needed
20794 by the project manager. Adapt to changes in project manager
20795 using new parameter In_Tree.
20797 2005-03-15 Jakub Jelinek <jakub@redhat.com>
20799 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
20800 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
20801 ada/bldtools to avoid make -jN failures.
20803 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20805 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
20806 to NULL_TREE on entry.
20808 2005-03-15 Robert Dewar <dewar@adacore.com>
20810 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20811 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20812 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20813 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20814 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20815 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
20816 system-interix.ads, system-solaris-sparc.ads,
20817 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20818 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
20819 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20820 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
20821 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
20822 Compiler_System_Version to be False.
20824 * opt.ads: Add new flag Opt.Address_Is_Private
20826 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
20827 Add new parameter Compiler_System_Version to avoid checking for
20828 completeness of parameters when compiler is compiling itself.
20829 Allows old versions of GNAT to be compiled with new compiler.
20831 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20833 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
20834 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
20836 (Stack_Base_Available): New flag.
20837 (Get_Page_Size): New overloaded functions imported from C.
20838 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
20839 PROT_ON, PROT_OFF): New constants.
20840 (mprotect): New function imported from C.
20841 (pthread_teb_t): New record type.
20843 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
20844 (Create_Task): Account for the Yellow Zone and the guard page.
20846 2005-03-15 Vincent Celier <celier@adacore.com>
20848 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20849 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20850 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
20851 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
20852 Library_File_Name_For): Add new parameter In_Tree
20853 to specify the project tree: needed by the project manager.
20854 Adapt to changes in project manager using new parameter In_Tree.
20855 Remove local imports, use functions in System.CRTL.
20857 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
20858 to use the project manager.
20860 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
20861 In_Tree to designate the project tree. Adapt to changes in the project
20862 manager, using In_Tree.
20864 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
20865 Copy_Interface_Sources): Add new parameter In_Tree to specify the
20866 project tree: needed by the project manager.
20867 (Build_Library): Check that Arg'Length >= 6 before checking if it
20868 contains "--RTS=...".
20870 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
20871 Library_File_Name_For): Add new parameter In_Tree to specify the
20872 project tree: needed by the project manager.
20874 * prj.ads, prj.adb: Major modifications to allow several project trees
20875 in memory at the same time.
20876 Change tables to dynamic tables and hash tables to dynamic hash
20877 tables. Move tables and hash tables from Prj.Com (in the visible part)
20878 and Prj.Env (in the private part). Move some constants from the visible
20879 part to the private part. Make other constants deferred.
20880 (Project_Empty): Make it a variable, not a function
20881 (Empty_Project): Add parameter Tree. Returns the data with the default
20882 naming data of the project tree Tree.
20883 (Initialize): After updating Std_Naming_Data, copy its value to the
20884 component Naming of Project Empty.
20885 (Register_Default_Naming_Scheme): Use and update the default naming
20886 component of the project tree, instead of the global variable
20888 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
20889 Tree is not defaulted, return the default naming data of the Tree.
20890 (Initial_Buffer_Size): Constant moved from private part
20891 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
20892 variables initialized in procedure Initialize.
20893 (Add_To_Buffer): Add two in out parameters to replace global variables
20894 Buffer and Buffer_Last.
20895 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
20897 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
20899 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
20900 for the project tree.
20901 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
20902 constant at the beginning of the package spec, so that they cane be used
20903 in subprograms before their full declarations.
20904 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
20905 (Empty_Project): Add parameter of type Project_Node_Ref
20906 (Private_Project_Tree_Data): Add component Default_Naming of type
20908 (Buffer, Buffer_Last): remove global variables
20909 (Add_To_Buffer): Add two in out parameters to replace global variables
20910 Buffer and Buffer_Last.
20911 (Current_Packages_To_Check): Remove global variable
20912 (Empty_Name): Move to private part
20913 (No-Symbols): Make it a constant
20914 (Private_Project_Tree_Data): New type for the private part of the
20916 (Project_Tree_Data): New type for the data of a project tree
20917 (Project_Tree_Ref): New type to designate a project tree
20918 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
20919 for the project tree.
20921 * prj-attr.ads: Add with Table; needed, as package Prj no longer
20922 imports package Table.
20924 * prj-com.adb: Remove empty, no longer needed body
20926 * prj-com.ads: Move most of the content of this package to package Prj.
20928 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
20929 designate the project node tree and Packages_To_Check to replace
20930 global variable Current_Packages_To_Check.
20931 Add new parameters In_Tree and Packages_To_Check to local subprograms,
20932 when needed. Adapt to changes in project manager with project node tree
20935 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
20936 project tree to most subprograms. Move tables and hash tables to
20937 private part of package Prj.
20938 Adapt to changes in project manager using project tree In_Tree.
20940 * prj-makr.adb (Tree): New constant to designate the project node tree
20941 Adapt to change in project manager using project node tree Tree
20943 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
20944 display the Library_Src_Dir and the Library_Dir.
20945 Add new parameter In_Tree to designate the project node tree to most
20946 subprograms. Adapt to changes in the project manager, using project tree
20948 (Check_Naming_Scheme): Do not alter the casing on platforms where
20949 the casing of file names is not significant.
20950 (Check): Add new parameter In_Tree to designate the
20952 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
20953 designate the project tree.
20954 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
20956 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
20957 to replace those that were in the private part of package Prj.
20958 Add new parameter In__Tree to designate the project node tree to most
20959 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20960 (Post_Parse_Context_Clause): When specifying the project node of a with
20961 clause, indicate that it is a limited with only if there is "limited"
20962 in the with clause, not necessarily when In_Limited is True.
20963 (Parse): Add new parameter In_Tree to designate the project node tree
20965 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
20966 designate the project node tree. Adapt to change in Prj.Tree with
20967 project node tree In_Tree.
20969 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
20970 tree In_Tree in the call to function Empty_Process to give its initial
20971 value to the project data Processed_Data.
20972 Add new parameters In_Tree to designate the project tree and
20973 From_Project_Node_Tree to designate the project node tree to several
20974 subprograms. Adapt to change in project manager with project tree
20975 In_Tree and project node tree From_Project_Node_Tree.
20977 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
20978 to replace those that were in the private part of package Prj.
20979 Add new parameter In_Tree to designate the project node tree to most
20980 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20982 * prj-tree.ads, prj-tree.adb: Add new parameter of type
20983 Project_Node_Tree_Ref to most subprograms.
20984 Use this new parameter to store project nodes in the designated project
20986 (Project_Node_Tree_Ref): New type to designate a project node tree
20987 (Tree_Private_Part): Change table to dynamic table and hash tables to
20988 dynamic hash tables.
20990 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
20991 the project tree to most subprograms. Adapt to changes in project
20992 manager using project tree In_Tree.
20994 * makegpr.adb (Project_Tree): New constant needed to use project
20997 2005-03-15 Olivier Hainque <hainque@adacore.com>
20999 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
21000 for sigactions with SA_SIGINFO set. Call
21001 __gnat_adjust_context_for_raise before raising, to perform the
21002 potentially required adjustments to the machine context for the GCC
21005 * raise.h (__gnat_adjust_context_for_raise): New prototype.
21007 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
21008 Adjust PC by one in the provided machine context.
21009 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
21010 so that the handler is passed the context structure to adjust prior to
21012 (__gnat_error_handler) HPUX: Adjust the signature to match what an
21013 SA_SIGINFO sigaction should look like. Call
21014 __gnat_adjust_context_for_raise before actually raising.
21015 (__gnat_adjust_context_for_raise): Default noop to help PC
21016 adjustments before raise from signal handlers.
21017 (__gnat_error_handler): Indirectly call a predicate function to
21018 determine if a condition should be resignaled or not.
21019 (__gnat_set_resignal_predicate): User interface to modify the predicate.
21020 (__gnat_default_resignal_p): Default GNAT predicate.
21022 2005-03-15 Doug Rupp <rupp@adacore.com>
21024 * adaint.c: Prefix #include of VMS system header files with vms/
21025 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
21026 Do not define a dummy function "convert_addresses" under Darwin,
21029 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
21032 2005-03-15 Nicolas Setton <setton@adacore.com>
21034 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
21037 2005-03-15 Robert Dewar <dewar@adacore.com>
21039 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
21042 * a-retide.ads: Minor comment changes
21044 2005-03-15 Robert Dewar <dewar@adacore.com>
21046 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
21047 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
21048 Realloc_For_Chunk to private part of package.
21049 New subprograms for AI-301
21051 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
21052 Get_Line procedure.
21053 Avoid unnecessary use of Get/Set_Wide_String
21055 2005-03-15 Robert Dewar <dewar@adacore.com>
21058 * a-stunau.ads, a-stunau.adb:
21059 Change interface to allow efficient (and correct) implementation
21060 The previous changes to allow extra space in unbounded strings had
21061 left this interface a bit broken.
21063 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
21065 * g-spipat.ads, g-spipat.adb: New interface for Get_String
21066 Minor reformatting (function specs)
21068 * g-spitbo.adb: New interface for Get_String
21070 * g-spitbo.ads: Minor reformatting
21072 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
21074 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
21076 2005-03-15 Javier Miranda <miranda@adacore.com>
21077 Robert Dewar <dewar@adacore.com>
21078 Thomas Quinot <quinot@adacore.com>
21079 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21081 * atree.ads, atree.adb: Add support for Elist24 field
21083 * atree.h: Fix wrong definition of Field27
21084 Add support for Elist16 field
21085 Add support for Elist24 field
21087 * einfo.ads, einfo.adb (Abstract_Interfaces,
21088 Set_Abstract_Interfaces): New subprograms.
21089 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
21091 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
21092 entities rather than a single node.
21093 (Is_Interface, Set_Is_Interface): New subprogram
21094 (First_Tag_Component): New syntesized attribute
21095 (Next_Tag_Component): New synthesized attribute
21096 (Write_Entity_Flags): Upgraded to write Is_Interface
21097 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
21098 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
21099 (Task_Body_Procedure): New subprogram to read this attribute.
21100 (Set_Task_Body_Procedure): New subprogram to set this attribute.
21101 (Has_Controlled_Component): Now applies to all entities.
21102 This is only a documentation change, since it always worked to apply
21103 this to other than composite types (yielding false), but now this is
21105 Update documentation on Must_Be_Byte_Aligned for new spec
21107 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
21108 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
21109 uses of the Access_Disp_Table attribute to reference the first dispatch
21110 table associated with a tagged type. As
21111 part of the implementation of abstract interface types,
21112 Access_Disp_Table has been redefined to contain a list of dispatch
21113 tables (rather than a single dispatch table).
21114 Similarly, upgrade all the references to Tag_Component by the
21115 new attribute First_Tag_Component.
21116 (Find_Inherited_TSS): Moved to exp_tss.
21117 Clean up test in Expand_N_Object_Declaration for cases
21118 where we need to do a separate assignment of the initial value.
21119 (Expand_N_Object_Declaration): If the expression in the
21120 declaration of a tagged type is an aggregate, no need to generate an
21121 additional tag assignment.
21122 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
21124 Bit packed array ops are only called if operands are known to be
21126 (Component_Equality): When returning an N_Raise_Program_Error statement,
21127 ensure that its Etype is set to Empty to avoid confusing GIGI (which
21128 expects that only expressions have a bona fide type).
21129 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
21130 determine the amount of data to be copied.
21132 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
21133 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
21134 INTERFACE_TYPE_DEFINITION ::=
21135 [limited | task | protected | synchronized] interface
21136 [AND interface_list]
21138 * par-ch3.adb (P_Type_Declaration): Modified to give support to
21140 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
21142 (P_Interface_Type_Definition): New subprogram that parses the new
21143 syntax rule of Ada 2005 interfaces
21144 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
21145 messages by the correct RENAMES (quotes removed).
21147 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
21148 attribute First_Tag_Component.
21150 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
21151 (Interface_List, Set_Interface_List): New subprograms.
21152 (Interface_Present, Set_Interface_Present): New subprograms.
21153 (Limited_Present, Set_Limited_Present): Available also in derived
21154 type definition nodes.
21155 (Protected_Present, Set_Protected_Present): Available also in
21156 record type definition and
21157 derived type definition nodes.
21158 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
21159 (Task_Present, Set_Task_Present): New subprogram.
21160 (Task_Body_Procedure): Removed.
21161 (Set_Task_Body_Procedure): Removed.
21162 These subprogram have been removed because the attribute
21163 Task_Body_Procedure has been moved to the corresponding task type
21164 or task subtype entity to leave a field free to store the list
21165 of interfaces implemented by a task (for AI-345)
21166 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
21167 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
21168 expression flag Do_Range_Check
21169 (Exception_Junk): Change to Flag7 to accomodate above change
21170 (Box_Present, Default_Name, Specification, Set_Box_Present,
21171 Set_Default_Name, Set_Specification): Expand the expression
21172 "X in N_Formal_Subprogram_Declaration" into the corresponding
21173 two comparisons. Required to use the csinfo tool.
21175 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
21176 "with string" given.
21178 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
21181 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
21184 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
21185 attribute Task_Body_Procedure rather than the old semantic field that
21186 was available in the task_type_declaration node.
21188 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
21189 interface type definitions.
21190 (P_Formal_Derived_Type_Definition): Modified to handle the list of
21193 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
21194 task type declaration.
21195 (P_Protected): Modified to handle the list of interfaces in a
21196 protected type declaration.
21198 2005-03-15 Doug Rupp <rupp@adacore.com>
21199 Vincent Celier <celier@adacore.com>
21201 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
21202 (Gen_Output_File_C): Likewise.
21203 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
21205 2005-03-15 Thomas Quinot <quinot@adacore.com>
21207 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
21208 is an N_Raise_Constraint_Error node, create a new copy of it without
21209 going through a call to Duplicate_Subexpr.
21211 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
21212 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21213 Nicolas Setton <setton@adacore.com>
21214 Ed Schonberg <schonberg@adacore.com>
21220 * decl.c (gnat_to_gnu_field): Reject aliased components with a
21221 representation clause that prescribes a size not equal to the rounded
21222 size of their types.
21223 (gnat_to_gnu_entity, case E_Component): Always look at
21224 Original_Record_Component if Present and not the entity.
21225 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
21226 of tagged extension types by not making field for components that are
21228 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
21229 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
21230 expression to the type of the object when the object is constant.
21231 Reverse defer_debug_incomplete_list before traversing it, so that trees
21232 are processed in the order at which they were added to the list. This
21233 order is important when using the stabs debug format.
21234 If we are deferring the output of debug information, also defer this
21235 output for a function return type.
21236 When adding fields to a record, prevent emitting debug information
21237 for incomplete records, emit the information only when the record is
21239 (components_to_record): New parameter defer_debug.
21240 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
21241 (gnat_to_gnu_field_decl): New function.
21242 (substitution_list, annotate_rep): Call it.
21243 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
21244 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
21245 No longer update discriminants to not be a COMPONENT_REF.
21246 (copy_alias_set): Strip padding from input type; also handle
21247 unconstrained arrays properly.
21249 * gigi.h (write_record_type_debug_info): New function.
21250 Convert to use ANSI-style prototypes. Remove unused
21251 declarations for emit_stack_check, elab_all_gnat and
21252 set_second_error_entity.
21253 (gnat_to_gnu_field_decl): New decl.
21255 * utils.c (write_record_type_debug_info): New function.
21256 (finish_record_type): Delegate generation of debug information to
21257 write_record_type_debug_info.
21258 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
21259 (update_pointer_to): Fix pasto.
21260 (convert) <UNION_TYPE>: Accept slight type variations when
21261 converting to an unchecked union type.
21263 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
21264 replace the N_Freeze_Entity with a null statement.
21266 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
21267 within a constrained subcomponent of an enclosing record, place the
21268 freeze nodes in the scope stack entry for the enclosing record.
21269 (Undelay_Type): New Subprogram.
21270 (Set_Small_Size): Pass T, the type to modify; all callers changed.
21271 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
21272 within records; allow them to have freeze nodes if their base types
21275 * exp_util.adb (Remove_Side_Effects): Properly test for
21276 Expansion_Delayed and handle case when it's inside an
21277 N_Qualified_Expression.
21279 * sem_ch3.adb (Derived_Type_Declaration): New predicate
21280 Comes_From_Generic, to recognize accurately that the parent type in a
21281 derived type declaration can be traced back to a formal type, because
21282 it is one or is derived from one, or because its completion is derived
21284 (Constrain_Component_Type): If component comes from source and has no
21285 explicit constraint, no need to constrain in in a subtype of the
21287 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
21288 Minor change to propagate Is_Ada_2005 flag
21290 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
21291 Expansion_Delayed is False.
21292 (assoc_to_constructor): Ignore fields that have a
21293 Corresponding_Discriminant.
21294 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
21295 function returns "by target", dereference the target pointer using the
21296 type of the actual return value.
21297 <all>: Be prepared for a null gnu_result.
21298 (processed_inline_subprograms): Check flag_really_no_inline
21299 instead of flag_no_inline.
21300 (set_second_error_entity): Remove unused function.
21301 (gnat_to_gnu, case N_Selected_Component): Call
21302 gnat_to_gnu_field_decl.
21303 (assoc_to_constructor): Likewise.
21305 2005-03-15 Robert Dewar <dewar@adacore.com>
21306 Ed Schonberg <schonberg@adacore.com>
21307 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21309 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
21310 Must_Be_Byte_Aligned for cases where we do not need to use a
21311 System.Pack_nn unit.
21313 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
21315 Needed now that we do some processing for IN parameters as well. This
21316 may well fix some unrelated errors.
21317 (Expand_Call): Handle case of unaligned objects (in particular those
21318 that come from packed arrays).
21319 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
21320 renamed entity is an inherited operation, re-expand the call using the
21321 original operation, which is the one to call.
21322 Detect attempt to inline parameterless recursive subprogram.
21323 (Represented_As_Scalar): Fix to work properly with private types
21324 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
21325 accurate estimate. Yields True in far fewer cases than before,
21326 improving the quality of code that depends on this test.
21328 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
21329 over both visible and private declarations to remove them from tree,
21330 and mark subprograms declared in package as eliminated, to prevent
21331 spurious use in subsequent compilation of generic units in the context.
21333 * exp_util.ads: Minor cleanup in variable names
21335 * sem_eval.ads, sem_eval.adb: Minor reformatting
21336 (Compile_Time_Known_Bounds): New function
21338 2005-03-15 Ed Schonberg <schonberg@adacore.com>
21340 * exp_ch7.adb (Convert_View): Use base types of underlying types when
21341 determining whether an unchecked conversion is needed for the argument
21342 of an initialization call.
21344 2005-03-15 Ed Schonberg <schonberg@adacore.com>
21346 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
21347 that appears in the instantiation rather than the internal subtype
21348 generated in the wrapper package, to avoid anomalies in gigi when the
21349 target is derived from a private type whose full view is an access type.
21351 2005-03-15 Robert Dewar <dewar@adacore.com>
21353 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
21355 Add documentation to replace the use of this flag
21356 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
21359 2005-03-15 Thomas Quinot <quinot@adacore.com>
21361 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
21362 here from exp_attr so it can be shared between exp_attr and exp_dist.
21363 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
21364 all TSS names, not a subset thereof, and the previous name introduced
21365 an unnecessarily confusion that a distinction might exist between
21366 "OK" TSS names and some "not OK" TSS names.
21368 2005-03-15 Doug Rupp <rupp@adacore.com>
21370 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
21373 2005-03-15 Pascal Obry <obry@adacore.com>
21374 Eric Botcazou <ebotcazou@adacore.com>
21378 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
21379 when IN_RTS. This is to work around a bootstrap path problem.
21381 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
21382 table and pass it to __gnat_install_SEH_handler().
21383 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
21385 * lang.opt: Fix specification of -fRTS=.
21387 2005-03-15 Doug Rupp <rupp@adacore.com>
21388 Bernard Banner <banner@adacore.com>
21389 Vincent Celier <celier@adacore.com>
21390 Arnaud Charlet <charlet@adacore.com>
21393 This change works fine when gnatlib is built from the gcc directory,
21394 but does not work when using the libada Makefile, since GCC_FOR_TARGET
21395 is not passed to ada/Makefile.in, so more work is needed by a
21396 Makefile/configure expert.
21398 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
21399 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
21400 Setup gnatlink switch -M for x86_64 linux, as it is already setup
21402 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
21403 Run ranlib on libgccprefix.a
21404 Define PREFIX_OBJS for Darwin, to build libgccprefix.
21405 (ADA_INCLUDE_SRCS): Split Ada packages.
21407 2005-03-15 Robert Dewar <dewar@adacore.com>
21409 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
21411 * impunit.adb: Add GNAT.UTF_32
21413 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
21415 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
21416 now uses GNAT.UTF_32).
21418 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
21419 capabilities for categorizing characters using Unicode categories
21421 2005-03-15 Ed Schonberg <schonberg@adacore.com>
21423 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
21424 instantiation that has been rewritten as a package body, retrieve spec
21425 to generate proper name for implicit_with_clause.
21426 (Install_Parents): Recognize a parent that is an instantiation but has
21427 been rewritten as a package declaration during analysis.
21429 2005-03-15 Javier Miranda <miranda@adacore.com>
21430 Ed Schonberg <schonberg@adacore.com>
21432 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
21433 parameter reported some error we immediately return. This improves the
21434 behaviour of the frontend in case of errors.
21435 (Install_Parent, Remove_Parent): Introduce new flag
21436 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
21437 ancestor of a generic child unit, when the child is being instantiated.
21438 (Inline_Instance_Body): If we are compiling the private
21439 part or the body of a child unit, restore the proper visibility of the
21440 parents after compiling the instance body.
21442 2005-03-15 Ed Schonberg <schonberg@adacore.com>
21443 Javier Miranda <miranda@adacore.com>
21446 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
21447 of a private type, in which case it is underlying_type that denotes
21448 the proper task. Also modified to use the new entity attribute
21449 that is directly available in the task type and task subtype entities
21450 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
21451 arrays when other dimensions than the first are constrained by
21452 discriminants of an enclosing record.
21453 (Insert_Explicit_Dereference): If the prefix is an indexed component or
21454 a combination of indexed and selected components, find ultimate entity
21455 and generate the appropriate reference for it, to suppress spurious
21457 (Note_Possible_Modification): If an entity name has no entity, return.
21458 (Is_Variable): A function call never denotes a variable.
21459 (Requires_Transient_Scope): For record types, recurse only on
21460 components, not on internal subtypes that may have been generated for
21461 constrained components.
21463 2005-03-15 Ed Schonberg <schonberg@adacore.com>
21465 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
21466 Eliminated as candidates for resolution. Both efficient, and avoids
21467 anomalies with operators declared in deleted code.
21468 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
21469 expansion is disabled (as when compiling a generic) to prevent spurious
21470 warnings on prefixes of selected components.
21472 2005-03-15 Ed Schonberg <schonberg@adacore.com>
21474 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
21475 attached to a list before checking whether it appears in the private
21476 declarations of the current package.
21477 (Make_Inequality_Operator): Insert declaration in proper declarative
21478 list rather than just setting the Parent field, so that
21479 Is_Private_Declaration can handle it properly.
21481 2005-03-15 Ed Schonberg <schonberg@adacore.com>
21483 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
21484 a renaming a body, check that the renamed subprogram in not intrinsic.
21485 (Find_Direct_Name): If several use_visible entities hide
21486 each other, and the context is a predefined file compiled through
21487 rtsfind, keep only the entity that comes from a predefined file.
21489 2005-03-15 Geert Bosch <bosch@adacore.com>
21491 * s-fatgen.adb (Valid): Extend special exceptions to account for long
21492 long float padding to also cover AMD64 and IA64.
21494 2005-03-15 Gary Dismukes <dismukes@adacore.com>
21496 * s-imgwch.adb: Add with and use of Interfaces.
21497 (Img_Wide_Character): Change type of Val to Unsigned_16.
21498 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
21500 2005-03-15 Matthew Gingell <gingell@adacore.com>
21502 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
21504 2005-03-15 Robert Dewar <dewar@adacore.com>
21506 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
21508 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
21510 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
21512 2005-03-15 Robert Dewar <dewar@adacore.com>
21514 * s-bitops.adb, s-bitops.ads,
21515 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
21516 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
21517 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
21518 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
21519 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
21520 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
21521 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
21522 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
21525 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
21527 * utils2.c (build_binary_op): Fix typo.
21529 2005-03-15 Doug Rupp <rupp@adacore.com>
21531 * s-crtl.ads (popen,pclose): New imports.
21533 2005-03-15 Cyrille Comar <comar@adacore.com>
21535 * comperr.adb (Compiler_Abort): remove references to obsolete
21536 procedures in the bug boxes for various GNAT builds.
21538 2005-03-15 Vincent Celier <celier@adacore.com>
21540 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
21542 2005-03-15 Geert Bosch <bosch@adacore.com>
21543 Arnaud Charlet <charlet@adacore.com>
21544 Robert Dewar <dewar@adacore.com>
21545 Cyrille Comar <comar@adacore.com>
21546 Sergey Rybin <rybin@adacore.com>
21548 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
21549 too specific and long-winded to be appropriate for the GNAT User's
21551 Warn about use of GCC switches not documented in the GNAT User's Guide,
21552 as these may cause generated code to not conform to Ada semantics.
21553 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
21554 Add documentation for -gnat95 and -gnat05 switches
21555 Remove paragraph documenting obsolete way to refer to third party
21557 Add a few references to Ada_05 that were missing.
21558 Update documentation on -gnatZ/-gnatL.
21559 Document limitation when using -m64 under Solaris.
21560 Change the "Name Casing" subsection of the pretty-printer section
21561 according to the changes in the dictionary processing.
21563 * gnat_rm.texi: Document the Ada_05 pragma.
21564 Section on record representation clauses describes the new more
21565 relaxed rules about placement of large packed bit array components.
21566 Add documentation of GNAT.UTF_32
21568 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
21570 * misc.c (gnat_post_options): Turn off structural
21573 2005-03-08 Laurent Guerby <laurent@guerby.net>
21575 * system-linux-sparc.ads: Fix typo in previous commit.
21577 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
21578 Laurent Guerby <laurent@guerby.net>
21581 * system-linux-sparc.ads: New.
21582 * Makefile.in: Add sparc linux entry.
21584 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
21586 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
21587 parameters as unused.
21589 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
21590 Partial merge from libada-gnattools-branch:
21592 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
21593 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
21594 into code in gnattools/Makefile.in. Remove direct dependencies on
21595 stamp-tools by tools clauses.
21596 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
21597 * config-lang.in: Add gnattools to $lang_dirs.
21599 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
21602 * utils.c (gnat_type_for_mode): Return null instead of ICE because
21603 we asked for an unknown mode.
21605 2005-02-12 Richard Henderson <rth@redhat.com>
21607 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
21608 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
21610 2005-02-10 Andreas Jaeger <aj@suse.de>
21612 * init.c (__gnat_initialize): Mark parameter as unused.
21614 2005-02-09 Doug Rupp <rupp@adacore.com>
21616 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
21617 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
21619 2005-02-09 Doug Rupp <rupp@adacore.com>
21621 * gnatchop.adb (dup, dup2),
21622 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
21624 * gnatlbr.adb (mkdir),
21625 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
21627 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
21629 2005-02-09 Doug Rupp <rupp@adacore.com>
21631 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
21633 2005-02-09 Robert Dewar <dewar@adacore.com>
21634 Thomas Quinot <quinot@adacore.com>
21635 Javier Miranda <miranda@adacore.com>
21636 Pascal Obry <obry@adacore.com>
21637 Ed Schonberg <schonberg@adacore.com>
21638 Doug Rupp <rupp@adacore.com>
21639 Gary Dismukes <dismukes@adacore.com>
21640 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21642 * g-zstspl.ads: New file.
21644 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
21646 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
21648 Add definition of Wide_Wide_Space for AI-285
21650 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
21651 interface (to support Ada 95 and Ada 2005 units).
21652 Add Unbounded_IO files
21653 Add entries for Wide_Wide packages for AI-285
21654 Add list of containers packages to Ada 2005 unit list
21656 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
21657 support new Unbounded_IO package cleanly.
21659 * g-utf_32.ads, g-utf_32.adb: New files.
21661 * Makefile.rtl: Add entry for g-utf_32
21662 Add new files for Unbounded_IO
21663 Adjust make file for new AI-285 wide wide packages
21664 Add AI-302 containers to the run time.
21666 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
21667 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
21668 subprograms for AI-301.
21670 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
21672 * a-stunau.ads: Minor comment correction
21674 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
21676 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
21677 (Check_RPC): Update to match changes in expanded code.
21678 Clean up unused entity.
21680 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
21681 was not taken into account.
21682 This includes proper initialization with Normalize_Scalars.
21683 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
21684 normalize scalars cases (particularly the latter) to do a better job
21685 of finding invalid representations.
21687 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
21689 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
21692 * exp_dist.adb: Add support for wide wide character type
21693 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
21694 private part, generate stub bodies at the end of the private part,
21695 not the visible part.
21696 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
21698 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
21699 generic wrapper to execute final processing after completing the
21700 expansion of the RPC receiver for an RACW.
21702 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
21703 packages and attributes.
21704 (Preset_Names): Addition of the new reserved words of Ada 2005,
21705 that is interface, overriding and synchronized.
21706 (Get_Pragma_Id): Give support to the use of the new reserved word
21707 "interface" as a pragma name.
21708 (Is_Pragma_Name): Give support to the use of the new reserved word
21709 "interface" as a pragma name.
21710 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
21711 attribute implementation.
21713 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
21714 checks to entities that are output parameters of Asm operations.
21715 Handle the Stream_Size attribute.
21716 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
21718 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
21720 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
21721 for second parameter being 0.0.
21722 Add support for wide wide character type.
21723 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
21725 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
21726 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
21727 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
21728 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
21729 for wide wide character cases.
21731 * cstand.adb: Create entities for Wide_Wide_Character and
21734 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
21735 accordance with AI-258.
21736 Add new declarations for 16/32 bit C character types (Part of AI285)
21738 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
21739 (Obsolescent_Warning): New field
21740 (Rep_Clause): New local subprogram used to share code. Returns the rep
21741 clause for which the name is given in parameter.
21742 (Has_Stream_Size_Clause): New routine.
21743 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
21744 (Address_Clause): Implementation is now using Rep_Clause.
21745 (Alignment_Clause): Idem.
21746 (Size_Clause): Idem.
21748 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
21749 entity in non-Ada 2005 mode and generate warning.
21751 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
21752 (Prag): Code cleanup. Remove old gnat pragma "overriding"
21754 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
21755 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
21756 on the named unit if the pragma is not in the current compilation unit,
21757 so that elaboration calls in the current unit can set up an elaboration
21758 dependency on the named unit, as needed.
21759 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
21760 subprogram as well as for subprograms declared within a package.
21761 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
21764 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
21765 to z) to avoid some instances of duplication for Wide_Wide packages.
21767 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
21770 * scn.adb: Char_Literal_Value field is now a Uint
21772 * scng.adb: Significant rewrite to handle new Ada 2005 features
21773 allowing wide and wide wide characters in program text, e.g. for
21774 identifiers, as described in AI-285.
21775 (Set_Reserved): New procedure, makes setting up keywords cleaner.
21776 (Initialize_Scanner): Register the new reserved words of Ada 2005.
21777 (Scan): Give support to the new reserved words.
21779 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
21780 warning notifying that interface, overriding, and synchronized are
21781 new reserved words.
21782 (P_Pragma): Allow the use of the new reserved word "interface" as
21785 * gnatls.adb, gnatbind.adb,
21786 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
21787 identifiers named "interface" to "SAL_Interface".
21789 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
21790 (Structured Exception handling).
21791 (Gen_Main_C): Idem.
21794 (Gen_Main_Ada): Set the default exit code if specified.
21795 (Gen_Main_C): Likewise.
21797 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
21798 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
21800 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
21803 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
21804 has a collision with the new Ada 2005 "interface" reserved word.
21806 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
21807 generate a warning notifying that interface, overriding, and
21808 synchronized are new reserved words.
21810 * scans.ads (Token_Type): Addition of the tokens corresponding to the
21811 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
21812 and Tok_Synchronized.
21814 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
21815 "dispatching" rather than "primitive" operations, since dispatching
21816 calls are now allowed to abstract formal subprograms (which are not
21818 Char_Literal_Value field is now a Uint
21819 (Resolve_Slice): If the prefix is an access to an unconstrained array,
21820 compute the actual subtype of the designated object to impose the proper
21822 (Resolve_Selected_Component): Do not insert an access check if the
21823 prefix is an access type: such a node is expanded into an explicit
21824 dereference, on which the access check is performed anyway. Removes
21825 expensive duplicate checks.
21826 (Resolve_Call): Use new flag Is_Obsolescent and field
21827 Obsolescent_Warning so that pragma Obsolescent works on library
21829 Add support for wide wide character type
21830 (Resolve_Allocator): Replace the error message on wrong null-exclusion
21831 value by a warning message.
21832 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
21833 as fixed-point, and one of the operands is non-static and universal, it
21834 can only be an illegal exponentiation operation, in which case there is
21835 no real value to retrieve.
21837 * exp_strm.adb: Add support for wide wide character type
21838 (Build_Elementary_Input_Call): Compute the size of the stream element by
21839 querying the rep chain to find the Stream_Attribute attribute value.
21840 (Build_Elementary_Write_Call): Ditto.
21842 * sem_aggr.adb: Char_Literal_Value field is now a Uint
21843 Add support for wide wide character type
21844 Replace the error messages on wrong null-exclusion value by warnings
21845 as described in Ada 2005.
21846 (Resolve_Extension_Aggregate): Document the fact that the error
21847 message on class-wide expressions in extensions aggregates.
21849 * sem_case.adb: Add support for wide wide character type
21851 * sem_ch13.adb: Add support for wide wide character type
21852 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
21854 * sem_ch3.adb: Add support for wide wide character type
21855 (Process_Subtype): If constraint is illegal for the type, set Ekind of
21856 now-useless Itype, to prevent cascaded errors on a compiler built
21859 * sem_ch8.adb: Add with and use of Sem_Disp.
21860 (Analyze_Subprogram_Renaming): Replace unclean uses of
21861 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
21862 of Corresponding_Spec to Empty).
21863 (Attribute_Renaming): Replace use of Corresponding_Spec with
21864 Corresponding_ Formal_Spec and simplify condition.
21865 (Use_One_Package): Check that scope of homonym of identifier is defined,
21866 before checking whether it is a wrapper package.
21867 Add support for wide wide character type
21869 * sem_eval.adb: Add support for wide wide character type.
21870 (Eval_Arithmetic_Op): Check for compile time known signed integer
21871 overflow in the non-static case.
21872 (Subtypes_Statically_Match): A formal scalar type and its base type do
21873 not statically match.
21875 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
21876 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
21878 (Unit_Declaration_Node): Ditto.
21879 (Is_Variable_Prefix): For the case of an indexed component whose prefix
21880 has a packed array type, the prefix has been rewritten into a type
21881 conversion. Determine variable-ness from the converted expression.
21882 Handle wide wide character cases.
21884 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
21886 * stringt.ads, stringt.adb: Handle full UTF-32 range.
21887 Remove ["0A"] from comment, since it can look like a line terminator.
21888 Currently we don't permit this, but this is under discussion by the
21889 ARG, and it is easy enough to use a different example.
21891 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
21892 handling UTF-32 encoding for wide wide character.
21893 Implement new brackets coding ["hhhhhhhh"]
21894 Add UTF-8 encodings for full UTF-32 range
21896 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
21898 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
21899 bit range Add full UTF-32 support.
21900 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
21901 notify that constraint error will be raised at run-time
21902 because a null value is assigned to a null-excluding object.
21903 Remove some obsolete declarations and make Char_Code
21906 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
21907 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
21908 Rcheck subprograms.
21910 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
21911 wrong null-exclusion value by a warning message.
21912 (Enable_Range_Check): Do range check if the prefix is an
21913 explicit dereference whose designated object is an unconstrained array.
21914 Current algorithm for removing duplicate checks is over-eager in this
21917 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
21918 null-exclusion value by a warning message
21920 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
21921 completely. Add support for Uint2 field
21923 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
21924 exp_prag.adb: Char_Literal_Value field is now a Uint.
21926 * exp_util.adb (Insert_Actions): Replace
21927 N_Formal_Subprogram_Declaration by
21928 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
21929 Char_Literal_Value field is now a Uint.
21931 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
21932 defined for subprogram renaming declarations. When set, the field
21933 indicates the defining entity of a corresponding formal subprogram
21934 when the renaming corresponds to a formal subprogram association in an
21936 (Set_Corresponding_Formal_Spec): New procedure to return
21937 Corresponding_Formal_Spec field.
21938 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
21939 (which is now a subtype).
21940 Char_Literal_Value field is now a Uint
21942 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
21943 pointer to the base of the dispatch table.
21944 Minor changes to comments.
21945 (Controlling_Type): New function for determining the tagged type
21946 associated with a tagged primitive subprogram.
21947 (Expand_Dispatching_Call): Add support for a controlling actual that is
21948 directly a value of type Ada.Tag rather than a tagged object.
21950 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
21951 describing the new layout.
21952 (Dispatch_Table): The expander computes the actual array size, allocates
21953 the Dispatch_Table record accordingly, and generates code that displaces
21954 the base of the record after the Typeinfo_Ptr component. The access to
21955 these components is done by means of local functions.
21956 (Offset_To_Top): New function.
21957 (Typeinfo_Ptr): New function.
21958 (Get_TSD): Modified to access the new position of the TSD.
21959 (Set_TSD): Modified to save the TSD in its new position.
21961 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
21962 case of formal abstract subprograms. Add check and message for -gnat05.
21965 * sem_ch12.adb: Add with and use for Sem_Disp.
21966 (Analyze_Associations): Minor change from "=" to "in" for use of
21967 N_Formal_Subtype_Declaration (which is now a subtype).
21968 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
21969 N_Formal_Subtype_Declaration (which is now a subtype).
21970 (Analyze_Formal_Subprogram): Add handling for
21971 N_Formal_Abstract_Subprogram, marking the formal as abstract and
21972 dispatching, setting the controlling status of the formal parameters
21973 and result, and issuing an error if there is no controlling type for
21974 the formal subprogram.
21975 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
21976 which is an unclean use of that field, we set the new field
21977 Corresponding_Formal_Spec to make the formal subprogram available to
21978 processing in Analyze_Subprogram_Declaration.
21979 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
21980 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
21981 Constrained, so that it is is does not statically match its anonymous
21984 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
21985 abstract formal subprograms in error check for functions returning
21986 abstract types. Set scope of new designator for
21987 a parameterless subprogram, so that it is available when checking the
21988 body for nested subprograms, before full analysis of said body.
21989 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
21990 subprogram only if inner one comes from source.
21991 (Analyze_Function_Call): If the call is given in object notation, the
21992 analysis of the name rewrites the node and analyzes it with the proper
21993 argument list. After analyzing the name, if the call has been rewritten
21994 and the result type is set, no further analysis is needed.
21995 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
21996 mark in function specification, in a context where the formals are
21997 visible and hide outer homographs.
21999 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
22000 as the tagged type for the cases of abstract formal subprograms and
22001 renamings of those. Clean up spec comments.
22002 (Check_Dispatching_Context): Add error message to indicate "abstract
22003 procedure", covering the case of a call to a formal abstract procedure
22004 that has statically tagged operands.
22005 (Check_Dispatching_Call): Check for the case of an actual given by
22006 a tag-indeterminate function call whose type is an ancestor of the
22007 containing call's associated tagged type. This situation can occur
22008 for inherited primitives with function defaults. In this case we
22009 use the tagged type's tag directly as the controlling argument for
22011 (Expand_Call): Name change on call to Expand_Dispatch_Call.
22013 * sprint.adb (Sprint_Node_Actual): Split
22014 N_Formal_Subprogram_Declaration into two alternatives for the new
22015 cases N_Formal_Abstract_Subprogram_Declaration and
22016 N_Formal_Concrete_Subprogram_Declaration.
22017 Char_Literal_Value field is now a Uint.
22019 * trans.c: Get rid of junk Uint2 reference.
22020 Char_Literal_Value field is now a Uint.
22021 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
22022 (gigi): Correct third arg to gimplify_body.
22024 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
22025 (TYPE_LANG_FLAG_0): Check for record or union.
22027 * treepr.adb: Char_Literal_Value field is now a Uint
22029 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
22032 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
22033 Add full UTF-32 support
22034 Char_Code is now 32 bits
22036 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
22037 wide character UTF_32 line terminators.
22038 Initialize Main_Source_File to avoid error when no main
22041 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
22042 (Main_Source_File) when no main source has been loaded, to avoid
22045 2005-02-09 Robert Dewar <dewar@adacore.com>
22047 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
22048 Fix name of Set routine
22050 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
22053 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
22054 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
22057 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
22058 forms of Get_Line subprograms for AI-301.
22060 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22061 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
22062 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
22063 a-stwima.ads: Minor reformatting.
22065 2005-02-09 Doug Rupp <rupp@adacore.com>
22066 Thomas Quinot <quinot@adacore.com>
22068 * adaint.c, adaint.h
22069 [VMS] (to_ptr32): New function.
22070 (MAYBE_TO_PTR32): New macro.
22071 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
22073 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
22074 [VMS] (#define fork()): Remove since unneccessary.
22075 (__gnat_set_close_on_exec): New routine to support
22076 GNAT.OS_Lib.Set_Close_On_Exec.
22078 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
22079 the parent side as close-on-exec so that they are not inherited by the
22082 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
22083 set or clear the FD_CLOEXEC flag on a file descriptor.
22085 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
22086 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22090 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
22091 on the field if Pragma Component_Alignment (Storage_Unit).
22092 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
22093 side-effects as if it were a constant; also make SAVE_EXPR to protect
22095 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
22097 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
22098 (components_to_record): Test it.
22099 Fix improper usage of REFERENCE_CLASS_P.
22101 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
22104 * utils2.c: Minor reformatting.
22106 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
22107 handle other cases like RECORD_TYPE.
22109 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
22111 2005-02-09 Ed Schonberg <schonberg@adacore.com>
22113 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
22114 component of an array of arrays in an assignment context, and the
22115 aggregate has component associations that require sliding on
22116 assignment, force reanalysis of the aggregate to generate a temporary
22117 before the assignment.
22118 (Must_Slide): Make global to the package, for use in Gen_Assign.
22120 2005-02-09 Ed Schonberg <schonberg@adacore.com>
22122 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
22123 unchecked union with no inferable discriminants, return a
22124 Raise_Program_Error node, rather than inserting it at the point the
22126 (Expand_Record_Equality, Component_Equality): Handle properly the case
22127 where some subcomponent is an unchecked union whose generated equality
22128 code raises program error.
22130 2005-02-09 Doug Rupp <rupp@adacore.com>
22132 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
22133 [VMS] (#define exit hack): Remove.
22135 2005-02-09 Pascal Obry <obry@adacore.com>
22136 Arnaud Charlet <charlet@adacore.com>
22138 * init.c (__gnat_initialize): Add a new parameter eh which contains the
22139 address of the exception registration. The Win32 version of this
22140 routine calls __gnat_install_SEH_handler() to initialize the SEH
22141 (Structured Exception Handling) handler.
22142 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
22143 SEH (Structured Exception Handling) now.
22144 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
22145 (__gnat_initialize for ppc-vxworks): Adjust comments and the
22146 preprocessor condition protecting the call to the extra eh setup
22147 subprogram, which is only available for the ppc target.
22148 (__gnat_clear_exception_count): replaced reference to
22149 variable taskIdCurrent by call to taskIdSelf(), cleaner.
22151 * seh_init.c: New file.
22153 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
22154 (GNATBIND_OBJS): Idem.
22156 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
22157 routine takes a new parameter (a pointer to the exception registration
22158 for the SEH (Structured Exception Handling) support.
22160 * raise.h: (__gnat_install_SEH_handler): New prototype.
22161 Update copyright notice.
22163 * s-tassta.adb (Task_Wrapper): Declare the exception registration
22164 record and initialize it by calling __gnat_install_SEH_handler.
22166 2005-02-09 Vincent Celier <celier@adacore.com>
22168 * make.adb (Gnatmake): Do not fail when the main project has no object
22171 2005-02-09 Doug Rupp <rupp@adacore.com>
22173 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
22174 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
22175 [VMS]: Add translations for g-enblsp.adb.
22177 * s-asthan-vms.adb: Removed.
22178 * s-asthan-vms-alpha.adb: Added.
22180 2005-02-09 Pascal Obry <obry@adacore.com>
22182 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
22183 (LIBGNAT_OBJS): Add seh_init.o.
22185 2005-02-09 Arnaud Charlet <charlet@adacore.com>
22188 * Makefile.in: Link all gnat tools with -static-libgcc, since
22189 -shared-libgcc is now used by default on some systems (e.g. linux with
22191 Remove references to Makefile.prolog/generic, no longer used.
22193 2005-02-09 Vincent Celier <celier@adacore.com>
22195 * prj-makr.adb (Process_Directory): Put file name in canonical case
22196 before matching against the patterns.
22197 If gnatname has been invoked as <prefix>-gnatname
22198 then invoke the compiler as <prefix>-gcc, not just "gcc".
22200 2005-02-09 Ed Schonberg <schonberg@adacore.com>
22202 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
22203 with expansion disabled. The actual subtype is needed among other
22204 places when the selected component appears in the context of a loop
22205 bound, and denotes a packed array.
22206 (Operator_Check): Always use the first subtype in the
22207 error message, to avoid the appearance of internal base types.
22208 (Transform_Object_Operation): Copy each actual in full
22209 to the parameter associations of the constructed call, rather than
22210 using the shallow copy mechanism of New_Copy_List. This ensures that
22211 the chaining of named associations is done properly.
22212 (Complete_Object_Operation): Rewrite node, rather than
22213 replacing it, so that we can trace back to the original selected
22216 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
22217 and calls that use object notation, if the called function is not
22218 declared in a withed unit, place the elaboration constraint on the
22219 unit in the context that makes the function accessible.
22220 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
22221 imposes an elaboration constraint between two packages.
22223 2005-02-09 Ed Schonberg <schonberg@adacore.com>
22225 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
22226 views of a private type after handling its private dependents, to
22227 maintain proper stack discipline between entry and exit from the
22230 2005-02-09 Cyrille Comar <comar@adacore.com>
22232 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
22233 Minor reformatting.
22235 2005-02-09 Arnaud Charlet <charlet@adacore.com>
22237 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
22238 fields for foreign threads.
22240 2005-02-09 Doug Rupp <rupp@adacore.com>
22242 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
22243 recursion warnings when compiled with -gnatdm.
22245 2005-02-09 Robert Dewar <dewar@adacore.com>
22247 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
22248 Slight fix to documentation of -gnaty with no parameters
22250 * xr_tabls.ads: Add ??? comment for missing overall comment
22252 * xsinfo.adb: Make default file name be sinfo.h, since this is what
22253 we now use by default.
22255 * xsnames.adb: Adjust end of file test to look for five space followed
22256 by '#' instead of six spaces. The format of xsnames.adb was modified
22257 in the last update.
22259 * a-numeri.ads: Add reference to AI-388 for greek letter pi
22262 * clean.adb: Minor reformatting.
22264 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
22265 gnatname.adb: Minor reformatting
22266 Add 2005 to copyright output when utility is run
22268 * csets.adb: Eliminate obsolete comment
22270 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
22273 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
22275 2005-02-09 Sergey Rybin <rybin@adacore.com>
22277 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
22278 the difference between compact and incompact layout and add the record
22279 representation clause to the example illustrating different layouts.
22280 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
22281 component clauses").
22283 2005-02-09 Florian Villoing <villoing@adacore.com>
22285 * gnat_ugn.texi: Fix typos.
22286 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
22288 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
22289 in the generated documentation.
22291 2005-02-09 Arnaud Charlet <charlet@adacore.com>
22293 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
22295 Update linker wrapper when linking with non GNU C++.
22297 2005-02-09 Pascal Obry <obry@adacore.com>
22300 Document the procedure to debug the DllMain routine on Windows.
22301 Add note about -funwind-tables and mixed Ada and C/C++ programming in
22303 Document new BIND qualifer /RETURN_CODES=VMS.
22305 2005-02-09 Ben Brosgol <brosgol@adacore.com>
22307 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
22308 Edited gnatmetric chapter
22310 2005-02-09 Robert Dewar <dewar@adacore.com>
22313 Changes to document new wide wide character support
22315 Update documentation on Normalize_Scalars and Initialize_Scalars
22317 2005-02-09 Pascal Obry <obry@adacore.com>
22319 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
22321 2005-02-09 Jose Ruiz <ruiz@adacore.com>
22323 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
22324 from the VxWorks kernel) that is needed for getting the active
22325 priority of the different tasks.
22327 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
22328 Use a pragma Elaborate_Body in the spec file instead.
22329 Noticed by code reading.
22331 2005-02-09 Thomas Quinot <quinot@adacore.com>
22333 * exp_util.ads: Minor correction in comment.
22335 2005-02-09 Arnaud Charlet <charlet@adacore.com>
22337 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
22338 since this procedure is now too complex to be worth inlining.
22340 2005-02-09 Richard Henderson <rth@redhat.com>
22342 * utils.c (gnat_define_builtin): Remove.
22343 (gnat_install_builtins): Use build_common_builtin_nodes.
22345 2005-02-09 Arnaud Charlet <charlet@adacore.com>
22347 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
22348 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
22349 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
22350 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
22351 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
22352 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
22353 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
22354 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
22355 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
22356 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22357 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
22358 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
22359 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
22360 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
22361 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
22362 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
22363 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
22364 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
22365 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
22366 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
22367 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
22368 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
22369 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
22370 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
22371 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
22372 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
22373 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22374 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
22375 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
22376 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
22377 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22378 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
22379 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
22380 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
22383 2005-01-27 Laurent Guerby <laurent@guerby.net>
22385 * Makefile.in: Fix a-intnam.ads from previous commit,
22386 add 2005 to copyright.
22387 * a-intman-rtems.ads: Renamed to...
22388 * a-intnam-rtems.ads:
22390 2005-01-27 Laurent Guerby <laurent@guerby.net>
22392 * Makefile.in: Rename GNAT RTEMS specific files.
22393 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
22394 5rosinte.ads, 5rparame.adb: Replaced by files below.
22395 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
22396 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
22398 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
22399 Laurent Guerby <laurent@guerby.net>
22402 * 5rosinte.ads: Add No_Key constant.
22403 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
22404 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
22406 2005-01-26 Laurent Guerby <laurent@guerby.net>
22409 * i-cobol.adb (Valid_Numeric): Handle zero length case.
22411 2005-01-20 Richard Henderson <rth@redhat.com>
22413 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
22414 a-intnam-linux.ads and system-linux-alpha.ads.
22415 * a-intnam-linux-alpha.ads: Remove file.
22416 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
22417 * system-linux-alpha.ads: New file.
22419 2005-01-18 Jakub Jelinek <jakub@redhat.com>
22422 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
22423 set to the new string.
22425 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
22427 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
22430 2005-01-18 Richard Henderson <rth@redhat.com>
22432 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
22433 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
22435 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
22437 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
22439 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
22440 (GCC_ZCX_Support): Likewise.
22442 2005-01-11 Bastian Blank <waldi@debian.org>
22444 * system-linux-s390.ads: Define Preallocated_Stacks.
22445 * system-linux-s390x.ads: Likewise.
22447 2005-01-04 Arnaud Charlet <charlet@adacore.com>
22449 * gnat_ugn.texi: Fix texi errors with null variables.
22451 2005-01-03 Thomas Quinot <quinot@adacore.com>
22453 * gen-soccon.c: New utility program to generate g-soccon.ads
22456 * socket.c, gsocket.h: Split inclusion of system header files into a
22457 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
22459 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
22460 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22461 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
22462 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
22463 should not be edited by hand anymore, but should be regenerated using
22466 2005-01-03 Robert Dewar <dewar@adacore.com>
22467 Ed Schonberg <schonberg@adacore.com>
22468 Vincent Celier <celier@adacore.com>
22470 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
22471 on/off, since this is an obsolescent feature, for which we now generate
22474 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
22475 warning mode is set and obsolescent usage of this attribute occurs.
22476 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
22477 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
22478 predates, and partly motivates, the adoption of the AI.
22479 Implement new Ada 2005 attribute Mod
22481 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
22484 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
22486 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
22487 pragma restrictions.
22488 New entry for Ada 2005 attribute Mod.
22491 Add recognition of new pragma Restrictions No_Dependence
22492 Recognize restriction No_Obsolescent_Features at parse time
22494 * bcheck.adb: Add circuitry for checking for consistency of
22495 No_Dependence restrictions.
22497 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
22500 * restrict.ads, restrict.adb: Add subprograms to deal with
22501 No_Dependence restrictions.
22503 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
22506 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
22507 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
22509 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
22510 dummy parameter to scng instantiation.
22511 Needed for new restriction No_Obsolescent_Features
22513 * scn.adb: (Obsolescent_Check): New procedure
22514 Needed for new restriction No_Obsolescent_Features
22516 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
22517 specified by AI-285, needed for implementation of AI-388 (adding greek
22518 pi to Ada.Numerics).
22519 Add new generic formal to scng, needed for new restriction
22520 No_Obsolescent_Features.
22522 * s-rident.ads: Add new restriction No_Obsolescent_Features.
22524 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
22525 restrictions lines.
22526 (Scan_ALI): When finding an unexpected character on an R line, raise
22527 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
22528 Ignore_Errors is True, default restrictions are set and scanning of the
22529 ALI file continues with the next line. Also, when Bad_R_Line is raised
22530 and Ignore_Errors is True, skip to the end of le line.
22532 * sem_ch10.adb: Check that explicit with's do not violate
22533 No_Dependence restrictions.
22534 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
22535 illegal context clauses containing child units of instance.
22537 * sem_prag.adb: Processing and checking for new No_Dependence
22539 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
22540 analyze and check the External argument.
22542 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
22544 2005-01-03 Robert Dewar <dewar@adacore.com>
22546 * atree.adb: Add a fifth component to entities
22547 This allows us to add 32 flags and four new fields
22549 * atree.ads: Add a fifth component to entities
22550 This allows us to add 32 flags and four new fields
22552 * einfo.ads, einfo.adb: Document new fields and new flags now available
22553 Add routines for printing new fields
22555 * treepr.adb: Call routines to print out additional fields if present
22557 2005-01-03 Arnaud Charlet <charlet@adacore.com>
22559 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
22560 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
22562 * Makefile.in: Add support to build shared Ada libraries on solaris x86
22563 Remove gpr2make, replaced by gprmake.
22564 Remove references to gnatmem and libaddr2line.
22565 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
22566 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
22567 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
22568 a-numaux-darwin.ads and a-numaux-darwin.adb
22569 Enable mlib-tgt-lynxos.adb on lynxos.
22571 * Make-lang.in: Remove rules for gpr2make.
22572 When generating sdefault.adb, do not call Relocate_Path
22573 on S3 for function Target_Name, as it is not a path.
22574 Remove references to gnatmem and libaddr2line.
22576 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
22579 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
22581 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
22582 address is incompatible with its base type alignment constraints when
22583 this can be decided statically.
22585 2005-01-03 Olivier Hainque <hainque@adacore.com>
22587 * decl.c (compatible_signatures_p): New function. The intended purpose
22588 is to check if two function signatures for a call-site and a callee are
22589 compatible enough for the call to be valid. The underlying purpose is
22590 to check if a call to a mapped builtin is using the right interface.
22591 The current code actually does not check antyhing - this a placeholder
22592 for future refinements.
22593 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
22594 builtin calls for convention Intrinsic.
22596 * gigi.h (builtin_decl_for): Declare (new function).
22598 * utils.c (gnat_install_builtins): Install the target specific builtins.
22599 (builtin_decl_for): New function, provide a dummy body for now.
22601 2005-01-03 Geert Bosch <bosch@adacore.com>
22603 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
22604 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
22605 (Pred): Implement in terms of Succ.
22607 * trans.c (convert_with_check): Reimplement conversion of float to
22610 2005-01-03 Ed Schonberg <schonberg@adacore.com>
22611 Vincent Celier <celier@adacore.com>
22613 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
22614 bounds can be negative, and must be declared Int, not Nat.
22616 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
22617 array is checked after using the index in the array.
22619 * makegpr.adb (Add_Switches): Check if there is a package for the
22620 processor. If there is no package, do not look for switches.
22622 2005-01-03 Ed Schonberg <schonberg@adacore.com>
22624 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
22625 generation of predefined stream operations (specs and bodies) should
22626 proceed. Under various restrictions these subprograms must not be
22629 2005-01-03 Thomas Quinot <quinot@adacore.com>
22632 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
22633 amount of PCS-specific code in RACW stubs generation.
22634 (Copy_Specification): Set Etype on copied formal parameter entities, as
22635 this information is needed for PolyORB stubs generation.
22636 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
22637 variable Dynamic_Async.
22638 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
22639 (Build_RPC_Receiver_Specification): Make generic again, as recent
22640 changes have allowed RPC receivers to have the same profile for both
22641 variants of the PCS.
22642 Reorganise RPC receiver generation to reduce differences between the
22643 structure of GARLIC and PolyORB RPC receivers.
22644 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
22646 Simplify elaboration code for RCI packages.
22648 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
22649 generation to reduce differences between the structure of GARLIC and
22650 PolyORB RPC receivers.
22652 * s-stratt.adb: Fix typo in comment.
22654 2005-01-03 Thomas Quinot <quinot@adacore.com>
22656 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
22657 copied from Make_Init_Call).
22659 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
22660 reads and assignments on a temporary variable declared with appropriate
22663 2005-01-03 Robert Dewar <dewar@adacore.com>
22665 * i-c.adb (To_C): Raise CE if string is null and Append_Null
22667 2005-01-03 Robert Dewar <dewar@adacore.com>
22669 * i-cstrin.adb (Update): Do not append a null in form called with a
22670 String. This avoids unintended behavior.
22672 2005-01-03 Arnaud Charlet <charlet@adacore.com>
22675 * init.c: Fix warnings on Free BSD section.
22677 2005-01-03 Arnaud Charlet <charlet@adacore.com>
22680 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
22683 2005-01-03 Vincent Celier <celier@adacore.com>
22685 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
22686 libraries when Unique_Compile is True (-u switch).
22689 2005-01-03 Robert Dewar <dewar@adacore.com>
22691 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
22692 upper case letter or underscore after W, as allowed by spec.
22694 2005-01-03 Arnaud Charlet <charlet@adacore.com>
22696 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
22697 darwin port by using proper type definitions from header files.
22698 Use SIGTERM instead of SIGABRT for SIGADAABORT.
22700 2005-01-03 Robert Dewar <dewar@adacore.com>
22702 * par.adb: Enhance error message handling for configuration file
22705 2005-01-03 Robert Dewar <dewar@adacore.com>
22707 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
22708 removed during the previous update (test properly for case of dividing
22709 largest negative number by -1, which generates overflow).
22711 2005-01-03 Ed Schonberg <schonberg@adacore.com>
22712 Sergey Rybin <rybin@adacore.com>
22714 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
22715 to use as the defining identifier for a formal package.
22716 (Remove_Parent): If the instance takes place within (an instance of)
22717 a sibling, preserve private declarations of common parent.
22719 2005-01-03 Ed Schonberg <schonberg@adacore.com>
22721 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
22722 to determine whether one of the operands is a fixed-point type for
22723 which a user-defined multiplication or division operation might be
22726 * sem_res.adb (Valid_Conversion): The legality rules for conversions
22727 of access types are symmetric in Ada 2005: either designated type can
22730 2005-01-03 Vincent Celier <celier@adacore.com>
22732 * s-fileio.adb (Temp_File_Record): Change length of string component
22733 Name from L_tmpnam + 1 to max_path_len + 1.
22735 2005-01-03 Arnaud Charlet <charlet@adacore.com>
22737 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
22738 Self_Id.Deferral_Level = 0.
22739 (Do_Pending_Action): Move this function to the spec.
22741 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
22742 Do_Pending_Action explicitely when needed, in case we're using
22743 No_Abort restrictions.
22745 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
22746 deferral level since it will not get changed by the generated code.
22747 Keeping a default value of 1 would prevent some operations (e.g.
22748 select or delay) to proceed successfully.
22750 2005-01-03 Ben Brosgol <brosgol@adacore.com>
22751 Robert Dewar <dewar@adacore.com>
22752 Cyrille Comar <comar@adacore.com>
22754 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
22755 porting guide chapter (vms version).
22756 Revised doc title (removed "for native platforms") and subtitle.
22757 Add discussion on warning flag for obsolescent features. First we
22758 note that it applies to obsolete GNAT features, which was previously
22759 omitted. Second we contrast the behavior with that of the new
22760 Ada 2005 AI-368 restriction No_Obsolescent_Features.
22761 Preliminary rewriting of GNAT & libraries chapter in order to take
22762 into account default project locations & new project manager
22765 2005-01-03 Robert Dewar <dewar@adacore.com>
22767 * cstand.adb (Create_Operators): Clean up format and documentation of
22768 unary and binary operator result tables. No change in code, just
22769 reformatting and addition of comments.
22771 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
22772 sem_ch2.adb: Minor reformatting
22774 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
22775 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
22776 comments for Tree_Read and Tree_Write.
22778 2005-01-03 Pascal Obry <obry@adacore.com>
22780 * exp_attr.ads: Minor reformatting.
22782 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
22784 * comperr.adb (Compiler_Abort): Add specialized message for GAP
22787 2005-01-03 Ed Schonberg <schonberg@adacore.com>
22789 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
22790 whether the ancestor type is private, as may be the case with nested
22793 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
22796 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
22798 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
22800 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
22801 * utils2.c (build_unary_op): Likewise.
22803 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22805 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
22807 2004-12-19 Richard Henderson <rth@redhat.com>
22809 * trans.c (gigi): Update gimplify_body call.
22811 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
22813 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
22815 2004-12-07 Ed Falis <falis@adacore.com>
22817 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
22818 current task being suspended.
22820 * init.c (__gnat_clear_exception): added to reset VxWorks exception
22822 (__gnat_map_signal): removed test for current task being suspended.
22824 2004-12-07 Gary Dismukes <dismukes@adacore.com>
22826 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
22827 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
22828 targets (such as AAMP).
22830 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22832 * atree.adb (Visit_Itype): Create a new name for the generated itype,
22833 because the back-end may otherwise treat it as a redefinition of the
22836 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
22838 * back_end.adb (Scan_Back_End_Switches): Accept --param.
22840 * lang-specs.h: Accept --param.
22842 2004-12-07 Vincent Celier <celier@adacore.com>
22844 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
22845 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
22846 Current_Body_Suffix => Ada_Body_Suffix).
22847 Take into account Externally_Built attribute.
22849 * clean.adb (In_Extension_Chain): Always return False when one of the
22850 parameter is No_Project.
22851 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
22852 Ada_Language_Index).
22853 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
22854 Process_Languages for procedure Parse).
22856 * gnatcmd.adb (Carg_Switches): New table.
22857 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
22858 Adapt to name changes in package Prj (Current_Spec_Suffix =>
22859 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
22861 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
22862 Header_Num and function Hash are now declared in package Prj,
22865 * prj.adb (Suffix_Of): New function.
22866 (Set (Suffix)): New procedure.
22867 (Hash): One function moved from Prj.Com
22868 (Is_Present, Language_Processing_Data_Of): New functions
22869 (Set): Two new procedures
22870 (Add_Language_Name, Display_Language_Name): New procedures
22872 * prj.ads: (Suffix_Of): New function
22873 (Set (Suffix)): New procedure
22874 Add several types and tables for multi-language support.
22875 (Header_Num): Type moved from Prj.Com
22876 (Hash): Two functions moved from Prj.Com
22877 (Is_Present, Language_Processing_Data_Of): New functions
22878 (Set): Two new procedures
22879 (Add_Language_Name, Display_Language_Name): New procedures
22880 (Naming): Component name changes:
22881 Current_Spec_Suffix => Ada_Spec_Suffix,
22882 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
22883 Impl_Suffixes, Supp_Suffixes.
22884 (Project_Data): New components: Externally_Built, Supp_Languages,
22885 First_Language_Processing, Supp_Language_Processing, Default_Linker,
22886 Default_Linker_Path.
22888 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
22889 new package Language_Processing with its attributes (Compiler_Driver,
22890 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
22891 Binder_Driver, Default_Linker).
22893 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
22894 (Header_Num): Type moved to package Prj
22896 * prj-env.adb: Adapt to name changes in package Prj
22897 (Current_Spec_Suffix => Ada_Spec_Suffix,
22898 Current_Body_Suffix => Ada_Body_Suffix).
22900 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
22901 default to the project path, except the "-" is one of the directories
22902 in env var ADA_PROJECT_PATH.
22903 (Current_Project_Path): Global variable, replacing Project_Path
22904 that was in the body of Prj.Part.
22905 (Project_Path): New function
22906 (Set_Project_Path): New procedure
22907 Initialize Current_Project_Path during elaboration of the package
22908 Remove dependency on Prj.Com, no longer needed
22910 * prj-ext.ads (Project_Path): New function
22911 (Set_Project_Path): New procedure
22913 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
22914 suffix is defined for language <lang>.
22915 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
22916 accessing directly the components of Naming.
22917 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
22918 Reorganise of this package.
22919 Break procedure Check in several procedures.
22921 * prj-nmsc.ads: Replace all procedures (Ada_Check,
22922 Other_Languages_Check and Language_Independent_Check) with a single
22925 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
22926 Process_Languages, no longer needed.
22928 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
22929 Current_Project_Path.
22930 Remove elaboration code, moved to the body of Prj.Ext
22931 Use new function Prj.Ext.Project_Path instead of old variable
22933 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
22934 When comparing with project paths on the stack, first put the resolved
22935 path in canonical case.
22936 (Parse_Single_Project): Set the path name of the project file in the
22937 tree to the normalized path.
22939 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
22940 parameter Process_Languages, no longer needed.
22941 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
22942 Other_Languages_Check.
22944 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
22945 to store the resolved canonical path of the project file.
22946 Remove dependency to Prj.Com, no longer needed
22948 * prj-util.adb: Adapt to name changes in package Prj
22949 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
22952 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
22953 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
22954 Externally_Built, Include_Option, Language_Processing.
22956 * makegpr.adb: Numerous changes due to changes in packages
22959 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
22960 default to the project path, except whe "-" is one of the directories
22961 in env var ADA_PROJECT_PATH.
22962 (Gnatls): In verbose mode, add the new section "Project Search Path:"
22964 2004-12-07 Robert Dewar <dewar@adacore.com>
22966 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
22968 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
22971 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
22972 flag. No longer needed now that we handle this in gnat1drv.adb.
22974 * repinfo.ads: Minor reformatting
22976 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22977 Olivier Hainque <hainque@adacore.com>
22978 Eric Botcazou <ebotcazou@adacore.com>
22980 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
22981 TYPE_SIZE_UNIT of result type if SIZE is not specified.
22982 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
22983 of a bitfield, which we know is useless and causes trouble because of
22984 alignment implications.
22986 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
22988 (process_attributes): Clear DECL_COMMON again when a section attribute
22990 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
22991 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
22992 (create_field_decl): Special case ADDRESSABLE negative to mean
22993 "no bitfield creation", to be used by make_aligning_type. Don't
22994 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
22995 fields claimed addressable still have to be bitfields. Use
22996 value_factor_p instead of a raw binop construction to check for the
22997 position's alignment.
22999 2004-12-07 Geert Bosch <bosch@adacore.com>
23001 * eval_fat.adb: Revert previous change.
23003 2004-12-07 Thomas Quinot <quinot@adacore.com>
23004 Ed Schonberg <schonberg@adacore.com>
23006 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
23007 with an implicit dereference as its prefix, use
23008 Insert_Explicit_Dereference instead of merely rewriting the prefix into
23009 an explicit dereference. This ensures that a reference to the original
23010 prefix is generated, if appropriate.
23012 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
23013 dereference is rewritten to an explicit one, generate a reference to
23014 the entity denoted by its prefix using the original prefix node, so
23015 the dereference can be properly recorded as a read of the denoted
23016 access value, if appropriate.
23018 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
23019 emitting 'assigned but never read' warning on a variable on the basis
23020 that it has an access type.
23021 (Check_References): Emit unreferenced warning when the scope is a
23024 2004-12-07 Robert Dewar <dewar@adacore.com>
23025 Ed Schonberg <schonberg@adacore.com>
23027 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
23030 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
23031 leaving call unchanged.
23032 This deals with the case where the pragma Import specified
23033 an external name, to be handled by the back end.
23035 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
23036 subprogram which is Imported with convention Intrinsic if an
23037 External_Name argument is specified.
23038 (Process_Import_Or_Interface): Properly diagnose link name argument.
23039 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
23040 with Sem_Ch6.Cannot_Inline.
23041 (Process_Inline): Provide separate warning for inapplicable inline
23043 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
23044 treatment is uniform on different targets.
23046 2004-12-07 Ed Schonberg <schonberg@adacore.com>
23048 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
23049 construct is rewritten, preserve end label to permit source navigation.
23051 2004-12-07 Thomas Quinot <quinot@adacore.com>
23053 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
23054 Specific_Build_Stub_Target): New subprograms.
23055 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
23056 the PCS implementation used, using the above PCS-customized subprograms.
23057 Minor reformatting.
23058 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
23059 for generation of DSA code targeted to the PolyORB PCS.
23060 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
23061 implementation of the partition communication subsystem in ancillary
23063 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
23064 PolyORB_Support.Build_Stub_Type): New subrograms containing the
23065 PCS-specific part of Add_Stub_Type.
23066 (Insert_Partition_Check): Use runtime library function to perform
23069 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
23070 (RE_Same_Partition): New entity, from s-parint.
23072 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
23074 2004-12-07 Gary Dismukes <dismukes@adacore.com>
23076 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
23077 Output the copyright message on a separate line from the version
23080 2004-12-07 Joel Brobecker <brobecker@adacore.com>
23082 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
23083 compile-time warning.
23085 2004-12-07 Robert Dewar <dewar@adacore.com>
23087 * g-regpat.adb: (Match): Change a misuse of or to or else
23089 2004-12-07 Ed Schonberg <schonberg@adacore.com>
23092 (Generate_Reference): Handle properly a reference to an entry formal,
23093 when an accept statement has a pragma Unreferenced for it.
23095 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
23096 and the Has_Pragma_Unreferenced flag for each formal before analyzing
23097 the body, to ensure that warnings are properly emitted for each accept
23098 statement of a given task entry.
23100 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
23102 * Makefile.in: Add support for foreign threads on VMS.
23104 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23106 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
23108 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
23110 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
23112 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
23114 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
23116 2004-12-07 Robert Dewar <dewar@adacore.com>
23118 * nlists.adb (Prepend_Debug): Remove parameters and nest within
23120 (Remove_Next_Debug): Same fix
23122 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
23123 maintain back pointers now, though we did not used to, and comments
23125 (Prepend): Remove pragma Inline.
23126 (Remove_Next): Same cleanup
23128 2004-12-07 Thomas Quinot <quinot@adacore.com>
23130 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
23131 used to record an implicit dereference as a read operation on its
23132 prefix when operating under -gnatc. Necessary to avoid spurious
23133 'variable assigned but never read' warnings in that mode.
23134 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
23135 is a non-overloaded implicit dereference, call the above subprogram to
23136 ensure proper recording of references.
23138 2004-12-07 Gary Dismukes <dismukes@adacore.com>
23140 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
23141 to be resolved later as part of Analyze_Iteration_Scheme's call to
23144 2004-12-07 Ed Schonberg <schonberg@adacore.com>
23146 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
23147 prefix is not a scalar type, place error message on prefix, not on
23150 2004-12-07 Bernard Banner <banner@adacore.com>
23152 * vxaddr2line.adb: Add support for x86 vxworks
23154 2004-12-07 Thomas Quinot <quinot@adacore.com>
23156 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
23157 documentation of the behaviour of these functions when passed an IP
23158 address that has no record in the system hosts database and no reverse
23161 * cstand.adb, a-tags.ads: Fix typos in comment.
23163 2004-12-07 Robert Dewar <dewar@adacore.com>
23165 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
23166 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
23167 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
23168 s-poosiz.ads: Minor reformatting
23170 * make.adb: Minor reformatting
23171 Add some ??? comments asking for more comments
23173 * s-poosiz.adb: Minor reformatting
23174 Add comments on alignment requirement
23176 * sinfo.ads: Remove obsolete comment and fix typo.
23178 2004-12-07 Vincent Celier <celier@adacore.com>
23179 Sergey Rybin <rybin@adacore.com>
23181 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
23182 Files" with the new tool and package names.
23183 Reformatting to suppress most of the warnings for line too long
23184 Document the new section "Project Search Path:" in the output of
23186 Add gnatmetric section
23188 2004-12-07 Vincent Celier <celier@adacore.com>
23190 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
23191 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
23192 and -eit to -ept. Added qualifier
23193 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
23195 2004-11-27 Andreas Schwab <schwab@suse.de>
23197 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
23199 2004-11-25 Arnaud Charlet <charlet@adacore.com>
23201 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
23202 internal implementation unit GNAT.Sockets.Thin,
23203 as their usage for sockets is non-portable (using the read and write
23204 functions from the system runtime library is fine on UNIX but won't
23205 work under Windows).
23207 * mingw32.h: Update copyright notice.
23209 2004-11-25 Arnaud Charlet <charlet@adacore.com>
23211 * ada-tree.h: Minor reformatting of previous change to avoid lines
23212 longer than 79 characters.
23214 2004-11-25 Olivier Hainque <hainque@adacore.com>
23216 * tb-gcc.c: GCC infrastructure based implementation of
23219 2004-11-24 Steven Bosscher <stevenb@suse.de>
23221 * misc.c (gnat_post_options): Don't clear
23222 flag_inline_functions.
23224 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
23227 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
23230 2004-11-21 Andreas Jaeger <aj@suse.de>
23232 * stylesw.adb: Change Style_Check_Subprogram_Order to
23233 Style_Check_Order_Subprograms.
23235 2004-11-18 Arnaud Charlet <charlet@adacore.com>
23237 * adaint.h, adaint.c
23238 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
23240 Add also a cast to kill another warning.
23241 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
23242 parameter with the priority class of the parent process instead of
23243 always using the NORMAL_PRIORITY_CLASS.
23244 (__gnat_dup): New function.
23245 (__gnat_dup2): New function.
23246 (__gnat_is_symbolic_link): Enable the effective body of this
23247 function when __APPLE__ is defined.
23249 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
23252 2004-11-18 Olivier Hainque <hainque@adacore.com>
23254 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
23255 address of which may be used to represent "others" and "all others"
23256 choices in exception tables, instead of the current harcoded
23257 (void *)0 and (void *)1.
23258 (Setup_Exception): Do nothing in the GNAT SJLJ case.
23260 * gigi.h (others_decl, all_others_decl): New decls representing the
23261 new Others_Value and All_Others_Value objects.
23262 (struct attrib): Rename "arg" component as "args", since GCC expects a
23263 list of arguments in there.
23265 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
23266 corresponding objects exported by a-exexpr, instead of hardcoded dummy
23269 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
23270 others_decl and all_others_decl instead of hardcoded dummy addresses
23271 to represent "others" and "all others" choices, which is cleaner and
23272 more flexible with respect to the possible eh pointer encoding policies.
23274 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
23275 (process_attributes): Account for the naming change of the "args"
23276 attribute list entry component.
23278 * decl.c (build_attr_list): Rename into prepend_attributes to allow
23279 cumulating attributes for different entities into a single list.
23280 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
23281 attributes for the current entity and propagate first subtype
23282 attributes to other subtypes.
23283 <E_Procedure>: Attribute arguments are attr->args and not
23284 attr->arg any more.
23285 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
23286 argument provided, as this is what GCC expects. Use NULL_TREE instead
23289 2004-11-18 Robert Dewar <dewar@adacore.com>
23291 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
23292 Minor reformatting througout (including new function specs)
23293 Add ??? comments asking for clarification.
23295 2004-11-18 Thomas Quinot <quinot@adacore.com>
23297 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
23298 incomplete duplicate implementation of this subprogram from butil.
23300 2004-11-18 Thomas Quinot <quinot@adacore.com>
23302 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
23303 procedures factors the common processing for building an RPC receiver
23304 for an RCI package or an RACW type.
23305 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
23306 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
23307 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
23309 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
23311 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
23313 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
23314 distribution subprogram identifiers that are either subprogram numbers
23316 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
23317 string distribution identifiers assigned to a given subprogram.
23318 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
23319 (Add_RAS_Dereference_TSS): Add comments.
23320 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
23321 is not referenced yet because it will be used by the PolyORB DSA
23323 (Insert_Partition_Check): Remove fossile code.
23324 (First_RCI_Subprogram_Id): Document this constant.
23325 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
23327 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
23328 replaced with calls to Get_Library_Unit_Name_String. Previously there
23329 were several instances of the same code in different locations in the
23330 compiler; this checkin completes the replacement of all of these
23331 instances with calls to a common subprogram.
23332 Minor reformatting.
23334 * sem_dist.adb: Remove comment noting that RPC receiver generation
23335 should be disabled for RACWs that implement RASs.
23336 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
23338 * sem_util.ads, sem_util.adb (Has_Stream): New function
23339 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
23340 qualified name of a library unit into the name buffer.
23341 (Note_Possible_Modification): Generate a reference only
23342 if the context comes from source.
23344 * snames.ads (PCS_Names): New subtype corresponding to names of
23345 supported implementations of the Partition Communication Subsystem
23346 (PCS) (i.e. the runtime library support modules for the distributed
23349 2004-11-18 Robert Dewar <dewar@adacore.com>
23350 Ed Schonberg <schonberg@adacore.com>
23352 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
23353 (Has_Rep_Pragma): New function
23354 (Has_Attribute_Definition_Clause): New function
23355 (Record_Rep_Pragma): Moved here from sem_ch13.adb
23356 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
23358 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
23360 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
23361 (Expand_Pragma_Psect_Object): New procedure
23362 These procedures contain the revised and cleaned up processing for
23363 these two pragmas. This processing was formerly in Sem_Prag, but
23364 is more appropriately moved here. The cleanup involves making sure
23365 that the pragmas are properly attached to the tree, and that no
23366 nodes are improperly shared.
23368 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
23369 pragmas to Exp_Prag, which is more appropriate.
23370 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
23371 check for duplicates Remove use of Is_Psected flag, no longer needed.
23372 Use new Make_String_Literal function with string.
23374 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
23375 that are functions return universal values, that have to be converted
23376 to the context type.
23377 Use new Make_String_Literal function with string.
23378 (Get_Stream_Convert_Pragma): New function, replaces the use of
23379 Get_Rep_Pragma, which had to be kludged to work in this case.
23381 * freeze.adb: Use new Has_Rep_Pragma function
23383 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
23384 function with string.
23385 Use new Has_Rep_Pragma function.
23387 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
23390 2004-11-18 Robert Dewar <dewar@adacore.com>
23392 * errout.ads, errout.adb: (First_Sloc): New function
23394 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
23395 check (-gnatyx) instead of being included as a redundant construct
23398 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
23399 Style_Check_Order_Subprograms.
23401 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
23402 stylesw.adb: Add Style_Check_Xtra_Parens
23404 * usage.adb: Add line for -gnatyx (check extra parens)
23406 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
23408 2004-11-18 Ed Schonberg <schonberg@adacore.com>
23409 Robert Dewar <dewar@adacore.com>
23411 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
23412 discriminant of a constrained subtype, analyze the copy of the
23413 corresponding constraint, because in some cases it may be only
23414 partially analyzed.
23415 Removes long-lived ??? comments.
23417 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
23418 handled controlled or secondary-stack expressions within the
23419 iteration_scheme of a loop.
23421 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
23422 bounds that may contain functions calls, to prevent memory leaks when
23423 the bound contains a call to a function that uses the secondary stack.
23424 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
23425 generate temporaries for loop bounds that might contain function calls
23426 that require secondary stack and/or finalization actions.
23428 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
23429 selected component and the selector is overloadable (not just a
23430 function) treat as function call, Analyze_Call will disambiguate if
23432 (Analyze_Selected_Component): Do not generate an actual subtype for the
23433 selected component if expansion is disabled. The actual subtype is only
23434 needed for constraint checks.
23435 (Analyze_Allocator): If restriction No_Streams is set, then do
23436 not permit objects to be declared of a stream type, or of a
23437 composite type containing a stream.
23439 * restrict.ads: Remove the a-stream entry from Unit_Array, since
23440 No_Streams no longer prohibits with'ing this package.
23442 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
23443 discriminants, but the parent base has unknown discriminants, there is
23444 no discriminant constraint to inherit. Such a discrepancy can arise
23445 when the actual for a formal type with unknown discriminants is a
23446 similar private type whose full view has discriminants.
23447 (Analyze_Object_Declaration): If restriction No_Streams is set, then
23448 do not permit objects to be declared of a stream type, or of a
23449 composite type containing a stream.
23451 2004-11-18 Ed Schonberg <schonberg@adacore.com>
23453 * exp_dbug.ads: Update documentation to reflect simpler encoding for
23454 protected operations.
23456 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
23457 generated name, it complicates decoding in gdb and hinders debugging
23458 of protected operations.
23459 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
23460 flag for the protected entry barrier function.
23461 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
23462 flag for the protected entry function.
23464 2004-11-18 Nicolas Setton <setton@adacore.com>
23466 * expect.c: Define __unix__ when __APPLE__ is defined.
23468 * Makefile.in: Inform the value of the variable GMEM_LIB in the
23469 Darwin-specific section.
23471 * lang-specs.h: Change the placement of the %1 marker.
23472 Works around the fact that gcc adds -fPIC by default under Darwin.
23474 2004-11-18 Ed Schonberg <schonberg@adacore.com>
23476 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
23477 type of the object with the packed array type, set the Analyzed flag
23478 on the object if it is an entity or simple indexed component, to avoid
23479 spurious type errors.
23481 2004-11-18 Gary Dismukes <dismukes@adacore.com>
23483 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
23484 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
23485 separate line from the version message.
23487 2004-11-18 Ed Falis <falis@adacore.com>
23489 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
23491 (init_float): Eliminate initialization of floating point status for
23492 AE653. The instructions have no effect for vThreads.
23494 2004-11-18 Vincent Celier <celier@adacore.com>
23496 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
23497 gnatbind is invoked with -shared.
23499 2004-11-18 Jose Ruiz <ruiz@adacore.com>
23501 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
23502 for Detect_Blocking which is redundant with the check done within the
23503 procedure Protected_Single_Entry_Call.
23504 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
23505 Detect_Blocking which is redundant with the check done within the
23506 procedure Protected_Single_Entry_Call.
23508 2004-11-18 Vincent Celier <celier@adacore.com>
23510 * makegpr.adb (Compile): Put the compiling switches (in package
23511 Compiler and on the command line) immediately after "-c", instead of
23512 at the end of the command line invocation of the compiler, when
23513 compiling a non-Ada file.
23514 (Build_Global_Archive): When there is no need to rebuild the archive,
23515 set Global_Archive_Exists, so that the archive is passed to the linker
23518 2004-11-18 Robert Dewar <dewar@adacore.com>
23519 Sergey Rybin <rybin@adacore.com>
23522 Remove extra paren check from list of checks for redundant constructs
23523 Add documentation of new -gnatyx style check (check extra parens)
23524 Remove paragraph about gnatelim debug options.
23526 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
23527 objects rather than forbidding dependencies on the package Ada.Streams.
23529 * sinfo.ads: Add ??? note that we should document pragmas passed to
23532 * g-expect.ads: Fix a few typos in the comments.
23534 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
23536 * misc.c (gnat_handle_option): Use %< and %> for quoting in
23539 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23541 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
23543 2004-11-07 Andreas Schwab <schwab@suse.de>
23545 * Makefile.in (install-gnatlib): Remove spurious hyphen.
23547 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
23550 * Makefile.in (darwin): Set soext to .dylib.
23552 2004-10-26 Vincent Celier <celier@gnat.com>
23553 Thomas Quinot <quinot@act-europe.fr>
23555 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
23556 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
23557 there is no use of GNAT.Sockets.Constants.
23558 Remove remaining pragma Import for C_Write
23559 Remove C_Read and C_Write from internal implementation unit
23560 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
23561 the read and write functions from the system runtime library is fine
23562 on UNIX but won't work under Windows).
23564 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
23565 (Check_Selector): Use C_Recv instead of C_Read.
23566 Selectors are the GNAT.Sockets abstraction to perform a select()
23567 call on a set of descriptors. To allow abortion of an ongoing
23568 select operation, some data is written to a dedicated socket that
23569 is always monitored.
23570 Under Windows, the write and read library functions cannot operate
23571 on sockets, so we need to use send and recv instead, which is portable
23572 across all supported platforms.
23574 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
23575 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
23576 (using the read and write functions from the system runtime library is
23577 fine on UNIX but won't work under Windows).
23579 2004-10-26 Nicolas Setton <setton@act-europe.fr>
23581 * mlib-tgt-darwin.adb: New file.
23583 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23584 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23585 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
23586 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
23589 * Makefile.in: Add support for building shared libraries under Darwin.
23590 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
23591 the low level EH init subprogram to be called from __gnat_initialize.
23593 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
23594 indicates which options to pass to the archive indexer.
23596 * mlib-utl.adb: Add support for calling ranlib with additional
23597 options. This is needed for instance under Mac OS X.
23598 (Ranlib_Options): New global variable, used to store the potential
23599 options to pass to ranlib.
23600 (Ar): Use Ranlib_Options when spawning ranlib.
23601 (Initialize): Set the value of ranlib option.
23603 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
23605 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
23606 instead of 8K, to reflect the real potential needs for stack-checking
23609 2004-10-26 Pascal Obry <obry@gnat.com>
23611 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
23613 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
23614 Windows only the initial thread stack size can be set so it is good to
23615 start we a low stack size.
23616 The OS will adjust the size as needed.
23618 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
23619 Nicolas Setton <setton@act-europe.fr>
23621 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
23622 "__unix__" instead of "unix".
23623 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
23624 sections were just mistakenly ignored. The former is
23625 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
23626 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
23627 of hpux. This prevents an unwanted definition of the symbol
23628 convert_addresses in adaint.o.
23630 2004-10-26 Gary Dismukes <dismukes@gnat.com>
23632 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
23633 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
23635 2004-10-26 Cyrille Comar <comar@act-europe.fr>
23637 * a-filico.ads, a-filico.adb: fix incorrect header.
23639 2004-10-26 Javier Miranda <miranda@gnat.com>
23641 * a-ststio.ads: Fix typo in identifier
23643 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
23645 * sem_ch4.adb: Minor reformatting.
23647 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23649 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
23650 enabled, check the result of unary and binary operations when the
23651 expression is the right-hand side of an assignment.
23653 2004-10-26 Vincent Celier <celier@gnat.com>
23655 * clean.adb (Delete): Do not output warnings when in quiet output and
23656 not in verbose mode.
23657 (Force_Deletions): New Boolean flag, defaulted to False
23658 (Delete): Only delete a file if it is writable, and when
23659 Force_Deletions is True.
23660 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
23661 (Usage): Line for new switch -f
23662 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
23665 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
23667 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
23668 JM type only if its size matches that of the wrapper. When a size is
23669 prescribed and the field is not aliased, remove the wrapper of a JM
23670 type only if the size is not greater than that of the packed array.
23671 (gnat_to_gnu_entity): Change the extension of packed array wrappers
23674 2004-10-26 Geert Bosch <bosch@gnat.com>
23676 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
23677 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
23678 (Pred): Implement in terms of Succ.
23680 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23682 * exp_aggr.adb (Safe_Component): An aggregate component that is an
23683 unchecked conversion is safe for in-place use if the expression of the
23684 conversion is safe.
23685 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
23686 be expandable in place even if the aggregate does not come from source.
23687 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
23688 designated object of an allocator in place, rather than building it
23689 first on the stack. The previous scheme forces a full copy of the array,
23690 and may be altogether unsusable if the size of the array is too large
23691 for stack allocation.
23693 2004-10-26 Robert Dewar <dewar@gnat.com>
23695 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
23696 compares if the component is atomic.
23698 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
23699 array assignment if the component type is atomic.
23701 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23702 Eric Botcazou <ebotcazou@act-europe.fr>
23704 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
23705 is aliased and is a by_reference type, do not pass by copy.
23706 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
23707 detect whether the call is in the right side of an assignment or
23708 the expression of an object declaration. Recurse on component
23709 association within aggregates.
23710 Call it in the condition that determines whether the temporary is
23711 necessary for correct stack-checking.
23713 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
23715 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
23716 RACW_Type, used in the PolyORB version.
23717 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
23718 version and the GARLIC version.
23720 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
23721 Rename RCI_Info to RCI_Locator for better consistency between the
23722 GARLIC and PolyORB versions of the distributed systems annex.
23723 (DSA_Implementation_Name): This enumeration lists the possible
23724 implementations of the Partition Communication Subsystem for the
23725 Distributed Systems Annex (DSA). The three available implementations
23726 are the dummy stub implementation (No_DSA), and two versions based on
23727 two different distribution runtime libraries: GARLIC and PolyORB. Both
23728 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
23730 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
23733 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
23734 between the GARLIC and PolyORB versions of the distributed systems
23736 Remove RE_Unbounded_Reclaim_Pool since it is unused.
23738 2004-10-26 Gary Dismukes <dismukes@gnat.com>
23740 * gnat1drv.adb: Suppress calling the back end when
23741 Frontend_Layout_On_Target is true.
23743 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
23745 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
23746 Set_Read_Only): New subprograms.
23747 These new routines allow the user to set or unset the Owner execute
23748 and Owner write permission flags on a file.
23750 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
23751 GNAT.OS_Lib.Set_Executable instead of rolling our own.
23753 2004-10-26 Matthew Gingell <gingell@gnat.com>
23755 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
23757 2004-10-26 Pascal Obry <obry@gnat.com>
23759 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
23760 memory before the faulting page we properly test the process read
23761 access for this address using appropriate Win32 routine.
23762 (HPUX sections): guard with "__hpux__" instead of "hpux".
23764 2004-10-26 Robert Dewar <dewar@gnat.com>
23766 * lib-xref.adb (Generate_Reference): Don't complain about reference to
23767 entry parameter if pragma Unreferenced set, since we do not properly
23768 handle the case of multiple parameters.
23770 2004-10-26 Vincent Celier <celier@gnat.com>
23772 * prj-env.adb: (Contains_ALI_Files): New Boolean function
23773 (Ada_Objects_Path.Add): For a library project, add to the object path
23774 the library directory only if there is no object directory or if the
23775 library directory contains ALI files.
23776 (Set_Ada_Paths.Add.Recursive_Add): Ditto
23778 2004-10-26 Vincent Celier <celier@gnat.com>
23780 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
23781 extension of library projects.
23783 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
23784 path defaults to ".:<prefix>/lib/gnat".
23785 (Parse): For an extending all project, allow direct import of a project
23786 that is virtually extended.
23788 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
23789 the specified name is directly imported, return its ID. Otherwise, if
23790 an extension of this project is imported, return the ID of the
23793 2004-10-26 Robert Dewar <dewar@gnat.com>
23795 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
23796 (Sub3): New procedure, used by Scaled_Divide
23797 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
23798 correct more than one instance of failure to propagate carries
23800 (Double_Divide): Handle overflow case of largest negative number
23801 divided by minus one.
23803 * s-arit64.ads (Double_Divide): Document that overflow can occur in
23804 the case of a quotient value out of range.
23807 2004-10-26 Robert Dewar <dewar@gnat.com>
23809 * s-bitops.adb (Bit_Eq): Remove redundant check.
23811 * s-bitops.ads: Minor comment updates
23812 Change some occurrences of Address to System.Address
23814 * s-carsi8.ads: Fix minor cut-and-paste error in comments
23816 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23818 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
23819 accessibility check to prefix that is a protected operation.
23821 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23823 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
23824 empty, post message on stub.
23826 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23827 Javier Miranda <miranda@gnat.com>
23829 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
23830 current instance appears within a unit that is directly in the context
23832 Used to determine whether the body of the instance should be analyzed
23833 immediately after its spec, to make its subprogram bodies available
23834 for front-end inlining.
23835 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
23836 constraint is not allowed on the component type (AARM 12.5.3(3))
23838 2004-10-26 Cyrille Comar <comar@act-europe.fr>
23840 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
23841 'Storage_Pool): enhance, document & limit detection of non-sharable
23844 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
23846 * s-pooglo.ads: Add more documentation now that this pool is properly
23849 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23851 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
23852 or protected type with discriminants, do not constrain the
23853 corresponding record type if the subtype declaration has no
23854 discriminant constraints. This can be the case in source code, or in
23855 the subtype declaration created to rename an actual type within an
23858 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23860 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
23861 different kind of stub (possibly wrong name for file), do not check
23863 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
23864 includes call to some function that returns an unconstrained type, do
23867 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23869 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
23870 appear in the code for the main unit. Dependencies among units in the
23871 context of the main unit are established when those other units are
23872 compiled. Otherwise spurious elaboration constraints can generate
23873 incorrect elaboration circularities.
23875 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
23876 Ed Schonberg <schonberg@gnat.com>
23878 * sem_util.adb (Is_Aliased_View): Defend against the case where this
23879 subprogram is called with a parameter that is not an object name. This
23880 situation arises for some cases of illegal code, which is diagnosed
23881 later, and in this case it is wrong to call Is_Aliased, as that might
23882 cause a compiler crash.
23883 (Explain_Limited_Type): Refine previous fix to include
23884 inherited components of derived types, to provide complete information.
23886 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
23887 is the prival for a protected object.
23888 It is necessary to mark this entity as a variable, in addition to
23889 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
23890 modified to avoid checking the Aliased flag on entities that are not
23891 objects. (Checking that flag for non-objects is erroneous and could
23892 lead to a compiler crash).
23894 2004-10-26 Robert Dewar <dewar@gnat.com>
23896 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
23897 X_Frac = 0.5, then we know that the number X must be positive.
23898 (Succ): Remove the same redundant test, and also fix the primary test
23899 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
23901 (Decompose): Add fuller comments to spec
23903 2004-10-26 Pascal Obry <obry@gnat.com>
23905 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
23906 validity (process must have read access). Set to 0 in all other cases.
23907 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
23908 violation on Win32.
23909 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
23910 segmentation violation.
23912 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
23914 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
23915 whose type is a constructed subtype of an aliased object with an
23916 unconstrained nominal subtype, convert the actual to the constructed
23917 subtype before taking its address.
23919 2004-10-26 Vincent Celier <celier@gnat.com>
23921 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
23922 (Is_Path_Name_Case_Sensitive): New function
23924 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
23925 (Base_Name, Simple_Name, Current_Directory, Compose,
23926 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
23929 2004-10-26 Cyrille Comar <comar@act-europe.fr>
23930 Vasiliy Fofanov <fofanov@act-europe.fr>
23931 Vincent Celier <celier@gnat.com>
23933 * gnat_ugn.texi: Generalize "finding memory problems" section into a
23934 "memory management issues" section and document some of the useful
23935 memory pools provided as part of the GNAT library.
23936 Remove "virtual" from declaration of A::method2 in
23937 the simple example of Ada/C++ mixed system.
23938 Library Projects may be virtually extended: their virtual extensions
23939 are not Library Projects.
23940 Added section on extending project hierarchies.
23942 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23944 * adaint.c (__gnat_get_libraries_from_registry): Cast value
23946 (__gnat_portable_spawn): Remove const.
23948 * mingw32.h (MAXPATHLEN): Check for previous definition.
23950 2004-10-17 Matthias Klose <doko@debian.org>
23952 * gnatvsn.ads: Set gnat library version to 4.0.
23954 2004-10-05 Vincent Celier <celier@gnat.com>
23956 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
23958 2004-10-04 Laurent Guerby <laurent@guerby.net>
23961 * Makefile.in: Define and use RANLIB_FLAGS.
23963 2004-10-04 Pascal Obry <obry@gnat.com>
23965 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
23966 other x86 platforms).
23968 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
23970 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
23971 in general and triggers stack alignment adjustment for thread entry
23972 points on targets where this is necessary.
23974 2004-10-04 Bernard Banner <banner@gnat.com>
23977 * Makefile.in: Add section for powerpc linux
23978 Add variant i-vxwork-x86.ads
23980 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
23982 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
23984 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
23985 table registration calls when need be. Ensures no reference to the crt
23986 ctors symbol are issued in the SJLJ case, which avoids possible
23987 undefined symbol errors in the case of modules to be statically linked
23990 2004-10-04 Javier Miranda <miranda@gnat.com>
23992 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
23993 in-line the code corresponding to subprogram Analyze_Actuals. In
23994 addition, analyze the actuals only in case of subprogram call.
23996 2004-10-04 Ed Falis <falis@gnat.com>
23998 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
24000 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
24002 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
24003 in the documentation.
24005 2004-10-04 Robert Dewar <dewar@gnat.com>
24007 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
24009 (Analyze_Block_Statement): Add circuitry to detect following dead code
24010 (Check_Unreachable_Code): Handle case of block exit
24012 2004-10-04 Robert Dewar <dewar@gnat.com>
24014 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
24015 (XMatchD): Avoid warning for Logic_Error call
24017 2004-10-04 Robert Dewar <dewar@gnat.com>
24019 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
24020 consider expressions buried within a procedure actual to be an actual.
24021 This caused some blowups with uses of packed slices within a procedure
24024 2004-10-04 Robert Dewar <dewar@gnat.com>
24026 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
24027 longer need to be initialized to zero.
24028 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
24029 initialized to zero.
24031 * checks.adb (Expr_Known_Valid): Packed arrays are now always
24032 considered valid, even if the representation is modular. That's correct
24033 now that we no longer initialize packed modular arrays to zero.
24035 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
24036 suffixes. These are now documented as the only cases in which the
24037 debugger ignores outer records.
24038 Previously, the spec allowed arbitrary suffixes for this purpose.
24039 Change name of LJM to JM for packed array pad records
24040 Create separate section on packed array handling, and add a whole new
24041 set of comments to this section describing the situation with packed
24042 modular types and justification requirements depending on endianness.
24044 2004-10-04 Robert Dewar <dewar@gnat.com>
24046 * a-except.adb: Add a comment for last change
24048 * einfo.ads: Minor spelling correction in comment
24050 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
24052 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
24055 * sem_util.ads: Minor comment update
24057 2004-10-04 Ed Schonberg <schonberg@gnat.com>
24059 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
24060 Inline_Always when in Configurable_Run_Time mode.
24062 * sem_prag.adb (Process_Convention): If entity is an inherited
24063 subprogram, apply convention to parent subprogram if in same scope.
24064 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
24065 when in Configurable_Run_Time mode.
24067 2004-10-04 Ed Schonberg <schonberg@gnat.com>
24069 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
24070 class_wide type after component list has been inherited.
24072 2004-10-04 Ed Schonberg <schonberg@gnat.com>
24074 * sem_ch12.adb (Check_Generic_Actuals): New predicate
24075 Denotes_Previous_Actual, to handle properly the case of a private
24076 actual that is also the component type of a subsequent array actual.
24077 The visibility status of the first actual is not affected when the
24078 second is installed.
24079 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
24080 make fully recursive the treatment of formals of packages declared
24082 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
24083 the above on exit from an instantiation.
24084 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
24085 current instantiation which is now complete.
24086 (Analyze_Package_Instantiation): No instantiated body is needed if the
24087 main unit is generic. Efficient, and avoid anomalies when a instance
24088 appears in a package accessed through rtsfind.
24090 2004-10-04 Ed Schonberg <schonberg@gnat.com>
24092 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
24093 do not generate a declaration for a temporary if the call is part of a
24094 library-level instantiation.
24096 2004-10-04 Ed Schonberg <schonberg@gnat.com>
24098 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
24099 searching for a limited component to flag.
24101 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
24102 expansion of Input, to account for the fact that the implicit call
24103 generated by the attribute reference must freeze the user-defined
24104 stream subprogram. This is only relevant to 'Input, because it can
24105 appear in an object declaration, prior to the body of the subprogram.
24107 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
24108 expansion can proceed and further errors uncovered.
24109 (Minor clean up): Fix cases of using | instead of \ for continuation
24112 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24114 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
24116 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
24117 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
24118 Use gcc_assert and gcc_unreachable.
24120 * decl.c (gnat_to_gnu_entity, case object): Check and process a
24121 specified alignment before validating size.
24122 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
24123 stripped-down declaration for the type of the inner field when making
24126 * utils.c (finish_record_type): Do not compute the size in units
24127 incrementally. Instead compute it once for the rep clause case.
24128 Use gcc_assert and gcc_unreachable.
24130 2004-10-04 Vincent Celier <celier@gnat.com>
24132 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
24134 (Is_Valid_Path_Name): Take '/' as a directory separator.
24136 2004-10-04 Vincent Celier <celier@gnat.com>
24138 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
24139 (Extended_Project) only if Extended_Project is defined, to avoid
24141 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
24143 (Parse_Single_Project): Ditto.
24145 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
24146 Add_To_Project_Path for virtual projects.
24148 2004-10-04 Vincent Celier <celier@gnat.com>
24150 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24151 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24152 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24153 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
24154 parameter Options_2.
24156 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
24157 Build_Dynamic_Library with an empty Options_2.
24159 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
24162 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
24163 directory separator, if any.
24164 (Gprmake): Do not allow mains on the command line for library projects.
24165 Do not attempt to link when the project is a library project.
24166 (Library_Opts): New table to store Library_Options.
24167 (Build_Library): If Library_Options is specified, pass these options
24168 when building a shared library.
24170 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
24172 * s-tposen.adb (Service_Entry): The object must be always unlocked at
24173 the end of this procedure now that the unlock operation was inserted
24176 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
24178 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
24179 corresponding to the Preallocated_Stacks flags in System.
24180 (Get_Target_Parameters): Including the processing for
24181 Preallocated_Stacks.
24183 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
24184 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
24185 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
24186 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
24187 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
24188 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
24189 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
24190 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
24191 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
24192 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
24193 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
24194 used to signal whether the compiler creates the required stacks and
24195 descriptors for the different tasks (when True) or it is done by the
24196 underlying operating system at run time (when False).
24197 It is initially set to False in all targets.
24199 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
24200 if it is supported by the target.
24201 (Make_Task_Create_Call): Pass the stack address if it has been
24202 previously created. Otherwise pass a Null_Address.
24204 * snames.adb: Add _stack.
24206 * snames.ads: Add Name_uStack. Required to allow the expander to
24207 statically allocated task stacks.
24209 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
24210 Stack_Address argument.
24211 Check that its value is equal to Null_Address because this target does
24212 not support the static stack allocation.
24214 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
24216 * usage.adb: Change "pragma inline" to "pragma Inline" in information
24219 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
24221 * exp_dist.adb: Split declaration of asynchronous flag out of
24222 Add_RACW_Read_Attribute.
24223 Minor reformatting for better alignment with PolyORB version.
24224 Store the entity for the asynchronous flag of an RACW, rather than the
24225 expression, in the asynchronous flags table. This will allow this flag
24226 to be used in other subprograms beside Add_RACW_Read_Attribute.
24228 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
24230 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
24231 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24232 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
24233 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
24234 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
24235 sockets constant MSG_NOSIGNAL (Linux-specific).
24236 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
24237 all Send operations.
24238 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
24239 from trigerring SIGPIPE.
24240 Rename components to avoid clash with Ada 2005 possible reserved
24242 (Check_Selector): When the select system call returns with an error
24243 condition, propagate Socket_Error to the caller.
24245 2004-10-01 Jan Hubicka <jh@suse.cz>
24247 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
24249 2004-09-23 Robert Dewar <dewar@gnat.com>
24252 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
24253 instead do this at freeze time (we won't do it if there is an address
24255 Change "pragma inline" to "pragma Inline" in information and error
24257 Minor reformatting.
24259 * freeze.adb (Check_Address_Clause): Remove previous change, not the
24260 right way of doing things after all.
24261 (Freeze_Entity): For object, set Is_Public for imported entities
24262 unless there is an address clause present.
24264 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
24266 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
24267 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
24268 ensures proper handling of types with rep clauses, which might have
24269 their TYPE_SIZE set already.
24271 2004-09-21 Robert Dewar <dewar@gnat.com>
24273 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
24274 packed array types in both little- and big-endian cases. This change
24275 ensures that we no longer count on the unused bits being initialized
24276 for such types (and in particular ensures that equality testing will
24277 only read the relevant bits).
24278 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
24279 These changes mean that we no longer need to initialize small packed
24281 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
24282 optimization to an LJM field as to its parent field.
24284 * ada-tree.h, trans.c, utils.c, utils2.c:
24285 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
24287 2004-09-20 Jan Hubicka <jh@suse.cz>
24289 * utils.c (gnat_finalize): Remove.
24290 (end_subprog_body): Directly call cgraph_finalize_function;
24291 do not lower the nested functions.
24293 2004-09-20 Robert Dewar <dewar@gnat.com>
24296 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
24297 if an address clause is present, since that means that the Import
24300 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
24302 * 5tsystem.ads: Removed, no longer used.
24304 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
24305 Zack Weinberg <zack@codesourcery.com>
24307 * ada-tree.def: Use tree_code_class enumeration constants
24308 instead of code letters.
24309 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
24310 Update for new tree-class enumeration constants.
24312 2004-09-17 Vincent Celier <celier@gnat.com>
24314 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
24315 capabilities of the general project manager.
24317 2004-09-09 Vincent Celier <celier@gnat.com>
24319 * a-direct.ads: Add pragma Ada_05
24320 (Directory_Entry_Type): Give default value to component Kind to avoid
24321 not initialized warnings.
24323 * a-direct.adb (Current_Directory): Remove directory separator at the
24325 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
24326 an existing directory.
24327 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
24328 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
24329 Convert the result to File_Size.
24331 * prj.ads: (Project_Error): New exception
24333 * prj-attr.adb: Except in procedure Initialize, Fail comes from
24334 Prj.Com, not from Osint.
24335 (Attrs, Package_Attributes): Tables moved to private part of spec
24336 (Add_Attribute, Add_Unknown_Package): Moved to new child package
24338 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
24339 Prj.Project_Error after call to Fail.
24340 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
24341 Fail. Check that package name is not already in use.
24343 * prj-attr.ads: Comment updates to indicate that all subprograms may be
24344 used by tools, not only by the project manager, and to indicate that
24345 exception Prj.Prj_Error may be raised in case of problem.
24346 (Add_Unknown_Package, Add_Attribute): Moved to new child package
24348 (Attrs, Package_Attributes): Table instantiations moved from the body to
24349 the private part to be accessible from Prj.Attr.PM body.
24351 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
24352 from new package Prj.Attr.PM.
24353 (Parse_Attribute_Declaration): Call Add_Attribute from new package
24356 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
24358 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
24359 instead of Elaboration_Checks).
24361 * a-calend.adb: Minor reformatting
24363 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24365 * gigi.h (maybe_pad_type): New declaration.
24366 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
24368 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
24370 * cuintp.c: Convert to use buildN.
24372 * decl.c (maybe_pad_type): No longer static.
24373 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
24375 Convert to use buildN.
24377 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
24378 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
24379 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
24381 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
24382 (gnat_gimplify_expr, case ADDR_EXPR): New case.
24383 Convert to use buildN.
24385 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
24386 TREE_READONLY for const.
24387 Convert to use buildN.
24389 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
24390 (create_var_decl): Refine when TREE_STATIC is set.
24391 Convert to use buildN.
24393 2004-09-09 Gary Dismukes <dismukes@gnat.com>
24395 * gnat_ugn.texi: Delete text relating to checking of ali and object
24398 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
24401 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
24403 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
24404 pragmas recognized by GNAT.
24406 * gnat_rm.texi: Document pragma Detect_Blocking.
24408 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
24409 raise Program_Error if called from a protected operation.
24411 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
24412 the protected action nesting level.
24413 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
24414 protected action nesting level.
24415 (Unlock): When pragma Detect_Blocking is active decrease the protected
24416 action nesting level.
24418 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
24419 Protected_Action_Nesting.
24421 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
24422 Common_ATCB record. It contains the dynamic level of protected action
24423 nesting for each task. It is needed for checking whether potentially
24424 blocking operations are called from protected operations.
24425 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
24426 Detect_Blocking is active or not in the partition.
24428 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
24429 raise Program_Error if called from a protected operation.
24430 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
24431 Program_Error if called from a protected operation.
24432 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
24433 Program_Error if called from a protected operation.
24435 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
24436 raise Program_Error if called from a protected operation.
24438 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
24439 raise Program_Error if called from a protected operation, and increase
24440 the protected action nesting level.
24441 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
24442 Program_Error if called from a protected operation, and increase the
24443 protected action nesting level.
24444 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
24445 protected action nesting level.
24447 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
24448 raise Program_Error if called from a protected operation, and increase
24449 the protected action nesting level.
24450 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
24451 Program_Error if called from a protected operation, and increase the
24452 protected action nesting level.
24453 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
24454 raise Program_Error if called from a protected operation.
24455 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
24456 active, raise Program_Error if called from a protected operation.
24457 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
24458 protected action nesting level.
24460 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
24461 insertion of the statement raising Program_Error. The run time
24462 contains the required machinery for handling that.
24464 * sem_util.ads: Change comment associated to procedure
24465 Check_Potentially_Blocking_Operation.
24466 This procedure does not insert a call for raising the exception because
24467 that is currently done by the run time.
24469 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
24471 * init.c: Add the global variable __gl_detect_blocking that indicates
24472 whether pragma Detect_Blocking is active (1) or not (0). Needed for
24473 making the pragma available at run time.
24474 (__gnat_set_globals): Pass and update the detect_blocking parameter.
24476 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
24477 pragma Detect_Blocking is active.
24479 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
24481 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
24482 DB is found in the ali file. Any unit compiled with pragma
24483 Detect_Blocking active forces its effect in the whole partition.
24485 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
24486 Detect_Blocking is active and delay is called from a protected
24489 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
24490 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
24491 Detect_Blocking is active (0 otherwise).
24492 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
24493 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
24496 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
24498 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
24499 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
24502 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
24503 (Register_Receiving_Stub): Add Subp_Info formal parameter.
24504 Update API in placeholder implemetation of s-parint to reflect changes
24505 in distribution runtime library.
24507 * sem_ch3.adb (Expand_Derived_Record): Rename to
24508 Expand_Record_Extension.
24510 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
24511 primitive operations of potentially distributed object types that have
24512 non-controlling anonymous access formals.
24514 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
24516 New implementation of expansion for remote access-to-subprogram types,
24517 based on the RACW infrastructure.
24518 This version of sem_dist is compatible with PolyORB/DSA as well as
24521 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
24522 Asynchrronous that applies to a remote access-to-subprogram type, mark
24523 the underlying RACW type as asynchronous.
24525 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
24526 __gnat_using_gnu_linker to 1.
24528 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
24529 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
24530 GNAT.Perfect_Hash_Generators, and remove the empty
24531 GNAT.Perfect_Hash package.
24533 * atree.adb: Minor reformatting
24535 * exp_ch3.adb (Expand_Derived_Record): Rename to
24536 Expand_Record_Extension.
24537 (Build_Record_Init_Proc.Build_Assignment): The default expression in
24538 a component declaration must remain attached at that point in the
24539 tree so New_Copy_Tree copies it if the enclosing record type is derived.
24540 It is therefore necessary to take a copy of the expression when building
24541 the corresponding assignment statement in the init proc.
24542 As a side effect, in the case of a derived record type, we now see the
24543 original expression, without any rewriting that could have occurred
24544 during expansion of the ancestor type's init proc, and we do not need
24545 to go back to Original_Node.
24547 * exp_ch3.ads (Expand_Derived_Record): Rename to
24548 Expand_Record_Extension.
24550 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
24551 Returns the RACW type used to implement a remote access-to-subprogram
24553 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
24554 New subprograms. Used to create a proxy tagged object for a remote
24555 subprogram. The proxy object is used as the designated object
24556 for RAS values on the same partition (unless All_Calls_Remote applies).
24557 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
24558 System.Partition_Interface.Get_Unique_Remote_Pointer.
24559 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
24560 Renamed from Add_RAS_*_Attribute.
24561 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
24563 New implementation of expansion for remote access-to-subprogram types,
24564 based on the RACW infrastructure.
24566 * exp_dist.ads (Copy_Specification): Update comment to note that this
24567 function can copy the specification from either a subprogram
24568 specification or an access-to-subprogram type definition.
24570 2004-09-09 Ed Schonberg <schonberg@gnat.com>
24572 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
24573 in an instance, between an explicit subprogram an one inherited from a
24574 type derived from an actual.
24576 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
24577 add a polling call if the subprogram is to be inlined by the back-end,
24578 to avoid repeated calls with multiple inlinings.
24580 * checks.adb (Apply_Alignment_Check): If the expression in the address
24581 clause is a call whose name is not a static entity (e.g. a dispatching
24582 call), treat as dynamic.
24584 2004-09-09 Robert Dewar <dewar@gnat.com>
24586 * g-trasym.ads: Minor reformatting
24588 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
24589 packed arrays, since unused bits are expected to be zero for a
24592 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
24594 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
24597 2004-09-09 Pascal Obry <obry@gnat.com>
24599 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
24600 enable map file generation. Add the right option to generate the map
24601 file if Map_File is set to True.
24603 * gnatdll.adb (Gen_Map_File): New variable.
24604 (Syntax): Add info about new -m (Map_File) option.
24605 (Parse_Command_Line): Add support for -m option.
24606 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
24607 Minor reformatting.
24609 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
24611 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
24612 new gnatdist implementation.
24613 Define a subpackage isolating the output routines specific to this
24616 2004-09-09 Joel Brobecker <brobecker@gnat.com>
24618 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
24620 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
24622 2004-09-09 Cyrille Comar <comar@act-europe.fr>
24624 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
24627 * opt.ads: Add Ada_Version_Runtime constant used to decide which
24628 version of the language is used to compile the run time.
24630 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
24632 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
24633 of variable length temporaries for function return now that the
24634 back-end and gigi support it.
24636 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24638 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
24640 * trans.c (struct stmt_group): Delete field GLOBAL.
24641 (gnat_init_stmt_group): Do not initialize it.
24642 (call_to_gnu): Use save_expr, not protect_multiple_eval.
24643 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
24644 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
24645 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
24646 (start_stmt_group): Likewise.
24647 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
24649 * utils2.c (ggc.h): Include.
24650 (build_call_raise): Call build_int_cst, not build_int_2.
24652 * utils.c (gnat_init_decl_processing): Fix arg to
24653 build_common_tree_nodes.
24654 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
24655 (gnat_define_builtin): Set built_in_decls.
24656 (init_gigi_decls): Call build_int_cst, not build_int_2.
24658 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
24659 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
24660 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
24661 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
24662 SET_TYPE_MODULE): Use them.
24663 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
24664 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
24665 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
24666 SET_TYPE_ADA_SIZE): Likewise.
24667 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
24668 (DECL_CONST_CORRESPONDING_VAR,
24669 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
24670 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
24671 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
24672 (TYPE_RM_SIZE_NUM): New macro.
24673 (TYPE_RM_SIZE): Modified to use above.
24675 * cuintp.c: (build_cst_from_int): New function.
24676 (UI_To_gnu): Use it.
24678 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
24679 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
24680 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
24681 MIN_EXPR for the size, copy it into new.
24683 2004-09-01 Robert Dewar <dewar@gnat.com>
24685 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
24686 packed indexed component where array is an IN OUT formal. This
24687 generated garbage code previously.
24689 * gnat_ugn.texi: Document -fverbose-asm
24691 * gnat-style.texi: Minor updates (note that boolean constants and
24692 variables are joined with AND/OR rather than short circuit forms).
24694 2004-09-01 Ed Schonberg <schonberg@gnat.com>
24696 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
24697 it is an upward conversion of an untagged type with no representation
24700 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
24702 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
24703 System.Partition_Interface.
24705 * checks.adb (Apply_Access_Checks): Do not generate checks when
24706 expander is not active (but check for unset reference to prefix of
24709 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
24710 pragma Debug as an if statement with a constant condition, for
24711 consistent treatment of entity references contained within the
24712 enclosed procedure call.
24714 2004-09-01 Vincent Celier <celier@gnat.com>
24716 * bindgen.adb: (Set_EA_Last): New procedure
24717 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
24719 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
24720 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
24721 linked without errors.
24722 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
24724 (Gen_Exception_Table_C): Correct same bugs
24726 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
24728 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
24729 on Windows, make sure that the drive letter is in upper case.
24731 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
24732 Windows, when the drive letter is added and Case_Sensitive is True, the
24733 drive letter is forced to upper case.
24735 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
24736 to Options_2 for the call to MLib.Utl.Gcc.
24738 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
24739 directory separator when defining BASE_DIR.
24741 2004-09-01 Pascal Obry <obry@gnat.com>
24743 * gprcmd.adb (Extend): Do not output trailing directory separator. This
24744 is not needed and it confuses Windows GNU/make which does not report
24745 directory terminated by a slash as a directory.
24746 (gprcmd): Idem for "pwd" internal command.
24748 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
24749 target names rewrite to fix regressions with recent version of
24750 GNU/make. Starting with GNU/make 3.80 the pipe character was not
24751 handled properly anymore.
24753 2004-09-01 Andreas Schwab <schwab@suse.de>
24755 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
24756 * raise.c [!IN_RTS]: Undef abort.
24758 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
24760 * utils2.c (build_allocator): Use ssize_int.
24762 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
24764 2004-08-27 Andreas Schwab <schwab@suse.de>
24766 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
24768 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
24769 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24771 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
24773 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
24775 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
24776 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
24777 * utils.c (init_gigi_decls): Likewise.
24778 * utils2.c (build_call_raise, build_allocator): Likewise.
24780 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
24782 * utils.c (gnat_init_decl_processing): Adjust
24783 build_common_tree_nodes call.
24785 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
24787 * utils2.c (build_allocator): Use build_int_cst for negative
24790 2004-08-18 Richard Henderson <rth@redhat.com>
24792 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
24794 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
24796 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
24798 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
24799 (gnat_to_gnu): Likewise.
24801 2004-08-16 Pascal Obry <obry@gnat.com>
24803 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
24804 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
24805 option and not mdll anymore. Update comment.
24807 2004-08-16 Pascal Obry <obry@gnat.com>
24809 * bld.adb (Put_Include_Project): Properly handle directory separators
24812 2004-08-16 Ed Schonberg <schonberg@gnat.com>
24814 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
24815 decreasing the number of allocated junk nodes while searching for the
24816 appropriate subprogram.
24818 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
24820 * cuintp.c (UI_To_gnu): Use build_int_cst..
24821 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
24822 * utils.c (init_gigi_decls): Likewise.
24823 * utils2.c (build_call_raise): Likewise.
24825 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
24827 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
24828 for a global aliased object with a variable size and an unconstrained
24829 nominal subtype, pretend there is no initializer if the one we have is
24830 incomplete, and avoid referencing an inexistant component in there. The
24831 part we have will be rebuilt anyway and the reference may confuse
24832 further operations.
24834 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
24836 * einfo.ads: Minor reformatting
24838 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
24839 restrictions in the ALI if we only want to warn about violations.
24841 2004-08-13 Vincent Celier <celier@gnat.com>
24843 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
24844 when creating a new Unit_Record in table Units.
24846 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
24847 that are violated, if any.
24849 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
24850 add directory separator if path already ends with a directory separator.
24852 2004-08-13 Ed Schonberg <schonberg@gnat.com>
24854 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
24855 unit, this is an attempt to inline a construct that is not available in
24856 the current restricted mode, so abort rather than trying to continue.
24858 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
24859 discriminants that rename those of the parent, recover names of
24860 original discriminants for the constraint on the full view of the
24862 (Complete_Private_Subtype): Do not create a subtype declaration if the
24863 subtype is an itype.
24865 * gnat_rm.texi: Added section on implementation of discriminated
24866 records with default values for discriminants.
24868 2004-08-13 Ed Schonberg <schonberg@gnat.com>
24871 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
24872 the second operand is overloaded.
24874 2004-08-10 Richard Henderson <rth@redhat.com>
24876 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
24877 add __builtin_alloca.
24879 2004-08-10 Richard Henderson <rth@redhat.com>
24881 * config-lang.in (boot_language): Yes.
24883 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
24885 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
24886 from complaining on potential uninitialized reference.
24887 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
24888 new specification and test explicitly for non-zero return value.
24890 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
24891 returning C.int, to avoid using a derived boolean type.
24893 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
24894 Duplicate_Subexpr_No_Checks in preference to direct use of
24895 Remove_Side_Effects and New_Copy_Tree.
24896 Clear Comes_From_Source on prefix of 'Size attribute reference.
24898 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
24899 g-socthi-vxworks.adb: Change calls to
24900 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
24901 and test explicitly for non-zero return value.
24903 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
24904 (Is_Socket_In_Set): Declare imported function as returning C.int, to
24905 avoid using a derived boolean type.
24907 2004-08-09 Albert Lee <lee@gnat.com>
24909 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
24911 2004-08-09 Pascal Obry <obry@gnat.com>
24913 * gnat_ugn.texi: Document new way to build DLLs on Windows using
24914 GCC's -shared option.
24916 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
24917 Options_2 parameter (options put after object files).
24919 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
24921 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
24922 ignore overflows on low and high bounds of an index to also account for
24923 differences in signedness between sizetype and gnu_index_subtype.
24924 These are as legitimate as the ones caused by a lower TYPE_PRECISION
24927 2004-08-09 Robert Dewar <dewar@gnat.com>
24929 * s-solita.ads, s-solita.adb: Minor reformatting
24931 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
24932 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
24933 obsolescent section
24934 Add note that No_Implicit_Conditionals does not suppress
24935 run time constraint checks.
24937 * vms_conv.ads: Minor reformatting
24939 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
24940 and necessary for following change).
24941 (Mark): Return new format Mark_Id containing sec stack address
24942 (Release): Use sec stack address from Mark_Id avoiding Self call
24944 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
24945 pointer (cleanup and necessary for following change).
24946 Define Mark_Id as record containing address of secondary stack, that way
24947 Release does not need to find the stack again, decreasing the number of
24948 calls to Self and improving efficiency.
24950 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
24952 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
24953 case variable into the individual case branches when possible.
24955 * sem_ch11.adb: Minor reformatting
24957 * prj.ads: Correct spelling of suffixs
24959 * prj-nmsc.adb: Minor reformatting
24960 Correct spelling suffixs throughout (also in identifiers)
24962 * freeze.adb: Minor spelling correction
24964 * exp_ch2.adb: Cleanups to handling of Current_Value
24965 (no functional effect).
24967 * bld.adb: Correct spelling of suffixs
24969 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
24971 2004-08-09 Ed Schonberg <schonberg@gnat.com>
24974 * sem_ch7.adb (Install_Private_Declarations): In the body of the
24975 package or of a child, private entities are both immediately_visible
24978 2004-08-09 Ed Schonberg <schonberg@gnat.com>
24980 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
24981 there are no range checks on the value of the literal.
24983 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
24984 wrapped is the triggering alternative of an asynchronous select, action
24985 statements mustbe inserted before the select itself.
24987 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
24988 case where the prefix is a protected function call.
24989 (Resolve_Attribute, case 'Access): The attribute reference on a
24990 subprogram is legal in a generic body if the subprogram is declared
24993 2004-08-09 Vincent Celier <celier@gnat.com>
24995 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
24996 languages, otherwise building the library may fail with unresolved
24998 (Compile_Sources): Do not build libraries if -c switch is used
25000 * gnatlink.adb (Process_Args): New switches -M and -Mmap
25001 (Write_Usage): If map file creation is supported, output new switches
25003 (Gnatlink): When -M is specified, add the necessary switch(es) to the
25004 gcc call, when supported.
25006 * Makefile.in: Added indepsw.o to the object list for gnatlink
25007 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
25009 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
25010 indepsw.adb, indepsw.ads: New files.
25012 2004-08-09 Bernard Banner <banner@gnat.com>
25014 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
25016 * Makefile.in: add section for vxworks x86
25018 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
25020 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
25021 per-object constrained components where the discriminant is of an
25023 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
25024 the parent initialization procedure for derived Unchecked_Unions.
25025 Instead, derived Unchecked_Unions build their own initialization
25027 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
25028 Check the body of the subprogram for details.
25029 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
25030 functions for derived Unchecked_Union types by introducing a condition.
25031 Allow the creation of TSS equality functions for Unchecked_Unions.
25032 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
25033 Add formal parameter Discr to function signature. Discr is used to
25034 control the generated case statement for Unchecked_Union types.
25035 (Make_Eq_If): Rename formal parameter Node to E in function signature.
25037 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
25039 Check the body of the subprogram for details.
25040 (Expand_Composite_Equality): Augment composite type equality to include
25041 correct handling of Unchecked_Union components.
25042 (Expand_N_In): Add condition to detect illegal membership tests when the
25043 subtype mark is a constrained Unchecked_Union and the expression lacks
25044 inferable discriminants, and build a Raise_Program_Error node.
25045 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
25046 to detect types that contain components of unconstrained Unchecked_Union
25047 subtype. Add condition to detect equality between types that have an
25048 unconstrained Unchecked_Union component, and build a Raise_Program_Error
25049 node. Add condition to detect equality between Unchecked_Union types
25050 that lack inferable discriminants, and build a Raise_Program_Error node.
25051 Otherwise build a TSS equality function call.
25052 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
25053 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
25054 with the operand lacking inferable discriminants, and build a Raise_
25055 Program_Error node.
25056 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
25057 composite equality.
25058 (Has_Inferable_Discriminants): Implement new predicate for objects and
25059 expressions of Unchecked_Union type. Check the body of subprogram for
25061 (Has_Unconstrained_UU_Components): Add function
25062 Component_Is_Unconstrained_UU. It is used to detect whether a single
25063 component is of an unconstrained Unchecked_Union subtype. Add function
25064 Variant_Is_Unconstrained_UU. It is used to detect whether a single
25065 component inside a variant is of an unconstrained Unchecked_Union type.
25067 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
25068 inferred discriminant values. Add condition to generate a case
25069 statement with an inferred discriminant as the switch.
25070 (Make_Component_List_Assign): Introduce a Boolean flag that determines
25071 the behaviour of the subprogram in the presence of an Unchecked_Union.
25072 Add condition to trigger the usage of the inferred discriminant value
25073 as the generated case statement switch.
25074 (Make_Field_Assign): Introduce a Boolean flag that determines the
25075 behaviour of the subprogram in the presence of an Unchecked_Union. Add
25076 condition to trigger the usage of the inferred discriminant value as
25077 the right-hand side of the generated assignment.
25079 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
25080 parameter generation when dealing with Unchecked_Unions.
25082 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
25083 checks for Unchecked_Unions.
25085 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
25087 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
25088 Raise_Program_Error nodes for the execution of Read and Write
25089 attributes of Unchecked_Union types and the execution of Input and
25090 Output attributes of Unchecked_Union types that lack default
25091 discriminant values.
25093 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
25094 Unchecked_Union. Add procedure Check_Component. It is used to inspect
25095 per-object constrained components of Unchecked_Unions for being
25096 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
25097 check individual components withing a variant.
25099 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
25100 comparison of Unchecked_Unions.
25101 (Resolve_Equality_OP): Remove guard that prevents equality between
25104 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
25105 of component subtypes for Unchecked_Union components.
25106 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
25107 since it is the actual subtype.
25109 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
25110 pass of Unchecked_Union subtypes as generic actuals to formal types
25111 that lack known_discriminant_parts or that are derived Unchecked_Union
25112 types, and do nothing. In any other case, produce an error message.
25114 * sem_ch3.adb (Analyze_Component_Declaration): Add function
25115 Contains_POC. It determines whether a constraint uses the discriminant
25116 of an enclosing record type.
25117 Add condition to detect per-object constrained component and set the
25119 (Derived_Type_Declaration): Remove guard that prevents derivation from
25120 Unchecked_Union types.
25121 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
25124 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
25125 references to Unchecked_Union discriminants.
25127 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
25128 formal generation when dealing with Unchecked_Unions.
25129 (Set_Actual_Subtypes): Add condition to prevent generation of actual
25130 subtypes for Unchecked_Unions.
25132 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
25133 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
25134 completions of discriminated partial views by Unchecked_Unions and
25135 produce an error message.
25137 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25139 * trans.c (struct stmt_group): New field, GLOBAL.
25140 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
25141 (struct elab_info): New struct.
25142 (elab_info_list, gnu_elab_proc_stack): New variables.
25143 (Compilation_Unit_to_gnu): New procedure.
25144 (gigi): Call it and also handle elaboration procs we've saved.
25145 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
25146 global field from parent.
25147 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
25148 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
25149 (start_stmt_group): Initialize global field from parent.
25150 (add_decl_expr): Set to global for current statement group.
25151 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
25154 * utils.c (global_bindings_p): True when no current_function_decl; no
25155 longer check current_binding_level.
25157 2004-08-09 Ben Brosgol <brosgol@gnat.com>
25159 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
25162 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
25164 2004-08-06 Andreas Schwab <schwab@suse.de>
25166 * utils.c (gnat_define_builtin): Remove second parameter of
25168 (begin_subprog_body): Likewise.
25170 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
25172 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
25173 optimization, not supported by the tree-ssa back-end.
25175 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
25177 * s-mastop-irix.adb: Update comments.
25179 * a-except.adb (Exception_Information): Raise Constraint_Error if
25180 exception Id is Null_Id.
25181 This is required behavior, which is more reliably and clearly checked
25182 at the top level interface level.
25184 2004-07-26 Javier Miranda <miranda@gnat.com>
25186 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
25187 call if a component has no default_expression and the box is used.
25189 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
25190 default_expression and you use box, it behaves as if you had declared a
25191 stand-alone object.
25192 (Resolve_Record_Aggregate): If a component has no default_expression and
25193 you use box, it behaves as if you had declared a stand-alone object.
25195 * sem_ch10.adb (Install_Siblings): Do not make visible the private
25196 entities of private-with siblings.
25198 2004-07-26 Ed Schonberg <schonberg@gnat.com>
25200 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
25201 for a component of an itype, set the parent pointer for analysis,
25202 there is no list in which to insert it.
25204 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
25205 bona-fide renamings, not for inherited operations.
25207 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
25208 actual for a formal that is an access parameter, create local
25209 finalization list even if the expression is not an aggregate.
25211 2004-07-26 Ed Schonberg <schonberg@gnat.com>
25214 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
25215 Diagnose properly illegal subprogram renamings that are library units.
25217 2004-07-26 Ed Schonberg <schonberg@gnat.com>
25220 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
25221 conversion rewritten as an unchecked conversion, check that original
25222 expression is a variable.
25224 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
25225 unchecked_conversion, create new node rather than rewriting in place,
25226 to preserve original construct.
25228 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25230 * gigi.h (gnat_expand_body): Deleted.
25232 * Make-lang.in: (trans.o): Depends on function.h.
25234 * misc.c: (gnat_expand_body): Moved to here.
25236 * trans.c (gnat_expand_body_1): Deleted.
25237 (gnat_expand_body): Moved from here.
25238 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
25239 (add_stmt): Check for marked visited with global_bindings_p.
25240 (gnat_gimplify_expr, case COMPONENT_REF): New case.
25241 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
25243 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
25244 VIEW_CONVERT_EXPR if not operation type.
25246 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
25249 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
25250 changes: reformatting of negation operators, removing unneeded
25251 inequality comparison with zero, converting equality comparisons with
25252 zero to negations, changing int/0/1 to bool/false/true, replace calls
25253 to gigi_abort with abort, and various other similar changes.
25255 2004-07-26 Vincent Celier <celier@gnat.com>
25257 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
25260 * make.adb (Gnatmake): Fail when a library is not present and there is
25261 no object directory.
25263 * mlib-prj.adb (Check_Library): No need to check if the library needs
25264 to be rebuilt if there is no object directory, hence no object files
25265 to build the library.
25267 * opt.ads (Setup_Projects): New Boolean flag.
25269 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
25271 Create directory when Kind /= "" and in "gnat setup". Report error if
25272 directory cannot be created.
25273 (Ada_Check): Create library interface copy dir if it does not exist
25274 and we are in "gnat setup".
25275 (Find_Sources): No error if in "gnat setup" and no Ada sources were
25277 (Language_Independent_Check): Create object directory, exec directory
25278 and/or library directory if they do not exist and we are in
25281 * vms_conv.ads: (Command_Type): New command Setup.
25283 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
25285 * vms_data.ads: Add qualifiers/switches for new built-in command
25288 2004-07-25 Richard Henderson <rth@redhat.com>
25290 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
25291 DECL_IGNORED_P on RESULT_DECL.
25293 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
25295 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
25296 allocation and potentially overflowing update with
25297 Tailored_Exception_Information. Use the sec-stack free procedural
25298 interface to output Exception_Information instead.
25300 * a-except.adb (To_Stderr): New subprogram for character, and string
25301 version moved from a-exextr to be visible from other separate units.
25302 (Tailored_Exception_Information): Remove the procedural version,
25303 previously used by the default Last_Chance_Handler and not any more.
25304 Adjust various comments.
25306 * a-exexda.adb: Generalize the exception information procedural
25307 interface, to minimize the use of secondary stack and the need for
25308 local buffers when the info is to be output to stderr:
25309 (Address_Image): Removed.
25310 (Append_Info_Character): New subprogram, checking for overflows and
25311 outputing to stderr if buffer to fill is of length 0.
25312 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
25313 (Append_Info_Address, Append_Info_Exception_Name,
25314 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
25315 Append_Info_Basic_Exception_Traceback,
25316 Append_Info_Exception_Information): New subprograms.
25317 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
25318 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
25319 Exception_Info_Maxlength, Exception_Name_Length,
25320 Exception_Message_Length): New subprograms.
25321 (Exception_Information): Use Append_Info_Exception_Information.
25322 (Tailored_Exception_Information): Use
25323 Append_Info_Basic_Exception_Information.
25324 Export services for the default Last_Chance_Handler.
25326 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
25327 other separate units.
25329 2004-07-20 Vincent Celier <celier@gnat.com>
25331 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
25333 2004-07-20 Ed Schonberg <schonberg@gnat.com>
25335 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
25336 emit itype references for the designated types of component types that
25337 are declared outside of the full record declaration, and that may
25338 denote a partial view of that record type.
25340 2004-07-20 Ed Schonberg <schonberg@gnat.com>
25343 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
25344 which is the designated type in an access component declaration, to the
25345 list of incomplete dependents of the parent type, to avoid elaboration
25346 issues with out-of-scope subtypes.
25347 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
25348 full view of the parent.
25350 2004-07-20 Ed Schonberg <schonberg@gnat.com>
25353 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
25354 entities that are hidden, such as references to generic actuals
25355 outside an instance.
25357 2004-07-20 Javier Miranda <miranda@gnat.com>
25359 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
25360 support to the new notation.
25361 (Analyze_Selected_Component): Add call to Try_Object_Operation.
25363 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
25365 * s-taprob.adb: Adding the elaboration code required for initializing
25366 the tasking soft links that are common to the full and the restricted
25369 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
25370 restricted run time has been moved to the package
25371 System.Soft_Links.Tasking.
25373 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
25374 restricted run time has been moved to the package
25375 System.Soft_Links.Tasking.
25377 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
25379 * s-solita.ads, s-solita.adb: New files.
25381 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25383 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
25384 Case_Statement_to_gnu): Split off from gnat_to_gnu.
25385 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
25386 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
25387 Exception_Handler_to_gnu_zcx): Likewise.
25389 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
25391 * gigi.h (builtin_function): Declare.
25393 2004-07-15 Robert Dewar <dewar@gnat.com>
25395 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
25398 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
25399 access values as an example of a warning.
25401 * gnat_rm.texi: Document new attribute Has_Access_Values
25403 * gnat-style.texi: Document that box comments belong on nested
25406 * sem_util.ads (Has_Access_Values): Improved documentation
25408 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
25410 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
25411 (Process_Interface_Name): Call to this new procedure
25412 (Set_Extended_Import_Export_External_Name): Call to this new procedure
25414 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
25416 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
25418 * einfo.ads: Minor comment typo fixed
25420 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
25422 * snames.adb: Add _atcb.
25424 * snames.ads: Add Name_uATCB.
25426 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
25427 (in the expanded code) when using the restricted run time.
25429 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
25430 a in parameter in order to allow ATCBs to be preallocated (in the
25433 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
25434 order to allow ATCBs to be preallocated. In case of error, the ATCB is
25435 deallocated in System.Tasking.Stages.
25437 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
25438 order to allow ATCBs to be preallocated.
25440 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
25441 here. It was previously done in Initialize_ATCB.
25443 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
25445 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
25446 Restricted run time.
25448 * exp_ch3.adb: When using the Restricted run time, pass the
25449 preallocated Ada_Task_Control_Block when creating a task.
25451 2004-07-15 Ed Schonberg <schonberg@gnat.com>
25453 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
25454 function call that is itself an actual in an enclosing call, diagnose
25455 problem here rather than assuming that resolution will catch it.
25457 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
25458 the local copy of a generic unit for a formal package, and the generic
25459 is a child unit, install private part of ancestors before compiling
25460 private part of spec.
25462 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
25463 use scope entities rather than tree structures, to handle properly
25464 parent units that are instances rewritten as bodies for inlining
25467 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
25468 Remove_Parents): Handle properly a parent unit that is an
25469 instantiation, when the unit has been rewritten as a body for inlining
25472 * par.adb (Goto_List): Global variable to collect goto statements in a
25473 given unit, for use in detecting natural loops.
25475 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
25476 use in detecting natural loops.
25478 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
25479 backwards goto's, and rewrite as a infinite loop, to improve locality
25482 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
25483 subcomponent that includes an indexed reference, to prevent the
25484 generation of copies that would miscompile the desired assignment
25486 (Build_Task_Image_Decls): Add a numeric suffix to
25487 generated name for string variable, to avoid spurious conflicts with
25488 the name of the type of a single protected object.
25490 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
25491 loop with an explicit exit statement, to avoid generating an
25492 out-of-range value with 'Succ leading to spurious constraint_errors
25493 when compiling with -gnatVo.
25495 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
25497 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
25498 might not be analyzed yet, even if its Etype is already set (case of an
25499 unchecked conversion built using Unchecked_Convert_To, for example).
25500 If the prefix has already been analyzed, this will be a nop anyway.
25502 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
25503 controller type, or an assignment of a record type with controlled
25504 components, copy only user data, and leave the finalization chain
25505 pointers untouched.
25507 2004-07-15 Vincent Celier <celier@gnat.com>
25509 * make.adb (Collect_Arguments): Improve error message when attempting
25510 to compile a source not part of any project, when -x is not used.
25512 * prj.ads: (Defined_Variable_Kind): New subtype
25514 * prj-attr.adb (Register_New_Package): Two new procedures to register
25515 a package with or without its attributes.
25516 (Register_New_Attribute): Mew procedure to register a new attribute in a
25518 New attribute oriented subprograms: Attribute_Node_Id_Of,
25519 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
25520 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
25522 New package oriented subprograms: Package_Node_Id_Of,
25523 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
25525 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
25527 (Package_Node_Id): Now a private, self initialized type
25528 (Register_New_Package): New procedure to register a package with its
25530 New attribute oriented subprograms: Attribute_Node_Id_Of,
25531 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
25532 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
25534 New package oriented subprograms: Package_Node_Id_Of,
25535 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
25537 * prj-dect.adb (Parse_Attribute_Declaration,
25538 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
25540 * prj-makr.adb (Make): Parse existing project file before creating
25541 other files. Fail if there was an error during parsing.
25543 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
25544 new spec of Prj.Attr.
25546 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
25547 to new spec of Prj.Attr.
25549 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25551 * utils2.c: Fix typo in comment.
25553 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25555 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
25556 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
25558 2004-07-14 Andreas Schwab <schwab@suse.de>
25560 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
25562 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25564 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
25566 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
25569 * misc.c (gnat_types_compatible_p): New function.
25570 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
25571 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
25573 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
25574 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
25575 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
25576 (mark_visited): Don't mark dummy type.
25577 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
25578 parameter, we must remove any LJM building from GNU_NAME.
25579 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
25580 (pos_to_constructor): Use int_const_binop.
25581 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
25584 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
25585 (gnat_pushlevel): Set TREE_USE on BLOCK node.
25586 (gnat_install_builtins): Add __builtin_memset.
25588 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
25590 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
25591 for a renaming, stabilize the initialization expression if we are at a
25592 local level. At the local level, uses of the renaming may be performed
25593 by a direct dereference of the initializing expression, and we don't
25594 want possible variables there to be evaluated for every use.
25596 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
25597 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
25598 them on the way. Account for the fact that we may introduce side
25599 effects in the process.
25601 2004-07-13 Richard Henderson <rth@redhat.com>
25603 * misc.c (default_pass_by_ref): Use pass_by_reference.
25605 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
25607 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
25608 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
25610 2004-07-08 Richard Henderson <rth@redhat.com>
25612 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
25615 2004-07-06 Vincent Celier <celier@gnat.com>
25617 * vms_conv.ads: Minor reformatting.
25618 Alphabetical order for enumerated values of type Command_Type, to have
25619 the command in alphabetical order for the usage.
25621 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
25622 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
25624 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
25626 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
25627 (Add_Archive_Path): Only add the global archive if there is one.
25628 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
25629 or not any object file to put in the global archive, and don't build
25630 a global archive if there is none.
25631 (X_Switches): New table
25632 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
25633 in the X_Switches table, if any.
25634 (Initialize): Make sure the X_Switches table is empty
25635 (Scan_Arg): Record -X switches in table X_Switches
25637 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
25639 * make.adb: Minor comment fix
25641 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
25642 invoked with directory information, add the directory in front of the
25645 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
25646 invoked with directory information, add the directory in front of the
25649 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
25650 when Keep_Temporary_Files is False.
25651 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
25652 directory information, add the directory in front of the path.
25653 When not on VMS, handle new switch -dn before the command to set
25654 Keep_Temporary_Files to True.
25655 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
25658 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
25659 invoked with directory information, add the directory in front of the
25662 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
25664 * snames.ads, snames.adb (Name_Stub): New name for the distributed
25667 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
25668 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
25670 * g-socket.adb (To_Timeval): Fix incorrect conversion of
25671 Selector_Duration to Timeval for the case of 0.0.
25673 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
25674 documentation from Evolve_And_Then.
25676 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
25678 * s-taprop-tru64.adb, s-taprop-os2.adb,
25679 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
25681 2004-07-06 Robert Dewar <dewar@gnat.com>
25683 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
25684 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
25685 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
25686 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
25687 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
25688 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
25689 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
25690 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
25691 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
25692 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
25693 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
25694 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
25695 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
25696 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
25697 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
25698 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
25699 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
25700 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
25701 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
25702 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
25703 vms_data.ads: Minor reformatting,
25704 Fix bad box comment format.
25706 * gnat_rm.texi: Fix minor grammatical error
25708 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
25710 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
25711 more cases of discriminated records to be recognized as not needing a
25713 (Has_Access_Values): New function.
25715 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
25717 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
25718 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
25719 with LRM terminology).
25720 Change terminology in comments primitive type => elementary type.
25722 2004-07-06 Ed Schonberg <schonberg@gnat.com>
25725 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
25726 parameters do not impose any requirements on the presence of a body.
25728 2004-07-06 Ed Schonberg <schonberg@gnat.com>
25731 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
25732 compilation unit and is in an open scope at the point of instantiation,
25733 assume that a body may be present later.
25735 2004-07-06 Ed Schonberg <schonberg@gnat.com>
25737 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
25738 Improve error message when specified size is not supported.
25740 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
25741 is never a primitive operation.
25743 2004-07-05 Andreas Schwab <schwab@suse.de>
25745 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
25746 RECORD_OR_UNION_CHECK.
25747 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
25749 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
25751 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
25752 dependency on xgnatugn, instead build it via a submake.
25753 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
25755 2004-07-04 Richard Henderson <rth@redhat.com>
25757 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
25759 2004-07-01 Richard Henderson <rth@redhat.com>
25761 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
25762 * utils.c (max_size): Likewise.
25764 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25766 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
25767 and rest_of_type_compilation; add arg to create_*_decl.
25768 (annotate_decl_with_node): Deleted.
25769 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
25770 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
25771 (get_current_block_context, gnat_pushdecl): New declarations.
25772 (gnat_init_stmt_group): Likewise.
25773 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
25774 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
25775 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
25776 (gnat_init): Call gnat_init_stmt_group.
25777 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
25778 (gnu_pending_elaboration_list): Deleted.
25779 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
25780 (gigi): Rearrange initialization calls and move some to last above.
25781 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
25782 Delete calls to add_decl_expr; add arg to create_*_decl.
25783 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
25784 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
25785 begin_subprog_body and call it.
25786 Don't push and pop ggc context.
25787 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
25788 (add_stmt): Remove handling of DECL_EXPR from here.
25789 If not in function, mark visited.
25790 (add_decl_expr): Put global at top level.
25791 Check for cases of DECL_INITIAL we have to handle here.
25792 (process_type): Add extra arg to create_type_decl.
25793 (build_unit_elab): Rework to just gimplify.
25794 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
25795 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
25796 (get_pending_elaborations, pending_elaborations_p): Likewise.
25797 (push_pending_elaborations, pop_pending_elaborations): Likewise.
25798 (get_elaboration_location, insert_elaboration_list): Likewise.
25799 (gnat_binding_level): Renamed from ada_binding_level.
25800 (init_gnat_to_gnu): Don't clear pending_elaborations.
25801 (global_bindings_p): Treat as global if no current_binding_level.
25802 (set_current_block_context): New function.
25803 (gnat_pushdecl): Renamed from pushdecl; major rework.
25804 All callers changed.
25805 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
25806 (finish_record_type): Call call pushdecl for stub decl.
25807 (function_nesting_depth): Deleted.
25808 (begin_subprog_body): Delete obsolete code.
25809 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
25811 2004-06-28 Robert Dewar <dewar@gnat.com>
25813 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25814 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
25815 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
25816 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25817 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
25819 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
25820 deal with problem of inefficient slices on machines with strict
25821 alignment, when the slice is a component of a composite.
25823 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
25824 machines, we need the check there as well.
25826 2004-06-28 Ed Schonberg <schonberg@gnat.com>
25828 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
25829 determine safe copying direction for overlapping slice assignments
25830 when component is controlled.
25832 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
25833 formal derived type in the actual for a formal package are visible in
25834 the enclosing instance.
25836 2004-06-28 Ed Schonberg <schonberg@gnat.com>
25839 * sem_util.adb (Trace_Components): Diagnose properly an illegal
25840 circularity involving a private type whose completion includes a
25841 self-referential component.
25842 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
25843 renaming or an instantiation from an implicit derived operation.
25845 2004-06-28 Pascal Obry <obry@gnat.com>
25847 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
25849 (Library_File_Name_For): Idem.
25851 2004-06-28 Matthew Gingell <gingell@gnat.com>
25853 * g-traceb.ads: Add explanatory note on the format of addresses
25854 expected by addr2line.
25856 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
25858 * Makefile.in: Force debugging information on s-tasdeb.adb,
25859 a-except.adb and s-assert.adb needed by the debugger.
25861 2004-06-28 Vincent Celier <celier@gnat.com>
25863 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
25867 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
25869 * prj.adb: Minor reformatting
25870 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
25872 * prj.ads: Comment updates
25874 (Project_Data): Change Flag1 to Need_To_Build_Lib.
25875 Remove Flag2: not used.
25877 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
25880 * gnat_ugn.texi: Put a "null;" declaration in one project file example
25882 * gnat_rm.texi: Document Empty declarations "null;".
25884 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
25885 front of the linker options.
25886 (Link_Foreign): Put the global archives and the libraries in front of
25887 the linker options.
25889 2004-06-28 Javier Miranda <miranda@gnat.com>
25891 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
25892 (RTU_Loaded): Code cleanup
25893 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
25894 withed predefined units.
25896 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
25897 explicitly withed predefined units.
25898 Fix typo in comment
25900 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
25901 explicitly withed predefined units.
25903 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25905 * ada-tree.def (DECL_STMT): Deleted.
25906 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
25907 (DECL_STMT_VAR): Deleted.
25908 * decl.c: add_decl_stmt now add_decl_expr.
25909 * gigi.h: Likewise.
25910 * trans.c: Likewise.
25911 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
25912 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
25913 (add_stmt): Only handle padded type here.
25914 (add_stmt_with_node): Allow gnat_node to not be present.
25915 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
25916 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
25917 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
25918 make a SAVE_EXPR for the entire fat pointer.
25919 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
25920 (create_index_type): Make a DECL_EXPR.
25921 (end_subprog_body): Don't call allocate_struct_function here but
25924 2004-06-25 Pascal Obry <obry@gnat.com>
25926 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
25927 Relocatable from Build_Dynamic_Library call.
25929 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
25930 Relocatable are now synonym.
25932 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
25934 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
25935 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
25938 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
25939 Lib_Address and Relocatable.
25940 (Default_DLL_Address): Removed.
25942 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25943 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25944 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
25945 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
25946 (Default_DLL_Address): Removed.
25948 * mlib-tgt-mingw.adb: Ditto.
25949 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
25951 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
25952 the initial thread stack size.
25954 * a-strmap.ads: Move package L to private part as it is not used in
25955 the spec. Found while reading code.
25957 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
25959 * tracebak.c: Introduce support for a GCC infrastructure based
25960 implementation of __gnat_backtrace.
25962 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
25963 any more. Use accessors instead. This eases maintenance and relaxes
25964 some alignment constraints.
25965 (_GNAT_Exception structure): Remove the Ada specific fields
25966 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
25968 (is_handled_by, __gnat_eh_personality): Replace component references to
25969 exception structure by use of the new accessors.
25971 * init.c (__gnat_initialize): Adjust comments to match the just
25972 reverted meaning of the -static link-time option.
25974 * adaint.c (convert_addresses): Arrange not to define a stub for
25975 mips-irix any more, as we now want to rely on a real version from a
25976 recent libaddr2line.
25978 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
25979 the personality routine can use them and not have to rely on a C
25980 counterpart of the record anymore. This simplifies maintenance and
25981 relaxes the constraint of having Standard'Maximum_Alignment match
25983 Update comments, and add a section on the common header alignment issue.
25985 2004-06-25 Geert Bosch <bosch@gnat.com>
25987 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
25988 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
25990 2004-06-25 Robert Dewar <dewar@gnat.com>
25992 * gnat_rm.texi: Fix section on component clauses to indicate that the
25993 restriction on byte boundary placement still applies for bit packed
25995 Add comment on stack usage from Initialize_Scalars
25997 * gnat_ugn.texi: Add documentation for -gnatyLnnn
25999 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
26000 limiting nesting level.
26002 * usage.adb: Add line for -gnatyLnnn switch
26004 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
26005 sem_ch13.adb, exp_aggr.adb: Minor reformatting
26007 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
26008 type as well as on the subtype. This corrects a problem in freeze in
26009 setting alignments of atomic types.
26011 * sem_eval.ads: Minor comment typo fixed
26013 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
26014 level. Minor reformatting.
26016 * fname.adb (Is_Predefined_File_Name): Require a letter after the
26017 minus sign. This means that file names like a--b.adb will not be
26018 considered predefined.
26020 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
26021 record Test new flag and give diagnostic for bad component clause.
26022 (Freeze_Entity): Set alignment of array from component alignment in
26023 cases where this is safe to do.
26025 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
26028 * cstand.adb: (Create_Standard): Set alignment of String to 1
26030 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
26032 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
26033 code in the common constrained array cases.
26035 * a-storio.adb: Change implementation to avoid possible alignment
26036 problems on machines requiring strict alignment (data should be moved
26037 as type Buffer, not type Elmt).
26039 * checks.adb (Apply_Array_Size_Check): Improve these checks by
26040 killing the overflow checks which we really do not need (64-bits is
26043 2004-06-25 Vincent Celier <celier@gnat.com>
26045 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
26046 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
26047 inconditionally for the main project.
26048 (Recursive_Add_Archives.Add_Archive_Path): New procedure
26049 (Link_Executables.Check_Time_Stamps): New procedure
26050 (Link_Executables.Link_Foreign): New procedure
26051 Changes made to reduce nesting level of this package
26052 (Check): New procedure
26053 (Add_Switches): When not in quiet output, check that a switch is not
26054 the concatenation of several valid switches. If it is, issue a warning.
26055 (Build_Global_Archive): If the global archive is rebuilt, linking need
26057 (Compile_Sources): Rebuilding a library archive does not imply
26058 rebuilding the global archive.
26059 (Build_Global_Archive): New procedure
26060 (Build_Library): New name for Build_Archive, now only for library
26062 (Check_Archive_Builder): New procedure
26063 (Create_Global_Archive_Dependency_File): New procedure
26064 (Gprmake): Call Build_Global_Archive before linking
26065 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
26067 (Scan_Arg): Display the Copyright notice when -v is used
26069 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
26072 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
26074 Add new GNAT LIST qualifier /FILES=
26075 Added qualifier /DIRECTORY= to GNAT METRIC
26076 Added qualifier /FILES= to GNAT METRIC
26077 Added qualifier /FILES to GNAT PRETTY
26079 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
26080 to take into account both versions of the switch.
26082 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
26083 always be the last switch to the gcc driver. Disable switch storing so
26084 that switches automatically added by the gcc driver are not put in the
26087 * prj.adb (Project_Empty): Take into account changes in components of
26090 * prj.ads (Languages_Processed): New enumaration value All_Languages.
26092 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
26093 used. Split Boolean component Ada_Sources_Present in two Boolean
26094 components Ada_Sources_Present and Other_Sources_Present.
26097 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
26098 instead of Sources_Present.
26099 (Set_Ada_Paths.Add.Recursive_Add): Ditto
26101 * prj-nmsc.adb: Minor reformatting
26102 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
26103 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
26104 Check_Ada_Naming_Scheme.
26105 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
26108 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
26110 Make sure that all cycles where there is at least one "limited with"
26112 (Parse_Single_Project): New Boolean parameter In_Limited
26114 * prj-proc.adb (Recursive_Check): When Process_Languages is
26115 All_Languages, call first Prj.Nmsc.Ada_Check, then
26116 Prj.Nmsc.Other_Languages_Check.
26118 * prj-proc.adb (Process): Use Ada_Sources_Present or
26119 Other_Sources_Present (instead of Sources_Present) depending on
26122 * lang-specs.h: Keep -g and -m switches in the same order, and as the
26125 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
26126 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
26128 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
26131 * lib.ads (Disable_Switch_Storing): New procedure.
26133 * make.adb: Modifications to reduce nesting level of this package.
26134 (Check_Standard_Library): New procedure
26135 (Gnatmake.Check_Mains): New procedure
26136 (Gnatmake.Create_Binder_Mapping_File): New procedure
26137 (Compile_Sources.Compile): Add switch -gnatez as the last option
26138 (Display): Never display -gnatez
26140 * Makefile.generic:
26141 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
26143 * gnatcmd.adb (Check_Project): New function
26144 (Process_Link): New procedure to reduce nesting depth
26145 (Check_Files): New procedure to reduce the nesting depth.
26146 For GNAT METRIC, include the inherited sources in extending projects.
26147 (GNATCmd): When GNAT LS is invoked with a project file and no files,
26148 add the list of files from the sources of the project file. If this list
26149 is too long, put it in a temp text files and use switch -files=
26150 (Delete_Temp_Config_Files): Delete the temp text file that contains
26151 a list of source for gnatpp or gnatmetric, if one has been created.
26152 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
26153 in the project file is too large, create a temporary text file that
26154 list them and pass it to the tool with "-files=<temp text file>".
26155 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
26157 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
26158 generated file is in not in Ada.
26160 * gnatls.adb: Remove all parameters And_Save that are no longer used.
26161 (Scan_Ls_Arg): Add processing for -files=
26162 (Usage): Add line for -files=
26164 * g-os_lib.adb (On_Windows): New global constant Boolean flag
26165 (Normalize_Pathname): When on Windows and the path starts with a
26166 directory separator, make sure that the resulting path will start with
26169 * clean.adb (Clean_Archive): New procedure
26170 (Clean_Project): When there is non-Ada code, delete the global archive,
26171 the archive dependency files, the object files and their dependency
26172 files, if they exist.
26173 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
26175 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
26177 * sinfo.ads: Fix typo in comment.
26179 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
26180 the TSS for remote access-to-subprogram types, since these TSS are
26181 always present once the type has been analyzed.
26182 (RAS_E_Dereference): Same.
26184 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
26185 reference raises Bad_Attribute, mark the reference as analyzed so the
26186 node (and any children resulting from rewrites that could have occurred
26187 during the analysis that ultimately failed) is not analyzed again.
26189 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
26191 * exp_dist.adb: Minor comment fix.
26193 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
26194 type is an anonymous access type, no unchecked deallocation of the
26195 allocated object can occur. If the object is controlled, attach it with
26196 a count of 1. This allows attachment to the Global_Final_List, if
26197 no other relevant list is available.
26198 (Get_Allocator_Final_List): For an anonymous access type that is
26199 the type of a discriminant or record component, the corresponding
26200 finalisation list is the one of the scope of the type.
26202 2004-06-25 Ed Schonberg <schonberg@gnat.com>
26204 * sem_ch3.adb (Replace_Type): When computing the signature of an
26205 inherited subprogram, use the first subtype if the derived type
26206 declaration has no constraint.
26208 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
26209 before applying previous optimization. Minor code cleanup.
26211 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
26212 placed at the beginning of an unpacked record without explicit
26213 alignment, a slice of it will be aligned and does not need a copy when
26216 2004-06-25 Ed Schonberg <schonberg@gnat.com>
26220 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
26221 reference is written with expressions mimicking parameters.
26223 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
26226 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
26227 STEP 2a. The constraints of a full type declaration of a derived record
26228 type are checked for conformance with those declared in the
26229 corresponding private extension declaration. The message
26230 "not conformant with previous declaration" is emitted if an error is
26233 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
26235 * g-traceb.ads: Document the need for -E binder switch in the spec.
26237 * g-trasym.ads: Document the need for -E binder switch in the spec.
26239 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
26241 * sem_prag.adb: Add handling of pragma Detect_Blocking.
26243 * snames.h, snames.ads, snames.adb: Add entry for pragma
26246 * s-rident.ads: Change reference to pragma Detect_Blocking.
26248 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
26251 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
26252 to indicate whether pragma Detect_Blocking is active.
26254 * par-prag.adb: Add entry for pragma Detect_Blocking.
26256 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
26257 of not handling WITH.
26258 Note that this replaces the previous update which was incorrect.
26260 2004-06-25 Javier Miranda <miranda@gnat.com>
26262 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
26263 use-clauses to have a clean environment.
26265 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
26266 the installation of the use-clauses to stablish a clean environment in
26267 case of compilation of a separate unit; otherwise the call to
26268 use_one_package is protected by the barrier Applicable_Use.
26270 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
26271 the installation of the use-clauses to stablish a clean environment in
26272 case of compilation of a separate unit.
26273 (End_Use_Clauses): Minor comment cleanup.
26275 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
26277 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
26279 2004-06-23 Richard Henderson <rth@redhat.com>
26281 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
26283 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26285 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
26286 now bool instead of int.
26287 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
26288 * trans.c (gnu_switch_label_stack): New function.
26289 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
26290 elaboration of renamed entity returns.
26291 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
26292 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
26293 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
26294 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
26295 DECL_SIZE_UNIT and simplify variable-sized case.
26296 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
26297 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
26298 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
26299 (build_unit_elab): Disable for now.
26300 * utils.c (mark_visited): New function.
26301 (pushdecl): Walk tree to call it for global decl.
26302 (update_pointer_to): Update all variants of pointer and ref types.
26303 Add arg to COMPONENT_REF.
26304 (convert): Likewise.
26305 Move check for converting between variants lower down.
26306 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
26307 (build_allocator): Don't force type of MODIFY_EXPR.
26308 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
26309 put_var_into_stack.
26311 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26313 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
26314 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
26315 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
26317 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
26318 all callers changed.
26319 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
26320 the way that EXIT_STMT finds the loop label.
26321 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
26322 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
26323 (add_stmt): Use annotate_with_locus insted of setting directly.
26324 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
26325 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
26326 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
26327 (build_vms_descriptor): Add extra args to ARRAY_REF.
26328 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
26329 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
26331 (build_binary_op): Don't make explicit CONVERT_EXPR.
26332 Add extra rgs to ARRAY_REF.
26334 2004-06-14 Pascal Obry <obry@gnat.com>
26336 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
26337 Windows. Fix minor typo.
26339 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
26340 which is now supported on Windows. With this implementation using the
26341 Library Project feature is no different on Windows than on UNIX.
26343 2004-06-14 Vincent Celier <celier@gnat.com>
26345 * makegpr.adb (Compile_Sources): Nothing to do when there are no
26348 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
26350 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
26351 found, show the project name and the path of the previously parsed
26354 2004-06-14 Ed Schonberg <schonberg@gnat.com>
26356 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
26357 array, avoid copying the actual before the call.
26359 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
26361 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
26362 Instead, allocate memory on worst-case alignment assumptions, and then
26363 return an aligned address within the allocated zone.
26365 2004-06-14 Robert Dewar <dewar@gnat.com>
26367 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
26368 elab entities in predefined units in No_Run_Time_Mode.
26369 (Gen_Adainit_C): Same fix
26370 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
26371 units in No_Run_Time_Mode
26372 (Gen_Elab_Calls_C): Same fix
26374 * symbols-vms-alpha.adb: Minor reformatting
26376 * g-debpoo.ads: Minor reformatting
26378 * lib.adb (In_Same_Extended_Unit): Version working on node id's
26380 * lib.ads (In_Same_Extended_Unit): Version working on node id's
26382 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
26385 * make.adb: Minor reformatting
26387 * par-ch12.adb: Minor reformatting
26389 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
26391 * prj-strt.adb: Minor reformatting
26393 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
26396 * sem_attr.adb: Minor reformatting
26398 * sem_ch7.adb: Minor reformatting
26400 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
26401 for type in the same unit as the object declaration.
26403 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
26404 static string expressions and not just string literals.
26406 (Set_Warning): Reset restriction warning flag for restriction pragma
26407 Implement pragma Profile_Warnings
26408 Implement pragma Profile (Restricted)
26409 Give obolescent messages for old restrictions and pragmas
26411 * snames.h, snames.ads, snames.adb: Add new entry for pragma
26414 * s-rident.ads: Add declarations for restrictions required by profile
26415 Restricted and profile Ravenscar.
26417 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
26419 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
26420 configuration pragmas.
26422 2004-06-11 Vincent Celier <celier@gnat.com>
26424 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
26425 gnatsym, when symbol policy is Restricted.
26427 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
26428 gnatsym, when symbol policy is Restricted.
26430 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
26431 read the symbol file.
26432 (Finalize): Fail in symbol policy Restricted if a symbol in the original
26433 symbol file is not in the object files. Do not create a new symbol file
26434 when symbol policy is Restricted.
26436 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
26439 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
26441 (Usage): Line for new switch -R
26443 * make.adb (Initialize): When the platform is not VMS, add the
26444 directory where gnatmake is invoked in the front of the path, if
26445 gnatmake is invoked with directory information. Change the Scan_Args
26446 while loop to a for loop.
26447 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
26448 if Depth is equal or greater than the proposed depth, there is nothing
26450 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
26453 * prj.ads: Add new symbol policy Restricted.
26455 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
26456 with the new parameters Check_All_Labels and Case_Location.
26458 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
26459 (Library_Symbol_File needs to be defined).
26461 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
26462 and Case_Location If Check_All_Labels is True, check that all values of
26463 the string type are used, and output warning(s) if they are not.
26465 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
26468 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
26470 * gnat_ugn.texi: Update documentation about the library directory in
26473 * makegpr.adb (Display_Command): In verbose mode, also display the
26474 value of the CPATH env var, when the compiler is gcc.
26475 (Initialize): Change the Scan_Args while loop to a for loop
26476 (Compile_Individual_Sources): Change directory to object directory
26477 before compilations.
26479 * symbols.ads: New symbol policy Restricted.
26481 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
26483 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
26484 is now taken care of internally in the Exception_Propagation package
26485 and does not require clients assistance any more.
26487 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
26488 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
26489 functions. Helpers to maintain a predicate required in the handling of
26490 occurrence transfer between tasks.
26491 This is now handled internally and does not require clients assistance
26492 for the setup/propagate separation anymore.
26493 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
26494 allocation strategy, handle the Setup_And_Not_Propagated predicate and
26497 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
26498 raise_after_setup, now that everything is handled internally within the
26499 setup/propagation engine.
26501 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
26503 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
26504 Add additional conditions for the case of an actual being a simple
26505 name or literal. Improve inlining by preventing the generation
26506 of temporaries with a short lifetime (one use).
26508 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
26511 * einfo.ads: Minor comment updates for Has_Completion and
26512 E_Constant list of flags.
26514 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
26515 and constant redeclarations now set the Has_Completion flag of their
26516 defining identifiers.
26518 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
26519 Inspect_Deferred_Constant_Completion.
26520 Used to detect private deferred constants that have not been completed
26521 either by a constant redeclaration or pragma Import. Emits error message
26522 "constant declaration requires initialization expression".
26524 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
26525 completes a deferred constant.
26527 2004-06-11 Geert Bosch <bosch@gnat.com>
26529 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
26531 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
26532 calculating exponent for scaling denormal numbers.
26533 (Leading_Part): Properly raise Constraint_Error for zero or negative
26535 (Remainder): Properly raise Constraint_Error for zero divisor.
26537 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
26539 * sem_util.adb: Minor reformatting.
26541 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
26542 dereference when accessing the entry parameter record.
26543 (Check_Array_Type): Always check for possible implicit dereference.
26544 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
26545 Abort if a pointer is still present (denoting that an implicit
26546 dereference was left in the tree by the front-end).
26548 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
26549 dereference when accessing the entry parameter record.
26550 (Check_Array_Type): Always check for possible implicit dereference.
26551 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
26552 Abort if a pointer is still present (denoting that an implicit
26553 dereference was left in the tree by the front-end).
26555 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
26557 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
26558 message, like the compiler itself does. Easier to parse the output.
26560 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
26562 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
26563 be base names, and not includes directories.
26565 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
26567 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
26568 so that dependencies are properly taken into account by make.
26570 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
26573 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
26574 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
26576 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
26578 * Makefile.in (install-gnatlib): install target-specific run-time files.
26580 * Make-lang.in: Remove obsolete targets.
26582 2004-06-11 Ed Schonberg <schonberg@gnat.com>
26584 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
26585 specification, to catch misuses of program unit names.
26587 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
26588 superfluous conversions in an instance.
26590 2004-06-11 Ed Schonberg <schonberg@gnat.com>
26593 * sem_ch12.adb (Save_References): If operator node has been folded to
26594 enumeration literal, associated_node must be discarded.
26596 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
26598 * s-stchop-vxworks.adb: Add required pragma Convention to
26599 Task_Descriptor because it is updated by a C function.
26601 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
26604 * Makefile.in: Remove target specific SO_OPT on IRIX
26606 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26608 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
26609 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
26610 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
26611 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
26612 (STMT_STMT, USE_STMT): New statement codes.
26613 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
26614 * ada-tree.h: Reflect above changes.
26615 (struct tree_loop_id): Deleted.
26616 (union lang_tree_node, struct lang_decl, struct lang_type):
26617 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
26618 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
26619 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
26620 (IS_ADA_STMT): New macro.
26621 * decl.c (annotate_decl_with_node): New function.
26622 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
26623 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
26624 Call add_stmt_with_node to do needed assignments.
26625 Add call to update setjmp buffer directly, not via EXPR_STMT.
26626 (maybe_variable): Argment GNAT_NODE deleted.
26627 * gigi.h (maybe_variable): Likewise.
26628 (make_transform, add_stmt_with_node, set_block_for_group): New.
26629 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
26630 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
26631 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
26632 (set_lineno, set_lineno_from_sloc): Likewise.
26633 (record_code_position, insert_code_for): Likewise.
26634 (gnat_poplevel): Now returns void.
26635 (end_subprog_body): Now takes argument.
26636 * misc.c (cgraph.h, tree-inline.h): New includes.
26637 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
26638 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
26639 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
26640 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
26641 (gnat_parse_file): Don't set immediate_size_expand.
26642 Call cgraph functions.
26643 (gnat_expand_expr): Remove most cases.
26644 (record_code_position, insert_code_for): Remove from here.
26645 * trans.c (toplev.h, tree-gimple.h): Now included.
26646 (discard_file_names): Deleted.
26647 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
26648 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
26649 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
26650 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
26651 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
26652 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
26653 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
26654 (set_block_for_group, add_stmt_list): Likewise.
26655 (start_stmt_group): Renamed from start_block_stmt.
26656 (end_stmt_group): Likewise, from end_block_stmt.
26657 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
26658 (gigi): Don't set discard_file_names or call set_lineno.
26659 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
26660 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
26661 Numerous changes throughout to reflect new names and complete
26662 function-at-a-time implementation.
26663 (gnat_expand_stmt): Delete or comment out all cases.
26664 (process_inlined_subprograms): Use add_stmt.
26665 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
26666 call set_lineno; also remove unneeded block handling.
26667 (process_type): Remove unneeded block handling.
26668 (build_unit_elab): Remove calls to deleted functions.
26669 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
26670 (tree-dump.h): Likewise.
26671 (struct ada_binding_level): Add field jmpbuf_decl.
26672 (gnat_define_builtin, gnat_install_builtins): New.
26673 (gnat_gimplify_function, gnat_finalize): Likewise.
26674 (gnat_poplevel): No longer return BLOCK, set it instead.
26675 Remove code dealing with nested functions.
26676 (gnat_init_decl_processing): Also set size_type_node.
26677 Call gnat_install_builtins.
26678 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
26679 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
26680 Remove special-case for "main".
26681 (end_subprog_body): Add arg and rework for tree-ssa.
26682 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
26683 Add case for BOOLEAN_TYPE.
26684 * utils2.c (rtl.h): Now include.
26685 (build_call_raise): Test Debug_Flag_NN directly.
26686 (build_call_alloc_dealloc): Don't use local stack allocation for now.
26687 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
26688 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
26690 2004-06-07 Robert Dewar <dewar@gnat.com>
26692 * a-direct.ads, einfo.ads: Minor comment updates
26694 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
26695 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
26696 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
26697 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
26698 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
26700 * s-interr-sigaction.adb: Remove unreferenced variable
26701 (Attached_Interrupts). Minor reformatting.
26702 Avoid use of variable I (replace by J).
26704 * par-ch10.adb: Fix text of one error message
26706 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
26707 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
26708 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
26709 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
26710 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
26711 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
26712 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
26713 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
26714 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
26715 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
26716 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
26719 2004-06-07 Doug Rupp <rupp@gnat.com>
26721 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
26723 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
26725 * mlib-tgt-vms-ia64.adb: New file.
26727 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
26728 Add mlib-tgt-vms-ia64.adb
26729 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
26730 Move to alpha specific ifeq section.
26731 Add VMS specific versions of symbols.adb
26732 Renaming of 5q vms files.
26734 * 5qsystem.ads renamed to system-vms_64.ads.
26736 2004-06-07 Vincent Celier <celier@gnat.com>
26738 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
26739 explain that when a time of day corresponding to the non existing hour
26740 on the day switching to DST is specified, Split may return a different
26743 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
26746 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
26747 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
26749 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
26751 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
26752 the linking options.
26753 (Build_Library.Check_Libs): On VMS, if there is a dependency on
26754 g-trasym.ads, set Gtrasymobj_Needed to True.
26756 * prj-attr.adb: Add new package Metrics for gnatmetric
26758 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
26759 canonical case to take into account files with upper case characters on
26761 (Ada_Check): Load the reference symbol file name in the name buffer to
26762 check it, not the symbol file name.
26764 * snames.ads, snames.adb: Add standard name Metrics (name of project
26765 file package for gnatmetric).
26767 * vms_conv.ads: Add Metric to Comment_Type
26769 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
26771 * vms_data.ads: Add qualifiers for GNAT METRIC
26773 * makegpr.adb (Link_Executables): Take into account the switches
26774 specified in package Linker of the main project.
26776 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
26778 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
26779 the index of the last element is Units.Last, not Units.Table'Last
26780 (which is usually not a valid index within the actually allocated
26781 storage for the table).
26783 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
26784 determines whether to generate a call to a checked storage pool
26785 Dereference action.
26786 Generate such a call only for a dereference that either comes from
26787 source, or is the result of rewriting a dereference that comes from
26790 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
26792 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
26794 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
26796 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
26797 file level, elaborate the stride for inner dimensions in alignment
26800 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
26803 2004-06-07 Javier Miranda <miranda@gnat.com>
26805 * exp_ch6.adb: Correct wrong modification in previous patch
26807 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
26809 * g-trasym.ads: Corrected comment to properly reflect level of support
26812 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
26814 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
26815 includes case of a variable referenced on the left hand side of an
26816 assignment, therefore remove redundant code. Variables and prefixes of
26817 indexed or selected components are now marked as referenced on left
26818 hand side. Warnings are now properly emitted when variables or prefixes
26819 are assigned but not read.
26821 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
26822 left hand side referenced variables. Private access types do not
26823 produce the warning "variable ... is assigned but never read".
26824 Add also additional checks to left hand side referenced variables.
26825 Aliased, renamed objects and access types do not produce the warning
26826 "variable ... is assigned but never read" since other entities may read
26827 the memory location.
26829 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
26831 * Makefile.in: In the powerpc/vxworks-specific section, restore
26832 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
26835 2004-06-07 Ed Schonberg <schonberg@gnat.com>
26837 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
26838 predefined operators.
26839 Removes spurious type errors from g-trasym-vms.adb.
26841 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
26842 distinct from the operator appearing in the source, call appropriate
26843 routine to insert conversions when needed, and complete resolution of
26845 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
26846 interpretations for rewritten right operand.
26847 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
26848 the other operand is overloaded and the context is a type conversion.
26850 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26852 * ada-tree.def (BLOCK_STMT): Now has two operands.
26855 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
26857 * gigi.h: (gnat_poplevel): Now returns a tree.
26859 * trans.c (end_block_stmt): Add arg; all callers changed.
26860 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
26861 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
26862 (add_stmt): Set TREE_TYPE.
26863 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
26864 (gnat_expand_stmt, case BREAK_STMT): New case.
26866 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
26868 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
26870 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
26871 procedure Set_Stack_Size that is not needed.
26873 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
26875 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
26876 used for gnatpp input file and for the files upon which it depends
26878 2004-06-07 Ben Brosgol <brosgol@gnat.com>
26880 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26882 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
26884 * gnatvsn.ads: Bump version numbers appropriately.
26885 Add new build type.
26887 2004-06-07 Pascal Obry <obry@gnat.com>
26889 * gnat_ugn.texi: Improve comments about imported names and link names
26890 on Windows. Add a note about the requirement to use -k gnatdll's option
26891 when working with a DLL which has stripped stdcall symbols (no @nn
26894 2004-05-27 Vincent Celier <celier@gnat.com>
26896 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
26897 COMMENTS_LAYOUT=UNTOUCHED
26899 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
26900 symbols-vms-alpha.adb
26902 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
26904 * sem.ads: Clarify documentation on checks suppression.
26906 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
26908 2004-05-27 Ed Schonberg <schonberg@gnat.com>
26910 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
26911 the case of multiple derivations.
26912 (Is_Object_Reference): For a selected component, verify that the prefix
26913 is itself an object and not a value.
26915 * sem_ch12.adb (Same_Instantiated_Constant): New name for
26916 Same_Instantiated_Entity.
26917 (Same_Instantiated_Variable): Subsidiary to
26918 Check_Formal_Package_Instance, to recognize actuals for in-out generic
26919 formals that are obtained from a previous formal package.
26920 (Instantiate_Subprogram_Body): Emit proper error when
26921 generating code and the proper body of a stub is missing.
26923 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
26924 has a universal interpretation, do the disambiguation here.
26926 * exp_ch4.adb (Expand_N_Type_Conversion,
26927 Expand_N_Unchecked_Type_Conversion): Special handling when target type
26928 is Address, to avoid typing anomalies when Address is a visible integer
26931 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
26932 to determine whether a subprogram should not be marked Pure, even when
26933 declared in a pure package.
26935 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
26937 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
26939 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
26940 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
26941 Update the documentation about the Ravenscar profile, following the
26942 definition found in AI-249.
26944 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
26945 setting the Profile (Ravenscar). This must be done in addition to
26946 setting the required restrictions.
26948 * rtsfind.ads: Add the set of operations defined in package
26951 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
26954 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
26956 lang-specs.h: Always require -c or -S and always redirect to /dev/null
26957 if -gnatc or -gnats is passed.
26959 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
26961 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
26962 a significant reference. Warnings are now properly emitted when a
26963 discriminated type is not referenced.
26965 * lib-xref.adb (Generate_Reference): A deferred constant completion,
26966 record representation clause or record type discriminant does not
26967 produce a reference to its corresponding entity. Warnings are now
26968 properly emitted when deferred constants and record types are not
26971 2004-05-27 Geert Bosch <bosch@gnat.com>
26973 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
26974 Fixes ACATS Annex G tests.
26976 2004-05-27 Robert Dewar <dewar@gnat.com>
26978 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
26981 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
26983 * s-interr.adb (Server_Task): Take into account case of early return
26984 from sigwait under e.g. linux.
26986 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
26988 * gnat_ugn.texi: Add description for the new gnatpp options:
26989 -rnb - replace the original source without creating its backup copy
26990 -c0 - do not format comments
26992 2004-05-24 Geert Bosch <bosch@gnat.com>
26994 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
26995 with 192 bits of precision, sufficient to reduce a double-extended
26996 arguments X with a maximum relative error of T'Machine_Epsilon, for X
26997 in -2.0**32 .. 2.0**32.
26998 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
26999 reduction by the processor, which only uses a 68-bit approximation of
27001 (Tan): Always reduce arguments and compute function either using
27002 the processor's fptan instruction, or by dividing sin and cos as needed.
27004 2004-05-24 Doug Rupp <rupp@gnat.com>
27006 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
27007 gcc error on 32/64 bit VMS.
27009 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
27011 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
27012 since this is what we get for stack overflows although not documented
27014 Document the issues which may require adjustments to our signal
27017 2004-05-24 Ed Schonberg <schonberg@gnat.com>
27019 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
27020 enclosing dynamic scope if the instantiation is within a generic unit.
27022 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
27024 * exp_dbug.ads: Fix typo.
27026 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
27027 Rename it to its proper name: system-linux-ia64.ads
27028 (stamp-gnatlib1): Remove extra target specific run time files when
27029 setting up the rts directory.
27031 2004-05-24 Javier Miranda <miranda@gnat.com>
27033 * einfo.ads, einfo.adb (Limited_Views): Removed.
27034 (Limited_View): New attribute that replaces the previous one. It is
27035 now a bona fide package with the limited-view list through the
27036 first_entity and first_private attributes.
27038 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
27039 limited-private-with clause.
27040 (Install_Limited_Withed_Unit): Install the private declarations of a
27041 limited-private-withed package. Update the installation of the shadow
27042 entities according to the new structure (see Build_Limited_Views)
27043 (Build_Limited_Views): Replace the previous implementation of the
27044 limited view by a package entity that references the first shadow
27045 entity plus the first shadow private entity (required for limited-
27046 private-with clause)
27047 (New_Internal_Shadow_Entity): Code cleanup.
27048 (Remove_Limited_With_Clause): Update the implementation to undo the
27049 new work carried out by Build_Limited_Views.
27050 (Build_Chain): Complete documentation.
27051 Replace Ada0Y by Ada 0Y in comments
27054 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
27055 types the level of accessibility depends on the enclosing type
27058 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
27059 entities. Complete documentation of previous change.
27061 2004-05-24 Robert Dewar <dewar@gnat.com>
27063 * namet.adb: Minor reformatting
27064 Avoid use of name I (replace by J)
27065 Minor code restructuring
27067 * sem_ch6.adb: Minor reformatting
27069 * lib-writ.adb: Do not set restriction as active if this is a
27070 Restriction_Warning case.
27072 * sem_prag.adb: Reset restriction warning flag if real pragma
27073 restriction encountered.
27075 * s-htable.adb: Minor reformatting
27076 Change rotate count to 3 in Hash (improves hash for small strings)
27078 * 5qsystem.ads: Add comments for type Address (no literals allowed).
27080 * gnat_ugn.texi: Add new section of documentation "Code Generation
27081 Control", which describes the use of -m switches.
27083 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
27085 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
27086 through the DECL_INITIAL for renamed variables.
27088 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
27090 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
27092 2004-05-19 Joel Brobecker <brobecker@gnat.com>
27094 * exp_dbug.ads: Correct comments concerning handling of overloading,
27095 since we no longer use $ anymore.
27097 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
27099 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
27100 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
27101 with illegal subunits.
27103 2004-05-19 Ed Schonberg <schonberg@gnat.com>
27105 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
27106 body with front-end inlining enabled, check whether an inline pragma
27107 appears immediately after the body and applies to it.
27109 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
27110 enabled and the pragma appears after the body of the subprogram.
27112 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27114 Part of function-at-a-time conversion
27116 * misc.c (adjust_decl_rtl): Deleted.
27117 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
27120 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
27121 (add_decl_stmt, add_stmt, block_has_vars): New functions.
27122 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
27124 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
27125 when making a decl.
27126 (gnat_to_gnu_entity): Likewise.
27127 Use add_stmt to update setjmp buffer.
27128 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
27130 No longer call adjust_decl_rtl.
27131 (DECL_INIT_BY_ASSIGN_P): New macro.
27132 (DECL_STMT_VAR): Likewise.
27134 * trans.c (gigi): Call start_block_stmt to make the outermost
27136 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
27137 Call start_block_stmt and end_block_stmt temporarily.
27138 Use gnat_expand_stmt instead of expand_expr_stmt.
27139 (add_decl_stmt): New function.
27140 (tree_transform): Call it.
27141 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
27142 (end_block_stmt): Set type and NULL_STMT.
27143 (gnat_expand_stmt): Make recursize call instead of calling
27145 (gnat_expand_stmt, case DECL_STMT): New case.
27146 (set_lineno_from_sloc): Do nothing if global.
27147 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
27148 (start_block_stmt, add_stmt, end_block_stmt): New functions.
27149 (build_block_stmt): Call them.
27150 (gnat_to_code): Don't expand NULL_STMT.
27151 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
27153 (tree_transform): Likewise.
27154 (tree_transform, case N_Null_Statement): Return NULL_STMT.
27155 (gnat_expand_stmt, case NULL_STMT): New case.
27156 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
27159 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
27162 * utils.c (create_var_decl): Do not call expand_decl or
27164 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
27165 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
27167 (struct e_stack): Add chain_next to GTY.
27168 (struct binding_level): Deleted.
27169 (struct ada_binding_level): New struct.
27170 (free_block_chain): New.
27171 (global_binding_level, clear_binding_level): Deleted.
27172 (global_bindings_p): Rework to see if no chain.
27173 (kept_level_p, set_block): Deleted.
27174 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
27175 new data structure and work directly on BLOCK node.
27176 (gnat_poplevel): Similarly.
27177 (get_decls): Look at BLOCK_VARS.
27178 (insert_block): Work directly on BLOCK node.
27179 (block_has_var): New function.
27180 (pushdecl): Rework for new binding structures.
27181 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
27183 (build_subprog_body): Likewise.
27184 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
27186 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
27188 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
27189 (DECL_STMT_VAR): Likewise.
27191 2004-05-17 Robert Dewar <dewar@gnat.com>
27193 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
27196 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
27197 of restriction synonyums by using
27198 Restrict.Process_Restriction_Synonyms.
27200 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
27202 * s-restri.ads (Tasking_Allowed): Correct missing comment
27204 * s-rident.ads: Add entries for restriction synonyms
27206 * ali.adb: Fix some problems with badly formatted ALI files that can
27207 result in infinite loops.
27209 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
27210 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
27211 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
27212 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
27213 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
27214 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
27215 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
27216 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
27217 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
27218 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
27219 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
27220 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
27221 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
27222 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
27223 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
27224 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
27225 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
27226 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
27227 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
27228 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
27229 to Task_Id (minor cleanup).
27231 2004-05-17 Vincent Celier <celier@gnat.com>
27233 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
27234 directory separator.
27236 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
27237 project being extended, if Languages is not declared in extending
27240 2004-05-17 Javier Miranda <miranda@gnat.com>
27242 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
27243 limited view of a visible sibling.
27245 2004-05-14 Robert Dewar <dewar@gnat.com>
27247 * gnat_ugn.texi: Minor change to -gnatS documentation
27249 * sprint.adb: Remove some instances of Assert (False) and for this
27250 purpose replace them by output of a ??? string.
27252 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
27255 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
27256 flag processing. This was suppressing required dependencies in
27257 No_Run_Time mode and is not needed since the binder does not generate
27258 references for things in libgnat anyway.
27260 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
27263 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
27265 * gnat_ugn.texi: Document AIX-specific issue with initialization of
27268 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
27269 action for the case of an actual parameter in an init proc call.
27271 2004-05-14 Ed Schonberg <schonberg@gnat.com>
27273 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
27274 subtype, check visible entities in base type.
27276 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
27277 actions if the object is a renaming.
27279 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
27280 Check_Formal_Package_Instance, to determine more precisely when the
27281 formal and the actual denote the same entity.
27283 2004-05-14 Javier Miranda <miranda@gnat.com>
27285 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
27287 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
27288 corresponding to a private_with must be removed from visibility; it
27289 will be made visible later, just before we analyze the private part of
27291 (Check_Private_Child_Unit): Allow private_with clauses in public
27293 (Install_Siblings): Make visible the private entities of private-withed
27295 (Install_Withed_Unit): Do not install the private withed unit if we
27296 are compiling a package declaration and the Private_With_OK flag was
27297 not set by the caller. These declarations will be installed later,
27298 just before we analyze the private part of the package.
27300 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
27301 during the evaluation of the expression that initializes the object,
27302 decorate it with the expected type to avoid cascade errors.
27305 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
27306 subprogram we have to install the private_with clauses after its
27307 specification has been analyzed (as documented in AI-262.TXT).
27309 * sem_ch8.adb (Has_Private_With): New function. Determines if the
27310 current compilation unit has a private with on a given entity.
27311 (Find_Direct_Name): Detect the Beaujolais problem described in
27314 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
27315 provides the functionality of the function Is_Ancestor that was
27316 previously available in sem_ch10. It has been renamed to avoid
27319 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
27321 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27323 * utils.c (build_vms_descriptor): Use SImode pointers.
27325 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
27327 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
27329 2004-05-14 GNAT Script <nobody@gnat.com>
27331 * Make-lang.in: Makefile automatically updated
27333 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
27335 Renaming of target specific files for clarity
27337 * Makefile.in: Rename GNAT target specific files.
27339 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
27340 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
27341 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
27342 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
27343 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
27344 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
27345 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
27346 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
27347 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
27348 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
27349 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
27350 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
27351 51osinte.adb, 51osinte.ads, 51system.ads,
27352 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
27353 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
27354 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
27355 56tpopsp.adb, 57system.ads, 58system.ads,
27356 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
27357 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
27358 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
27359 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
27360 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
27361 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
27362 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
27363 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
27364 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
27365 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
27366 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
27367 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
27368 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
27369 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
27370 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
27371 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
27372 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
27373 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
27374 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
27375 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
27376 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
27377 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
27378 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
27379 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
27380 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
27381 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
27382 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
27383 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
27384 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
27385 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
27386 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
27387 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
27388 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
27389 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
27390 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
27391 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
27392 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
27393 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
27394 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
27395 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
27397 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
27398 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
27399 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
27400 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
27401 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
27402 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
27403 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
27404 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
27405 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
27406 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
27407 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
27408 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
27409 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
27410 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
27411 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
27412 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
27413 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
27414 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
27415 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
27416 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
27417 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
27418 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
27419 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
27420 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
27421 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
27422 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
27423 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
27424 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
27425 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
27426 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
27427 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
27428 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
27429 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
27430 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
27431 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
27432 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
27433 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
27434 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
27435 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
27436 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
27437 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
27438 s-osinte-vms.ads, s-osinte-vxworks.adb,
27439 s-osinte-vxworks.ads, s-osprim-mingw.adb,
27440 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
27441 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
27442 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
27443 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
27444 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
27445 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
27446 s-stchop-vxworks.adb, s-taprop-dummy.adb,
27447 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
27448 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
27449 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
27450 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
27451 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
27452 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
27453 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
27454 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
27455 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
27456 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
27457 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
27458 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
27459 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
27460 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
27461 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
27462 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
27463 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
27464 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
27465 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
27466 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
27467 system-irix-o32.ads, system-linux-x86_64.ads,
27468 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27469 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
27470 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
27471 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
27472 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
27473 system-vxworks-mips.ads, system-vxworks-ppc.ads,
27474 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
27477 2004-05-13 Zack Weinberg <zack@codesourcery.com>
27479 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
27481 2004-05-13 Diego Novillo <dnovillo@redhat.com>
27483 Merge from tree-ssa-20020619-branch.
27485 * config-lang.in (boot_language, build_by_default): Set
27487 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
27488 (max_size): Add static chain op for call_expr.
27490 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
27493 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
27495 2004-05-11 Roger Sayle <roger@eyesopen.com>
27497 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
27500 2004-05-10 Doug Rupp <rupp@gnat.com>
27502 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
27505 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
27507 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
27509 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
27510 Fixes undefined symbols in IA64 gnatlib.
27512 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
27514 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
27515 Short_Address). This will be moved to system.auxdec.
27517 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
27519 * sem_util.adb: Replace test for presence of a node that is always
27520 present with a call to Discard_Node.
27522 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
27523 Analyze on the library unit node after generation of distribution stub
27524 constructs. The call was a no-op because Unit_Node has already been
27525 Analyzed, and the tree fragments for the distribution stubs are
27526 analyzed as they are inserted in Exp_Dist.
27527 Update comment regarding to distribution stubs to reflect that we
27528 do not generate stub in separate files anymore.
27530 * einfo.ads: Clarify the fact that a tagged private type has the
27531 E_Record_Type_With_Private Ekind.
27533 * erroutc.adb: Minor reformatting
27535 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
27536 values if line length is increased using -gnatyM (noticed during code
27539 * eval_fat.adb: Minor reformatting
27540 Put spaces around exponentiation operator
27542 2004-05-10 Ed Schonberg <schonberg@gnat.com>
27545 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
27546 has been rewritten as an explicit dereference, retrieve type of
27547 original node to check for possibly unconstrained record type.
27549 2004-05-10 Ed Schonberg <schonberg@gnat.com>
27551 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
27552 overriding, use the operation of the parent unconditionally.
27554 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
27555 operation when either operand is a literal, to avoid further
27558 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
27559 overridden by a previous explicit declaration, mark the previous entity
27562 * sem_disp.adb (Check_Dispatching_Operation): New predicate
27563 Is_Visibly_Controlled, to determine whether a declaration of a
27564 primitive control operation for a derived type overrides an inherited
27565 one. Add warning if the explicit declaration does not override.
27567 2004-05-10 Vincent Celier <celier@gnat.com>
27569 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
27570 some cases when the sources are no longer present.
27572 * make.adb (Collect_Arguments): Fail if an external source, not part
27573 of any project need to be compiled, when switch -x has not been
27576 * makeusg.adb: Document new switch -x
27578 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
27579 defaulted to False.
27581 * switch-m.adb (Scan_Make_Switches): New switch -x
27583 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
27584 gnatmake switch -x.
27586 * gnat_ugn.texi: Document new gnatmake switch -x
27588 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
27590 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
27592 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
27593 (process_attributes): Likewise.
27595 2004-05-10 Joel Brobecker <brobecker@gnat.com>
27597 * s-inmaop.ads: Fix spelling mistake in one of the comments.
27599 2004-05-10 Robert Dewar <dewar@gnat.com>
27601 * gnat_ugn.texi: Document that for config pragma files, the maximum
27602 line length is always 32767.
27604 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
27605 literals is now allowed.
27607 * gnat-style.texi: Remove statement about splitting long lines before
27608 an operator rather than after, since we do not follow this rule at all.
27609 Clarify rule (really lack of rule) for spaces around exponentiation
27611 * sem_elim.adb: Allow concatenation of string literals as well as a
27612 single string literal for pragma arguments.
27614 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
27616 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
27617 written for append case.
27619 * frontend.adb: Changes to avoid checking max line length in config
27622 * g-os_lib.ads: Minor reformatting
27624 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
27625 wrong in any case. Instead use standard value. Noticed during code
27628 * opt.ads (Max_Line_Length): New field, used to implement removal of
27629 limitation on length of lines when scanning config pragma files.
27631 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
27632 makeutl.ads, makeutl.adb: Minor reformatting
27634 * scn.adb: Do not check line length while scanning config pragma files
27635 Do not check line length while scanning out license information
27637 * scng.adb: Changes to avoid line length checks while parsing config
27640 2004-05-10 GNAT Script <nobody@gnat.com>
27642 * Make-lang.in: Makefile automatically updated
27644 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
27646 * osint.adb (Find_Program_Name): Fix handling of VMS version
27649 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
27651 * g-os_lib.ads (Invalid_Time): New constant
27653 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
27654 return OS_Time instead of time_t to match what is imported by Ada.
27655 Now return -1 if the file doesn't exist, instead of a random value
27657 2004-05-05 Robert Dewar <dewar@gnat.com>
27659 * usage.adb: Add line for -gnatR?s switch
27661 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
27663 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
27664 and for Match (Data_First, Data_last)
27666 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
27667 written when we are dealing with multi-unit files.
27669 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
27671 * Makefile.in: Remove unused targets and variables.
27673 2004-05-05 Vincent Celier <celier@gnat.com>
27675 * switch-m.adb: New gnatmake switch -eI
27677 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
27678 of new gnatmake switch -eInnn.
27680 * makegpr.adb: Take into account new parameters Index and Src_Index in
27683 * clean.adb: Implement support for multi-unit sources, including new
27686 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
27689 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
27690 (Extract_From_Q): New out parameter Index
27691 (Mark, Is_Marked): Subprograms moved to Makeutl
27692 (Switches_Of): New parameter Source_Index
27693 (Add_Switch): New parameter Index
27694 (Check): New parameter Source_Index
27695 (Collect_Arguments): New parameter Source_Index
27696 (Collect_Arguments_And_Compile): New parameter Source_Index
27697 (Compile): New parameter Source_Index
27698 Put subprograms in alphabetical order
27699 Add support for multi-source sources, including in project files.
27701 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
27702 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
27705 * makeusg.adb: New gnatmake switch -eInnn
27707 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
27710 * opt.ads (Main_Index): New variable, defaulted to 0.
27712 * osint.ads, osinte.adb (Add_File): New parameter Index
27713 (Current_Source_Index): New function
27715 * prj.adb: Take into account new components Index and Src_Index
27717 * prj.ads (String_Element): New component Index
27718 (Variable_Value): New component Index
27719 (Array_Element): New component Src_Index
27721 * prj-attr.adb: Indicate that optional index may be specified for
27722 attributes Main, Executable, Spec, Body and some of Switches.
27724 * prj-attr.ads (Attribute_Kind): New values for optional indexes
27725 (Attribute_Record): New component Optional_Index
27727 * prj-com.ads (File_Name_Data): New component Index
27729 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
27731 * prj-env.adb (Put): Output optional index
27733 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
27734 attributes Spec and Body.
27736 * prj-nmsc.adb: Process optional indexes
27738 * prj-pp.adb: Ouput "at" for optional indexes
27740 * prj-proc.adb: Take into account optional indexes
27742 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
27743 Optional_Index. For string literal,
27744 process optional index when Optional_Index is True.
27745 (Parse_Expresion): New Boolean parameter Optional_Index
27747 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
27748 (Set_Source_Index_Of): New procedure
27750 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
27753 * prj-util.ads (Executable_Of): New parameter Index
27754 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
27755 New parameter Src_Index, defaulted to 0.
27757 2004-05-05 Ed Schonberg <schonberg@gnat.com>
27760 * sem_ch3.adb (Access_Definition): If this is an access parameter
27761 whose designated type is imported through a limited_with clause, do
27762 not add the enclosing subprogram to the list of private dependents of
27765 2004-05-05 Ed Schonberg <schonberg@gnat.com>
27768 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
27769 a limited_with clause, and the other is its non-limited view.
27771 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
27773 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
27775 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
27776 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
27777 Stand.Boolean_Literals to produce references to entities
27778 Standard_False and Standard_True from compile-time computed boolean
27781 * stand.ads (Boolean_Literals): New variable, provides the entity
27782 values for False and True, for use by the expander.
27784 2004-05-05 Doug Rupp <rupp@gnat.com>
27786 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
27787 5vinmaop.adb: Unchecked convert Short_Address vice Address
27789 * adaint.c, raise.c: Caste CRTL function return value
27790 to avoid gcc error on 32/64 bit IVMS.
27792 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
27795 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
27797 * 5qsystem.ads (Address): Declare as Long_Integer
27798 (Short_Address): Declare as 32 bit subtype of Address
27799 Declare abstract address operations to avoid gratuitous ambiguities.
27801 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
27803 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
27804 instead of the old Boolean_Entry_Barriers.
27805 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
27807 2004-05-05 GNAT Script <nobody@gnat.com>
27809 * Make-lang.in: Makefile automatically updated
27811 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
27813 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
27815 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
27818 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
27819 alone. Replacing object references by literals is inappropriate in a
27820 so low level context.
27822 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
27824 * a-exexpr.adb: Add comments
27826 2004-05-03 Joel Brobecker <brobecker@gnat.com>
27828 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
27829 declare the Ancestor_Tags array in Type_Specific_Data with a small size
27830 without risking a bounds check error when accessing one of its
27832 (Type_Specific_Data): Define Ancestor_Tags as a small array.
27833 This prevents us from hitting a limitation during the debug info
27834 generation when using stabs.
27836 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
27838 This prevents us from hitting a limitation during the debug info
27839 generation when using stabs.
27841 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
27843 lang-specs.h: Remove -gnatz* from specs.
27845 2004-05-03 Vincent Celier <celier@gnat.com>
27847 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
27849 * Make-lang.in, Makefile.in: Add gprmake
27851 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
27853 * sem_aggr.adb: Fix typo in comment.
27855 2004-05-03 Robert Dewar <dewar@gnat.com>
27857 * make.adb: Minor reformatting
27859 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
27861 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
27862 so that it works when address is not a private type.
27864 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
27865 properly with rewritten unchecked conversions. This prevents
27866 order-of-elaboration issues that can otherwise arise.
27867 (Minimum_Size): Don't check size of access types under VMS
27869 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
27870 interpretations of integer literals as type System.Address.
27872 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
27873 (Is_Descendent_Of): New function
27875 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
27877 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
27878 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
27879 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
27881 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
27882 of the old Max_Entry_Queue_Depth.
27884 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
27885 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
27886 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
27888 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
27889 New entry for proper handling of Max_Entry_Queue_Depth.
27890 New entry for proper handling of No_Dynamic_Interrupts.
27892 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
27893 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
27894 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
27895 the GNAT specific restriction Max_Entry_Queue_Depth.
27896 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
27897 the GNAT specific restriction No_Dynamic_Interrupts.
27899 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
27900 instead of the old Boolean_Entry_Barriers.
27901 Use the new restriction No_Dynamic_Attachment instead of the old
27902 No_Dynamic_Interrupts.
27904 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
27905 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
27907 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
27908 of the old Max_Entry_Queue_Depth.
27910 2004-05-03 GNAT Script <nobody@gnat.com>
27912 * Make-lang.in: Makefile automatically updated
27914 2004-04-29 Ed Schonberg <schonberg@gnat.com>
27916 * checks.adb (Enable_Range_Check): If the prefix of an index component
27917 is an access to an unconstrained array, perform check unconditionally.
27919 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27921 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
27924 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
27926 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
27927 alternate stack setting. There was no support for the tasking cases
27928 and the changes eventually caused a number of side-effect failures in
27929 the non-tasking case too.
27931 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
27933 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
27936 2004-04-29 Vincent Celier <celier@gnat.com>
27938 * make.adb (Gnatmake): Increase max size of argument array for
27939 gnatbind for the potential addition of -F.
27940 If there are Stand-Alone Library projects, invoke gnatbind with -F to
27941 be sure that elaboration flags will be checked.
27943 * switch-c.adb: Correct call to Scan_Pos for -gnateI
27945 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
27947 * sem_warn.adb (Check_References): Move '<access-variable> may be
27948 null' warning out of under Warn_On_No_Value_Assigned.
27950 2004-04-29 Ed Falis <falis@gnat.com>
27952 * gnat_ugn.texi: Fixed texi error
27954 2004-04-29 Robert Dewar <dewar@gnat.com>
27956 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
27957 abstract operations if they come from predefined files.
27959 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
27962 * s-addope.adb: Correct obvious error in mod function
27964 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
27966 * Makefile.in: Add target pairs for powerpc darwin*
27969 * a-intnam-darwin.ads, s-osinte-darwin.adb,
27970 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
27972 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
27974 * Makefile.in: Add target macro definitions for s390*-linux*.
27975 * system-linux-s390.ads: New file.
27976 * system-linux-s390x.ads: New file.
27978 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
27980 * gnat_ugn.texi: Correct argument to @setfilename.
27982 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
27984 * a-exexpr.adb (Unwind_Word): New data type.
27985 (Unwind_Exception): Use it as type of Private1 and Private2.
27987 * raise.c (db_action_for): Fix debug printf.
27989 2004-04-27 Ed Schonberg <schonberg@gnat.com>
27991 * a-wtmoio.ads: Formal type must be a modular type, not a signed
27994 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27996 * decl.c (gnat_to_gnu_entity, case object): Call
27997 __builtin_update_setjmp_buf.
27999 * gigi.h (update_setjmp_buf): Deleted.
28000 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
28002 * misc.c: (update_setjmp_buf): Deleted.
28004 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
28005 around block of RTL.
28007 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
28009 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
28011 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
28012 subprogram for which no pragma All_Calls_Remote applies, store the
28013 address of the real subprogram in the underlying record type, so local
28014 dereferences do not go through the PCS.
28016 2004-04-26 Robert Dewar <dewar@gnat.com>
28018 * i-c.ads: Add some type qualifications to avoid ambiguities when
28019 compiling with s-auxdec.ads and a non-private address type.
28021 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
28023 * Makefile.rtl: Fix error in previous check-in:
28024 Add s-addope.o to non tasking object list (rather than tasking object
28027 2004-04-26 Javier Miranda <miranda@gnat.com>
28029 * sem_aggr.adb: Fix typo in comments
28030 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
28031 Required to check the null-exclusion attribute.
28033 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
28034 case of anonymous access types in record and array components. For a
28035 component definition the level is the same of the enclosing composite
28038 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
28039 that are anonymous access types the level of accessibility depends on
28040 the enclosing type declaration. In order to have this information, set
28041 the scope of the anonymous access type to the enclosing record type
28043 (Array_Type_Declaration): In case of components that are anonymous
28044 access types the level of accessibility depends on the enclosing type
28045 declaration. In order to have this information, set the scope of the
28046 anonymous access type to the enclosing array type declaration.
28048 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
28051 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
28052 renaming of anonymous access-to-constant types allowed if and only if
28053 the renamed object is access-to-constant.
28055 * sem_util.adb (Type_Access_Level): In case of anonymous access types
28056 that are component_definition or discriminants of a nonlimited type,
28057 the level is the same as that of the enclosing component type.
28059 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
28061 * sem_elim.adb: Some minor code reorganization from code reading. Fix
28062 misprint in the function name (File_Name_Match).
28064 2004-04-23 Laurent Guerby <laurent@guerby.net>
28066 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
28069 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28071 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
28073 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
28075 * adaint.c (__gnat_try_lock): No longer requires that the parent
28076 directory be writable, the directory itself is enough.
28077 (gnat_is_absolute_path): Change profile, so that the call from
28078 GNAT.OS_Lib can be made more efficient.
28080 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
28081 from GNAT.OS_Lib can be made more efficient.
28083 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
28084 one copy of the file name. Found by code reading.
28086 2004-04-23 Vincent Celier <celier@gnat.com>
28088 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
28089 Correct documentation on gnatmake switches transmitted to the compiler
28091 * ali.ads: Minor comment fix
28093 2004-04-23 Javier Miranda <miranda@gnat.com>
28095 * sem_ch6.adb: (Confirming Types): Code cleanup
28097 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
28098 subprogram types: E_Anonymous_Access_Subprogram_Type and
28099 E_Anonymous_Access_Protected_Subprogram_Type.
28101 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
28103 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
28104 whether a pragma All_Calls_Remote applies to the subprogram on which
28106 No functional change is introduced by this revision; the new parameter
28107 will be used to allow calls to local RCI subprograms to be optimized
28108 to not use the PCS in the case where no pragma All_Calls_Remote applies,
28109 as is already done in the PolyORB implementation of the DSA.
28111 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
28112 whether a pragma All_Calls_Remote applies to the subprogram on which
28114 No functional change is introduced by this revision; the new parameter
28115 will be used to allow calls to local RCI subprograms to be optimized
28116 to not use the PCS in the case where no pragma All_Calls_Remote applies,
28117 as is already done in the PolyORB implementation of the DSA.
28119 2004-04-23 Robert Dewar <dewar@gnat.com>
28121 * Makefile.rtl: Add entry for s-addope.o in run time library list
28122 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
28123 * s-addope.ads, s-addope.adb: New files.
28125 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
28126 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
28127 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
28128 System.Address to be non-private and signed.
28130 * sem_elim.adb: Minor reformatting (fairly extensive)
28131 Some minor code reorganization from code reading
28132 Add a couple of ??? comments
28134 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28136 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
28137 (tree_transform, case N_If_Statement): Remove non-determinism.
28139 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
28141 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
28143 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
28144 Eliminate' section.
28146 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
28147 no longer used as a parameter name for Eliminate pragma).
28149 2004-04-22 Laurent Guerby <laurent@guerby.net>
28151 PR optimization/14984
28152 PR optimization/14985
28153 * trans.c (gigi): Fix non determinism leading to bootstrap
28154 comparison failures.
28156 2004-04-21 Pascal Obry <obry@gnat.com>
28158 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
28159 passed to spawnvp() to properly handle program pathname with spaces on
28162 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
28164 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
28165 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
28166 unlocked in case of exceptions.
28168 2004-04-21 Joel Brobecker <brobecker@gnat.com>
28170 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
28171 This function does not exist anymore.
28173 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
28175 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
28177 * link.c: Move variables to the __gnat name space.
28179 * Makefile.in: list link.o explicitly when needed.
28181 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
28183 2004-04-21 Javier Miranda <miranda@gnat.com>
28185 * einfo.adb (Original_Access_Type): New subprogram
28186 (Set_Original_Access_Type): New subprogram
28187 (Write_Field21_Name): Write the name of the new field
28189 * einfo.ads (Original_Access_Type): New field present in access to
28191 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
28192 E_Anonymous_Access_Protected_Subprogram_Type.
28194 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
28197 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
28198 to anonymous access to subprogram types.
28200 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
28201 to subprogram types.
28203 * sem_ch3.adb (Access_Definition): Complete decoration of entities
28204 corresponding to anonymous access to subprogram types.
28205 (Analyze_Component_Declaration): Add new actual to the call to
28206 subprogram replace_anonymous_access_to_protected_subprogram.
28207 (Array_Type_Declaration): Add new actual to the call to subprogram
28208 replace_anonymous_access_to_protected_subprogram.
28209 (Process_Discriminants): Add new actual to the call to subprogram
28210 replace_anonymous_access_to_protected_subprogram.
28211 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
28213 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
28216 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
28217 access to subprogram types.
28219 * sem_util.adb (Has_Declarations): Addition of package_specification
28222 2004-04-21 Ed Schonberg <schonberg@gnat.com>
28224 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
28225 inlined flags to renamed entity only if in current unit.
28227 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
28229 * s-parint.ads: Add DSA implementation marker.
28231 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
28232 value of System.Partition_Interface.DSA_Implementation to determine
28233 what version of the distributed systems annex is available (no
28234 implementation, GLADE, or PolyORB).
28236 2004-04-21 Joel Brobecker <brobecker@gnat.com>
28238 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
28240 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28242 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
28243 with new type if alias sets differ.
28244 Fixes ACATS c41103b.
28246 2004-04-21 Vincent Celier <celier@gnat.com>
28248 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
28249 Add array Lang_Args for the language specific compiling argument
28252 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
28254 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
28256 * gnat_rm.texi: Update the descripton of the Eliminate pragma
28257 according to the recent changes in the format of the parameters of the
28258 pragma (replacing Homonym_Number with Source_Location).
28260 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
28262 * 5isystem.ads: Removed, unused.
28264 * gnat_rm.texi: Redo 1.13 change.
28266 2004-04-19 Robert Dewar <dewar@gnat.com>
28268 * s-stoele.ads: Clean up definition of Storage_Offset (the new
28269 definition is cleaner, avoids the kludge of explicit Standard operator
28270 references, and also is consistent with a visible System.Address with
28271 no visible operations.
28273 * s-geveop.adb: Add declarations to avoid assumption of visible
28274 operations on type System.Address (since these might not be available
28275 if Address is a non-private type for which the operations
28276 are made abstract).
28278 * sem_eval.adb: Minor reformatting
28280 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
28281 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
28282 reformatting (new function spec format).
28284 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
28285 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
28286 s-caun64.adb: Add declarations to avoid assumption of visible
28287 operations on type System.Address (since these might not be available
28288 if Address is a non-private type for which the operations are made
28291 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
28293 * exp_intr.adb: Minor comment update
28295 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
28297 * 5omastop.adb: Add declarations to avoid assumption of visible
28298 operations on type System.Address (since these might not be available
28299 if Address is a non-private type for which the operations
28300 are made abstract).
28302 2004-04-19 Vincent Celier <celier@gnat.com>
28304 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
28306 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
28309 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
28311 Call Check with Process_Languages.
28312 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
28313 with Process_Languages.
28314 (Recursive_Check): New Boolean parameter Process_Languages. Call
28315 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
28318 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
28320 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
28321 parameter Ada_Main, defaulted to True.
28322 Check for Ada specific characteristics only when Ada_Main is True.
28324 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
28326 * prj.adb: (Project_Empty): Add new Project_Data components.
28328 * prj.ads: New types and tables for non Ada languages.
28329 (Project_Data): New components Languages, Impl_Suffixes,
28330 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
28331 Include_Path, Include_Data_Set.
28333 * prj-env.ads, prj-env.adb: Minor reformatting
28335 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
28336 Put subprograms in alphabetical order
28338 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
28339 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
28342 * mlib-prj.adb: Back out modification in last version, as they are
28344 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
28346 * make.adb: (Mains): Moved to package Makeutl
28347 (Linker_Opts): Moved to package Makeutl
28348 (Is_External_Assignment): Moved to package Makeutl
28349 (Test_If_Relative_Path): Moved to package Makeutl
28350 (Gnatmake): Move sorting of linker options to function
28351 Makeutl.Linker_Options_Switches.
28353 * makeutl.ads, makeutl.adb: New files.
28355 * Makefile.in: Add makeutl.o to the object files for gnatmake
28357 * makeusg.adb: Add line for new switch -eL.
28359 * gnatls.adb (Image): New function.
28360 (Output_Unit): If in verbose mode, output the list of restrictions
28361 specified by pragmas Restrictions.
28363 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
28366 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
28367 needed, to put it in the range 1970 (included) - 2026 (excluded).
28368 (Time_Of): Do not shift Unix_Min_Year (1970).
28369 Shift the date by multiple of 56 years, if needed, to put it in the
28370 range 1970 (included) - 2026 (excluded).
28372 * adaint.h, adaint.c (__gnat_set_executable): New function.
28374 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28376 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
28377 and pop GC context.
28378 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
28379 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
28380 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
28381 (tree_transform, case N_Code_Statement): Likewise.
28382 (gnat_expand_stmt, case LABEL_STMT): Don't look at
28383 LABEL_STMT_FIRST_IN_EH.
28384 (gnat_expand_stmt, case ASM_STMT): New case.
28386 * utils2.c (build_unary_op): Properly set TREE_READONLY of
28387 UNCONSTRAINED_ARRAY_REF.
28389 * utils.c (poplevel): Temporarily push/pop GC context around inline
28390 function expansion.
28392 * decl.c (maybe_variable): Properly set TREE_READONLY of
28393 UNCONSTRAINED_ARRAY_REF.
28394 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
28396 * ada-tree.def: (ASM_STMT): New.
28398 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
28399 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
28400 ASM_STMT_INPUT): New.
28401 (ASM_STMT_CLOBBER): Likewise.
28403 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
28405 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
28406 general rcheck mechanism to raise Program_Error for E.4(18), instead
28407 of a custom raiser in System.Partition_Interface.
28408 Part of general cleanup work before PolyORB integration.
28410 * snames.ads, snames.adb: Add new runtime library entities and names
28413 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
28415 (Build_Subprogram_Id): New subprogram provided by exp_dist
28416 Code reorganisation in preparation for PolyORB integration.
28418 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
28420 (Build_Subprogram_Id): New subprogram provided by exp_dist
28422 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
28423 actual parameter types for call to dereference of an
28424 access-to-subprogram type.
28426 * rtsfind.ads: Add new runtime library entities and names for PolyORB
28429 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
28430 instead, which has the same behaviour here since we never pass it a
28433 * link.c (run_path_option, Solaris case): Use -Wl, as for other
28436 * Makefile.in: adjust object file lists for gnatlink and gnatmake
28437 to account for new dependency upon Interfaces.C.Strings + link.o
28438 For x86 FreeBSD, use 86numaux.
28440 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
28441 from Mlib.Tgt to Mlib.
28443 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
28444 target-independent.
28446 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
28447 target-specific versions of this subprogram, now implemented as a
28448 target-independent function in Mlib.
28450 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
28451 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
28452 (Linker_Library_Path_Option): Remove target-specific versions of this
28453 subprogram, now implemented as a target-independent function in Mlib.
28455 * atree.adb: (Allocate_Initialize_Node): New subprogram.
28456 Factors out node table slots allocation.
28457 (Fix_Parents): New subprogram.
28458 Encapsulate the pattern of fixing up parent pointers for syntactic
28459 children of a rewritten node.
28460 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
28461 (Rewrite): Use New_Copy when creating saved copy of original node.
28462 (Replace): Use Copy_Node to copy nodes.
28464 2004-04-19 Javier Miranda <miranda@gnat.com>
28466 * sprint.adb (Sprint_Node_Actual): Give support to the new
28467 Access_To_Subprogram node available in Access_Definition nodes. In
28468 addition, give support to the AI-231 node fields: null-exclusion,
28469 all-present, constant-present.
28471 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
28473 * sinfo.ads, sinfo.adb:
28474 New field Access_To_Subprogram_Definition in Access_Definition nodes
28476 * sem_ch6.adb (Process_Formals): Move here the code that creates and
28477 decorates internal subtype declaration corresponding to the
28478 null-excluding formal. This code was previously in Set_Actual_Subtypes.
28479 In addition, carry out some code cleanup on this code. In case of
28480 access to protected subprogram call
28481 Replace_Anonymous_Access_To_Protected_Subprogram.
28482 (Set_Actual_Subtypes): Code cleanup.
28484 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
28485 Find_Type in case of anonymous access renamings. Add warning in case of
28486 null-excluding attribute used in anonymous access renaming.
28488 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
28491 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
28493 (Access_Definition): In case of anonymous access to subprograms call
28494 the corresponding semantic routine to decorate the node.
28495 (Access_Subprogram_Declaration): Addition of some comments indicating
28496 some code that probably should be added here. Detected by comparison
28497 with the access_definition subprogram.
28498 (Analyze_Component_Declaration): In case of access to protected
28499 subprogram call Replace_Anonymous_Access_To_Protected.
28500 (Array_Type_Declaration): In case of access to protected subprogram call
28501 Replace_Anonymous_Access_To_Protected_Subprogram.
28502 (Process_Discriminants): In case of access to protected subprogram call
28503 Replace_Anonymous_Access_To_Protected_Subprogram.
28505 * par.adb (P_Access_Definition): New formal that indicates if the
28506 null-exclusion part was present.
28507 (P_Access_Type_Definition): New formal that indicates if the caller has
28508 already parsed the null-excluding part.
28510 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
28511 (P_Identifier_Declarations): Code cleanup and give support to renamings
28512 of anonymous access to subprogram types.
28513 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
28514 (P_Array_Type_Definition): Give support to AI-254.
28515 (P_Component_Items): Give support to AI-254.
28516 (P_Access_Definition): New formal that indicates if the header was
28517 already parsed by the caller.
28518 (P_Access_Type_Definition): New formal that indicates if the caller has
28519 already parsed the null-excluding part.
28521 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
28522 call to P_Access_Definition.
28524 2004-04-19 Geert Bosch <bosch@gnat.com>
28526 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
28527 the delicate semantics of floating-point to integer conversion.
28528 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
28530 * eval_fat.adb (Machine_Mantissa): Moved to spec.
28531 (Machine_Radix): New function.
28533 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
28535 (Machine_Radix): New function also for use in conversion checks.
28537 2004-04-19 Ed Schonberg <schonberg@gnat.com>
28539 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
28541 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
28542 to decorate the access-to-protected subprogram and the equivalent type.
28544 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
28545 to anonymous access to subprogram types.
28547 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
28548 constant-folding, for legality checks in contexts that require an RM
28551 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
28552 temporary but stack checking is not enabled, increment serial number
28553 to so that symbol generation is consistent with and without stack
28556 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
28557 independent on whether stack checking is enabled, caller must check
28558 the corresponding flag.
28560 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
28562 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
28563 parent if it has discriminants.
28564 (Build_Derived_Private_Type): Constructed full view does
28565 not come from source.
28566 (Process_Discriminants): Default discriminants on a tagged type are
28567 legal if this is the internal completion of a private untagged
28570 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
28571 no constraint checks, because it corresponds to an existing object.
28573 * sem_prag.adb (Process_Convention): Pragma applies
28574 only to subprograms in the same declarative part, i.e. the same unit,
28575 not the same scope.
28577 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
28578 ignore type mismatch on a numeric conversion if expression comes from
28581 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
28583 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
28584 Homonym_Number parameter, add processing for Source_Location parameter
28586 (Check_Eliminated): Remove the check for homonym numbers, add the check
28587 for source location traces.
28589 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
28590 with Arg_Source_Location corresponding to the changes in the format of
28593 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
28594 Eliminate pragma corresponding to the changes in the format of the
28595 pragma: Homonym_Number is replaced with Source_Location, two ways of
28596 distinguishing homonyms are mutially-exclusive.
28598 2004-04-19 Joel Brobecker <brobecker@gnat.com>
28600 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
28602 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
28603 No_Dollar_In_Label, no longer necessary, as it is always True.
28604 (Strip_Suffixes): Likewise.
28606 2004-04-19 Gary Dismukes <dismukes@gnat.com>
28608 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
28609 modulus for compatibility with size clause on targets with 16-bit
28612 * layout.adb (Discrimify): In the case of private types, set Vtyp to
28613 full type to fix type mismatches on calls to size functions for
28614 discriminant-dependent array components.
28616 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
28618 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
28621 2004-04-19 Pascal Obry <obry@gnat.com>
28623 * mdll-utl.adb (Locate): New version is idempotent.
28625 2004-04-17 Laurent Guerby <laurent@guerby.net>
28627 PR ada/14988 (partial)
28628 * impunit.adb: Fix typo.
28630 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
28632 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
28633 and install-rts-cert targets. Remove all gnatlib and gnattools
28634 targets and all other rts-* targets (moved to libada). Remove (now)
28635 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
28636 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
28638 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28640 * trans.c (tree_transform): Shortcut returning error_mark_node for
28641 statements in annotate_only_mode.
28642 (tree_transform, case N_Label, case N_Return_Statement,
28643 N_Goto_Statement): Make statement tree instead of generating code.
28644 (tree_transform, case N_Assignment_Statement): No longer check
28645 type_annotate_only.
28646 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
28648 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
28650 (gnat_to_gnu): Collect any RTL generated and deal with it.
28651 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
28652 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
28653 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
28655 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
28657 * ada-tree.def (EXPR_STMT): Fix typo in name.
28658 (BLOCK_STMT, IF_STMT): New nodes.
28660 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
28661 LABEL_STMT_FIRST_IN_EH): New macros.
28662 (RETURN_STMT_EXPR): Likewise.
28664 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
28665 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
28667 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
28669 * atree.ads: Correct documentation on extended nodes.
28671 * link.c: Set run_path_option for FreeBSD.
28673 2004-04-08 Vincent Celier <celier@gnat.com>
28675 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
28676 one of the ALI file, do not link with DEC lib.
28678 * par.adb Remove the last two characters ("%s" or "%b") when checking
28679 if a language defined unit may be recompiled.
28681 2004-04-08 Ed Schonberg <schonberg@gnat.com>
28683 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
28684 removal of abstract operation leaves no possible interpretation for
28687 * sem_eval.adb (Eval_Qualified_Expression): Use
28688 Set_Raises_Constraint_Error on node when needed, so that it does not
28689 get optimized away by subsequent optimizations.
28691 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
28692 operands even when they are not wrapped in a type conversion.
28694 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
28696 * sem_prag.adb (Set_Exported): Warn about making static as result of
28697 export only when the export is coming from source. This may be not
28698 be true e.g. on VMS where we expand export pragmas for exception codes
28699 together with imported or exported exceptions, and we don't want the
28700 user to be warned about something he didn't write.
28702 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
28704 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
28705 duplication between normal entities and those declared as renamings.
28706 No functional change.
28708 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
28709 inline functions returning an unconstrained result.
28711 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
28713 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
28714 conform to what other front-ends do.
28716 2004-04-08 Doug Rupp <rupp@gnat.com>
28718 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
28721 2004-04-06 Pascal Obry <obry@gnat.com>
28723 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
28725 * osint.adb (Program_Name): Do not look past a directory separator.
28727 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
28729 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
28731 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
28732 requirement for preserving a copy of the original assignment node.
28734 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
28736 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
28738 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
28741 2004-04-06 Ed Schonberg <schonberg@gnat.com>
28743 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
28744 operator calls in functional notation, and apply
28745 Universal_Interpretation to operands, not to their type.
28747 2004-04-06 Robert Dewar <dewar@gnat.com>
28749 * 5wdirval.adb: Minor reformatting
28751 2004-04-06 Ed Falis <falis@gnat.com>
28753 * gnat_rm.texi: Improve a reference to the GCC manual
28755 2004-04-05 Vincent Celier <celier@gnat.com>
28757 * adaint.h, adaint.c: Add function __gnat_named_file_length
28759 * impunit.adb: Add Ada.Directories to the list
28761 * Makefile.in: Add VMS and Windows versions of
28762 Ada.Directories.Validity package body.
28764 * Makefile.rtl: Add a-direct and a-dirval
28766 * mlib-tgt.ads: Minor comment update.
28768 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
28769 a-direct.ads, a-direct.adb: New files.
28771 2004-04-05 Vincent Celier <celier@gnat.com>
28774 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
28775 just to the compiler.
28777 2004-04-05 Robert Dewar <dewar@gnat.com>
28779 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
28780 returned string is 1.
28782 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
28784 * eval_fat.ads: Minor reformatting
28786 * g-curexc.ads: Document that lower bound of returned string values
28789 * gnatlink.adb: Add ??? comment for previous change
28790 (need to document why this is VMS specific)
28792 * s-stoele.ads: Minor reformatting
28794 * tbuild.ads: Minor reformatting throughout (new function specs)
28796 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
28799 * scng.adb: Minor reformatting
28801 2004-04-05 Geert Bosch <bosch@gnat.com>
28803 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
28804 (Leading_Part): Still perform truncation to machine number if the
28805 specified radix_digits is greater or equal to machine_mantissa.
28807 2004-04-05 Javier Miranda <miranda@gnat.com>
28809 * par-ch3.adb: Complete documentation of previous change
28810 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
28811 (aliased must appear before constant).
28813 * par-ch4.adb: Complete documentation of previous change.
28815 * par-ch6.adb: Complete documentation of previous change.
28817 * sinfo.ads: Fix typo in commment.
28819 2004-04-05 Ed Schonberg <schonberg@gnat.com>
28821 * sem_ch3.adb (Inherit_Components): If derived type is private and has
28822 stored discriminants, use its discriminants to constrain parent type,
28823 as is done for non-private derived record types.
28825 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
28826 Ada 2005 AI-310: an abstract non-dispatching operation is not a
28827 candidate interpretation in an overloaded call.
28829 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
28830 expression is Null and target type is not an access type (e.g. a
28831 non-private address type).
28833 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
28835 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
28836 statement whose right-hand side is an inlined call, save a copy of the
28837 original assignment subtree to preserve enough consistency for
28838 Analyze_Assignment to proceed.
28840 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
28841 complete assignment subtree which is now unnecessary, as the expansion
28842 of inlined call has been improved to preserve a consistent assignment
28843 tree. Note_Possible_Modification must be called only
28844 after checks have been applied, or else unnecessary checks will
28847 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
28848 of explicit dereferences that do not Come_From_Source:
28849 - be selective on cases where we must go back to the dereferenced
28850 pointer (an assignment to an implicit dereference must not be
28851 recorded as modifying the pointer);
28852 - do not rely on Original_Node being present (Analyze_Assignment
28853 calls Note_Possible_Modification on a copied tree).
28855 * sem_warn.adb (Check_References): When an unset reference to a pointer
28856 that is never assigned is encountered, prefer '<pointer> may be null'
28857 warning over '<pointer> is never assigned a value'.
28859 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
28861 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
28864 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
28866 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
28867 libexc. We currently don't reference anything in this library and
28868 linking it in triggers linker warnings we don't want to see.
28870 * init.c: Update comments.
28872 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28874 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
28875 * utils.c (create_field_decl): Likewise.
28876 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
28878 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
28880 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
28881 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
28882 Add info directory entry and category.
28884 2004-04-02 Jan Hubicka <jh@suse.cz>
28886 * utils.c: Include function.h
28887 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
28889 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
28892 * Make-lang.in: Clean up generation of documentation
28894 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
28896 * xgnatug.adb: Removed, replaced by xgnatugn.adb
28898 * xgnatugn.adb: Replaces xgnatug.adb
28900 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
28902 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
28904 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28905 gnat_ug_wnt.texi: Removed.
28907 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
28909 * utils2.c: Update copyright notice.
28911 2004-04-01 Robert Dewar <dewar@gnat.com>
28913 * checks.adb: Minor reformatting throughout
28914 Note that prev checkin added RM reference to alignment warning
28916 2004-04-01 Ed Schonberg <schonberg@gnat.com>
28918 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
28919 non-static when building aggregate for bit-packed array.
28921 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
28922 function call that is itself the actual in a procedure call, build
28925 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
28926 a string literal, create a temporary for it, constant folding only
28927 handles scalars here.
28929 2004-04-01 Vincent Celier <celier@gnat.com>
28931 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
28932 Error_Msg_SP): New empty procedures to instantiate the Scanner.
28933 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
28935 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
28936 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
28937 and get the checksum.
28939 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
28941 Increase the Marking_Label at the end of the Multiple_Main_Loop,
28942 instead of at the beginning.
28944 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
28946 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
28949 * osint.ads (Multi_Unit_Index_Character): New Character global variable
28951 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
28954 * par.adb: Remove test on file name to detect language defined units.
28955 Add test on unit name, after parsing, to detect language defined units
28956 that are not compiled with -gnatg (except System.RPC and its children)
28958 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
28959 following units without style checking.
28961 * switch-c.adb: Change -gnatC to -gnateI
28963 * usage.adb: Document new switch -gnateInnn
28965 * scng.adb (Accumulate_Token_Checksum): New procedure
28966 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
28967 word or literal number.
28968 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
28971 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
28974 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
28975 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
28976 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
28977 5vtpopde.adb: Add missing 'constant' keywords.
28979 2004-04-01 Javier Miranda <miranda@gnat.com>
28981 * par-ch4.adb: (P_Allocator): Code cleanup
28983 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
28986 * sinfo.ads: Complete documentation of previous change
28988 2004-04-01 Pascal Obry <obry@gnat.com>
28990 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
28991 only on VMS. This special handling was done because an old GNU/ld bug
28992 on Windows which has been fixed.
28994 2004-04-01 GNAT Script <nobody@gnat.com>
28996 * Make-lang.in: Makefile automatically updated
28998 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29000 * decl.c (gnat_to_gnu_entity, make_type_from_size):
29001 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
29002 * trans.c (tree_transform, convert_with_check): Likewise.
29003 * utils.c (gnat_signed_or_unsigned_type): Likewise.
29004 (build_vms_descriptor, unchecked_convert): Likewise.
29005 * utils2.c (nonbinary_modular_operation): Likewise.
29007 2004-03-29 Javier Miranda <miranda@gnat.com>
29009 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
29010 (Install_Null_Excluding_Check): Local subprogram that determines whether
29011 an access node requires a runtime access check and if so inserts the
29012 appropriate run-time check.
29013 (Apply_Access_Check): Call Install_Null_Excluding check if required
29014 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
29016 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
29018 * einfo.ads: Fix typo in comment
29020 * exp_ch3.adb (Build_Assignment): Generate conversion to the
29021 null-excluding type to force the corresponding run-time check.
29022 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
29023 type to force the corresponding run-time check.
29025 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
29026 the null-excluding type to force the corresponding run-time check.
29028 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
29029 case of access types unless they have the null-excluding attribute.
29031 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
29034 * exp_util.ads: Fix typo in comment
29036 * par.adb (P_Null_Exclusion): New subprogram
29037 (P_Subtype_Indication): New formal that indicates if the null-excluding
29038 part has been scanned-out and it was present
29040 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
29042 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
29043 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
29044 type to force the corresponding run-time check
29045 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
29047 (Resolve_Array_Aggregate): Carry out some static checks
29048 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
29050 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
29051 attribute must be set only if specified by means of the null-excluding
29052 part. In addition, we must also propagate the access-constant attribute
29054 (Access_Subprogram_Declaration, Access_Type_Declaration,
29055 Analyze_Component_Declaration, Analyze_Object_Declaration,
29056 Array_Type_Declaration, Process_Discriminants,
29057 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
29058 and carry out some static checks.
29059 (Build_Derived_Access_Type): Set the null-excluding attribute
29060 (Derived_Type_Declaration, Process_Subtype): Carry out some static
29063 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
29065 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
29067 * sem_ch6.adb (Process_Formals): Carry out some static checks.
29068 (Set_Actual_Subtypes): Generate null-excluding subtype if the
29069 null-excluding part was present; it is not required to be done here in
29070 case of anonymous access types.
29071 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
29074 * sem_res.adb (Resolve_Actuals): Carry out some static check
29075 (Resolve_Null): Allow null in anonymous access
29077 * sinfo.adb: New subprogram Null_Exclusion_Present
29078 All_Present and Constant_Present available on access_definition nodes
29080 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
29081 object_declaration, derived_type_definition, component_definition,
29082 discriminant_specification, access_to_object_definition,
29083 access_function_definition, allocator, access_procedure_definition,
29084 access_definition, parameter_specification, All_Present and
29085 Constant_Present flags available on access_definition nodes.
29087 2004-03-29 Robert Dewar <dewar@gnat.com>
29089 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
29090 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
29091 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
29092 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
29093 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
29094 sem_prag.adb: Updates to handle multiple units/file
29096 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
29098 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
29099 sem_util.adb: Minor reformatting
29101 * sem_ch12.adb: Add comment for previous change
29103 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
29105 * osint.adb (Executable_Prefix): Set Exec_Name to the current
29106 executable name when not initialized. Otherwise, use its current value.
29108 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
29109 initialize it to another executable name than the current one. This
29110 allows to configure paths for an executable name (gnatmake) different
29111 from the current one (gnatdist).
29113 2004-03-29 Ed Schonberg <schonberg@gnat.com>
29115 * exp_ch6.adb (Expand_Call): A call to a function declared in the
29116 current unit cannot be inlined if it appears in the body of a withed
29117 unit, to avoid order of elaboration problems in gigi.
29119 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
29120 information for protected (wrapper) operation as well, to simplify gdb
29123 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
29124 protected body, indicate that the entity for the generated spec comes
29125 from source, to ensure that references are properly generated for it.
29126 (Build_Body_To_Inline): Do not inline a function that returns a
29129 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
29130 apply convention to homonyms that are declared explicitly.
29132 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
29133 that renames an equality operator and the operands are overloaded,
29134 resolve them with the declared formal types, before rewriting as an
29137 2004-03-29 GNAT Script <nobody@gnat.com>
29139 * Make-lang.in: Makefile automatically updated
29141 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
29143 * memtrack.adb: Log realloc calls, which are treated as free followed
29146 2004-03-25 Vincent Celier <celier@gnat.com>
29148 * prj-makr.adb (Process_Directories): Detect when a file contains
29149 several units. Do not include such files in the config pragmas or
29150 in the naming scheme.
29152 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
29153 Resolve links only when not in Trusted_Mode.
29154 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
29155 Do not resolve links for the display names.
29157 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
29158 resolve links when computing the display names.
29160 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
29162 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
29163 attribute reference does not denote a subtype, it can be any
29164 expression that has a classwide type, potentially after an implicit
29165 dereference. In particular, the prefix can be a view conversion for
29166 a classwide type (for which Is_Object_Reference holds), but it can
29167 also be a value conversion for an access-to-classwide type. In the
29168 latter case, there is an implicit dereference, and the original node
29169 for the prefix does not verify Is_Object_Reference.
29171 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
29172 conversion of a discriminant-dependent component of a mutable object
29175 2004-03-25 Ed Schonberg <schonberg@gnat.com>
29177 * freeze.adb (Freeze_Entity): When an inherited subprogram is
29178 inherited, has convention C, and has unconstrained array parameters,
29179 place the corresponding warning on the derived type declaration rather
29180 than the original subprogram.
29182 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
29183 indication on renaming declaration, if formal has a box and actual
29186 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
29187 determine whether to generate an implicit or explicit reference to
29188 the renamed entity.
29190 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
29191 subprogram renaming comes from a defaulted formal subprogram in an
29194 2004-03-25 Gary Dismukes <dismukes@gnat.com>
29196 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
29197 value expressions to ensure that calls within a component definition
29198 will be checked (since those are evaluated during the record type's
29201 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
29203 * s-tpobop.adb: Code clean up:
29204 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
29206 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
29208 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
29210 * Makefile.in: Clean up in the ravenscar run time.
29212 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29214 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
29215 of No_Strict_Aliasing to build_pointer_type_for_mode.
29216 * utils.c (update_pointer_to): Walk pointer and ref chains.
29218 2004-03-22 Cyrille Comar <comar@act-europe.fr>
29220 * ali.ads: Fix Comment about Dynamic_Elab.
29222 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
29223 Has_RACW, Is_Generic, etc.)
29224 (Output_Object, Gnatls): Take into account ALI files not attached to
29227 2004-03-22 Vincent Celier <celier@gnat.com>
29229 * gprep.adb: Change all String_Access to Name_Id
29230 (Is_ASCII_Letter): new function
29231 (Double_File_Name_Buffer): New procedure
29232 (Preprocess_Infile_Name): New procedure
29233 (Process_Files): New procedure
29234 (Gnatprep): Check if output and input are existing directories.
29235 Call Process_Files to do the real job.
29237 2004-03-22 Robert Dewar <dewar@gnat.com>
29239 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
29240 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
29242 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
29244 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
29245 case when the source contains only comments.
29247 2004-03-22 Ed Schonberg <schonberg@gnat.com>
29249 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
29250 declaration for a child subprogram body that acts as a spec, indicate
29251 that the entity in the declaration needs debugging information.
29253 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
29254 full view if the subtype is created for a constrained record component;
29255 gigi has enough information to construct the record, and there is no
29256 place in the tree for the declaration.
29258 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
29259 serial number for the dummy body that is built for analysis, to avoid
29260 inconsistencies in the generation of internal names when compiling
29263 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
29265 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
29268 2004-03-22 GNAT Script <nobody@gnat.com>
29270 * Make-lang.in: Makefile automatically updated
29272 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29274 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
29275 * trans.c (tree_transform, emit_index_check): Likewise.
29276 * utils.c (build_template): Likewise.
29277 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
29278 (maybe_unconstrained_array, unchecked_convert): Likewise.
29279 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
29280 (build_unary_op): Likewise.
29281 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
29282 (fill_vms_descriptor): Likewise.
29283 (build_call_alloc_dealloc): Likewise.
29285 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
29287 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
29290 * gnat_ug.texi: Add info directory category and entry.
29291 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
29292 gnat_ug_wnt.texi: Regenerate.
29294 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
29296 * ada-tree.h: Update copyright notice.
29297 Minor reformatting.
29299 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
29301 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
29302 as regular exception objects and not as mere integers representing the
29303 condition code. The latter approach required some dynamics to mask off
29304 severity bits, which did not fit well into the GCC table based model.
29305 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
29306 exception data objects. We don't it and it would conflict with the other
29307 external symbol we have to generate for such exceptions.
29309 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
29310 the special code for VMS exceptions, since these are now represented
29311 as regular exceptions objects.
29313 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29315 * decl.c (debug_no_type_hash): Remove.
29316 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
29317 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
29319 2004-03-19 Laurent Guerby <laurent@guerby.net>
29321 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
29322 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
29324 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29326 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
29327 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
29328 (TYPE_RM_SIZE_INT): Directly use type.values.
29329 (TREE_LOOP_ID): Clean up check.
29330 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
29331 TYPE_VALUES, not TYPE_FIELDS.
29332 * trans.c (convert_with_check): Delay access of bounds of basetype
29333 until sure is numeric.
29335 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
29337 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
29340 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
29341 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
29342 Specific.Set instead of direct call to e.g pthread_setspecific.
29344 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
29346 * adaint.c: Update comments.
29348 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
29349 GNATLIB_SHARED for FreeBSD.
29351 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
29353 * init.c [VxWorks]: Do not fix the stack size for the environment task.
29354 When needed (stack checking) the stack size is retrieved
29355 from the VxWorks kernel.
29357 * Makefile.in: Flag -nostdinc is required when building the run time
29358 for avoiding looking for files in the base compiler.
29359 Add the VxWorks specific version of the package body for
29360 System.Stack_checking.Operations (5zstchop.adb).
29362 * Make-lang.in: Add the object file for
29363 System.Stack_Checking.Operations.
29365 * Makefile.rtl: Add object file for the package
29366 System.Stack_Checking.Operations.
29368 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
29370 * s-stache.ads, s-stache.adb: Move the operations related to stack
29371 checking from this package to package System.Stack_Checking.Operations.
29372 This way, stack checking operations are only linked in the final
29373 executable when using the -fstack-check flag.
29375 2004-03-18 Doug Rupp <rupp@gnat.com>
29377 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
29380 * 5qsystem.ads, 5xcrtl.ads: New files.
29382 2004-03-18 Vincent Celier <celier@gnat.com>
29384 * prj.adb (Reset): Reset hash table Files_Htable
29386 * prj-env.adb (Source_Paths, Object_Paths): New tables.
29387 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
29388 the procedures Add_To_Path_File.
29389 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
29390 making sure that each directory is present only once and, for object
29391 dirs, when a directory already present is added, the duplicate is
29392 removed and the directory is always put as the last in the table.
29393 Write the path files at the end of these accumulations.
29395 * prj-nmsc.adb (Record_Source): Add source file name in hash table
29396 Files_Htable for all sources.
29398 * prj-proc.adb (Process): Remove restrictions between not directly
29399 related extending projects.
29401 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
29403 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
29404 (Find_Sources): Minor speed optimization.
29406 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
29407 parameter Trusted_Mode.
29409 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
29411 * scn.adb (Determine_License): Take into account a degenerated case
29412 when the source contains only comments.
29414 2004-03-18 Ed Schonberg <schonberg@gnat.com>
29416 * sem_warn.adb (Check_References): For a warning on a selected
29417 component that does not come from source, locate an uninitialized
29418 component of the record type to produce a more precise error message.
29420 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
29422 * 3zsoccon.ads: Fix multicast options.
29424 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
29427 2004-03-15 Robert Dewar <dewar@gnat.com>
29429 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
29430 pragma used for a private type.
29432 * lib-xref.adb (Generate_Reference): Do not generate warning if
29433 reference is in a different unit from the pragma Unreferenced.
29435 * 5vtpopde.adb: Minor reformatting
29436 Fix casing of To_Task_ID
29438 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
29439 flag if we have an unchecked conversion to an access type in the same
29442 2004-03-15 Geert Bosch <bosch@gnat.com>
29444 * a-ngcoty.adb (Modulus): In alternate formula for large real or
29445 imaginary parts, use Double precision throughout.
29447 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
29448 we want to be able to compile run-time with -gnata for testing, but
29449 this may also be instantiated in user code that is compiled with -gnata.
29451 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
29453 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
29454 codes. Having a separate type for this is useful to enforce consistency
29455 throughout the various run-time units.
29456 (Exception_Data): Use Exception_Code for Import_Code.
29458 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
29459 Natural and Integer in various places.
29460 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
29461 with the severity bits masked off.
29462 (Register_VMS_Exception): Handle the additional exception data pointer
29465 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
29466 component, now reflected by an exported accessor.
29467 (is_handled_by): New routine to compute whether the propagated
29468 occurrence matches some handler choice specification. Extracted out of
29469 get_action_description_for, and expanded to take care of the VMS
29471 (get_action_description_for): Use is_handled_by instead of an explicit
29472 complex condition to decide if the current choice at hand catches the
29473 propagated occurrence.
29475 * raise.h (Exception_Code): New type for C.
29477 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
29478 System.Standard_Library.Exception_Code, to allow references from the
29479 pragma import/export expander.
29481 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
29482 New accessors to allow easy access to GNAT exception data
29484 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
29485 redundant Handled_By_Others component, helper for the personality
29486 routine which will now be able to call the appropriate exception data
29489 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
29490 component of Standard_Exception_Type to be the closest possible to
29491 Exception_Code in System.Standard_Library, that we cannot get at this
29492 point. Expand a ??? comment to notify that this type node should
29493 probably be rewritten later on.
29495 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
29496 registration call to include a pointer to the exception object in the
29499 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
29500 instead of int and explicit bitmasks.
29502 2004-03-15 Vincent Celier <celier@gnat.com>
29504 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
29505 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
29507 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
29508 longer needed now that it is in the spec of
29509 System.Tasking.Task_Attributes.
29511 * adaint.h, adaint.c: (__gnat_create_output_file): New function
29513 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
29515 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
29517 * make.adb (Gnatmake): Do not check the executable suffix; it is being
29518 taken care of in Scan_Make_Arg.
29519 (Scan_Make_Arg): Add the executable suffix only if the argument
29520 following -o, in canonical case, does not end with the executable
29521 suffix. When in verbose mode and executable file name does not end
29522 with executable suffix, output the executable name, in canonical case.
29524 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
29525 to avoid warnings when instantiating Ada.Task_Attributes.
29528 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
29529 in the correct order.
29531 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
29532 redirect standard output and error to a file for the invocation of the
29533 compiler, then read the file.
29535 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
29536 directory, instead of the Value.
29537 (Find_Source_Dirs): Remove useless code & comments.
29539 2004-03-15 Ed Schonberg <schonberg@gnat.com>
29541 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
29542 tagged type is inherited, and the parent operation is not frozen yet,
29543 force generation of a freeze node for the inherited operation, so the
29544 corresponding dispatch entry is properly initialized.
29545 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
29546 when looking for user-defined equality operation.
29548 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
29549 boolean when locating primitive equality of tagged component.
29551 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
29552 bit-aligned field and the right-hand side a string literal, introduce
29553 a temporary before expanding assignment into a loop.
29555 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
29556 priority in full, to ensure that any expanded subepxressions of it are
29557 elaborated in the scope of the init_proc.
29559 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
29560 after object declaration, skipping over code that may have been
29561 generated for validity checks.
29563 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
29564 discriminants, ignore the known discriminants of its full view, if
29565 any, to check legality.
29567 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
29568 component if type has unknown discriminants.
29569 (Analyze_Private_Extension_Declaration): Discriminant constraint is
29570 null if type has unknown discriminants.
29572 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
29573 for end label when present.
29575 * s-fileio.adb (Open): When called with a C_Stream, use given name for
29576 temporary file, rather than an empty string.
29578 2004-03-15 Ed Falis <falis@gnat.com>
29580 * s-thread.adb: Removed, no longer used.
29582 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29584 * decl.c (target.h): Now include.
29585 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
29586 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
29587 (validate_size): For POINTER_TYPE, get smallest size permitted on
29590 * fe.h: Sort Einfo decls and add Set_Mechanism.
29592 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
29593 (ada/decl.o): Depends on target.h.
29595 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
29596 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
29598 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
29600 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
29602 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
29603 Insert_Dereference_Action when rewriting an implicit dereference into
29604 an explicit one, this will be taken care of during expansion of the
29605 explicit dereference.
29606 (Expand_N_Slice): Same. Always do the rewriting, even for the case
29607 of non-packed slices, since the dereference action generated by
29608 expansion of the explicit dereference is needed in any case.
29609 (Expand_N_Selected_Component): When rewriting an implicit dereference,
29610 analyze and resolve the rewritten explicit dereference so it is seen
29612 (Insert_Dereference_Action): This procedure is now called only for the
29613 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
29614 dereferences that do not come from source (including explicit
29615 dereferences resulting from rewriting implicit ones), but do not
29616 recursively insert a check for the dereference nodes contained within
29618 (Insert_Dereference_Action): Clarify and correct comment.
29620 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
29623 Move language detection to the top level.
29624 * config-lang.in: Build by default.
29626 2004-03-05 Robert Dewar <dewar@gnat.com>
29628 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
29630 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
29631 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
29632 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
29633 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
29634 unchecked conversion to spec to avoid warnings.
29636 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
29639 * 7stpopsp.adb: Correct casing in To_Task_ID call
29641 * a-strsea.ads, a-strsea.adb: Minor reformatting
29643 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
29645 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
29646 Adjust Max_Msg_Length to be clearly large enough.
29648 * fe.h: Define In_Same_Source_Unit
29650 * osint.adb: Add pragma Warnings Off to suppress warnings
29651 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
29654 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
29656 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
29658 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
29660 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
29662 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
29664 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
29665 node. We now do generate them for gcc back end.
29667 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
29670 * sinput-c.adb: Fix bad name in header.
29671 Add pragma Warnings Off to suppress aliasing warning.
29673 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
29675 * snames.h, snames.ads, snames.adb: Add entry for pragma
29676 No_Strict_Aliasing.
29678 2004-03-05 Vincent Celier <celier@gnat.com>
29680 * prj-com.ads: Add hash table Files_Htable to check when a file name
29681 is already a source of another project.
29683 * prj-nmsc.adb (Record_Source): Before recording a new source, check
29684 if its file name is not already a source of another project. Report an
29687 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
29688 source file name, call gnatpp with all the sources of the main project.
29690 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
29693 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
29694 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
29695 /RUNTIME_SYSTEM=, converted to --RTS=
29696 /NOTABS, converted to -notabs
29698 2004-03-05 Pascal Obry <obry@gnat.com>
29700 * make.adb: Minor reformatting.
29702 2004-03-05 Ed Schonberg <schonberg@gnat.com>
29704 Part of implemention of AI-262.
29705 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
29707 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
29710 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
29711 when component type is a partially constrained class-wide subtype.
29712 (Constrain_Discriminated_Type): If parent type has unknown
29713 discriminants, a constraint is illegal, even if full view has
29715 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
29716 with unknown discriminants whose full view is a discriminated record.
29718 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
29719 flag, to handle properly derivations of tagged types with unknown
29721 (Analyze_Package_Spec, Analyze_Package_Body): Install
29722 Private_With_Clauses before analyzing private part or body.
29724 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
29725 Has_Discriminants can be true for a given type (documentation).
29727 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
29729 * s-restri.ads: Fix license (GPL->GMGPL).
29731 * s-tassta.adb: Minor reformatting.
29733 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
29734 by calls to Exit_One_ATC_Level, since additional clean up is performed
29737 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
29738 by calls to Exit_One_ATC_Level, since additional clean up is performed
29741 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29743 * trans.c: Reflect GCC changes to fix bootstrap problem.
29744 Add warning for suspicious aliasing unchecked conversion.
29746 2004-03-05 GNAT Script <nobody@gnat.com>
29748 * Make-lang.in: Makefile automatically updated
29750 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
29752 * ali.adb (Read_Instantiation_Instance): Do not modify the
29753 current_file_num when reading information about instantiations, since
29754 this corrupts files in later references.
29756 2004-03-02 Vincent Celier <celier@gnat.com>
29758 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
29759 before checking if it is read-only.
29761 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
29762 of SRC_DIRS and eliminate duplicates.
29764 * gprcmd.adb: Replace command "path" with command "path_sep" to return
29765 the path separator.
29766 (Usage): Document path_sep
29768 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
29769 C++ compiler. No need for a script.
29770 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
29771 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
29774 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
29775 where there are Ada sources.
29776 (Set_Ada_Paths): Only add to the include path the source dirs of project
29778 (Add_To_Path): Add the Display_Values of the directories, not their
29781 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
29784 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
29786 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
29787 Value is canonicalized.
29788 (Language_Independent_Check): Do not copy Value to Display_Value when
29789 canonicalizing Value.
29791 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
29792 path to find limited with cycles.
29793 (Parse_Single_Project): Use canonical cased path to find the end of a
29796 2004-03-02 Ed Schonberg <schonberg@gnat.com>
29798 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
29799 and not a child unit.
29801 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
29802 appear in a with_clause.
29804 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
29805 only happen in type_annotate mode, do not try to elaborate it.
29807 * exp_util.adb (Force_Evaluation): If expression is a selected
29808 component on the left of an assignment, use a renaming rather than a
29809 temporary to remove side effects.
29811 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
29812 inlined instance body, which is analyzed before the end of the
29815 2004-03-02 Robert Dewar <dewar@gnat.com>
29817 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
29818 sem_ch4.adb: Use new feature for substitution of keywords in VMS
29820 * errout.ads, errout.adb: Implement new circuit for substitution of
29823 * sem_case.adb (Analyze_Choices): Place message properly when case is
29824 a subtype reference rather than an explicit range.
29826 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
29828 2004-03-02 Doug Rupp <rupp@gnat.com>
29830 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
29832 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
29834 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
29836 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29838 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
29841 2004-02-25 Robert Dewar <dewar@gnat.com>
29843 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
29844 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
29845 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
29846 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
29847 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
29848 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
29849 the defining instance of the type to avoid aliasing problems.
29850 Fix copyright header. Fix bad comments in package header.
29852 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
29854 2004-02-25 Ed Schonberg <schonberg@gnat.com>
29856 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
29857 rewritten as references when aliased through an address clause.
29859 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
29860 whether call can be interpreted as an indirect call to the result of a
29861 parameterless function call returning an access subprogram.
29863 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
29866 * exp_ch7.adb (Make_Clean): Remove generation of calls to
29867 Unlock[_Entries], since this is now done by Service_Entries directly.
29869 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
29871 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
29872 Requeue_Call for better code readability. Change spec and update calls:
29873 PO_Service_Entries now unlock the PO on exit.
29874 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
29875 PO_Service_Entries.
29877 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
29879 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
29881 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
29883 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
29884 protected subprogram call and analyzing the result of such expanding
29885 in case when the called protected subprogram is eliminated.
29887 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
29890 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
29892 * Makefile.in: Clean ups.
29894 2004-02-23 Ed Schonberg <schonberg@gnat.com>
29896 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
29897 protected operations if original subprogram is flagged as eliminated.
29898 (Expand_N_Subprogram_Body): For a protected operation, create
29899 discriminals for next operation before checking whether the operation
29902 * exp_ch9.adb (Expand_N_Protected_Body,
29903 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
29904 for internal protected operations if the original subprogram is
29907 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
29908 declared in a single protected object.
29910 2004-02-23 Vincent Celier <celier@gnat.com>
29912 * prj-attr.adb: Make attribute Builder'Executable an associative array,
29913 case insensitive if file names are case insensitive, instead of a
29914 standard associative array.
29916 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
29917 them as case insensitive on platforms where the file names are case
29920 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
29921 project file has already been parsed that canonical path are compared.
29923 2004-02-23 Robert Dewar <dewar@gnat.com>
29925 * sinput-c.ads: Correct bad unit title in header
29927 * freeze.adb: Minor reformatting
29929 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29931 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
29932 nonaddressable COMPONENT_REF that is removing padding that we are
29933 taking the address of, take the address of the padded record instead
29934 if item is variable size.
29936 2004-02-20 Robert Dewar <dewar@gnat.com>
29938 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
29940 2004-02-20 Ed Schonberg <schonberg@gnat.com>
29942 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
29943 itype references for the constrained designated type of a component
29944 whose base type is already frozen.
29946 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
29948 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
29949 avoid GCC warnings.
29951 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
29953 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
29954 identifier for a phantom package that rewrites the formal package
29955 declaration with a box. The Add semantic decorations for the defining
29956 identifier from the original node (that represents the formal package).
29958 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
29960 * Make-lang.in (ada/stamp-sdefault): Use the top level
29963 2004-02-19 Richard Henderson <rth@redhat.com>
29965 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
29967 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
29969 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
29970 Scan_ALI can be used for multiple ALI files without reinitializing
29973 2004-02-18 Robert Dewar <dewar@gnat.com>
29975 * debug.adb: Minor reformatting.
29977 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29979 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
29980 to zero if there is an address clause.
29982 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
29984 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
29986 2004-02-18 Gary Dismukes <dismukes@gnat.com>
29988 * layout.adb (Layout_Component_List): Revise generation of call to
29989 discriminant-checking function to pass selections of all of the type's
29990 discriminants rather than just the variant-controlling discriminant.
29992 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
29994 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
29995 fail in the current setup and triggers spurious system error messages.
29996 Pretend it occurred and failed instead.
29998 2004-02-18 Vincent Celier <celier@gnat.com>
30000 * bld.adb: Mark FLDFLAGS as saved
30001 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
30002 it is not the root project. Put each directory to be
30003 extended between double quotes to prevent it to be expanded on Windows.
30004 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
30005 the project file. Set them back to their initial values if they have not
30006 been set in the project file.
30008 * gprcmd.adb: (Gprdebug, Debug): New global variables
30009 (Display_Command): New procedure
30010 (Usage): Document new command "linkopts"
30011 Call Display_Command when env var GPRDEBUG has the value "TRUE"
30012 Implement new command "linkopts"
30013 Remove quotes that may be around arguments for "extend"
30014 Always call Normalize_Pathname with arguments formatted for the platform
30016 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
30017 Change @echo to @$(display) in target clean to be able to clean silently
30019 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
30021 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
30024 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
30025 = Extending_All when current project is an extending all project.
30027 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
30028 set to True only for LINK command, after Unix switch -o.
30029 (Process_Arguments): Set Output_File_Expected to True for LINK command
30030 after Unix switch -o. When Output_File_Expected is True, never add an
30031 extension to a file name.
30033 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
30034 option file name, only to the --for-linker= switch.
30035 (Option_File_Name): If option file name do not end with ".opt", append
30038 2004-02-18 GNAT Script <nobody@gnat.com>
30040 * Make-lang.in: Makefile automatically updated
30042 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
30044 * Make-lang.in (stamp-sdefault): Do not depend on
30047 2004-02-12 Zack Weinberg <zack@codesourcery.com>
30049 * config-lang.in: Disable Ada by default until probe logic for
30050 a bootstrap Ada compiler can be moved to the top level configure
30053 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
30055 * decl.c (components_to_record): Don't claim that the internal fields
30056 we make to hold the variant parts are semantically addressable, because
30059 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
30060 adjust the comment describing the modular type form when we can use it.
30061 (Install_PAT): Account for the Esiz renaming.
30063 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
30064 sc_onstack context indication before raising the exception to which
30065 the signal is mapped. Allows better handling of later signals possibly
30066 triggered by the resumed user code if the exception is handled.
30068 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
30070 * 5zinit.adb: Removed, no longer used.
30072 2004-02-12 Robert Dewar <dewar@gnat.com>
30074 * ali.adb: Remove separating space between parameters on R line. Makes
30075 format consistent with format used by the binder for Set_Globals call.
30077 * atree.ads, atree.adb: Minor reformatting (new function header format)
30079 * bindgen.adb: Add Run-Time Globals documentation section containing
30080 detailed documentation of the globals passed from the binder file to
30083 * gnatls.adb: Minor reformatting
30085 * init.c (__gnat_set_globals): Add note pointing to documentation in
30088 * lib-writ.ads, lib-writ.adb: Remove separating space between
30089 parameters on R line.
30090 Makes format consistent with format used by the binder for Set_Globals
30093 * osint.ads: Add 2004 to copyright notice
30096 * snames.ads: Correct capitalization of FIFO_Within_Priorities
30097 Noticed during code reading, documentation issue only
30099 * usage.adb: Remove junk line for obsolete C switch
30100 Noticed during code reading
30102 2004-02-12 Vincent Celier <celier@gnat.com>
30104 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
30105 extend for each directory, so that multiple /** directories are
30106 extended individually.
30107 (Recursive_Process): Set the default for LANGUAGES to ada
30109 * gprcmd.adb: Define new command "ignore", to do nothing.
30110 Implement new comment "path".
30112 * Makefile.generic: Suppress output when SILENT is set
30113 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
30114 used, so that the correct compiler is invoked.
30115 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
30116 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
30118 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
30120 * Makefile.in: Clean ups and remove obsolete targets.
30122 2004-02-12 Ed Schonberg <schonberg@gnat.com>
30124 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
30125 predicate declared in exp_util.
30127 * exp_util.adb: Add comments.
30129 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
30130 visibility before compiling context of the subunit.
30132 * sem_res.adb (Check_Parameterless_Call): If the context expects a
30133 value but the name is a procedure, do not attempt to analyze as a call,
30134 in order to obtain more telling diagnostics.
30136 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
30137 'Access on parameterless function calls.
30138 (Normalize_Actuals): For a parameterless function call with missing
30139 actuals, defer diagnostic until resolution of enclosing call.
30141 * sem_util.adb (Wrong_Type): If the context type is an access to
30142 subprogram and the expression is a procedure name, suggest a missing
30145 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
30146 Nathanael Nerode <neroden@gcc.gnu.org>
30150 Merge with libada-branch:
30151 * config-lang.in: Build libada only when ada is built.
30153 2004-02-09 Ed Schonberg <schonberg@gnat.com>
30155 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
30156 for a tagged type, verify that both formals have the same type.
30158 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
30159 temporary when the formal is an in-parameter and the actual a possibly
30162 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
30163 when expansion is disabled, to ensure proper name capture with
30164 overloaded literals. Condition can be of any boolean type, resolve
30167 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
30168 renaming is for a formal subprogram with a default operator name, and
30169 there is a usable operator that is visible at the point of
30172 2004-02-09 Robert Dewar <dewar@gnat.com>
30174 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
30175 rewrite to ignore errors in ali files, intended to allow tools downward
30176 compatibility with new versions of ali files.
30178 * ali.ads: Add new parameter Ignore_Errors
30180 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
30181 duplicating the error message giving the file with restrictions.
30183 * debug.adb: Add debug flag I for gnatbind
30185 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
30186 operators for the case where the operator is a defining operator.
30188 * exp_ch3.adb: Minor reformatting (new function spec format).
30190 * exp_ch4.adb: Add comment for previous change, and make minor
30191 adjustment to loop to always check for improper loop termination.
30192 Minor reformatting throughout (new function spec format).
30194 * gnatbind.adb: Implement -di debug flag for gnatbind
30196 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
30198 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
30200 * lib-load.adb: Fix bad assertion.
30201 Found by testing and code reading.
30202 Minor reformatting.
30204 * lib-load.ads: Minor reformatting.
30206 * lib-writ.adb: There is only one R line now.
30208 * lib-writ.ads: Add documentation on making downward compatible changes
30209 to ali files so old tools work with new ali files.
30210 There is only one R line now.
30211 Add documentation on format incompatibilities (with special GPS note)
30213 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
30215 * par-load.adb: Minor reformatting
30217 * sem_ch8.adb: Fix to error message from last update
30218 Minor reformatting and restructuring of code from last update
30220 * par-prag.adb, snames.adb, snames.ads, snames.h,
30221 sem_prag.adb: Implement pragma Profile.
30223 * stylesw.adb: Implement -gnatyN switch to turn off all style check
30226 * usage.adb: Add line for -gnatyN switch
30228 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
30230 2004-02-09 Albert Lee <lee@gnat.com>
30232 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
30234 2004-02-09 Ed Schonberg <schonberg@gnat.com>
30236 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
30239 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
30240 is nested in an instance that is not frozen yet, to avoid
30241 order-of-elaboration problems in gigi.
30243 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
30244 body the attribute is legal.
30246 2004-02-09 Robert Dewar <dewar@gnat.com>
30248 * s-rident.ads: Minor comment correction
30250 * targparm.adb: Remove dependence on uintp completely. There was
30251 always a bug in Make in that it called Targparm before initializing
30252 the Uint package. The old code appeared to get away with this, but
30253 the new code did not! This caused an assertion error in gnatmake.
30255 * targparm.ads: Fix bad comment, restriction pragmas with parameters
30256 are indeed fully supported.
30258 2004-02-06 Alan Modra <amodra@bigpond.net.au>
30260 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
30262 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
30264 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
30265 with targetm.calls.promote_prototypes.
30267 2004-02-04 Robert Dewar <dewar@gnat.com>
30269 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
30270 ali.ads, gprcmd.adb: Minor reformatting
30272 * bindgen.adb: Output restrictions string for new style restrictions
30275 * impunit.adb: Add s-rident.ads (System.Rident) and
30276 s-restri (System.Restrictions)
30278 * lib-writ.adb: Fix bug in writing restrictions string (last few
30281 * s-restri.ads, s-restri.adb: Change name Restrictions to
30282 Run_Time_Restrictions to avoid conflict with package name.
30283 Add circuit to read and acquire run time restrictions.
30285 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
30287 * restrict.ads, restrict.adb: Use the new restriction
30288 No_Task_Attributes_Package instead of the old No_Task_Attributes.
30290 * sem_prag.adb: No_Task_Attributes is a synonym of
30291 No_Task_Attributes_Package.
30293 * snames.ads, snames.adb: New entry for proper handling of
30294 No_Task_Attributes.
30296 * s-rident.ads: Adding restriction No_Task_Attributes_Package
30297 (AI-00249) that supersedes the GNAT specific restriction
30298 No_Task_Attributes.
30300 2004-02-04 Ed Schonberg <schonberg@gnat.com>
30303 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
30304 body, an identifier may be wrapped in an unchecked conversion.
30306 2004-02-04 Vincent Celier <celier@gnat.com>
30308 * lib-writ.ads: Comment update for the W lines
30310 * bld.adb: (Expression): An empty string list is static
30312 * fname-uf.adb: Minor comment update
30314 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
30316 * gnatbind.adb: Initialize Cumulative_Restrictions with the
30317 restrictions on the target.
30319 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
30321 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
30324 2004-02-02 Arnaud Charlet <charlet@gnat.com>
30326 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
30328 2004-02-02 Vincent Celier <celier@gnat.com>
30330 * gprcmd.adb (Check_Args): If condition is false, print the invoked
30331 comment before the usage.
30332 Gprcmd: Fail when command is not recognized.
30333 (Usage): Document command "prefix"
30335 * g-md5.adb (Digest): Process last block.
30336 (Update): Do not process last block. Store remaining characters and
30339 * g-md5.ads (Update): Document that several call to update are
30340 equivalent to one call with the concatenated string.
30341 (Context): Add fields to allow new Update behaviour.
30343 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
30344 defaulted to False.
30345 When May_Fail is True and no existing file can be found, return No_File.
30347 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
30350 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
30351 spec file name instead on the W line.
30353 2004-02-02 Robert Dewar <dewar@gnat.com>
30355 * ali.adb: Read and acquire info from new format restrictions lines
30357 * bcheck.adb: Add circuits for checking restrictions with parameters
30359 * bindgen.adb: Output dummy restrictions data
30360 To be changed later
30362 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
30363 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
30364 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
30365 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
30366 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
30368 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
30369 the warning message on access to possibly uninitialized variable S)
30370 Minor changes for new restrictions handling.
30372 * gnatbind.adb: Minor reformatting
30373 Minor changes for new restrictions handling
30374 Move circuit for -r processing here from bcheck (cleaner)
30376 * gnatcmd.adb, gnatlink.adb: Minor reformatting
30378 * lib-writ.adb: Output new format restrictions lines
30380 * lib-writ.ads: Document new R format lines for new restrictions
30383 * s-restri.ads/adb: New files
30385 * Makefile.rtl: Add entry for s-restri.ads/adb
30387 * par-ch3.adb: Fix bad error messages starting with upper case letter
30390 * restrict.adb: Major rewrite throughout for new restrictions handling
30391 Major point is to handle restrictions with parameters
30393 * restrict.ads: Major changes in interface to handle restrictions with
30394 parameters. Also generally simplifies setting of restrictions.
30396 * snames.ads/adb: New entry for proper handling of No_Requeue
30398 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
30399 restriction counting.
30400 Other minor changes for new restrictions handling
30402 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
30403 Restriction_Warnings now allows full parameter notation
30404 Major rewrite of Restrictions for new restrictions handling
30406 2004-02-02 Javier Miranda <miranda@gnat.com>
30408 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
30409 syntax rule for object renaming declarations.
30410 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
30411 component definitions.
30413 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
30415 (Array_Type_Declaration): Give support to access components. In addition
30416 it was also modified to reflect the name of the object in anonymous
30417 array types. The old code did not take into account that it is possible
30418 to have an unconstrained anonymous array with an initial value.
30419 (Check_Or_Process_Discriminants): Allow access discriminant in
30421 (Process_Discriminants): Allow access discriminant in non-limited types
30422 Initialize the new Access_Definition field in N_Object_Renaming_Decl
30423 node. Change Ada0Y to Ada 0Y in comments
30425 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
30426 equality operators.
30427 Change Ada0Y to Ada 0Y in comments
30429 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
30430 renamings Change Ada0Y to Ada 0Y in comments
30432 * sem_type.adb (Find_Unique_Type): Give support to the equality
30433 operators for universal access types
30434 Change Ada0Y to Ada 0Y in comments
30436 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
30438 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
30440 (N_Object_Renaming_Declaration): Addition of Access_Definition field
30441 Change Ada0Y to Ada 0Y in comments
30443 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
30444 component definition and object renaming nodes
30445 Change Ada0Y to Ada 0Y in comments
30447 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
30449 * restrict.adb: Use the new restriction identifier
30450 No_Requeue_Statements instead of the old No_Requeue for defining the
30451 restricted profile.
30453 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
30454 No_Requeue_Statements.
30456 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
30457 that supersedes the GNAT specific restriction No_Requeue. The later is
30458 kept for backward compatibility.
30460 2004-02-02 Ed Schonberg <schonberg@gnat.com>
30462 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
30463 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
30464 pragma and fix incorrect ones.
30466 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
30467 warning if the pragma is redundant.
30469 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
30471 * 5staprop.adb: Add missing 'constant' keywords.
30473 * Makefile.in: use consistent value for SYMLIB on
30474 platforms where libaddr2line is supported.
30476 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30478 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
30481 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
30483 * init.c (__gnat_install_handler): Setup an alternate stack for signal
30484 handlers in the environment thread. This allows proper propagation of
30485 an exception on stack overflows in this thread even when the builtin
30486 ABI stack-checking scheme is used without support for a stack reserve
30489 * utils.c (create_field_decl): Augment the head comment about bitfield
30490 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
30491 here, because the former is not accurate enough at this point.
30492 Let finish_record_type decide instead.
30493 Don't make a bitfield if the field is to be addressable.
30494 Always set a size for the field if the record is packed, to ensure the
30495 checks for bitfield creation are triggered.
30496 (finish_record_type): During last pass over the fields, clear
30497 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
30498 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
30499 from DECL_BIT_FIELD.
30501 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
30503 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
30504 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
30505 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
30507 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30509 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
30511 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
30512 (ZCX_By_Default): Likewise.
30513 (Front_End_ZCX_Support): Likewise.
30515 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
30516 (Initialize_Lock): Mark Level unreferenced.
30517 (Sleep): Mark Reason unreferenced.
30518 (Timed_Sleep): Likewise.
30519 (Wakeup): Likewise.
30520 (Exit_Task): Use Result.
30521 (Check_No_Locks): Mark Self_ID unreferenced.
30523 * 5gtasinf.adb (New_Sproc): Make Attr constant.
30524 (Bound_Thread_Attributes): Make Sproc constant.
30525 (New_Bound_Thread_Attributes): Likewise.
30527 2004-01-26 Ed Schonberg <schonberg@gnat.com>
30529 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
30530 one-dimensional array an slice assignments, when component type is
30533 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
30534 component type is controlled, and control_actions are in effect, use
30535 TSS procedure rather than generating inline code.
30537 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
30538 arrays with controlled components.
30540 2004-01-26 Vincent Celier <celier@gnat.com>
30542 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
30543 command line for the non VMS case.
30545 * gnatlink.adb (Process_Binder_File): When building object file, if
30546 GNU linker is used, put all object paths between quotes, to prevent ld
30547 error when there are unusual characters (such as '!') in the paths.
30549 * Makefile.generic: When there are sources in Ada and the main is in
30550 C/C++, invoke gnatmake with -B, instead of -z.
30552 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
30553 from VMS_Conversion.
30554 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
30555 specification of argument file on the command line.
30557 2004-01-26 Bernard Banner <banner@gnat.com>
30559 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
30561 2004-01-26 Ed Schonberg <schonberg@gnat.com>
30563 * snames.adb: Update copyright notice.
30564 Add info on slice assignment for controlled arrays.
30566 2004-01-23 Robert Dewar <dewar@gnat.com>
30568 * exp_aggr.adb: Minor reformatting
30570 * exp_ch9.adb: Minor code clean up
30572 Fix bad character in comment
30575 * targparm.adb (Get_Target_Parameters): Give clean abort error on
30576 unexpected end of file, along with more detailed message.
30578 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30580 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
30583 * decl.c (copy_alias_set): New function.
30584 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
30586 2004-01-23 Doug Rupp <rupp@gnat.com>
30588 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
30589 lib$${file} in case subsequent character is not a separator.
30591 2004-01-23 Vincent Celier <celier@gnat.com>
30593 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
30594 when the GCC version is at least 3.
30596 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
30597 Remove all "Opt.", to prepare for opt split
30599 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
30600 Extends_All. Set to True when the project parsed is an extending all
30601 project. Fails for importing an extending all project only when the
30602 imported project is an extending all project.
30603 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
30604 depending on the value of Extends_All returned.
30606 * prj-proc.adb (Process): Check that no project shares its object
30607 directory with a project that extends it, directly or indirectly,
30608 including a virtual project.
30609 Check that no project extended by another project shares its object
30610 directory with another also extended project.
30612 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
30613 Kind = N_With_Clause
30615 * prj-tree.ads: Minor reformatting
30616 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
30618 2004-01-23 Ed Schonberg <schonberg@gnat.com>
30620 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
30621 applies to a type with an incomplete view, use full view in Name of
30622 clause, for consistency with uses of Get_Attribute_Definition_Clause.
30624 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
30626 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
30627 SCHED_RR, since other values are not supported by this policy.
30628 (Initialize): Move initialization of mutex attribute to package
30629 elaboration, to prevent early access to this variable.
30631 * Makefile.in: Remove mention of Makefile.adalib, unused.
30633 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
30634 1ssecsta.ads: Removed, unused.
30636 2004-01-21 Javier Miranda <miranda@gnat.com>
30638 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
30639 entity if already built in the current scope.
30641 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
30642 reminder in internal scopes. Required for nested limited aggregates.
30644 2004-01-21 Doug Rupp <rupp@gnat.com>
30646 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
30647 VMS. Replace all occurences of libgnat- and libgnarl- with
30648 libgnat$(hyphen) and libgnarl$(hyphen).
30649 Fixed shared library build problem on VMS.
30651 2004-01-21 Robert Dewar <dewar@gnat.com>
30653 * mlib-prj.adb: Minor reformatting
30655 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
30657 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
30658 'constant' keywords for declaration of pointers that are not modified.
30660 * exp_pakd.adb: Fix English in comment.
30662 2004-01-21 Ed Schonberg <schonberg@gnat.com>
30665 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
30666 copy all attributes of the parent, including the foreign language
30669 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
30672 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
30673 for 'delay until' statement.
30675 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
30677 * Make-lang.in: Replace $(docdir) with doc.
30678 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
30679 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
30680 to use consistent MAKEINFO rule.
30681 (ada.man, ada.srcman): Dummy entry.
30682 (ADA_INFOFILES): Define.
30683 (ada.info, ada.srcinfo): New rules.
30685 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
30687 * utils.c: Update copyright notice, missed in previous change.
30689 2004-01-19 Vincent Celier <celier@gnat.com>
30691 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
30692 args if Bind is True. Set First_ALI, if not already done.
30693 (Build_Library): For Stand Alone Libraries, extract from one ALI file
30694 an eventual --RTS switch, for gnatbind, and all backend switches +
30695 --RTS, for linking.
30697 2004-01-19 Robert Dewar <dewar@gnat.com>
30699 * sem_attr.adb, memtrack.adb: Minor reformatting
30701 2004-01-19 Ed Schonberg <schonberg@gnat.com>
30703 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
30704 that rename enumeration literals. This is properly done in sem_eval.
30706 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
30707 to functions that rename enumeration literals.
30709 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
30710 functions that rename enumeration literals.
30712 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
30714 * Make-lang.in (utils.o): Depend on target.h.
30715 * utils.c: Include target.h.
30716 (process_attributes): Use targetm.have_named_sections instead
30717 of ASM_OUTPUT_SECTION_NAME.
30719 2004-01-16 Andreas Jaeger <aj@suse.de>
30721 * Makefile.in: Add $(DESTDIR).
30723 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
30725 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
30726 also when not defining if a Size clause applies. That information is
30729 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
30731 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
30732 symbolic links for the shared gnat run time when needed.
30734 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
30736 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
30737 for writing, and terminate with an error message if not.
30739 2004-01-15 Ed Schonberg <schonberg@gnat.com>
30741 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
30742 warning on an access to subprogram in an instance, when the target
30743 type is declared in the same generic unit.
30744 (Eval_Attribute): If 'access is known to fail accessibility check,
30745 rewrite as a raise statement.
30747 2004-01-15 GNAT Script <nobody@gnat.com>
30749 * Make-lang.in: Makefile automatically updated
30751 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
30753 * Make-lang.in (ada.srcextra): Dummy entry.
30755 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
30757 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
30759 2004-01-13 Ed Schonberg <schonberg@gnat.com>
30761 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
30762 components that are initialized with aggregates.
30764 2004-01-13 Vincent Celier <celier@gnat.com>
30766 * gnatlink.adb (Process_Binder_File): To find directory of shared
30767 libgcc, if "gcc-lib" is not a subdirectory, look for the last
30768 subdirectory "lib" in the path of the shared libgnat or libgnarl.
30770 * make.adb (Gnatmake): If GCC version is at least 3, link with
30771 -shared-libgcc, when there is at least one shared library project.
30773 * opt.ads (GCC_Version): New integer constant.
30775 * adaint.c (get_gcc_version): New function.
30777 2004-01-13 Robert Dewar <dewar@gnat.com>
30779 * sem_dist.adb, sem_res.adb, sem_util.adb,
30780 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
30781 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
30783 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
30785 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
30786 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
30789 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
30791 * misc.c: Remove trailing spaces.
30792 Update copyright notice missed in previous change.
30795 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
30798 * Makefile.generic: Update copyright.
30799 Add license notice.
30801 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
30802 of prefix/share/make.
30804 * Makefile.prolog: Update copyright.
30805 Add license notice.
30807 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
30809 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
30810 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
30811 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
30814 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
30817 2004-01-12 Javier Miranda <miranda@gnat.com>
30819 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
30820 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
30821 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
30822 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
30823 Component_Definition node.
30825 2004-01-12 Ed Falis <falis@gnat.com>
30827 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
30829 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
30831 * link.c: Change default libgnat kind to STATIC for FreeBSD.
30833 2004-01-12 Bernard Banner <banner@gnat.com>
30835 * Makefile.in: map 86numaux to a-numaux for x86_64
30837 2004-01-12 Ed Schonberg <schonberg@gnat.com>
30839 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
30840 generated to rename a generic actual, go to the actual itself, the
30841 subtype is not a user-visible entity.
30843 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
30844 part is a private subtype, reset the visibility of its full view, if
30845 any, to be consistent.
30848 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
30849 to use a generic package G as a formal package for another generic
30852 2004-01-12 Robert Dewar <dewar@gnat.com>
30854 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
30856 * usage.adb: Remove mention of obsolete -gnatwb switch
30857 Noticed during code reading
30859 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
30861 * 1ssecsta.adb: Minor changes for -gnatwa warnings
30863 2004-01-12 GNAT Script <nobody@gnat.com>
30865 * Make-lang.in: Makefile automatically updated
30867 2004-01-09 Mark Mitchell <mark@codesourcery.com>
30869 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
30871 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30873 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
30875 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
30877 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
30878 Update comment and copyright date.
30879 * stamp-xgnatug: Delete.
30881 2004-01-05 Robert Dewar <dewar@gnat.com>
30883 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
30884 be modified by the binder generated main program if the -D switch is
30887 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
30888 imported functions (since now we expect this to be done for imported
30891 * 5vtaprop.adb: Add several ??? for sections requiring more comments
30892 Minor reformatting throughout
30894 * 5zinit.adb: Minor reformatting
30895 Add 2004 to copyright date
30896 Minor changes to avoid -gnatwa warnings
30897 Correct some instances of using OR instead of OR ELSE (noted while
30898 doing reformatting)
30900 * sprint.adb: Minor updates to avoid -gnatwa warnings
30902 * s-secsta.ads, s-secsta.adb:
30903 (SS_Get_Max): New function to obtain high water mark for ss stack
30904 Default_Secondary_Stack is not a constant since it may be modified by
30905 the binder generated main program if the -D switch is used.
30907 * switch-b.adb: New -Dnnn switch for binder
30910 Make -gnatg imply all warnings currently in -gnatwa
30912 * vms_conv.adb: Minor reformatting
30913 Add 2004 to copyright notice
30914 Add 2004 to printed copyright notice
30916 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
30917 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
30918 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
30919 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
30920 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
30921 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
30922 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
30923 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
30924 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
30925 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
30926 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
30927 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
30928 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
30929 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
30930 checks.adb, clean.adb, cstand.adb, einfo.ads,
30931 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
30932 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
30933 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
30934 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
30935 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
30936 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
30937 Minor reformatting and code clean ups.
30938 Minor changes to prevent -gnatwa warnings
30940 * ali.adb: Minor reformatting and cleanup of code
30941 Acquire new SS indication of secondary stack use from ali files
30943 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
30944 (since now we expect this to be done for imported functions)
30946 * bindgen.adb: Generate call to modify default secondary stack size if
30949 * bindusg.adb: Add line for new -D switch
30951 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
30952 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
30953 Add circuitry for both records and arrays to avoid gigi
30954 processing if the type involved has non-bit-aligned components
30956 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
30957 N_String_Literal node always references an E_String_Literal_Subtype
30958 entity. This may not be true in the future.
30959 (Possible_Bit_Aligned_Component): Move processing of
30960 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
30962 * exp_ch6.adb (Expand_Thread_Body): Pick up
30963 Default_Secondary_Stack_Size as variable so that we get value modified
30964 by possible -Dnnn binder parameter.
30966 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
30967 (Type_May_Have_Bit_Aligned_Components): New function.
30969 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
30970 (Type_May_Have_Bit_Aligned_Components): New function.
30972 * fe.h: (Set_Identifier_Casing): Fix prototype.
30973 Add declaration for Sem_Elim.Eliminate_Error_Msg.
30974 Minor reformatting.
30976 * freeze.adb (Freeze_Entity): Add RM reference to error message about
30977 importing constant atomic/volatile objects.
30978 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
30979 unless explicit Pure_Function pragma given, to avoid insidious bug of
30980 call to non-pure imported function getting eliminated.
30982 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
30983 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
30984 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
30985 Add 2004 to printed copyright notice
30987 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
30990 * Makefile.rtl: Add entry for g-sestin.o
30991 g-sestin.ads: New file.
30993 * mdll.adb: Minor changes to avoid -gnatwa warnings
30995 * mlib-tgt.adb: Minor reformatting
30997 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
30998 New switch Sec_Stack_Used (GNAT, GNATBIND)
30999 Make Default_Secondary_Stack_Size a variable instead of a constant,
31000 so that it can be modified by the new -Dnnn bind switch.
31002 * rtsfind.adb (Load_Fail): Give full error message in configurable
31003 run-time mode if all_errors mode is set. This was not done in the case
31004 of a file not found, which was an oversight.
31005 Note if secondary stack unit is used by compiler.
31007 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
31008 ineffective elaborate all pragmas on non-visible packages (this
31009 happened when a renamed subprogram was called). Now the elaborate all
31010 always goes on the package containing the renaming rather than the one
31011 containing the renamed subprogram.
31013 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
31014 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
31016 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
31017 has an Etype that references an E_String_Literal.
31018 (Eval_String_Literal): Avoid assumption that N_String_Literal node
31019 always references an E_String_Literal_Subtype entity. This may not
31020 be true in the future.
31022 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
31025 * sem_res.adb (Resolve): Specialize msg for function name used in proc
31028 2004-01-05 Ed Falis <falis@gnat.com>
31030 * g-debuti.adb: Replaced direct boolean operator with short-circuit
31033 2004-01-05 Vincent Celier <celier@gnat.com>
31035 * bld.adb: Minor comment updates
31036 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
31039 * make.adb (Gnatmake): Special process for files to compile/check when
31040 -B is specified. Fail when there are only foreign mains in attribute
31041 Main of the project file and -B is not specified. Do not skip bind/link
31042 steps when -B is specified.
31044 * makeusg.adb: Document new switch -B
31046 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
31048 * switch-m.adb: (Scan_Make_Switches): Process -B switch
31050 * vms_data.ads: Add new GNAT PRETTY qualifier
31051 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
31053 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31055 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
31058 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
31059 Set_Identifier_Casing.
31061 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
31062 has size that overflows.
31064 2004-01-05 Gary Dismukes <dismukes@gnat.com>
31066 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
31067 -gnatwa warning on static condition.
31069 2004-01-05 Doug Rupp <rupp@gnat.com>
31071 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
31073 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
31075 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
31076 all attributes, including read-only attribute.
31078 2004-01-05 Pascal Obry <obry@gnat.com>
31080 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
31081 library naming scheme.
31083 * mlib-prj.adb (Build_Library): Generate different names for the static
31084 or dynamic version of the GNAT runtime. This is needed to support the
31085 new shared library naming scheme.
31086 (Process_Binder_File): Add detection of shared library in binder file
31087 based on the new naming scheme.
31089 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
31090 scheme for the shared runtime libraries.
31093 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
31095 (install-gnatlib): Do not create symlinks for shared libraries.
31096 (gnatlib-shared-default): Idem.
31097 (gnatlib-shared-dual-win32): New target. Not used for now as the
31098 auto-import feature does not support arrays/records.
31099 (gnatlib-shared-win32): Do not create copy for the shared libraries.
31100 (gnatlib-shared-vms): Fix shared runtime libraries names.
31102 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
31103 dependent runtime shared library name.
31105 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
31107 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
31110 2004-01-05 Ed Schonberg <schonberg@gnat.com>
31112 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
31113 protected objects when allocator has a subtype indication, not a
31114 qualified expression. Note that qualified expressions may have to be
31115 checked when limited aggregates are implemented.
31117 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
31118 pure, emit warning.
31119 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
31120 subprogram is imported, remove warning.
31122 2004-01-05 Geert Bosch <bosch@gnat.com>
31124 * s-poosiz.adb: Update copyright notice.
31125 (Allocate): Use Task_Lock to protect against concurrent access.
31126 (Deallocate): Likewise.
31128 2004-01-05 Joel Brobecker <brobecker@gnat.com>
31130 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
31133 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
31135 * gnat_ug.texi: Force a CVS commit by updating copyright.
31136 * gnat_ug_vxw.texi: Regenerate.
31137 * gnat_ug_wnt.texi: Regenerate.
31138 * gnat_ug_vms.texi: Regenerate.
31139 * gnat_ug_unx.texi: Regenerate.
31141 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
31143 * trans.c: Remove uses of "register" specifier in
31144 declarations of local variables.
31146 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
31148 * stamp-xgnatug: New stamp file.
31149 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
31150 (ada/doctools/xgnatug): Add $(build_exeext).
31151 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
31152 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
31154 2003-12-17 Ed Falis <falis@gnat.com>
31156 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
31159 * a-exextr.adb: Add context clause for
31160 Ada.Exceptions.Last_Chance_Handler.
31162 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
31164 * cstand.adb (Create_Standard): Change the way how the declaration of
31165 the Duration type is created (making it the same way as it is for all
31166 the other standard types).
31168 2003-12-17 Robert Dewar <dewar@gnat.com>
31170 * s-crtl.ads: Fix header format
31171 Change Pure to Preelaborate
31173 2003-12-17 Ed Schonberg <schonberg@gnat.com>
31175 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
31176 the expression type only if it is declared in the current unit.
31178 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
31179 are universal and already analyzed, as can occur in constrained
31180 subcomponents that depend on discriminants, when one constraint is a
31183 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
31184 type Any_Fixed is legal as the argument of a conversion, if only one
31185 fixed-point type is in context.
31187 2003-12-17 GNAT Script <nobody@gnat.com>
31189 * Make-lang.in: Makefile automatically updated
31191 2003-12-15 Robert Dewar <dewar@gnat.com>
31193 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
31196 2003-12-15 Vincent Celier <celier@gnat.com>
31198 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
31199 (Gnatchop): Do not set failure status when reporting the number of
31202 2003-12-15 Doug Rupp <rupp@gnat.com>
31204 * s-ctrl.ads: New file.
31206 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
31208 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
31209 (GNATBIND_OBJS): Add ada/s-crtl.o.
31211 * Makefile.in [VMS]: Clean up ifeq rules.
31213 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
31214 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
31215 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
31216 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
31217 s-tasdeb.adb: Update copyright.
31218 Import System.CRTL.
31219 Make minor modifications to use System.CRTL declared functions instead
31220 of importing locally.
31222 2003-12-15 GNAT Script <nobody@gnat.com>
31224 * Make-lang.in: Makefile automatically updated
31226 2003-12-11 Ed Falis <falis@gnat.com>
31228 * 5zinit.adb: Clean up.
31230 * 5zintman.adb (Notify_Exception): replaced case statement with a call
31231 to __gnat_map_signal, imported from init.c to support
31232 signal -> exception mappings that depend on the vxWorks version.
31235 Created and exported __gnat_map_signal to support signal -> exception
31236 mapping that is dependent on the VxWorks version.
31237 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
31239 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
31241 * 5wosinte.ads: Link with -mthreads switch.
31243 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
31245 * init.c (__gnat_install_handler [NetBSD]): Set
31246 __gnat_handler_installed, as done on all other platforms.
31247 Remove duplicated code.
31249 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
31251 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
31253 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
31255 * sinfo.ads: Fix inconsistent example code in comment.
31257 2003-12-11 Robert Dewar <dewar@gnat.com>
31259 * a-tiinau.adb: Add a couple of comments
31261 * sem_ch3.adb: Minor reformatting
31264 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
31265 Minor reformatting throughout
31267 2003-12-11 Ed Schonberg <schonberg@gnat.com>
31269 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
31270 bounds of a loop, create a separate block in order to generate proper
31271 cleanup actions to prevent memory leaks.
31273 * sem_res.adb (Resolve_Call): After a call to
31274 Establish_Transient_Scope, the call may be rewritten and relocated, in
31275 which case no further processing is needed.
31277 * sem_util.adb: (Wrong_Type): Refine previous fix.
31278 Fixes ACATS regressions.
31281 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
31284 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
31286 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
31287 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
31290 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
31293 2003-12-08 Robert Dewar <dewar@gnat.com>
31295 * 7sintman.adb: Minor reformatting
31297 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
31298 standard linker options to get standard libraries linked. We now plan
31299 to provide dummy versions of these libraries to match the appropriate
31300 configurable run-time (e.g. if a library is not needed at all, provide
31301 a dummy empty library).
31303 * targparm.ads: Configurable_Run_Time mode no longer affects linker
31304 options (-L parameters and standard libraries). What we plan to do is
31305 to provide dummy libraries where the libraries are not required.
31307 * gnatbind.adb: Minor comment improvement
31309 2003-12-08 Javier Miranda <miranda@gnat.com>
31311 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
31312 aggregate in the parent. Otherwise constants with limited aggregates
31313 are not supported. Add new formal to pass the component type (Ctype).
31314 It is required to call the corresponding IP subprogram in case of
31315 default initialized components.
31316 (Gen_Assign): In case of default-initialized component, generate a
31317 call to the IP subprogram associated with the component.
31318 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
31319 of aggregate with default initialized components.
31320 (Has_Default_Init_Comps): Improve implementation to recursively check
31321 all the present expressions.
31323 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
31324 to indicate that the initialization call corresponds to a
31325 default-initialized component of an aggregate.
31326 In case of default initialized aggregate with tasks this parameter is
31327 used to generate a null string (this is just a workaround that must be
31328 improved later). In case of discriminants, this parameter is used to
31329 generate a selected component node that gives access to the discriminant
31332 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
31333 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
31334 allocated aggregates with default-initialized components.
31336 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
31337 the box notation is used in positional aggregates.
31339 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
31341 * lib.ads: Fix typo in comment
31343 2003-12-08 Vincent Celier <celier@gnat.com>
31345 * prj.adb (Project_Empty): New component Unkept_Comments
31346 (Scan): Remove procedure; moved to Prj.Err.
31348 * prj.ads (Project_Data): New Boolean component Unkept_Comments
31349 (Scan): Remove procedure; moved to Prj.Err.
31351 * prj-dect.adb: Manage comments for the different declarations.
31353 * prj-part.adb (With_Record): New component Node
31354 (Parse): New Boolean parameter Store_Comments, defaulted to False.
31355 Set the scanner to return ends of line and comments as tokens, if
31356 Store_Comments is True.
31357 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
31358 comments are associated with these nodes. Store the node IDs in the
31360 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
31362 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
31363 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
31364 current project. Call Tree.Restore afterwards. Set the various nodes
31365 for comment storage (Next_End, End_Of_Line, Previous_Line,
31368 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
31369 defaulted to False.
31371 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
31372 to False. When Truncated is True, truncate the string, never go to the
31374 (Write_End_Of_Line_Comment): New procedure
31375 (Print): Process comments for nodes N_With_Clause,
31376 N_Package_Declaration, N_String_Type_Declaration,
31377 N_Attribute_Declaration, N_Typed_Variable_Declaration,
31378 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
31379 Process nodes N_Comment.
31381 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
31382 without comments and there are some comments, set the flag
31383 Unkept_Comments to True.
31384 (Scan): If there are comments, set the flag Unkept_Comments to True and
31385 clear the comments.
31386 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
31387 (Next_End_Nodes: New table
31388 (Comment_Zones_Of): New function
31389 (Scan): New procedure; moved from Prj. Accumulate comments in the
31390 Comments table and set end of line comments, comments after, after end
31392 (Add_Comments): New procedure
31393 (Save, Restore, Seset_State): New procedures
31394 (There_Are_Unkept_Comments): New function
31395 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
31396 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
31398 (First_Comment_After, First_Comment_After_End): New functions
31399 (First_Comment_Before, First_Comment_Before_End): New functions
31400 (Next_Comment): New function
31401 (End_Of_Line_Comment, Follows_Empty_Line,
31402 Is_Followed_By_Empty_Line): New functions
31403 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
31404 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
31405 (Set_Next_Comment): New procedure
31406 (Default_Project_Node): Associate comment before if the node can store
31409 * scans.ads (Token_Type): New enumeration value Tok_Comment
31410 (Comment_Id): New global variable
31412 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
31413 defaulted to False.
31414 (Scan): Store position of start of comment. If comments are tokens, set
31415 Comment_Id and set Token to Tok_Comment when scanning a comment.
31416 (Set_Comment_As_Token): New procedure
31418 * sinput-p.adb: Update Copyright notice
31419 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
31420 that no longer exists.
31422 2003-12-08 Javier Miranda <miranda@gnat.com>
31424 * sem_aggr.adb: Add dependence on Exp_Tss package
31425 Correct typo in comment
31426 (Resolve_Aggregate): In case of array aggregates set the estimated
31427 type of the aggregate before calling resolve. This is needed to know
31428 the name of the corresponding IP in case of limited array aggregates.
31429 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
31430 in case of default initialized array components.
31432 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
31433 types. Required to give support to limited aggregates in generic
31436 2003-12-08 Ed Schonberg <schonberg@gnat.com>
31438 * sem_ch3.adb (Check_Initialization): For legality purposes, an
31439 inlined body functions like an instantiation.
31440 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
31441 until bounds are analyzed, to diagnose premature use of type.
31443 * sem_util.adb (Wrong_Type): Improve error message when the type of
31444 the expression is used prematurely.
31446 2003-12-08 GNAT Script <nobody@gnat.com>
31448 * Make-lang.in: Makefile automatically updated
31450 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
31452 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
31453 they are automatically generated by Make-lang.in and cause nothing but
31454 maintenance troubles.
31456 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
31458 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
31459 version of this unit).
31461 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
31463 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
31464 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
31465 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
31466 the body of System.Interrupt_Management common to several targets.
31467 Update copyright notice when appropriate.
31469 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
31472 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
31473 to ensure that the kernel fills in the interrupted context structure
31474 before calling a signal handler, which is necessary to be able to
31475 unwind past it. Update the copyright notice.
31477 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
31479 * a-elchha.ads: New file.
31481 * a-elchha.adb: New default last chance handler. Contents taken from
31482 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
31484 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
31485 is moved to a-elchha.adb to provide a target-independent default last
31488 * Makefile.rtl: Add a-elchha.o
31490 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
31492 2003-12-05 Ed Schonberg <schonberg@gnat.com>
31494 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
31495 declared in an instance, do not inline the call if the instance is not
31496 frozen yet, to prevent order of elaboration problems.
31498 * sem_prag.adb: Add comments for previous fix.
31500 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
31502 * g-table.adb: Use the right variable in Set_Item.
31503 Update copyright notice.
31505 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
31507 * Makefile.in: Remove unused rules.
31509 2003-12-05 Vincent Celier <celier@gnat.com>
31511 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
31512 -nostdlib. Not needed here after all.
31514 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
31517 * adaint.h, adaint.c, g-os_lib.ads:
31518 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
31519 on some platforms (including FreeBSD), it is a 64 bit value.
31520 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
31522 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
31524 * gnatvsn.ads (Library_Version): Now contain only the relevant
31526 (Verbose_Library_Version): New constant.
31528 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
31529 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
31530 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
31532 * gnatlbr.adb: Clean up: replace Library_Version by
31533 Verbose_Library_Version.
31535 * make.adb, lib-writ.adb, exp_attr.adb:
31536 Clean up: replace Library_Version by Verbose_Library_Version.
31538 * 5lintman.adb: Removed.
31541 Update and simplify computation of LIBRARY_VERSION.
31542 Fix computation of GSMATCH_VERSION.
31543 5lintman.adb is no longer used: replaced by 7sintman.adb.
31545 2003-12-03 Robert Dewar <dewar@gnat.com>
31548 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
31549 name. Modified to consider small non-bit-packed arrays as troublesome
31550 and in need of component-by-component assigment expansion.
31552 2003-12-03 Vincent Celier <celier@gnat.com>
31554 * lang-specs.h: Process nostdlib as nostdinc
31556 * back_end.adb: Update Copyright notice
31557 (Scan_Compiler_Arguments): Process -nostdlib directly.
31559 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
31562 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
31563 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
31564 included in HIE_NONE_TARGET_PAIRS.
31566 2003-12-03 Ed Schonberg <schonberg@gnat.com>
31569 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
31570 is legal in an instance, because legality is cheched in the template.
31573 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
31574 appplied to an unchecked conversion of a formal parameter.
31577 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
31580 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
31582 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
31583 routines. The second one is new functionality to deal with backtracing
31584 through signal handlers.
31585 (unwind): Split into the two separate subroutines above.
31586 Update the documentation, and deal properly with sizeof (REG) different
31587 from sizeof (void*).
31589 2003-12-01 Nicolas Setton <setton@act-europe.fr>
31591 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
31592 so that the debugger can reliably access the value of the parameter,
31593 and therefore is able to display the exception name when an exception
31594 breakpoint is reached.
31596 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
31598 * fmap.adb: Fix typo in warning message.
31600 * g-socket.ads, g-socket.adb: Make Free a visible instance of
31601 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
31603 2003-12-01 Vincent Celier <celier@gnat.com>
31605 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
31607 (Build_Library): Get the switches only if Default_Switches is declared
31610 2003-12-01 Ed Schonberg <schonberg@gnat.com>
31612 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
31613 actuals that are indexed components, reanalyze actual to ensure that
31614 packed array references are properly expanded.
31616 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
31617 attempted assignment to a discriminant.
31619 2003-12-01 Robert Dewar <dewar@gnat.com>
31621 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
31624 * switch-c.adb: Minor reformatting of comments
31626 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
31628 * Makefile.in: Clean ups.
31630 2003-12-01 GNAT Script <nobody@gnat.com>
31632 * Make-lang.in: Makefile automatically updated
31634 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
31636 * 5wsystem.ads: Disable zero cost exception, not ready yet.
31638 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
31640 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
31641 to force serialization.
31643 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
31645 * g-socket.ads, g-socket.adb:
31646 Clarify documentation of function Stream. Introduce a Free procedure
31647 to release the returned Stream once it becomes unused.
31649 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
31651 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
31653 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
31654 since NT 4 cannot handle timeout values that are too large,
31655 e.g. DWORD'Last - 1.
31657 2003-11-26 Ed Schonberg <schonberg@gnat.com>
31660 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
31661 in procedure calls and whose expansion must be deferred.
31663 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
31667 (Build_Derived_Array_Type): Create operator for unconstrained type
31668 if ancestor is unconstrained.
31670 2003-11-26 Vincent Celier <celier@gnat.com>
31672 * make.adb (Project_Object_Directory): New global variable
31673 (Change_To_Object_Directory): New procedure
31674 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
31675 of Change_Dir directly. Do not change working directory to object
31676 directory of main project after each compilation.
31677 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
31679 Change to object directory of main project before binding step.
31680 (Initialize): Initialize Project_Object_Directory to No_Project
31683 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
31684 binding a Stand-Alone Library.
31686 * output.adb: Update Copyright notice
31687 (Write_Char): Output buffer when full
31689 2003-11-26 Robert Dewar <dewar@gnat.com>
31691 * sem_ch13.adb: (Check_Size): Reset size if size is too small
31694 (Check_Size): Fix documentation to include bit-packed array case
31696 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
31698 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
31700 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
31702 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
31705 * utils.c (init_gigi_decls): Change name of built-in setjmp to
31706 __builtin_setjmp, since this is apparently needed by recent
31709 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31711 * adadecode.c: Only include ctype.h if not IN_GCC.
31712 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
31714 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
31717 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
31718 signals and interrupts.
31720 * 5zintman.ads: New File.
31722 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
31723 add exception signals to the set of unmasked signals.
31726 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
31727 between signals and interrupts.
31728 Add to Unblocked_Signal_Mask the set of signals that are in
31732 Adding a check to see whether the Interrupt_ID we want to unmask is in
31733 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
31734 reason is that the index type of the Keep_Unmasked array is not always
31735 Interrupt_ID; it may be a subtype of Interrupt_ID.
31737 2003-11-24 Gary Dismukes <dismukes@gnat.com>
31740 (Remove_Side_Effects): Condition constantness of object created for a
31741 an unchecked type conversion on the constantness of the expression
31742 to ensure the correct value for 'Constrained when passing components
31743 of view-converted class-wide objects.
31745 2003-11-24 Robert Dewar <dewar@gnat.com>
31747 * par-load.adb (Load): Improve handling of misspelled and missing units
31748 Removes several cases of compilation abandoned messages
31750 * lib.adb: (Remove_Unit): New procedure
31752 * lib.ads: (Remove_Unit): New procedure
31754 * lib-load.adb: Minor reformatting
31756 2003-11-24 Vincent Celier <celier@gnat.com>
31759 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
31760 (Marking_Label): Label to mark processed source files. Incremented for
31762 (Gnatmake): Increase Marking_Labet for each executable
31763 (Is_Marked): Compare against marking label
31764 (Mark): Mark with marking label
31766 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
31769 Move the declaration of the TSD for System.Threads to System.Soft_Links.
31772 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
31773 (rts-cert): build a single relocatable object for the run-time lib.
31776 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
31779 Use gnatls rather than gcc to obtain the location of GNAT RTL for
31782 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
31784 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
31785 can not use it as before (that is, as a variable) when dumping it into
31786 the tree file. Add a local variable to store the result of this
31787 function and to be used as the string to be written into the tree.
31789 * scn.adb (Initialize_Scanner): Add comments explaining the recent
31792 * sinput.adb (Source_First, Source_Last): In case of
31793 Internal_Source_File, replace returning attributes of
31794 Internal_Source_Ptr (which is wrong) with returning attributes of
31797 2003-11-24 Ed Schonberg <schonberg@gnat.com>
31800 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
31801 used for implicit concatenation operators.
31805 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
31806 task bodies that are in the scope of a Suppress pragma.
31807 (Check_A Call): Use the flag to prevent spurious elaboration checks.
31809 * sinfo.ads, sinfo.adb:
31810 New flag No_Elaboration_Check on function/procedure calls, to properly
31811 suppress checks on calls in task bodies that are within a local suppress
31815 (Expand_Concatenate_Other): Use the proper integer type for the
31816 expression for the upper bound, to avoid universal_integer computations
31819 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
31821 * .cvsignore: Delete.
31823 2003-11-21 Andreas Schwab <schwab@suse.de>
31825 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
31827 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
31829 * 5wsystem.ads: Enable zero cost exception.
31831 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
31833 * 5ztiitho.adb: Remove an unreferenced variable.
31835 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
31837 * adaint.c: For FreeBSD, use mkstemp.
31839 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
31841 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
31843 2003-11-21 Robert Dewar <dewar@gnat.com>
31845 * bld.adb: Remove useless USE of gnatvsn
31847 * gnatchop.adb: Minor reformatting
31848 Clean up version handling to be more consistent
31850 * gnatxref.adb: Minor reformatting
31852 * gprcmd.adb: Minor reformatting
31853 Fix output of copyright to be more consistent with other tools
31855 2003-11-21 Vincent Celier <celier@gnat.com>
31857 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
31859 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
31861 * atree.adb (Initialize): Add initializations for global variables
31862 used in New_Copy_Tree.
31864 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
31865 Internal_Source_File as the actual).
31866 Put the set of statements creating Any_Character before the set of
31867 statements creating Any_Array to have Any_Character fully initialized
31868 when it is used in creating Any_Array.
31870 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
31871 not call Scan in case if the actual is Internal_Source_File
31872 Add 2003 to copyright note.
31874 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
31875 processing Internal_Source_File.
31877 * types.ads: Add the constant Internal_Source_File representing the
31878 source buffer for artificial source-code-like strings created within
31879 the compiler (the definition of Source_File_Index is changed).
31881 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
31883 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
31884 56system.ads: New file, FreeBSD version.
31886 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
31888 * Make-lang.in (ada.extraclean): Delete.
31890 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
31892 * gnatmem.adb: Clean up verbose output.
31894 * gprcmd.adb: Change copyright to FSF.
31896 2003-11-19 Vincent Celier <celier@gnat.com>
31898 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
31899 and Version (ignored).
31901 * symbols.ads: (Policy): New type
31902 (Initialize): New parameter Reference, Symbol_Policy and
31904 Remove parameter Force.
31905 Minor reformatting.
31907 * snames.ads, snames.adbadb: New standard names
31908 Library_Reference_Symbol_File and Library_Symbol_Policy
31911 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
31915 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
31917 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
31919 * prj.adb: (Project_Empty): New component Symbol_Data
31921 * prj.ads: (Policy, Symbol_Record): New types
31922 (Project_Data): New component Symbol_Data
31925 New attributes Library_Symbol_File, Library_Symbol_Policy and
31926 Library_Reference_Symbol_File.
31929 (Ada_Check): When project is a Stand-Alone library project, process
31930 attribute Library_Symbol_File, Library_Symbol_Policy and
31931 Library_Reference_Symbol_File.
31933 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
31934 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
31935 5sml-tgt.adb (Build_Dynamic_Library): New parameter
31936 Symbol_Data (ignored).
31938 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
31939 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
31940 functions Option_File_Name and Version_String. Set new options of
31941 gnatsym related to symbol file, symbol policy and reference symbol
31945 Extensive modifications to take into account the reference symbol file,
31946 the symbol policy, the library version and to put in the symbol file the
31947 minor and major IDs.
31949 * bld.adb (Process_Declarative_Items): Put second argument of
31950 gprcmd to_absolute between single quotes, to avoid problems with
31953 * bld-io.adb: Update Copyright notice.
31954 (Flush): Remove last character of a line, if it is a back slash, to
31955 avoid make problems.
31958 Implement new scheme with reference symbol file and symbol policy.
31960 * g-os_lib.ads: (Is_Directory): Clarify comment
31962 2003-11-19 Robert Dewar <dewar@gnat.com>
31964 * atree.adb: Move New_Copy_Tree global variables to head of package
31966 * errout.adb: Minor reformatting
31968 2003-11-19 Javier Miranda <miranda@gnat.com>
31970 * sem_ch4.adb: (Diagnose_Call): Improve error message.
31971 Add reference to Ada0Y (AI-50217)
31973 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
31974 sem_util.adb: Add reference to AI-50217
31976 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
31978 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
31980 * sem_aggr.adb: Complete documentation of AI-287 changes
31982 * par-ch4.adb: Document previous changes.
31984 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
31985 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
31988 * exp_aggr.adb: Add references to AI-287 in previous changes
31990 2003-11-19 Ed Schonberg <schonberg@gnat.com>
31993 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
31994 in the rewriting is the result of an inlined call.
31996 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
31997 parameter is a type conversion, use original node to construct the
31998 post-call assignment, because expression may have been rewritten, e.g.
31999 if it is a packed array.
32002 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
32003 body, just as it is in an instance.
32004 Categorization routines
32006 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
32007 Instantiate_Object): Set proper sloc reference for message on missing
32010 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
32012 * Makefile.in: Add FreeBSD libgnat pairs.
32014 * usage.adb: Fix typo in usage message.
32016 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
32018 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
32019 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
32020 pragma Thread_Body.
32021 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
32023 * s-thread.adb: This file is now a dummy implementation of
32026 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
32028 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
32030 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
32032 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
32033 instanciation references in the parent type description.
32035 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32037 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
32039 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
32040 TYPE_PRECISION directly from esize.
32042 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
32045 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
32047 * init.c: Initialization routines for FreeBSD
32049 * link.c: Link info for FreeBSD
32051 * sysdep.c: Add the case of FreeBSD
32053 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
32055 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
32056 already called in System.Threads.
32058 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
32059 environment task, as it has been moved to System.Threads.Initialization.
32061 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
32063 * adaint.c (__gnatlib_install_locks): Only reference
32064 __gnat_install_locks on VMS, since other platforms can avoid using
32065 --enable-threads=gnat
32067 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32069 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
32071 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
32072 TYPE_PACKED_ARRAY_TYPE_P.
32073 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
32075 Part of PR ada/12806
32076 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
32077 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
32079 2003-11-17 Vincent Celier <celier@gnat.com>
32081 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
32083 Do not set exit status to Failure when Warning is True.
32084 (Gnatchop): Make errors "no compilation units found" and
32085 "no source files written" warnings only.
32087 * make.adb (Gnatmake): When using a project file, set
32088 Look_In_Primary_Dir to False.
32089 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
32090 and Local_Configuration_Pragmas in the project where they are declared
32091 not an extending project which might have inherited them.
32093 * osint.adb (Locate_File): If Name is already an absolute path, do not
32094 look for a directory.
32096 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
32097 -gnats (Check_Syntax) is used, issue only a warning, not an error.
32099 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
32100 in objects of type Variable_Value.
32102 * prj.ads: (Variable_Value): New component Project
32104 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
32105 is in a project extended by Project.
32107 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
32108 Project of Variable_Values to this new parameter value.
32109 (Expression): Set component Project of Variable_Values.
32110 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
32111 Set the component Project in array elements.
32113 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
32115 * errout.adb: (Initialize): Add initialization for error nodes.
32117 * sem_ch12.adb (Initialize): Add missing initializations for
32118 Exchanged_Views and Hidden_Entities.
32120 2003-11-17 Ed Schonberg <schonberg@gnat.com>
32122 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
32123 already instantiated tree for use in subsequent inlining.
32124 (Analyze_Associations, Instantiate_Formal_Subprogram,
32125 Instantiate_Object): improve error message for mismatch in
32128 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
32129 instantiations of subprograms declared in instances.
32131 2003-11-17 Javier Miranda <miranda@gnat.com>
32133 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
32134 executed only under the Extensions_Allowed flag.
32136 2003-11-17 Robert Dewar <dewar@gnat.com>
32138 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
32140 (Address_Image): Fix bug of returning 0x instead of 0x0
32141 Minor reformatting (function specs).
32143 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
32144 (missed case of 33-63)
32146 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
32148 * s-thread.adb: Add comments for pragma Restriction
32150 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
32151 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
32153 2003-11-17 Ed Falis <falis@gnat.com>
32155 * s-thread.adb: Added No_Tasking restriction for this implementation.
32157 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
32159 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
32160 instanciation references in the parent type description.
32162 2003-11-17 GNAT Script <nobody@gnat.com>
32164 * Make-lang.in: Makefile automatically updated
32166 2003-11-16 Jason Merrill <jason@redhat.com>
32168 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
32169 and TAGS files that include them for each front end.
32171 2003-11-14 Andreas Jaeger <aj@suse.de>
32173 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
32174 is the canonical version.
32175 * misc.c (gnat_handle_option): Likewise.
32177 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
32179 * 5nsystem.ads: New file for x86_64-linux-gnu.
32181 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
32183 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
32185 * comperr.adb: Fix logic in previous change.
32187 2003-11-13 Vincent Celier <celier@gnat.com>
32189 * 5bml-tgt.adb (Build_Dynamic_Library): Use
32190 Osint.Include_Dir_Default_Prefix instead of
32191 Sdefault.Include_Dir_Default_Name.
32193 * gnatlbr.adb: Update Copyright notice
32194 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
32195 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
32196 instead of Sdefault.Object_Dir_Default_Name
32199 (Process_Binder_File): Never suppress the option following -Xlinker
32202 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
32203 Sdefault.Object_Dir_Default_Name.
32205 * osint.ads, osint.adb:
32206 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
32207 Minor reformatting.
32209 * vms_conv.ads: Minor reformating
32210 Remove GNAT STANDARD and GNAT PSTA
32213 Allow GNAT MAKE to have several files on the command line.
32214 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
32215 Sdefault.Object_Dir_Default_Name.
32217 Remove data for GNAT STANDARD
32220 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
32221 Remove data for GNAT STANDARD
32222 Remove options and documentation for -gnatwb/-gnatwB: these warning
32223 options no longer exist.
32225 2003-11-13 Ed Falis <falis@gnat.com>
32227 * 5zthrini.adb: (Init_RTS): Made visible
32230 (Register): Removed unnecessary call to taskVarGet that checked whether
32231 an ATSD was already set as a task var for the argument thread.
32234 Updated comment to reflect that this is a VxWorks version
32235 Added context clause for System.Threads.Initialization
32236 Added call to System.Threads.Initialization.Init_RTS
32238 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
32241 (Init_RTS): New procedure, for the initialization of the run-time lib.
32244 Remove dependancy on System.Init, so that this file can be used in the
32245 AE653 sequential run-time lib.
32247 2003-11-13 Robert Dewar <dewar@gnat.com>
32249 * bindgen.adb: Minor reformatting
32251 2003-11-13 Ed Schonberg <schonberg@gnat.com>
32254 (Apply_Discriminant_Check): Do no apply check if target type is derived
32255 from source type with no applicable constraint.
32258 (Ensure_System_Dependency): Do not apply the style checks that may have
32259 been specified for the main unit.
32262 (Find_Selected_Component): Further improvement in error message, with
32266 (Resolve): Handle properly the case of an illegal overloaded protected
32269 2003-11-13 Javier Miranda <miranda@gnat.com>
32272 (Has_Default_Init_Comps): New function to check the presence of
32273 default initialization in an aggregate.
32274 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
32275 extension aggregate of a limited record. In addition, a new formal
32276 was added to do not initialize the record controller (if any) during
32277 this recursive expansion of ancestors.
32278 (Init_Controller): Add support for limited record components.
32279 (Expand_Record_Aggregate): In case of default initialized components
32280 convert the aggregate into a set of assignments.
32282 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
32283 describing the new syntax.
32284 Nothing else needed to be done because this subprogram delegates part of
32285 its work to P_Precord_Or_Array_Component_Association.
32286 (P_Record_Or_Array_Component_Association): Give support to the new
32287 syntax for default initialization of components.
32290 (Resolve_Aggregate): Relax the strictness of the frontend in case of
32291 limited aggregates.
32292 (Resolve_Record_Aggregate): Give support to default initialized
32294 (Get_Value): In case of default initialized components, duplicate
32295 the corresponding default expression (from the record type
32296 declaration). In case of default initialization in the *others*
32297 choice, do not check that all components have the same type.
32298 (Resolve_Extension_Aggregate): Give support to limited extension
32302 (Check_Initialization): Relax the strictness of the front-end in case
32303 of aggregate and extension aggregates. This test is now done in
32304 Get_Value in a per-component manner.
32306 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
32307 expression corresponds to a limited aggregate. This test is now done
32310 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
32313 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
32314 present in an N_Component_Association node
32316 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
32318 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
32319 type-conformant entry only if they are homographs.
32321 2003-11-13 GNAT Script <nobody@gnat.com>
32323 * Make-lang.in: Makefile automatically updated
32325 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32327 * adadecode.c: Use <> form of include for ctype.h.
32328 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
32330 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32332 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
32333 Works around PR middle-end/6552.
32335 2003-11-10 Ed Falis <falis@gnat.com>
32337 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
32339 * 5zinit.adb: (Install_Handler): Moved back to spec
32340 (Install_Signal_Handlers): Deleted
32342 * 5zthrini.adb: Added context clause for System.Storage_Elements
32343 (Register): Only handles creation of taskVar; initialization moved to
32345 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
32346 Added declaration of environment task secondary stack and
32349 * s-thread.adb: Implement bodies for thread body processing
32352 Added comment identifying supported targets for pragma Thread_Body.
32354 2003-11-10 Pascal Obry <obry@gnat.com>
32356 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
32360 (Open): Properly check for string length before copying into the buffer.
32361 Raises Name_Error if buffer is too small. Note that this was a potential
32364 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
32366 * bindgen.adb, comperr.adb: Code clean ups.
32367 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
32369 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
32371 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
32373 2003-11-10 Vincent Celier <celier@gnat.com>
32376 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
32379 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
32381 * prj.adb: (Project_Empty): Add new boolean component Virtual
32383 * prj.ads: (Virtual_Prefix): New constant string
32384 (Project_Data): New boolean component Virtual
32386 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
32387 a library project is extended by a virtual extending project.
32390 Modifications throughout to implement extending-all project, including:
32391 (Virtual_Hash, Processed_Hash): New hash tables
32392 (Create_Virtual_Extending_Project): New procedure
32393 (Look_For_Virtual_Projects_For): New procedure
32396 (Process): After checking the projects, if main project is an
32397 extending-all project, set the object directory of all virtual extending
32398 project to the object directory of the main project.
32399 Adjust error message when a virtual extending project has the same
32400 object directory as an project being extended.
32401 (Recursive_Process): If name starts with the virtual prefix, set Virtual
32402 to True in the project data.
32405 (Default_Project_Node): Add new boolean component Extending_All
32406 (Is_Extending_All): New function
32407 (Set_Is_Extending_All): New procedure
32409 * prj-tree.ads: (Is_Extending_All): New function
32410 (Set_Is_Extending_All): New procedure
32411 (Project_Node_Record): New boolean component Extending_All
32413 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
32416 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
32418 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
32419 "gprcmd prefix" to define it.
32421 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
32423 * einfo.ads: Fix a typo and remove an extraneous word in comments.
32426 (Create_Dummy_Package_Unit): Set the scope of the entity for the
32427 created dummy package to Standard_Standard, not to itself, to
32428 defend other parts of the front-end against encoutering a cycle in
32432 (Analyze_With_Clause): When setting the entities for the successive
32433 N_Expanded_Names that constitute the name of a child unit, do not
32434 attempt to go further than Standard_Standard in the chain of scopes.
32435 This case arises from the placeholder units created by
32436 Create_Dummy_Package_Unit in the case of a with_clause for a
32437 nonexistent child unit.
32439 2003-11-10 Ed Schonberg <schonberg@gnat.com>
32442 (Expand_Thread_Body): Place subprogram on scope stack, so that new
32443 declarations are given the proper scope.
32446 (Check_Expr_Constants): Reject an expression that contains a constant
32447 created during expansion, and that appears after the object to which
32448 the address clause applies.
32450 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
32451 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
32452 that uses 'Range of a function call with controlled components, so
32453 that the function result can be finalized before starting the loop.
32456 (Find_Selected_Component): Improve error message when prefix is
32457 an implicit dereference of an incomplete type.
32459 2003-11-10 Robert Dewar <dewar@gnat.com>
32461 * opt.ads: New Print_Standard flag for -gnatS switch
32463 * sem_ch13.adb: Remove some additional checks for unaligned arrays
32465 * cstand.adb (Create_Standard): Print out package standard if -gnatS
32468 * debug.adb: Update doc for -gnatds to discuss relationship with new
32471 * sinfo.adb: Add new field Entity_Or_Associated_Node
32473 * sinfo.ads: Add new field Entity_Or_Associated_Node
32474 Update documentation for Associated_Node and Entity fields to clarify
32475 relationship and usage.
32478 (Write_Id): Properly process Associated_Node field in generic template
32481 Recognize new -gnatS switch for printing package Standard
32482 This replaces gnatpsta
32485 Add line for new -gnatS switch for printing package Standard
32486 This replaces gnatpsta
32488 2003-11-10 Andreas Jaeger <aj@suse.de>
32490 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
32493 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
32495 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
32498 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
32500 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
32503 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
32505 * sysdep.c: Add handling of cygwin.
32507 2003-11-10 GNAT Script <nobody@gnat.com>
32509 * Make-lang.in: Makefile automatically updated
32511 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
32514 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
32515 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
32516 Replace GNAT_ROOT by GCC_ROOT.
32518 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
32520 2003-11-06 Zack Weinberg <zack@codesourcery.com>
32522 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
32523 and update for changed meaning of GET_MODE_BITSIZE.
32525 2003-11-04 Doug Rupp <rupp@gnat.com>
32527 * sysdep.c: Problem discovered during IA64 VMS port.
32528 [VMS] #include <unixio.h> to get proper prototypes.
32531 Issues discovered/problems fixed during IA64 VMS port.
32532 [VMS] #define _POSIX_EXIT for proper semantics.
32533 [VMS] #include <unixio.h> for proper prototypes.
32534 [VMS] (fork): #define IA64 version.
32535 (__gnat_os_exit): Remove unnecessary VMS specific code.
32537 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32539 Part of PR ada/12806
32540 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
32544 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
32547 * targtyps.c, decl.c, misc.c,
32548 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
32549 routines to work around change in FP sizing semantics in GCC.
32552 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
32554 * gigi.h: (enumerate_modes): New function.
32556 * Make-lang.in: (ada/misc.o): Add real.h.
32558 * misc.c: (enumerate_modes): New function.
32560 2003-11-04 Robert Dewar <dewar@gnat.com>
32562 * 3vtrasym.adb: Minor reformatting
32563 Use terminology encoded/decoded name, rather than C++ specific notion
32564 of mangling (this is the terminology used throughout GNAT).
32566 * einfo.h: Regenerated
32568 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
32571 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
32573 * par-prag.adb: Add dummy entry for Thread_Body pragma
32576 Add entries for System.Threads entities for thread body processing
32579 (Analyze_Pragma, Access attributes): Check these are not applied to a
32580 thread body, since this is not permitted
32582 * sem_prag.adb: Add processing for Thread_Body pragma.
32586 (Resolve_Call): Check for incorrect attempt to call a thread body
32587 procedure with a direct call.
32589 * snames.ads, snames.adb: Add entry for Thread_Body pragma
32590 Add names associated with thread body expansion
32592 * snames.h: Add entry for Thread_Body pragma
32594 * s-thread.adb: Add entries for thread body processing
32595 These are dummy bodies so far
32597 * s-thread.ads: Add documentation on thread body handling.
32598 Add entries for thread body processing.
32600 2003-11-04 Javier Miranda <miranda@gnat.com>
32603 (Build_Limited_Views): Return after posting an error in case of limited
32604 with_clause on subprograms, generics, instances or generic renamings
32605 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
32606 on subprograms, generics, instances or generic renamings
32608 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
32610 * raise.c (setup_to_install): Correct mistake in last revision; two
32611 arguments out of order.
32613 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
32614 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
32615 notice, missed in previous change.
32616 Remove trailing blanks and other style errors introduced in previous
32619 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
32621 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
32622 rid of the wrapper for a LJM type, ensuring we don't do that if the
32623 field is addressable. This avoids potential low level type view
32624 mismatches later on, for instance in a by-reference argument passing
32627 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32629 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
32630 aligned at byte boundary.
32632 2003-11-04 Joel Brobecker <brobecker@gnat.com>
32634 * decl.c (components_to_record): Do not delete the empty variants from
32635 the end of the union type.
32637 2003-11-04 Ed Schonberg <schonberg@gnat.com>
32639 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
32640 operation for a derived type, an explicit declaration may use a local
32641 subtype of Boolean.
32643 2003-11-04 Vincent Celier <celier@gnat.com>
32645 * make.adb (Gnatmake): Allow main sources on the command line with a
32646 library project when it is only for compilation (no binding or
32649 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32651 * Makefile.in: Remove many duplicate variables.
32653 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
32655 * Make-lang.in (dvi): Move targets to $(docobjdir).
32656 (gnat_ug_vms.dvi): Simplify rule and adjust target.
32657 (gnat_ug_wnt.dvi): Likewise.
32658 (gnat_ug_unx.dvi): Likewise.
32659 (gnat_ug_vxw.dvi): Likewise.
32660 (gnat_rm.dvi): Likewise.
32661 (gnat-style.dvi): Likewise.
32663 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
32665 * gigi.h: Missed commit from update for C90.
32667 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
32669 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
32671 2003-10-31 Andreas Schwab <schwab@suse.de>
32673 * raise.c (get_action_description_for): Fix typo in last change.
32675 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
32678 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
32679 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
32681 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
32683 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
32684 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
32685 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
32686 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
32687 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
32689 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
32692 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
32693 numbers when symbol name is too long.
32695 2003-10-30 Ed Falis <falis@gnat.com>
32697 * g-signal.ads, g-signal.adb: New files
32699 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
32701 * Makefile.rtl: Introduce GNAT.Signals
32703 2003-10-30 Robert Dewar <dewar@gnat.com>
32705 * freeze.adb: Minor reformatting
32707 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
32709 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
32710 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
32711 New handling of Id_Check parameter to improve recognition of keywords
32712 used as identifiers.
32713 Update copyright notice to include 2003
32715 2003-10-29 Robert Dewar <dewar@gnat.com>
32717 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
32718 sem_ch10.adb: Minor reformatting
32720 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
32721 (Expand_Assign_Record): Test right hand side for bit unaligned as well
32723 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
32725 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
32726 Support for TBK$SYMBOLIZE-based symbolic traceback.
32728 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
32731 Revert previous change, that did not work well when pragma No_Run_Time
32732 was used in conjunction with a run-time other than ZFP.
32734 2003-10-29 Vincent Celier <celier@gnat.com>
32737 (Gnatmake): When there are no Ada mains in attribute Main, disable the
32738 bind and link steps only is switch -z is not used.
32740 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
32742 * Makefile.generic: Remove duplicated setting of CC.
32744 * Makefile.prolog: Set CC to gcc by default, to override make's
32747 * einfo.h: Regenerated.
32749 2003-10-29 Ed Schonberg <schonberg@gnat.com>
32751 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
32752 current body, after compiling subunit.
32754 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
32755 when in deleted code, because gigi needs properly ordered freeze
32756 actions to annotate types.
32758 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
32759 prevent the premature freezing of record type that contains
32760 subcomponents with a private type that does not yet have a completion.
32762 2003-10-29 Javier Miranda <miranda@gnat.com>
32765 (Analyze_Package_Instantiation): Check that instances can not be used in
32766 limited with_clauses.
32769 (Analyze_Package_Renaming): Check that limited withed packages cannot
32770 be renamed. Improve text on error messages related to limited
32773 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
32775 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
32776 Update copyright notice.
32778 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
32779 (Install_Limited_Context_Clauses): New subprogram that isolates all the
32780 checks required for limited context_clauses and installs the limited
32782 (Install_Limited_Withed_Unit): Complete its documentation.
32783 (Analyze_Context): Check that limited with_clauses are only allowed in
32785 (Install_Context): Call Install_Limited_Context_Clauses after the
32786 parents have been installed.
32787 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
32788 package as 'From_With_Type'; this mark indicates that the limited view
32789 is installed. Used to check bad usages of limited with_clauses.
32790 (Build_Limited_Views): Do not add shadow entities to the scope's list
32791 of entities. Do not add real entities to the Non_Limited_Views chain.
32792 Improve error notification.
32793 (Remove_Context_Clauses): Remove context clauses in two phases:
32794 limited views first and regular views later (to maintain the
32796 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
32797 its visible entities.
32799 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
32801 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
32802 with any type that Is_Fixed_Point_Type.
32804 * sinfo.ads: Fix documentation for Associated_Node attribute.
32806 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
32808 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
32809 both '-gnatc' and '-gnatt' are specified.
32811 * atree.adb (Initialize): Add initialization for Node_Count (set to
32814 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32816 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
32817 do not consider as Pure.
32819 Part of implementation of function-at-a-time:
32821 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
32822 (tree_transform): Add new argument to build_component_ref.
32823 (tree_transform, case N_Assignment_Statement): Make and return an
32825 (tree_transform): If result IS_STMT, set flags and return it.
32826 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
32828 * utils2.c (build_simple_component_ref, build_component_ref): Add new
32830 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
32831 (build_allocator): Likewise.
32833 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
32834 Add new arg to build_component_ref.
32835 (maybe_unconstrained_array, unchecked_convert): Likewise.
32837 * ada-tree.def (EXPR_STMT): New code.
32839 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
32841 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
32842 build_component_ref calls.
32844 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
32846 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
32847 (build_component_ref): Add new argument, NO_FOLD_P.
32849 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
32851 * Makefile.generic: Add missing substitution on object_deps handling.
32854 * Make-lang.in (check-ada): Enable ACATS test suite.
32856 2003-10-27 Robert Dewar <dewar@gnat.com>
32859 (Freeze_Array_Type): We do not need an initialization routine for types
32860 derived from String or Wide_String. They should be treated the same
32861 as String and Wide_String themselves. This caused problems with the
32862 use of Initialize_Scalars.
32865 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
32866 composites. This allows use of component clauses that are not byte
32870 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
32871 is an attempt to pack an array of atomic objects.
32873 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
32875 2003-10-27 Pascal Obry <obry@gnat.com>
32878 (Basename): Check for drive letters in a pathname only on DOS based OS.
32880 2003-10-27 Vincent Celier <celier@gnat.com>
32883 (Gnatmake): When unable to change dir to the object dir, display the
32884 content of the parent dir of the obj dir, to try to understand why this
32887 2003-10-27 GNAT Script <nobody@gnat.com>
32889 * Make-lang.in: Makefile automatically updated
32891 2003-10-27 Ed Schonberg <schonberg@gnat.com>
32894 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
32895 should not be done in Save/Restore_Scope_Stack, because it is performed
32899 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
32900 whether use clauses should be removed/restored.
32903 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
32904 whether use clauses should be removed/restored.
32906 2003-10-26 Andreas Jaeger <aj@suse.de>
32908 * Makefile.in: Remove duplicated lines.
32910 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32912 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
32913 minimize the differences with ACT tree.
32915 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
32916 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
32917 Gnatvsn.Gnat_Static_Version_String to reduce differences between
32920 2003-10-24 Pascal Obry <obry@gnat.com>
32923 * adadecode.c (ostrcpy): New function.
32924 (__gnat_decode): Use ostrcpy of strcpy.
32925 (has_prefix): Set first parameter a const.
32926 (has_suffix): Set first parameter a const.
32927 Update copyright notice. Fix source name in header.
32928 Removes a trailing space.
32930 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
32933 Remove the test against being in No_Run_Time_Mode before generating a
32934 call to Register_Tag. It is redundant with the test against the
32935 availability of the function Register_Tag.
32937 2003-10-24 Vincent Celier <celier@gnat.com>
32939 * g-catiio.adb: (Month_Name): Correct spelling of February
32941 * make.adb: (Mains): New package
32942 (Initialize): Call Mains.Delete
32943 (Gnatmake): Check that each main on the command line is a source of a
32944 project file and, if there are several mains, each of them is a source
32945 of the same project file.
32946 (Gnatmake): When a foreign language is specified in attribute Languages,
32947 no main is specified on the command line and attribute Mains is not
32948 empty, only build the Ada main. If there is no Ada main, just compile
32949 the Ada sources and their closure.
32950 (Gnatmake): If a main is specified on the command line with directory
32951 information, check that the source exists and, if it does, that the path
32952 is the actual path of a source of a project.
32955 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
32956 Full_Path is True, return the full path instead of the simple file name.
32957 (Project_Of): New function
32960 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
32961 defaulted to False.
32962 (Project_Of): New function
32964 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32966 * Makefile.generic:
32967 Ensure objects of main project are always checked and rebuilt if needed.
32968 Set CC to gcc by default.
32969 Prepare new handling of link by creating a global archive (not activated
32972 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32973 stringt.h: Update copyright notice. Remove trailing blanks.
32974 Fix source name in header.
32976 2003-10-24 Robert Dewar <dewar@gnat.com>
32978 * sem_ch12.adb: Minor reformatting
32981 Minor reformatting (including new function return style throughout)
32984 Minor reformatting (including new function return style throughout)
32986 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32988 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32989 stringt.h: Update copyright notice. Remove trailing blanks.
32990 Fix source name in header.
32992 2003-10-24 GNAT Script <nobody@gnat.com>
32994 * Make-lang.in: Makefile automatically updated
32996 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
32998 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
32999 stringt.h: Convert to ISO C90 declarations and definitions.
33001 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
33004 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
33005 External_Tag attribute definition clauses.
33007 2003-10-23 Ed Schonberg <schonberg@gnat.com>
33010 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
33011 child unit, generate a fully qualified name to avoid spurious errors
33012 when the context contains renamings of different child units with
33013 the same simple name.
33015 * exp_dbug.ads: Add documentation on name qualification for renamings
33018 2003-10-23 Robert Dewar <dewar@gnat.com>
33020 * g-regpat.ads, g-regpat.adb: Minor reformatting
33022 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
33024 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
33026 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33028 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
33031 * urealp.h: (Machine): Update to proper definition.
33033 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
33035 * init.c, adaint.c: Minor reformatting.
33037 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
33039 * adaint.c (w32_epoch_offset): Define static const at file level.
33040 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
33041 rather than t_create, t_access in call to GetFileTime. Use union
33042 to convert between FILETIME and unsigned long long.
33043 (__gnat_file_time_name): Test for invalid file handle.
33044 (__gnat_set_filetime_name): Support win32 targets using
33045 w32api SetFileTime.
33047 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
33049 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
33051 * ctrl_c.c (__gnat_int_handler): Remove declaration.
33053 * decl.c (creat_concat_name): Const-ify prefix.
33055 * adaint.c: Include ctype.h if __MINGW32__.
33056 (__gnat_readlink): Mark arguments as possibly unused.
33057 (__gnat_symlink): Likewise.
33058 (__gnat_is_symbolic_link): Likewise.
33059 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
33061 (__gnat_file_time_name): Don't declare struct stat statbuf when
33063 (__gnat_is_absolute_path): Add parenthesis around condition of
33064 'if' statement to avoid warning.
33065 (__gnat_plist_init): Specify void as parameter.
33066 (plist_enter): Likewise.
33067 (plist_leave): Likewise.
33068 (remove_handle): Make static. Initialize prev.
33070 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
33073 * Makefile.in: Disable build of gnatpsta.
33074 * cstreams.c (__gnat_full_name): Minor improvements and clean up
33075 of previous change.
33077 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33079 * tracebak.c (MAX): Avoid redefinition warning.
33081 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
33082 Change msg to const char *.
33083 (__gnat_install_handler): Remove ss, unused.
33084 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
33086 * cstreams.c (__gnat_full_name): Declare p only when used.
33087 (__gnat_full_name) [sgi] Return buffer.
33089 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
33091 * mingw32.h: New file.
33092 * gnat_wrapper.adb: New file.
33094 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
33096 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
33097 string match a pre compiled regular expression (the corresponding
33098 version of the function working on a raw regular expression)
33099 Fix typos in various comments
33100 Update copyright notice in spec
33102 2003-10-21 Gary Dismukes <dismukes@gnat.com>
33105 (Component_Needs_Simple_Initialization): Return False when the type is a
33106 packed bit array. Revise spec comments to document this case.
33109 (Expand_Pragma_Import): Set any expression on the imported object to
33110 empty to avoid initializing imported objects (in particular this
33111 covers the case of zero-initialization of bit arrays).
33112 Update copyright notice.
33114 2003-10-21 Ed Schonberg <schonberg@gnat.com>
33117 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
33118 a subunit is missing.
33119 (Instantiate_Subprogram_Body): If body of function is missing, set type
33120 of return expression explicitly in dummy body, to prevent cascaded
33121 errors when a subunit is missing.
33125 (Access_Subprogram_Declaration): Verify that return type is valid.
33129 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
33134 (Corresponding_Discriminant): If the scope of the discriminant is a
33135 private type without discriminant, use its full view.
33138 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
33140 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
33141 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
33142 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
33143 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
33144 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
33145 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
33146 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33147 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
33148 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
33149 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
33150 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
33151 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
33152 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
33153 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
33154 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
33155 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
33156 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
33157 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
33158 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
33159 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
33160 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
33161 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
33162 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
33163 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
33164 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
33165 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
33166 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
33167 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
33168 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
33169 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
33170 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
33171 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
33172 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
33173 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
33174 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
33175 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
33176 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
33177 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
33178 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
33179 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
33180 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
33181 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
33182 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
33183 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
33184 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
33185 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
33186 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
33187 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
33188 vms_conv.ads, vms_conv.adb, vms_data.ads,
33189 vxaddr2line.adb: Files added. Merge with ACT tree.
33191 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
33192 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
33193 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
33194 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
33195 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
33196 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
33197 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
33198 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
33199 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
33200 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
33202 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
33203 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
33204 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
33205 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
33206 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
33207 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
33208 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
33209 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
33210 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
33211 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
33212 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33213 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
33214 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
33215 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33216 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
33217 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
33218 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
33219 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
33220 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
33221 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
33222 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
33223 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33224 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33225 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33226 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
33227 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
33228 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
33229 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33230 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
33231 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33232 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33233 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
33234 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
33235 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
33236 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
33237 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
33238 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
33239 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
33240 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
33241 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
33242 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
33243 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
33244 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
33245 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
33246 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
33247 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
33248 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
33249 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
33250 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
33251 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
33252 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
33253 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
33254 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
33255 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
33256 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
33257 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
33258 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
33259 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
33260 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
33261 checks.adb, checks.ads, cio.c, comperr.adb,
33262 comperr.ads, csets.adb, cstand.adb, cstreams.c,
33263 debug_a.adb, debug_a.ads, debug.adb, decl.c,
33264 einfo.adb, einfo.ads, errout.adb, errout.ads,
33265 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
33266 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
33267 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
33268 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
33269 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
33270 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
33271 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
33272 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
33273 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
33274 fe.h, fmap.adb, fmap.ads, fname.adb,
33275 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
33276 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
33277 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
33278 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
33279 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
33280 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
33281 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
33282 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
33283 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
33284 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
33285 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
33286 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
33287 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
33288 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
33289 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
33290 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
33291 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
33292 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
33293 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
33294 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
33295 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
33296 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
33297 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
33298 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
33299 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
33300 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
33301 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
33302 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
33303 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
33304 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
33305 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
33306 layout.adb, lib.adb, lib.ads, lib-list.adb,
33307 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
33308 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
33309 link.c, live.adb, make.adb, make.ads,
33310 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
33311 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
33312 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
33313 misc.c, mkdir.c, mlib.adb, mlib.ads,
33314 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
33315 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
33316 namet.adb, namet.ads, namet.h, nlists.ads,
33317 nlists.h, nmake.adt, opt.adb, opt.ads,
33318 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
33319 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
33320 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
33321 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
33322 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
33323 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
33324 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
33325 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
33326 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
33327 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
33328 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
33329 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
33330 prj-util.adb, prj-util.ads, raise.c, raise.h,
33331 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
33332 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
33333 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
33334 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
33335 scans.ads, scn.adb, scn.ads, s-crc32.adb,
33336 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
33337 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
33338 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
33339 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
33340 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
33341 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
33342 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
33343 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
33344 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
33345 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
33346 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
33347 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
33348 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
33349 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
33350 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
33351 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
33352 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
33353 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
33354 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
33355 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
33356 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
33357 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
33358 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
33359 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
33360 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
33361 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
33362 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
33363 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
33364 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
33365 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
33366 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
33367 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
33368 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
33369 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
33370 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
33371 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
33372 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
33373 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33374 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33375 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
33376 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
33377 stringt.adb, stringt.ads, stringt.h, style.ads,
33378 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
33379 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
33380 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
33381 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
33382 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
33383 table.adb, table.ads, targparm.adb, targparm.ads,
33384 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
33385 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
33386 ttypes.ads, types.ads, types.h, uintp.adb,
33387 uintp.ads, uintp.h, uname.adb, urealp.adb,
33388 urealp.ads, urealp.h, usage.adb, utils2.c,
33389 utils.c, validsw.adb, validsw.ads, widechar.adb,
33390 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
33391 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
33392 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
33393 gnatvsn.ads: Merge with ACT tree.
33395 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
33397 2003-10-20 Mark Mitchell <mark@codesourcery.com>
33399 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
33400 (gnat_ug_vmx.info): Likewise.
33401 (gnat_ug_vxw.info): Likewise.
33402 (gnat_ug_wnt.info): Likewise.
33403 (gnat_rm.info): Likewise.
33404 (gnat-style.info): Likewise.
33406 * Make-lang.in (ada.install-info): Remove target.
33407 (info): New target.
33408 (install-info): Likewise.
33409 (gnat_ug_unx.info): Simplify rule.
33410 (gnat_ug_vmx.info): Likewise.
33411 (gnat_ug_vxw.info): Likewise.
33412 (gnat_ug_wnt.info): Likewise.
33413 (gnat_rm.info): Likewise.
33414 (gnat-style.info): Likewise.
33416 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
33418 * Make-lang.in: Replace uses of $(target_alias) with
33419 $(target_noncanonical).
33420 * ada/Makefile.in: Remove unused mention of $(target_alias).
33422 2003-10-06 Mark Mitchell <mark@codesourcery.com>
33424 * Make-lang.in (ada.info): Replace with ...
33426 (ada.dvi): Replace with ...
33429 2003-09-29 Zack Weinberg <zack@codesourcery.com>
33431 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
33432 initialize dconstp5 and dconstmp5.
33434 2003-09-28 Richard Henderson <rth@redhat.com>
33436 * trans.c (tree_transform): Update call to expand_asm_operands.
33438 2003-09-21 Richard Henderson <rth@redhat.com>
33440 * trans.c, utils.c: Revert.
33442 2003-09-21 Richard Henderson <rth@redhat.com>
33444 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
33447 2003-09-04 Michael Matz <matz@suse.de>
33449 * misc.c: Include "target.h".
33450 * Make-lang.in (misc.o): Add dependency on target.h.
33452 2003-09-03 DJ Delorie <dj@redhat.com>
33454 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
33457 2003-08-30 Zack Weinberg <zack@codesourcery.com>
33459 * Makefile.in: Update substitutions to match changes to
33460 configure. Use include directives instead of @-insertions
33461 to read in host and target fragments. Add a rule to
33462 regenerate ada/Makefile.
33464 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
33466 * lang-options.h: Remove.
33467 * lang.opt: Add help text.
33469 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
33471 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
33474 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
33476 * misc.c (gnat_handle_option): Don't handle filenames.
33478 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
33480 * Make-lang.in: Replace PWD with PWD_COMMAND.
33481 * Makefile.adalib: Likewise.
33482 * Makefile.in: Likewise.
33484 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
33486 * misc.c (gnat_argv): Revert last change.
33487 (gnat_handle_option, gnat_init_options): Copy arguments.
33489 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
33491 * misc.c (gnat_argv): Make const.
33493 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
33495 * misc.c (save_argc, save_argv): Keep non-static!
33497 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
33499 * misc.c (save_argc, save_argv): Make static.
33500 (gnat_init_options): New prototype.
33501 (gnat_init_options): Update.
33503 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
33505 * gnat_ug.texi: Remove unlikely characters from @vars.
33506 * gnat_ug_vms.texi: Regenerate.
33508 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
33510 * misc.c (record_code_position): Adjust emit_note call.
33512 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
33514 * misc.c (gnat_handle_option): Don't check for missing arguments.
33516 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
33518 * utils.c (end_subprog_body): Adjust expand_function_end call.
33520 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
33522 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
33525 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
33527 * lang.opt: Declare Ada.
33528 * misc.c (gnat_init_options): Update.
33530 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
33532 * utils.c (begin_subprog_body): Adjust init_function_start call.
33534 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
33536 * Make-lang.in: Update to use options.c and options.h.
33537 * misc.c: Include options.h not aoptions.h.
33538 (gnat_handle_option): Abort on unrecognized switch.
33539 (gnat_init_options): Request Ada switches.
33541 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
33543 * lang.opt: Add -Wall.
33544 * misc.c (gnat_handle_option): Handle it.
33546 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
33548 * misc.c (gnat_handle_option): Fix warnings.
33550 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
33552 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
33554 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
33556 * Make-lang.in: Update to handle command-line options.
33557 * lang.opt: New file.
33558 * misc.c: Include aoptions.h.
33559 (cl_options_count, cl_options): Remove.
33560 (gnat_handle_option): New.
33561 (gnat_decode_option): Remove.
33562 (LANG_HOOKS_DECODE_OPTION): Remove.
33563 (LANG_HOOKS_HANDLE_OPTION): Override.
33565 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
33567 * init.c, misc.c, trans.c, utils.c: Remove dead code.
33569 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
33571 * Makefile.in: Replace "host_canonical" with "host" for autoconf
33574 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
33576 * Make-lang.in: Update.
33577 * misc.c: Include opts.h. Define cl_options_count and cl_options.
33579 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
33581 * misc.c (gnat_init_options): Update.
33583 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
33585 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
33586 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
33587 __attribute__ ((__unused__)).
33589 2003-06-05 Jan Hubicka <jh@suse.cz>
33591 * Make-lang.in: Add support for stageprofile and stagefeedback
33593 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
33595 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
33596 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
33598 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
33600 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
33601 Remove non-VMS directive.
33602 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
33604 (Examples of gnatls Usage): Remove VMS alternative.
33606 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
33609 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
33610 and turn ZCX_By_Default back to False since the underlying support
33611 is not quite there yet.
33613 2003-06-01 Andreas Jaeger <aj@suse.de>
33615 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
33616 and ROUND_TYPE_SIZE_UNIT.
33618 2003-05-22 Geert Bosch <bosch@gnat.com>
33620 * gnat_rm.texi : Remove reference to Ada Core Technologies.
33622 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
33624 * trans.c (tree_transform): Use location_t and input_location
33626 (build_unit_elab): Likewise.
33627 * utils.c (create_label_decl): Likewise.
33629 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
33631 * trans.c (tree_transform, build_unit_elab,
33632 set_lineno): Rename lineno to input_line.
33633 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
33634 end_subprog_body): Likewise.
33635 * utils2.c (build_call_raise): Likewise.
33637 2003-05-01 Laurent Guerby <guerby@acm.org>
33640 * 5iosinte.ads: Increase pthread_cond_t size to match recent
33641 LinuxThread and NPTL version, merge from ACT.
33643 2003-04-28 Zack Weinberg <zack@codesourcery.com>
33645 * utils.c (convert): No need to clear TREE_CST_RTL.
33647 2003-04-23 Geert Bosch <bosch@gnat.com>
33649 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
33650 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
33651 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
33652 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
33653 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
33654 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
33655 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
33656 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
33657 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
33658 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
33659 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
33660 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
33661 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
33662 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
33663 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
33664 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
33665 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
33666 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
33667 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
33668 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33669 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33670 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
33671 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
33672 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
33673 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
33674 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
33675 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
33676 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
33677 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
33678 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
33679 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
33680 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
33681 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
33682 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
33683 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
33684 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
33685 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
33686 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
33687 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
33688 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
33689 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
33690 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
33691 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
33692 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
33693 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
33694 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
33695 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
33696 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
33697 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
33698 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
33699 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
33700 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
33701 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
33702 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
33703 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
33704 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
33705 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
33706 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
33707 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
33708 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
33709 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
33710 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
33711 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
33712 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
33713 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
33714 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
33715 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
33716 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
33717 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
33718 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
33719 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
33720 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
33721 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
33722 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
33723 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
33724 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
33725 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
33726 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
33727 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
33728 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
33729 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
33730 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
33731 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
33732 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
33733 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
33734 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
33735 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
33736 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
33737 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
33738 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
33739 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
33740 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
33741 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
33742 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
33743 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
33744 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
33745 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
33746 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
33747 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
33748 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
33749 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
33750 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
33751 ali.adb, ali.ads, alloc.ads, argv.c,
33752 atree.adb, atree.ads, atree.h, aux-io.c,
33753 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
33754 binde.adb, binde.ads, binderr.adb, binderr.ads,
33755 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
33756 butil.adb, butil.ads, cal.c, calendar.ads,
33757 casing.adb, casing.ads, ceinfo.adb, checks.adb,
33758 checks.ads, cio.c, comperr.adb, comperr.ads,
33759 config-lang.in, csets.adb, csets.ads, csinfo.adb,
33760 cstand.adb, cstand.ads, cuintp.c, debug.adb,
33761 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
33762 dec-io.ads, dec.ads, deftarg.c, directio.ads,
33763 einfo.adb, einfo.ads, elists.adb, elists.ads,
33764 elists.h, errno.c, errout.adb, errout.ads,
33765 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
33766 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
33767 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
33768 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
33769 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
33770 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
33771 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
33772 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
33773 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
33774 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
33775 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
33776 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
33777 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
33778 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
33779 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
33780 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
33781 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
33782 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
33783 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
33784 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
33785 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
33786 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
33787 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
33788 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
33789 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
33790 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
33791 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
33792 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
33793 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
33794 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
33795 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
33796 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
33797 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
33798 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
33799 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
33800 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
33801 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
33802 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
33803 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
33804 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
33805 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
33806 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
33807 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
33808 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
33809 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
33810 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
33811 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
33812 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
33813 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
33814 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
33815 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
33816 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
33817 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
33818 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
33819 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
33820 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
33821 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
33822 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
33823 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
33824 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
33825 lib.adb, lib.ads, live.adb, live.ads,
33826 machcode.ads, make.adb, make.ads, makeusg.adb,
33827 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
33828 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
33829 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
33830 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
33831 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
33832 mlib.ads, namet.adb, namet.ads, nlists.adb,
33833 nlists.ads, opt.adb, opt.ads, osint-b.adb,
33834 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
33835 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
33836 osint.ads, output.adb, output.ads, par-ch10.adb,
33837 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
33838 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
33839 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
33840 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
33841 par-tchk.adb, par-util.adb, par.adb, par.ads,
33842 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
33843 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
33844 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
33845 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
33846 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
33847 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
33848 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
33849 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
33850 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
33851 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
33852 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
33853 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
33854 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
33855 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
33856 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
33857 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
33858 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
33859 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
33860 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
33861 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
33862 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
33863 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
33864 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
33865 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
33866 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
33867 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
33868 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
33869 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
33870 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
33871 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
33872 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
33873 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
33874 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
33875 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
33876 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
33877 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
33878 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
33879 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
33880 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
33881 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
33882 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
33883 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
33884 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
33885 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
33886 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
33887 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
33888 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
33889 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
33890 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
33891 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
33892 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
33893 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
33894 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
33895 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
33896 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
33897 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
33898 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
33899 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
33900 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
33901 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
33902 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
33903 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
33904 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
33905 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
33906 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
33907 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
33908 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
33909 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
33910 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
33911 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
33912 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
33913 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
33914 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
33915 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
33916 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
33917 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
33918 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
33919 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
33920 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
33921 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33922 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
33923 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
33924 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
33925 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
33926 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
33927 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
33928 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
33929 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
33930 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
33931 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
33932 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
33933 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
33934 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
33935 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
33936 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
33937 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
33938 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
33939 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
33940 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
33941 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
33942 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
33943 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
33944 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
33945 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
33946 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
33947 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
33948 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
33949 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
33950 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
33951 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
33952 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
33953 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
33954 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
33955 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
33956 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
33957 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
33958 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
33959 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
33960 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
33961 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
33962 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
33963 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
33964 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
33965 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
33966 snames.ads, sprint.adb, sprint.ads, stand.adb,
33967 stand.ads, stringt.adb, stringt.ads, style.adb,
33968 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
33969 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
33970 switch-m.ads, switch.adb, switch.ads, system.ads,
33971 table.adb, table.ads, targparm.adb, targparm.ads,
33972 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
33973 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
33974 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
33975 ttypef.ads, ttypes.ads, types.adb, types.ads,
33976 uintp.adb, uintp.ads, uname.adb, uname.ads,
33977 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
33978 usage.adb, usage.ads, validsw.adb, validsw.ads,
33979 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
33980 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
33981 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
33982 formatting and other trivial changes from ACT.
33984 2003-04-12 Zack Weinberg <zack@codesourcery.com>
33986 * gigi.h, utils2.c (build_constructor):
33987 Rename gnat_build_constructor. Use build_constructor.
33988 * decl.c (gnat_to_gnu_entity)
33989 * trans.c (tree_transform, pos_to_constructor, extract_values)
33990 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
33991 (unchecked_convert)
33992 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
33993 (fill_vms_descriptor):
33996 2003-04-06 Zack Weinberg <zack@codesourcery.com>
33998 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
33999 * misc.c (gnat_tree_size): New function.
34000 (LANG_HOOKS_TREE_SIZE): Override.
34002 2003-04-03 Jason Merrill <jason@redhat.com>
34004 * misc.c (gnat_adjust_rli): #if 0.
34006 2003-03-31 Geert Bosch <bosch@gnat.com>
34009 * link.c : Fix misspelled "const" keyword
34011 2003-03-23 Mark Mitchell <mark@codesourcery.com>
34014 * utils2.c: Adjust calls to put_var_into_stack.
34016 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
34018 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
34020 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
34022 * misc.c (gnat_init): Update for new prototype.
34024 2003-03-05 Olivier Hainque <hainque@gnat.com>
34027 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
34028 warning, and fix return type for the IN_RTS && !SJLJ case.
34030 2003-03-04 Tom Tromey <tromey@redhat.com>
34032 * Make-lang.in (ada.tags): New target.
34034 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
34037 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
34038 wrapper, which name remains constant whatever underlying GCC
34041 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
34042 the stable interface needed for a-except.
34044 2003-03-02 Andreas Jaeger <aj@suse.de>
34046 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34047 gnat_ug_wnt.texi: Regenerate.
34049 2003-03-02 Laurent Guerby <guerby@acm.org>
34051 * Makefile.in (install-gnatlib): Match previous change there
34054 2003-02-28 Andreas Schwab <schwab@suse.de>
34056 * Make-lang.in (install-gnatlib): Change to ada directory before
34057 running make instead of using ada/Makefile directly.
34059 2003-02-18 Ben Elliston <bje@redhat.com>
34061 Part of PR ada/9406
34062 * gnat_ug.texi (Binder output file): Grammar fix.
34064 2003-02-18 Ben Elliston <bje@redhat.com>
34067 * 5qtaprop.adb (Sleep): Fix typo in comment.
34069 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
34071 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
34072 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34073 gnat_ug_wnt.texi: Regenerate.
34075 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
34077 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
34078 be created if necessary.
34079 (ada.install-common): Let $(DESTDIR)$(bindir) be created
34080 if necessary. Remove erroneous and redundant gnatchop
34081 installation commands. Test for gnatdll before attempting
34083 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
34084 and gnatdll from all plausible locations.
34086 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
34088 * utils2.c (build_unary_op): Don't check flag_volatile.
34089 * gnat_ug.texi: Remove -fvolatile from example.
34090 * gnat_ug_vxw.texi: Likewise.
34092 2003-01-29 Laurent Guerby <guerby@acm.org>
34095 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
34096 * Makefile.in: match previous change.
34097 * Make-lang.in: match previous change.
34099 2003-01-29 Joel Sherrill <joel@OARcorp.com>
34101 * 5rosinte.ads: Add SIGXCPU.
34102 * 5rtpopsp.adb: New file.
34103 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
34104 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
34105 specific file 5rtpopsp.adb.
34106 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
34107 is likely needed for all newlib targets.
34108 * init.c: Add RTEMS specific version of __gnat_initialize().
34110 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34112 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
34114 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34116 * init.c (__gnat_error_handler): Make msg const.
34118 * gmem.c (convert_addresses): Move declaration ...
34119 * adaint.h: ... here.
34120 * adaint.c (convert_addresses): Adapt addrs type to match
34123 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
34125 2003-01-24 Andreas Schwab <schwab@suse.de>
34127 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
34128 size_t to avoid warning.
34130 2003-01-21 Zack Weinberg <zack@codesourcery.com>
34132 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
34134 2003-01-09 Geoffrey Keating <geoffk@apple.com>
34136 * gnat_rm.texi: Remove RCS version number.
34138 * ada-tree.h (union lang_tree_node): Add chain_next option.
34140 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
34142 * Make-lang.in (ada.install-info, ada.install-common,
34143 ada.uninstall): Prepend $(DESTDIR) to the destination
34144 directory in all (un)installation commands.
34145 * Makefile.in (install-gnatlib, install-rts): Ditto.
34147 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
34149 * gnat_rm.texi, gnat_ug.texi: Use @copying.
34150 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34151 gnat_ug_wnt.texi: Regenerate.
34153 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
34155 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
34157 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
34158 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
34159 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
34160 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
34161 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
34162 $(srcdir)/doc/include/gcc-common.texi.
34164 2002-12-15 Geert Bosch <bosch@gnat.com>
34166 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
34168 2002-12-14 Geert Bosch <bosch@gnat.com>
34171 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
34172 case of a body created for a Renaming_As_Body, on which
34173 conformance checks are not performed.
34175 2002-11-30 Zack Weinberg <zack@codesourcery.com>
34177 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
34178 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
34179 not already included.
34180 * Make-lang.in: Update dependencies.
34182 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
34183 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
34184 solution to buffer overflow bug on GNU/Linux.
34186 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
34190 * bindgen.adb: Remove all references to Public_Version.
34191 * comperr.adb: Remove all references to Public_Version and
34192 GNATPRO_Version; correct bug reporting instructions.
34193 * comperr.ads: Change to match bug box.
34194 * gnatvsn.ads: Remove all references to Public version and
34197 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
34200 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
34204 * config-lang.in: Remove diff_excludes.
34206 2002-11-05 Graham Stott <graham.stott@btinternet.com>
34209 * trans.c (gnu_pending_elaboration_lists): New GC root.
34210 (build_unit_elab): Use..
34212 2002-10-30 Geert Bosch <bosch@gnat.com>
34215 * misc.c : Include optabs.h
34217 * Make-lang.in (misc.o): Add dependency on optabs.h
34219 2002-10-29 Geert Bosch <bosch@gnat.com>
34222 * Make-lang.in (gnatbind): Depend on CONFIG_H
34224 2002-10-29 Geert bosch <bosch@gnat.com>
34227 * misc.c: Unrevert misc.c (1.13)
34229 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
34231 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
34232 maintainership comments.
34234 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
34237 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
34238 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
34239 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
34240 7staprop.adb: Correct statements in comments about
34241 maintainership of GNAT.
34244 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
34245 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
34246 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
34247 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
34248 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
34249 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
34250 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
34251 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
34252 comments about maintainership of GNAT.
34254 PR ada/6919 (forward port of patch for PR ada/5904)
34255 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
34256 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
34257 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
34258 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
34259 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
34260 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
34261 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
34262 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
34263 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
34264 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
34265 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
34266 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
34267 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
34268 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
34269 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
34270 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
34271 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
34272 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
34273 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
34274 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
34275 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
34276 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
34277 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
34278 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
34279 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
34280 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
34281 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
34282 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
34283 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
34284 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
34285 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
34286 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
34287 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
34288 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
34289 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
34290 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
34291 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
34292 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
34293 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
34294 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
34295 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
34296 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
34297 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
34298 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
34299 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
34300 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
34301 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
34302 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
34303 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
34304 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
34305 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
34306 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
34307 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
34308 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
34309 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
34310 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
34311 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
34312 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
34313 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
34314 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
34315 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
34316 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
34317 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
34318 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
34319 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
34320 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
34321 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
34322 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
34323 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
34324 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
34325 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
34326 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
34327 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
34328 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
34329 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
34330 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
34331 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
34332 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
34333 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
34334 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
34335 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
34336 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
34337 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
34338 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
34339 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
34340 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
34341 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
34342 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
34343 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
34344 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
34345 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
34346 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
34347 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
34348 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
34349 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
34350 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
34351 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
34352 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
34353 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
34354 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
34355 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
34356 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
34357 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
34358 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
34359 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
34360 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
34361 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
34362 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
34363 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
34364 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
34365 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
34366 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
34367 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
34368 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
34369 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
34370 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
34371 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
34372 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
34373 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
34374 par-endh.adb par-labl.adb par-load.adb par-prag.adb
34375 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
34376 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
34377 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
34378 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
34379 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
34380 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
34381 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
34382 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
34383 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
34384 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
34385 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
34386 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
34387 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
34388 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
34389 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
34390 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
34391 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
34392 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
34393 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
34394 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
34395 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
34396 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
34397 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
34398 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
34399 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
34400 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
34401 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
34402 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
34403 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
34404 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
34405 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
34406 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
34407 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
34408 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
34409 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
34410 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
34411 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
34412 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
34413 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
34414 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
34415 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
34416 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
34417 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
34418 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
34419 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
34420 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
34421 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
34422 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
34423 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
34424 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
34425 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
34426 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
34427 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
34428 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
34429 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
34430 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
34431 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
34432 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
34433 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
34434 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
34435 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
34436 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
34437 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
34438 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
34439 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
34440 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
34441 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
34442 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
34443 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
34444 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
34445 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
34446 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
34447 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
34448 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
34449 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
34450 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
34451 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
34452 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
34453 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
34454 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
34455 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
34456 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
34457 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
34458 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
34459 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
34460 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
34461 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
34462 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
34463 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
34464 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
34465 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
34466 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
34467 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
34468 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
34469 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
34470 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
34471 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
34472 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
34473 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
34474 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
34475 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
34476 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
34477 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
34478 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
34479 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
34480 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
34481 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
34482 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
34483 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
34484 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
34485 stringt.ads stringt.h style.adb style.ads stylesw.adb
34486 stylesw.ads switch.adb switch.ads sysdep.c system.ads
34487 table.adb table.ads targparm.adb targparm.ads targtyps.c
34488 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
34489 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
34490 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
34491 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
34492 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
34493 usage.ads utils.c utils2.c validsw.adb validsw.ads
34494 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
34495 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
34496 xtreeprs.adb: Correct statements in comments about maintainership
34499 2002-09-23 Zack Weinberg <zack@codesourcery.com>
34501 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
34502 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
34503 * gnatvsn.ads: Gnat_Version_String is now a function.
34504 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
34505 copy the C version_string into a String and return it.
34506 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
34507 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
34508 Remove pragma Ident (Gnat_Version_String). If this was the
34509 sole use of package Gnatvsn, remove the with statement too.
34510 * gnat1drv.adb: Tweak -gnatv output.
34512 2002-09-17 Richard Henderson <rth@redhat.com>
34514 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
34515 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
34516 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
34517 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
34518 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
34519 and real_2expN instead of a loop.
34520 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
34521 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
34523 2002-08-25 Andre Leis <a.leis@gmx.net>
34524 David Billinghurst <David.Billinghurst@riotinto.com>
34526 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
34528 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34530 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
34531 Remove $(CONFIG_H) dependency.
34533 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
34535 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
34537 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34539 * adadecode.c (ada_demangle): Use xstrdup in lieu of
34541 * misc.c (gnat_decode_option): Likewise.
34543 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
34545 * make.adb (Add_Switch): Make Generic_Position a procedure. The
34546 function approach did not work well because of a side effect (the
34547 function call could reallocate the table which was being indexed
34548 using its result). Fixes ada/4851. [RESURRECTED]
34550 2002-07-01 Roger Sayle <roger@eyesopen.com>
34552 * ada/utils.c (builtin_function): Accept an additional parameter.
34554 2002-06-28 Andreas Jaeger <aj@suse.de>
34557 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
34560 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34562 * Makefile.in (SHELL): Set to @SHELL@.
34564 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34566 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
34567 array size calculation.
34569 2002-06-04 Andreas Jaeger <aj@suse.de>
34571 * Make-lang.in (gnatbind): Readd rule that has been lost in last
34574 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
34576 Merge from pch-branch:
34578 * config-lang.in (gtfiles): Add ada-tree.h.
34579 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
34580 (SET_TYPE_MODULUS): New.
34581 (SET_TYPE_INDEX): New.
34582 (SET_TYPE_DIGITS_VALUE): New.
34583 (SET_TYPE_RM_SIZE): New.
34584 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
34585 (SET_TYPE_ADA_SIZE): New.
34586 (SET_TYPE_ACTUAL_BOUNDS): New.
34587 (SET_DECL_CONST_CORRESPONDING_VAR): New.
34588 (SET_DECL_ORIGINAL_FIELD): New.
34589 (TREE_LOOP_ID): Correct typo.
34590 * decl.c: Use new macros.
34591 * utils.c: Include debug.h, use new macros.
34592 * utils2.c: Use new macros.
34594 * ada-tree.h: Update all macros for new tree description.
34595 (struct tree_loop_id): New.
34596 (union lang_tree_node): New.
34597 (struct lang_decl): New.
34598 (struct lang_type): New.
34599 * misc.c (gnat_mark_tree): Delete.
34600 (LANG_HOOKS_MARK_TREE): Delete.
34601 * trans.c (tree_transform): No longer any need to cast
34604 * utils.c (struct language_function): New dummy structure.
34606 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
34607 (misc.o): Likewise.
34608 (utils.o): Likewise; also gtype-ada.h.
34609 * Make-lang.in (gnat1): Add dependency on s-gtype.
34610 (gnatbind): Add dependency on $(CONFIG_H).
34611 * utils.c: Correct last #include.
34612 (stuct e_stack): Remove unnecessary 'static'.
34613 (mark_e_stack): Remove unused prototype.
34615 * scn-nlit.adb: Remove whitespace after version number to
34616 keep lines under 80 chars.
34617 * snames.adb: Likewise.
34618 * treepr.ads: Likewise.
34620 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
34621 (misc.o): Likewise.
34622 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
34623 * config-lang.in (gtfiles): New.
34624 * decl.c: Use gengtype for roots.
34625 * gigi.h: Use gengtype for roots.
34626 * trans.c: Use gengtype for roots.
34627 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
34629 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
34631 * misc.c (gnat_init): Adjust setting of internal_error_function.
34633 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
34635 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
34636 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34637 gnat_ug_wnt.texi: Regenerate.
34639 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
34641 * 5ntaprop.adb (with System.OS_Primitives): Remove.
34643 * cstreams.c (max_path_len): Move from here ...
34644 * adaint.c (__gnat_max_path_len): ... to here.
34645 * adaint.c (__gnat_max_path_len): Declare.
34646 * g-dirope.adb (Max_Path): Adjust.
34647 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
34648 * i-cstrea.ads (max_path_len): Adjust.
34649 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
34650 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
34652 * Makefile.in, Make-lang.in: Documentation is now built in
34653 Make-lang.in. Store Info and generated Texinfo files in the
34655 * gnat_ug.texi: Remove CVS keywords, correct version number.
34656 Set file name correctly.
34658 * gnat_ug_*.texi: Add.
34659 * .cvsignore: Ignore generated Texinfo files.
34661 2002-05-30 Zack Weinberg <zack@codesourcery.com>
34663 * ada.h: Add MI guard macro.
34664 (SUBTYPE): Define constants with an anonymous enum, not static
34666 (IN): Cast constants to appropriate type before use.
34668 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
34670 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
34673 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34675 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
34676 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
34677 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
34678 (ALL_ADA_CFLAGS): Likewise.
34679 (ADA_INCLUDES): Likewise.
34680 Adapt for new working dir.
34681 (GNATBIND): Use Makefile.in version.
34682 (.SUFFIXES): Copy from Makefile.in.
34683 (ada-warn): Define.
34684 (.adb.o, .ads.o): Copy from Makefile.in.
34685 Added $(OUTPUT_OPTION).
34686 (GNAT1_C_OBJS): Moved from Makefile.in.
34687 Prefix with ada subdir.
34688 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
34689 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
34690 Adapt for new working dir.
34691 (EXTRA_GNATBIND_OBJS): Likewise.
34692 (ADA_BACKEND): Moved from Makefile.in.
34693 Renamed to avoid conflict with global BACKEND.
34695 (TARGET_ADA_SRCS): Moved from Makefile.in.
34696 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
34698 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
34699 (ada_extra_files): Moved from Makefile.in.
34700 Prefix with ada subdir.
34701 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
34702 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
34703 (ada/nmake.ads): Likewise.
34704 (update-sources): Moved from Makefile.in.
34705 Prefix with ada subdir.
34706 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
34707 (ADA_TREE_H): Likewise.
34708 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
34709 (ada/memtrack.o): Likewise.
34710 (ada/adadecode.o): Likewise.
34711 Update dependencies.
34712 (ada/adaint.o): New.
34713 (ada/argv.o): Moved from Makefile.in.
34714 Prefix with ada subdir.
34715 Update dependencies.
34716 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
34717 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
34718 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
34719 Prefix with ada subdir.
34720 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
34721 (GNAT DEPENDENCIES): Regenerate.
34722 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
34723 toplevel Makefile.in.
34724 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
34725 (TARGET_ADA_SRCS): Removed.
34726 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
34727 (GNATBIND_OBJS): Likewise.
34728 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
34729 (BACKEND): Removed.
34730 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
34731 (TREE_H): Likewise.
34732 (ada_extra_files): Likewise.
34733 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
34734 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
34735 (update-sources): Likewise.
34736 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
34737 (ADA_TREE_H): Likewise.
34738 (adadecoce.o): Likewise.
34739 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
34740 (GNAT DEPENDENCIES): Likewise.
34742 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34744 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
34745 * Makefile.in: Likewise.
34747 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34749 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
34750 Restore $(CONFIG_H) and prefix.o dependencies.
34751 (ada.stage[1-4]): Depend on stage?-start.
34753 * Makefile.in (b_gnatb.c): Depend on interfac.o.
34755 2002-05-02 Jim Wilson <wilson@redhat.com>
34757 * utils.c (finish_record_type): Change record_size to record_type.
34759 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
34761 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
34762 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
34763 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
34765 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
34767 * misc.c (gnat_parse_file): Update.
34769 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
34771 * misc.c (gnat_init): Don't set lang_attribute_common.
34773 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
34775 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
34777 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
34779 * gnat_ug.texi: New file.
34781 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
34782 instead of gfdl.texi
34784 * xgnatug.adb, ug_words: New files.
34786 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
34787 gnat_rm and gnat-style manuals.
34789 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
34791 * gigi.h (incomplete_type_error): Remove.
34792 * utils.c (incomplete_type_error): Remove.
34794 2002-04-16 Mark Mitchell <mark@codesourcery.com>
34796 * trans.c (tree_transform): Add has_scope argument to
34797 expand_start_stmt_expr.
34799 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
34801 * gigi.h (truthvalue_conversion): Rename.
34802 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
34803 * trans.c (tree_transform): Update.
34804 * utils2.c (truthvalue_conversion): Rename, update.
34805 (build_binary_op, build_unary_op): Update.
34807 2002-04-04 Laurent Guerby <guerby@acm.org>
34809 * make.adb: Implement -margs, remove restriction about file name placement.
34810 * makeusg.adb: Documentation update.
34811 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
34812 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
34814 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
34816 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
34817 (builtin_function): Similarly.
34819 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
34821 * decl.c (gnat_to_gnu_entity): Update.
34822 * gigi.h (mark_addressable): Rename.
34823 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
34824 * trans.c (tree_transform): Update.
34825 * utils.c (create_var_decl): Update.
34826 * util2.c (build_binary_op, build_unary_op,
34827 fill_vms_descriptor): Update.
34828 (mark_addressable): Rename, update.
34830 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
34832 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
34834 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
34835 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
34836 * trans.c (tree_transform, convert_with_check): Update.
34837 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
34840 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
34842 * gigi.h (finish_incomplete_decl): Rename.
34843 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
34844 * utils.c (gnat_init_decl_processing): Don't set hook.
34845 (finish_incomplete_decl): Rename.
34847 2002-03-29 Andreas Schwab <schwab@suse.de>
34849 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
34852 2001-03-28 Robert Dewar <dewar@gnat.com>
34855 (Remove_Checks): New procedure
34858 (Remove_Checks): New procedure
34861 Use new Duplicate_Subexpr functions
34862 (Duplicate_Subexpr_No_Checks): New procedure
34863 (Duplicate_Subexpr_No_Checks_Orig): New procedure
34864 (Duplicate_Subexpr): Restore original form (checks duplicated)
34865 (Duplicate_Subexpr): Call Remove_Checks
34868 (Duplicate_Subexpr_No_Checks): New procedure
34869 (Duplicate_Subexpr_No_Checks_Orig): New procedure
34870 Add 2002 to copyright notice
34872 * sem_util.adb: Use new Duplicate_Subexpr functions
34875 (Eval_Indexed_Component): This is the place to call
34876 Constant_Array_Ref and to replace the value. We simply merge
34877 the code of this function in here, since it is now no longer
34878 used elsewhere. This fixes the problem of the back end not
34879 realizing we were clever enough to see that this was
34881 (Expr_Val): Remove call to Constant_Array_Ref
34882 (Expr_Rep_Val): Remove call to Constant_Array_Ref
34884 (Constant_Array_Ref): Deal with string literals (patch
34885 suggested by Zack Weinberg on the gcc list)
34887 2001-03-28 Ed Schonberg <schonber@gnat.com>
34889 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
34890 Duplicate_Subexpr_Move_Checks.
34892 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
34893 Duplicate_Subexpr_Move_Checks.
34895 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
34896 value of array exists before retrieving it (it may a private
34897 protected component in a function).
34899 2002-03-28 Geert Bosch <bosch@gnat.com>
34901 * prj-pp.adb : New file.
34903 * prj-pp.ads : New file.
34905 2002-03-28 Andreas Jaeger <aj@suse.de>
34907 * Makefile.in (stamp-sdefault): Fix path for Makefile.
34909 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
34911 * misc.c (gnat_expand_expr): Move prototype.
34913 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
34915 * misc.c (insert_default_attributes): Remove.
34917 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
34919 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
34920 (gnat_init): Don't set hook.
34921 (gnat_expand_expr): Fix prototype.
34923 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
34925 * misc.c (ggc_p): Remove.
34927 2002-03-27 Geert Bosch <bosch@gnat.com>
34929 * prj-makr.ads, prj-makr.adb : New files.
34931 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
34933 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
34934 (lang_mark_tree): Make static, rename.
34936 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
34938 * misc.c (maybe_build_cleanup): Remove.
34940 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
34942 * gigi.h (yyparse): Remove.
34944 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
34946 From Ben Brosgol <brosgol@gnat.com>
34947 * gnat_rm.texi: Sync with ACT version.
34949 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
34951 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
34952 (gnat_init): Remove old hook.
34954 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
34956 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
34957 (yyparse): Rename gnat_parse_file.
34959 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
34961 Delete all lines containing "$Revision:".
34962 * xeinfo.adb: Don't look for revision numbers.
34963 * xnmake.adb: Likewise.
34964 * xsinfo.adb: Likewise.
34965 * xsnames.adb: Likewise.
34966 * xtreeprs.adb: Likewise.
34968 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34970 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
34971 gnat_tree_code_name): Delete.
34972 (tree_code_type, tree_code_length, tree_code_name): Define.
34973 (gnat_init): Don't try to copy into the various tree_code
34976 2002-03-11 Richard Henderson <rth@redhat.com>
34978 * Makefile.in (.NOTPARALLEL): Add fake tag.
34980 2002-03-07 Geert Bosch <bosch@gnat.com>
34982 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
34983 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
34984 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
34985 switch-m.adb, switch-m.ads : New files.
34987 2002-03-07 Geert Bosch <bosch@gnat.com>
34989 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
34990 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
34991 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
34992 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
34993 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
34994 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
34995 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
34996 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
34997 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
34998 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
34999 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
35000 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
35001 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
35002 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
35003 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
35004 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
35005 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
35006 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
35007 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
35008 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
35009 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
35010 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
35011 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
35012 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
35013 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
35014 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
35015 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
35016 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
35017 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
35018 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
35019 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
35020 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
35021 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
35022 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
35023 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35024 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
35025 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
35026 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
35027 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
35028 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
35029 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
35030 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
35031 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
35032 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
35033 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
35034 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
35035 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
35036 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
35037 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
35038 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
35039 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
35040 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
35041 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
35042 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
35043 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
35044 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
35045 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
35046 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
35047 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
35048 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
35049 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
35050 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
35051 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
35052 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
35053 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
35054 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
35055 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
35056 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
35057 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
35058 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
35059 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
35060 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
35061 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
35062 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
35063 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
35064 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
35065 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
35066 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
35067 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
35068 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
35069 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
35070 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
35071 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
35072 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
35073 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
35074 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
35075 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
35076 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
35077 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
35078 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
35079 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
35080 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
35081 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
35082 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
35083 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
35084 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
35085 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
35087 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
35088 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
35089 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
35090 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
35092 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
35093 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
35095 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
35096 to mdll-fil.ad[bs] and mdll-util.ad[bs]
35098 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
35099 from mdllfile.ad[bs] and mdlltool.ad[bs]
35101 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35103 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
35104 lieu of explicit sizeof/sizeof.
35106 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
35108 * misc.c (copy_lang_decl): Remove.
35110 2002-02-27 Zack Weinberg <zack@codesourcery.com>
35112 * misc.c: Delete traditional-mode-related code copied from the
35113 C front end but not used, or used only to permit the compiler
35116 2002-02-07 Richard Henderson <rth@redhat.com>
35118 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
35119 * adaint.h (__gnat_to_gm_time): Update prototype.
35121 2002-01-30 Richard Henderson <rth@redhat.com>
35123 * trans.c (tree_transform) [N_Loop_Statement]: Use
35124 expand_exit_loop_top_cond.
35126 2001-12-23 Richard Henderson <rth@redhat.com>
35128 * utils.c (end_subprog_body): Push GC context around
35129 rest_of_compilation for nested functions.
35131 2001-12-23 Richard Henderson <rth@redhat.com>
35133 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
35135 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
35137 * gnat-style.texi (Declarations and Types): Remove ancient style
35138 rule which was mandated by code generation issues.
35140 * gnat-style.texi (header): Add @dircategory, @direntry.
35141 (title page): Remove date.
35142 (general) Add @./@: where approriate, and two spaces after the
35143 full stop at the end of a sentence. Use @samp markup when
35144 referring concrete lexical entities (keywords, attribute names
35145 etc.), and @syntax for ARM grammar elements. Use @r for English
35146 text in comments. Use @emph for emphasis. Change "if-statements"
35147 etc. to "if statements" (without @samp). Break long lines. Make
35148 casing of section names consistent.
35149 (Identifiers): Use @samp markup for variable names.
35150 (Comments): Use @samp markup for comment characters. Line-end
35151 comments may follow any Ada code, not just statements. Fix
35152 misspelling of "Integer" as "integer".
35153 (Loop statements): Do not use variable name "I", use "J".
35154 (Subprogram Declarations): Document alignment.
35155 (Subprogram Bodies, Block statements): Document empty line before
35158 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
35160 * make.adb (Add_Switch): Make Generic_Position a procedure. The
35161 function approach did not work well because of a side effect (the
35162 function call could reallocate the table which was being indexed
35163 using its result). Fixes ada/4851.
35165 2001-12-19 Robert Dewar <dewar@gnat.com>
35167 * bindgen.adb: Minor reformatting
35169 * cstand.adb: Minor reformatting
35171 * fmap.adb: Minor reformatting
35172 Change name from Add for Add_To_File_Map (Add is much too generic)
35173 Change Path_Name_Of to Mapped_Path_Name
35174 Change File_Name_Of to Mapped_File_Name
35175 Fix copyright dates in header
35178 Change name from Add for Add_To_File_Map (Add is much too generic)
35179 Change Path_Name_Of to Mapped_Path_Name
35180 Change File_Name_Of to Mapped_File_Name
35181 Fix copyright dates in header
35183 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
35184 Add use clause for Fmap.
35186 * make.adb: Minor reformatting
35188 * osint.adb: Minor reformatting. Change of names in Fmap.
35189 Add use clause for Fmap.
35191 * prj-env.adb: Minor reformatting
35193 * prj-env.ads: Minor reformatting
35195 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
35196 error found (there were odd exceptions to this general rule in
35197 -gnatec/-gnatem processing)
35199 2001-12-19 Olivier Hainque <hainque@gnat.com>
35201 * raise.c (__gnat_eh_personality): Exception handling personality
35202 routine for Ada. Still in rough state, inspired from the C++ version
35203 and still containing a bunch of debugging artifacts.
35204 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
35205 inspired from the C++ library.
35207 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
35208 exception handling integration.
35210 2001-12-19 Arnaud Charlet <charlet@gnat.com>
35212 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
35213 (HIE_SOURCES): Add s-secsta.ad{s,b}.
35214 (HIE_OBJS): Add s-fat*.o
35215 (RAVEN_SOURCES): Remove files that are no longer required. Add
35216 interrupt handling files.
35217 (RAVEN_MOD): Removed, no longer needed.
35219 2001-12-19 Robert Dewar <dewar@gnat.com>
35221 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
35222 Add 2001 to copyright date
35224 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
35225 need to force universal inlining for these cases.
35227 2001-12-19 Arnaud Charlet <charlet@gnat.com>
35229 * s-taprob.adb: Minor clean ups so that this unit can be used in
35232 * exp_ch7.adb: Allow use of secondary stack in HI mode.
35233 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
35235 2001-12-19 Vincent Celier <celier@gnat.com>
35237 * prj-tree.ads (Project_Node_Record): Add comments for components
35238 Pkg_Id and Case_Insensitive.
35240 2001-12-19 Pascal Obry <obry@gnat.com>
35242 * g-socket.adb: Minor reformatting. Found while reading code.
35244 2001-12-19 Robert Dewar <dewar@gnat.com>
35246 * prj-tree.ads: Minor reformatting
35248 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
35250 * config-lang.in (diff_excludes): Remove.
35252 2001-12-17 Ed Schonberg <schonber@gnat.com>
35254 * sem_res.adb (Resolve_Selected_Component): do not generate a
35255 discriminant check if the selected component is a component of
35256 the argument of an initialization procedure.
35258 * trans.c (tree_transform, case of arithmetic operators): If result
35259 type is private, the gnu_type is the base type of the full view,
35260 given that the full view itself may be a subtype.
35262 2001-12-17 Robert Dewar <dewar@gnat.com>
35264 * sem_res.adb: Minor reformatting
35266 * trans.c (tree_transform, case N_Real_Literal): Add missing third
35267 parameter in call to Machine (unknown horrible effects from this
35270 * urealp.h: Add definition of Round_Even for call to Machine
35271 Add third parameter for Machine
35273 2001-12-17 Ed Schonberg <schonber@gnat.com>
35275 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
35276 predefined units in No_Run_Time mode.
35278 2001-12-17 Richard Kenner <kenner@gnat.com>
35280 * misc.c (insn-codes.h): Now include.
35282 2001-12-17 Olivier Hainque <hainque@gnat.com>
35284 * a-except.adb: Preparation work for future integration of the GCC 3
35285 exception handling mechanism
35286 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
35287 to factorize previous code sequences and make them externally callable,
35288 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
35289 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
35290 Use the new notification routines.
35292 2001-12-17 Emmanuel Briot <briot@gnat.com>
35294 * prj-tree.ads (First_Choice_Of): Document the when others case
35296 2001-12-17 Arnaud Charlet <charlet@gnat.com>
35298 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
35299 HI-E mode, in order to support Ravenscar profile properly.
35301 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
35302 mode on 32 bits targets.
35304 2001-12-17 Vincent Celier <celier@gnat.com>
35306 * fmap.adb: Initial version.
35308 * fmap.ads: Initial version.
35310 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
35311 If search is successfully done, add to mapping.
35313 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
35316 (Gnatmake): Add new local variable Mapping_File_Name.
35317 Create mapping file when using project file(s).
35318 Delete mapping file before exiting.
35320 * opt.ads (Mapping_File_Name): New variable
35322 * osint.adb (Find_File): Use path name found in mapping, if any.
35324 * prj-env.adb (Create_Mapping_File): New procedure
35326 * prj-env.ads (Create_Mapping_File): New procedure.
35328 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
35331 * usage.adb: Add entry for new switch -gnatem.
35333 * Makefile.in: Add dependencies for fmap.o.
35335 2001-12-17 Ed Schonberg <schonber@gnat.com>
35337 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
35338 is a package instantiation rewritten as a package body.
35339 (Install_Withed_Unit): Undo previous change, now redundant.
35341 2001-12-17 Gary Dismuke <dismukes@gnat.com>
35344 (Compute_Length): Move conversion to Unsigned to callers.
35345 (Get_Max_Size): Convert Len expression to Unsigned after calls to
35346 Compute_Length and Determine_Range.
35347 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
35348 Compute_Length and Determine_Range.
35349 Above changes fix problem with length computation for supernull arrays
35350 where Max (Len, 0) wasn't getting applied due to the Unsigned
35351 conversion used by Compute_Length.
35353 2001-12-17 Arnaud Charlet <charlet@gnat.com>
35356 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
35357 System.Secondary_Stack.
35358 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
35360 Remove unused entity RE_Exception_Data.
35362 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
35364 * rident.ads (No_Secondary_Stack): New restriction.
35366 2001-12-17 Joel Brobecker <brobecke@gnat.com>
35368 * gnat_rm.texi: Fix minor typos. Found while reading the section
35369 regarding "Bit_Order Clauses" that was sent to a customer.
35370 Very interesting documentation!
35372 2001-12-17 Robert Dewar <dewar@gnat.com>
35374 * sem_case.adb (Choice_Image): Avoid creating improper character
35375 literal names by using the routine Set_Character_Literal_Name. This
35376 fixes bombs in certain error message cases.
35378 2001-12-17 Arnaud Charlet <charlet@gnat.com>
35380 * a-reatim.adb: Minor reformatting.
35382 2001-12-17 Ed Schonberg <schonber@gnat.com>
35384 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
35385 case where the formal is an extension of another formal in the current
35386 unit or in a parent generic unit.
35388 2001-12-17 Arnaud Charlet <charlet@gnat.com>
35390 * s-tposen.adb: Update comments. Minor reformatting.
35391 Minor code clean up.
35393 * s-tarest.adb: Update comments. Minor code reorganization.
35395 2001-12-17 Gary Dismukes <dismukes@gnat.com>
35397 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
35400 2001-12-17 Robert Dewa <dewar@gnat.com>
35402 * exp_attr.adb: Minor reformatting
35404 2001-12-17 Ed Schonberg <schonber@gnat.com>
35406 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
35407 derivations nested within a child unit: verify that the parent
35408 type is declared in an outer scope.
35410 2001-12-17 Robert Dewar <dewar@gnat.com>
35412 * sem_ch12.adb: Minor reformatting
35414 2001-12-17 Ed Schonberg <schonber@gnat.com>
35416 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
35417 warning if current unit is a predefined one, from which bodies may
35420 2001-12-17 Robert Dewar <dewar@gnat.com>
35422 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
35423 Fix header format. Add 2001 to copyright date.
35425 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
35426 which caused CE during compilation if checks were enabled.
35428 2001-12-17 Vincent Celier <celier@gnat.com>
35431 (Switches_Of): New function
35432 (Test_If_Relative_Path): New procedure
35433 (Add_Switches): Use new function Switches_Of
35434 (Collect_Arguments_And_Compile): Use new function Switches_Of.
35435 When using a project file, test if there are any relative
35436 search path. Fail if there are any.
35437 (Gnatmake): Only add switches for the primary directory when not using
35438 a project file. When using a project file, change directory to the
35439 object directory of the main project file. When using a project file,
35440 test if there are any relative search path. Fail if there are any.
35441 When using a project file, fail if specified executable is relative
35442 path with directory information, and prepend executable, if not
35443 specified as an absolute path, with the exec directory. Make sure
35444 that only one -o switch is transmitted to the linker.
35446 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
35449 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
35450 when using a non standard naming scheme.
35451 (Check_Ada_Naming_Scheme): Make sure that error messages
35452 do not raise exceptions.
35453 (Is_Illegal_Append): Return True if there is no dot in the suffix.
35454 (Language_Independent_Check): Check the exec directory.
35456 * prj.adb (Project_Empty): Add new component Exec_Directory
35459 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
35460 (Project_Data): Add component Exec_Directory
35462 * snames.adb: Updated to match snames.ads revision 1.215
35464 * snames.ads: Added Exec_Dir
35466 2001-12-17 Robert Dewar <dewar@gnat.com>
35468 * make.adb: Minor reformatting
35470 * prj-nmsc.adb: Minor reformatting
35472 * snames.adb: Updated to match snames.ads
35474 * snames.ads: Alphebetize entries for project file
35476 2001-12-17 Ed Schonberg <schonber@gnat.com>
35478 * trans.c (process_freeze_entity): Do nothing if the entity is a
35479 subprogram that was already elaborated.
35481 2001-12-17 Richard Kenner <kenner@gnat.com>
35483 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
35484 and Esize if object is referenced via pointer.
35486 2001-12-17 Ed Schonberg <schonber@gnat.com>
35488 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
35489 is discrete before analyzing choices.
35491 2001-12-17 Joel Brobecker <brobecke@gnat.com>
35493 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
35494 containing the name of the Ada Main Program. This string is mainly
35495 intended for the debugger.
35496 (Gen_Output_File_C): Do the equivalent change when generating a C file.
35498 2001-12-17 Robert Dewar <dewar@gnat.com>
35500 * ali.adb: Set new Dummy_Entry field in dependency entry
35502 * ali.ads: Add Dummy_Entry field to source dependency table
35504 * bcheck.adb (Check_Consistency): Ignore dummy D lines
35506 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
35508 * lib-writ.ads: Document dummy D lines for missing files.
35510 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
35512 2001-12-17 Robert Dewar <dewar@gnat.com>
35514 * ali.adb: Type reference does not reset current file.
35516 * ali.adb: Recognize and scan renaming reference
35518 * ali.ads: Add spec for storing renaming references.
35520 * lib-xref.ads: Add documentation for handling of renaming references
35522 * lib-xref.adb: Implement output of renaming reference.
35525 (Determine_Range): Document local variables
35526 (Determine_Range): Make sure Hbound is initialized. It looks as though
35527 there could be a real problem here with an uninitialized reference
35528 to Hbound, but no actual example of failure has been found.
35530 2001-12-17 Laurent Pautet <pautet@gnat.com>
35533 Fix comment of Shutdown_Socket and Close_Socket. These functions
35534 should not fail silently because if they are called twice, this
35535 probably means that there is a race condition in the user program.
35536 Anyway, this behaviour is consistent with the rest of this unit.
35537 When an error occurs, an exception is raised with the error message
35538 as exception message.
35540 2001-12-17 Robert Dewar <dewar@gnat.com>
35542 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
35543 that it happens before modification of Sloc values for -gnatD.
35545 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
35546 so that it happens before modification of Sloc values for -gnatD.
35548 * switch.adb: Minor reformatting
35550 2001-12-15 Richard Henderson <rth@redhat.com>
35552 * sem_ch7.adb: Wrap comment.
35554 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
35556 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
35557 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
35558 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
35559 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
35560 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
35561 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
35562 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
35563 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
35564 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
35565 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
35566 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
35567 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
35568 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
35569 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
35570 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
35571 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
35572 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
35573 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
35574 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
35575 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
35576 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
35577 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
35578 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
35579 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
35582 2001-12-14 Vincent Celier <celier@gnat.com>
35584 * osint.adb(Create_Debug_File): When an object file is specified,
35585 put the .dg file in the same directory as the object file.
35587 2001-12-14 Robert Dewar <dewar@gnat.com>
35589 * osint.adb: Minor reformatting
35591 * lib-xref.adb (Output_Instantiation): New procedure to generate
35592 instantiation references.
35594 * lib-xref.ads: Add documentation of handling of generic references.
35596 * ali.adb (Read_Instantiation_Ref): New procedure to read
35597 instantiation references
35599 * ali.ads: Add spec for storing instantiation references
35601 * bindusg.adb: Minor reformatting
35603 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35605 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35607 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35609 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35613 Add 2001 to copyright date
35614 Add entry for Latin-5 (Cyrillic ISO-8859-5)
35616 2001-12-14 Matt Gingell <gingell@gnat.com>
35618 * adaint.c: mktemp is a macro on Lynx and can not be used as an
35621 2001-12-14 Richard Kenner <kenner@gnat.com>
35623 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
35624 if operand is CONSTRUCTOR.
35626 2001-12-14 Ed Schonberg <schonber@gnat.com>
35628 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
35629 before emiting check on right-hand side, so that exception information
35632 2001-12-14 Richard Kenner <kenner@gnat.com>
35634 * utils.c (create_var_decl): Throw away initializing expression
35635 if just annotating types and non-constant.
35637 2001-12-14 Vincent Celier <celier@gnat.com>
35639 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
35642 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
35644 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
35646 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
35648 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
35650 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
35652 * ChangeLog: Remove piece of diff output.
35654 2001-12-14 Geert Bosch <bosch@gnat.com>
35656 * config-lang.in: Update copyright notice
35658 * layout.adb: Remove commented out code.
35660 * mdllfile.ads: Update copyright notice. Fix header format.
35662 * sem_case.ads: Likewise.
35664 * sem_ch3.adb: Minor reformatting.
35666 2001-12-12 Geert Bosch <bosch@gnat.com>
35668 * freeze.ads: Update copyright date.
35670 * g-comlin.ads: Minor reformatting.
35672 * gnat-style.texi: Fix typo.
35674 2001-12-12 Geert Bosch <bosch@gnat.com>
35676 * einfo.h: Regenerate.
35678 2001-12-12 Ed Schonberg <schonber@gnat.com>
35680 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
35681 on known node types, rather than untyped fields. Further cleanups.
35683 2001-12-12 Robert Dewar <dewar@gnat.com>
35686 (Save_Entity_Descendant): Minor comment update.
35687 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
35688 of an N_Attribute_Reference node. As per note below, this does not
35689 eliminate need for Associated_Node in attribute ref nodes.
35690 (Associated_Node): Documentation explicitly mentions attribute
35691 reference nodes, since this field is used in such nodes.
35693 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
35695 2001-12-12 Robert Dewar <dewar@gnat.com>
35697 * s-stalib.adb: Add more comments on with statements being needed
35699 * par-ch12.adb: Minor reformatting
35701 * prj-dect.ads: Fix copyright header
35703 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
35704 inputs fit in 32 bits, but the result still overflows.
35706 * s-fatgen.ads: Minor comment improvement
35708 2001-12-12 Ed Schonberg <schonber@gnat.com>
35710 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
35711 formal derived type, look for an inherited component from the full
35712 view of the parent, if any.
35714 2001-12-12 Robert Dewar <dewar@gnat.com>
35716 * checks.ads (Apply_Alignment_Check): New procedure.
35718 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
35719 ensure that the alignment of objects with address clauses is
35720 appropriate, and raise PE if not.
35722 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
35723 Exp_Pakd.Known_Aligned_Enough
35725 * mdllfile.ads: Minor reformatting
35727 * mlib-fil.ads: Minor reformatting
35729 2001-12-12 Ed Schonberg <schonber@gnat.com>
35731 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
35732 fix to any component reference if enclosing record has non-standard
35735 2001-12-12 Vincent Celier <celier@gnat.com>
35737 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
35740 2001-12-12 Ed Schonberg <schonber@gnat.com>
35742 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
35745 2001-12-12 Robert Dewar <dewar@gnat.com>
35747 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
35749 2001-12-12 Emmanuel Briot <briot@gnat.com>
35751 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
35752 and it adds dependencies to system.io.
35754 2001-12-12 Pascal Obry <obry@gnat.com>
35756 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
35759 2001-12-11 Ed Schonberg <schonber@gnat.com>
35761 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
35762 that is the parent of other generics, the instance body replaces the
35763 instance node. Retrieve the instance of the spec, which is the one
35764 that is visible in clients and within the body.
35766 2001-12-11 Vincent Celier <celier@gnat.com>
35768 * gnatmain.adb: Initial version.
35770 * gnatmain.ads: Initial version.
35772 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
35774 * snames.adb: Updated to match snames.ads.
35776 * snames.ads: Added Gnatstub.
35778 2001-12-11 Vincent Celier <celier@gnat.com>
35780 * prj-attr.adb (Initialization_Data): Change name from
35781 Initialisation_Data.
35783 2001-12-11 Emmanuel Briot <briot@gnat.com>
35785 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
35786 + and * applied to backslashed expressions like \r.
35788 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
35790 * g-os_lib.ads: String_List type added, Argument_List type is now
35791 subtype of String_List.
35793 2001-12-11 Robert Dewar <dewar@gnat.com>
35795 * g-os_lib.ads: Change copyright to FSF
35796 Add comments for String_List type
35798 2001-12-11 Vincent Celier <celier@gnat.com>
35800 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
35801 string to the buffer).
35803 2001-12-11 Ed Schonberg <schonber@gnat.com>
35805 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
35808 * sem_attr.adb: Simplify previous fix for Address.
35809 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
35810 to avoid anomalies where the bound of the type appears to raise
35813 2001-12-11 Robert Dewar <dewar@gnat.com>
35815 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
35818 2001-12-11 Ed Schonber <schonber@gnat.com>
35820 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
35821 renamed unit before checking for recursive instantiations.
35823 2001-12-11 Emmanuel Briot <briot@gnat.com>
35825 * prj.ads: Add comments for some of the fields.
35827 2001-12-11 Robert Dewar <dewar@gnat.com>
35829 * lib-xref.adb (Output_Refs): Don't output type references outside
35830 the main unit if they are not otherwise referenced.
35832 2001-12-11 Ed Schonberg <schonber@gnat.com>
35834 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
35835 code and diagnose additional illegal uses
35837 * sem_util.adb (Is_Object_Reference): An indexed component is an
35838 object only if the prefix is.
35840 2001-12-11 Vincent Celier <celier@gnat.com>
35842 * g-diopit.adb: Initial version.
35844 * g-diopit.ads: Initial version.
35847 (Expand_Path): Avoid use of Unbounded_String
35848 (Find, Wildcard_Iterator): Moved to child package Iteration
35850 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
35852 2001-12-11 Robert Dewar <dewar@gnat.com>
35854 * sem_attr.adb: Minor reformatting
35856 2001-12-11 Ed Schonberg <schonber@gnat.com>
35858 * sem_ch3.adb: Clarify some ???.
35860 2001-12-11 Robert Dewar <dewar@gnat.com>
35862 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
35863 Exp_Pakd.Known_Aligned_Enough
35865 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
35866 version is moved to Exp_Ch13.
35868 2001-12-11 Robert Dewar <dewar@gnat.com>
35870 * einfo.ads: Minor reformatting
35872 * exp_ch5.adb: Add comment for previous.change
35874 * ali.adb: New interface for extended typeref stuff.
35876 * ali.ads: New interface for typeref stuff.
35878 * checks.adb (Apply_Alignment_Check): New procedure.
35880 * debug.adb: Add -gnatdM for modified ALI output
35882 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
35884 * lib-xref.adb: Extend generation of <..> notation to cover
35885 subtype/object types. Note that this is a complete rewrite,
35886 getting rid of the very nasty quadratic algorithm previously
35887 used for derived type output.
35889 * lib-xref.ads: Extend description of <..> notation to cover
35890 subtype/object types. Uses {..} for these other cases.
35891 Also use (..) for pointer types.
35893 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
35895 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
35896 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
35898 2001-12-11 Vincent Celier <celier@gnat.com>
35901 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
35902 Changed /BIND_ONLY to /ACTIONS=BIND
35903 Changed /LINK_ONLY to /ACTIONS=LINK
35905 2001-12-11 Ed Schonberg <schonber@gnat.com>
35907 * sem_ch8.adb (Find_Selected_Component): improved search for a
35908 candidate package in case of error.
35910 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
35911 chain back on scope stack before reinstalling use clauses.
35913 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
35914 is enabled, do not kill the code for the condition, to preserve
35917 2001-12-11 Robert Dewar <dewar@gnat.com>
35919 * checks.adb (Insert_Valid_Check): Apply validity check to expression
35920 of conversion, not to result of conversion.
35922 2001-12-11 Ed Schonberg <schonber@gnat.com>
35924 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
35925 before freezing parent. If the declarations are mutually recursive,
35926 an access to the current record type may be frozen before the
35927 derivation is complete.
35929 2001-12-05 Vincent Celier <celier@gnat.com>
35931 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
35932 -c /COMPILE_ONLY, -l /LINK_ONLY
35935 (Bind_Only): New Flag
35936 (Link_Only): New flag
35938 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
35941 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
35944 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
35945 (Gnatmake): Set the step flags. Only perform a step if the
35946 corresponding step flag is True.
35947 (Scan_Make_Arg): Reset the bind and link step flags when -u
35948 or -gnatc has been specified.
35950 2001-12-05 Ed Schonberg <schonber@gnat.com>
35952 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
35953 get bounds from right operand.
35955 * sem_eval.adb: Minor reformatting
35957 * exp_util.adb (Make_Literal_Range): use bound of literal rather
35958 than Index'First, its lower bound may be different from 1.
35960 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
35963 2001-12-05 Vincent Celier <celier@gnat.com>
35965 * prj-nmsc.adb Minor reformatting
35967 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
35968 set and libraries are not supported.
35970 2001-12-05 Ed Schonberg <schonber@gnat.com>
35972 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
35973 private view explicitly, so the back-end can treat as a global
35976 2001-12-05 Ed Schonberg <schonber@gnat.com>
35978 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
35979 unit, always replace instance node with new body, for ASIS use.
35981 2001-12-05 Vincent Celier <celier@gnat.com>
35983 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
35984 libraries are not supported and both attributes Library_Name and
35985 Library_Dir are specified.
35987 * prj-proc.adb (Expression): Set location of Result to location of
35990 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
35991 (prj-nmsc is now importing MLib.Tgt)
35993 * prj-proc.adb: Put the change indicated above that was forgotten.
35995 2001-12-05 Robert Dewar <dewar@gnat.com>
35997 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
35999 2001-12-05 Ed Schonberg <schonber@gnat.com>
36001 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
36002 constraint, introduce explicit subtype declaration and derive from it.
36004 * sem_ch3.adb: Minor reformatting
36006 2001-12-05 Robert Dewar <dewar@gnat.com>
36008 * checks.adb (Determine_Range): Increase cache size for checks.
36011 * exp_ch6.adb: Minor reformatting
36012 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
36013 a parameter whose root type is System.Address, since treating such
36014 subprograms as pure in the code generator is almost surely a mistake
36015 that will lead to unexpected results.
36017 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
36018 change handling of conversions.
36020 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
36022 2001-12-05 Ed Schonberg <schonber@gnat.com>
36024 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
36025 aggregate with static wrong size, attach generated Raise node to
36028 2001-12-05 Robert Dewar <dewar@gnat.com>
36030 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
36031 Fixes compilation abandoned bomb in B24009B.
36033 2001-12-05 Ed Schonberg <schonber@gnat.com>
36036 Document use of Associated_Node on Selected_Components.
36037 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
36038 to clarify use of untyped descendant fields.
36040 2001-12-05 Robert Dewar <dewar@gnat.com>
36042 * prj-dect.ads: Add ??? comment
36043 Add 2001 to copyright notice (was not done in after all)
36045 * prj-part.adb: Minor reformatting. Reword one awkward error message.
36047 * prj.ads: Minor reformatting throughout, and add some ??? comments
36049 * snames.ads: Minor reformatting
36051 2001-12-05 Geert Bosch <bosch@gnat.com>
36053 * snames.adb: Autoupdate
36055 2001-12-05 Vincent Celier <celier@gnat.com>
36057 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
36059 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
36061 * prj-env.adb: Minor comment changes (modifying -> extends).
36063 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
36065 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
36068 * prj.adb (Initialize): Change Modifying to Extends.
36070 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
36072 * prj.ads: Minor comment change (Modifying -> extending).
36074 * snames.ads: Change modifying to extends.
36076 2001-12-05 Robert Dewar <dewar@gnat.com>
36078 * sem_warn.adb: Remove stuff for conditionals, we are not going to
36081 * sem_warn.ads: Remove stuff for conditionals, we are not going to
36082 do this after all. Add 2001 to copyright notice
36084 2001-12-04 Geert Bosch <bosch@gnat.com>
36086 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
36088 2001-12-04 Robert Dewar <dewar@gnat.com>
36090 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
36091 location if we already have errors. Stops some cases of cascaded
36094 * errout.adb: Improve comment.
36096 2001-12-04 Robert Dewar <dewar@gnat.com>
36099 (Analyze_Formal_Type_Definition): Defend against Error.
36100 (Analyze_Formal_Subprogram): Defend against Error.
36102 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
36103 remove following semicolon if present. Removes cascaded error.
36105 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
36108 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
36109 exceptions equals 0.
36110 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
36111 Fixes PIWG E tests (which have to be run with -gnatL).
36113 2001-12-04 Robert Dewar <dewar@gnat.com>
36115 * einfo.ads: Minor reformatting
36117 2001-12-04 Ed Schonberg <schonber@gnat.com>
36119 * einfo.ads: Block_Node points to the identifier of the block, not to
36120 the block node itself, to preserve the link when the block is
36121 rewritten, e.g. within an if-statement with a static condition.
36123 * inline.adb (Cleanup_Scopes): recover block statement from block
36124 entity using new meaning of Block_Node.
36126 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
36127 identifier of block node, rather than to node itself.
36129 2001-12-04 Gary Dismukes <dismukes@gnat.com>
36132 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
36133 (Discrimify): Go back to setting the Etypes of the selected component
36134 because the Vname component does not exist at this point and will
36135 fail name resolution. Also set Analyzed.
36136 Remove with and use of Sem_Res.
36138 2001-12-04 Arnaud Charlet <charlet@gnat.com>
36140 * Makefile.in: (HIE_SOURCES): add s-fat*.
36142 2001-12-04 Robert Dewar <dewar@gnat.com>
36145 (Compile_Time_Known_Attribute): New procedure.
36146 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
36147 proper range check.
36149 2001-12-04 Ed Schonberg <schonber@gnat.com>
36151 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
36152 processing discriminants to diagnose illegal default values.
36154 2001-12-04 Ed Schonberg <schonber@gnat.com>
36156 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
36157 access discriminant within a type extension that constrains its
36158 parent discriminants.
36160 2001-12-04 Ed Schonberg <schonber@gnat.com>
36162 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
36163 is malformed, use instance of Any_Id to allow analysis to proceed.
36165 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
36166 type definition is illegal.
36167 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
36170 2001-12-04 Ed Schonberg <schonber@gnat.com>
36172 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
36175 2001-12-04 Robert Dewar <dewar@gnat.com>
36177 * errout.adb: Minor reformatting
36179 2001-12-04 Robert Dewar <dewar@gnat.com>
36181 * exp_util.adb: Minor reformatting from last change
36183 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
36184 which is a rewriting of an expression, traverse the original
36185 expression to remove warnings that may have been posted on it.
36187 2001-12-04 Ed Schonberg <schonber@gnat.com>
36189 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
36190 record that has other packed components.
36192 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
36194 * adaint.c: Minor cleanups.
36196 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
36198 * adaint.c: Do not use utime.h on vxworks.
36200 2001-12-04 Arnaud Charlet <charlet@gnat.com>
36202 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
36203 more confusion than it solves.
36205 2001-12-04 Geert bosch <bosch@gnat.com>
36207 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
36209 2001-12-04 Geert Bosch <bosch@gnat.com>
36211 * Makefile.in (update-sources): New target.
36212 For use by gcc_release script.
36214 2001-12-04 Ed Schonberg <schonber@gnat.com>
36216 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
36217 a configuration pragma, it is now legal wherever a pragma can appear.
36219 2001-12-04 Zack Weinberg <zack@codesourcery.com>
36221 * Makefile.in: Don't set ALL. Delete @cross_defines@,
36222 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
36223 is now @CROSS@ -DIN_GCC; update comment.
36225 2001-12-04 Robert Dewar <dewar@gnat.com>
36227 * einfo.adb (Has_Pragma_Pure_Function): New flag.
36228 Fix problem that stopped ceinfo from working
36230 * einfo.ads (Has_Pragma_Pure_Function): New flag.
36232 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
36234 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
36237 (File_Time_Stamp): New procedure.
36238 (Preserve_Mode): New boolean.
36239 (Write_Unit): Pass time stamp.
36240 Implement -p switch (preserve time stamps).
36242 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
36244 * gnatchop.adb: Do usage info for -p switch
36246 * adaint.h (__gnat_set_file_time_name): New function
36248 * adaint.c (__gnat_set_file_time_name): Implement
36250 * adaint.h: Fix typo
36252 2001-12-03 Robert Dewar <dewar@gnat.com>
36254 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
36255 have Associated_Node.
36257 2001-12-03 Robert Dewar <dewar@gnat.com>
36259 * prj-proc.adb: Minor reformatting
36261 * make.adb: Minor reformatting
36263 2001-12-03 Geert Bosch <bosch@gnat.com>
36265 * make.adb: Minor reformatting.
36267 2001-12-03 Robert Dewar <dewar@gnat.com>
36269 * sem_ch12.adb: Minor reformatting
36271 2001-12-03 Ed Schonberg <schonber@gnat.com>
36273 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
36274 push Standard on the stack before analyzing the instance body,
36275 in order to have a clean visibility environment.
36277 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
36279 2001-12-03 Ed Schonberg <schonber@gnat.com>
36281 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
36282 instantiation of a body that contains an inlined body.
36284 2001-12-03 Ed Schonberg <schonber@gnat.com>
36287 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
36288 to prevent freezing within formal packages.
36289 (Freeze_Subprogram_Body): If body comes from another instance that
36290 appeared before its own body, place freeze node at end of current
36291 declarative part, to prevent a back-end crash.
36292 (Inline_Instance_Body): Handle properly a package instance within
36293 a subprogram instance that is a child unit.
36295 2001-12-01 Graham Stott <grahams@redhat.com>
36297 * Makefile.in (misc.o): Add missing $(srcdir) prefix
36298 and add optabs.h dependency.
36300 * misc.c: Include optabs.h
36301 (gnat_tree_code_type): Make static and const.
36302 (gnat_tree_code_length): Likewise.
36303 (gnat_tree_code_name): Likewise.
36304 (update_setjmp_buf): Obtain operands mode from insn_data.
36306 2001-11-29 Richard Henderson <rth@redhat.com>
36308 * init.c: Remove obsolete dwarf2 frame.h section.
36310 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
36312 * Make-lang.in (ada.generated-manpages): New dummy target.
36314 2001-11-29 Ed Schonberg <schonber@gnat.com>
36316 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
36317 into Command, an array conversion is illegal here. Uncovered by
36320 2001-11-28 Geert Bosch <bosch@gnat.com>
36322 * init.c: Minor whitespace changes.
36324 2001-11-28 Doug Rupp <rupp@gnat.com>
36326 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
36329 2001-11-28 Zack Weinberg <zack@codesourcery.com>
36331 * misc.c (gnat_expand_constant): Move declaration above
36332 definition of lang_hooks.
36333 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
36334 (gnat_init): lang_expand_constant no longer exists.
36336 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
36337 always have vprintf.
36338 (gnat_init): Always call set_internal_error_function.
36340 2001-11-27 Andreas Jaeger <aj@suse.de>
36342 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
36344 2001-11-27 Laurent Guerby <guerby@acm.org>
36346 * Makefile.in: Regenerate Ada dependencies.
36348 2001-11-26 Richard Henderson <rth@redhat.com>
36350 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
36351 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
36352 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
36354 2001-11-25 Laurent Guerby <guerby@acm.org>
36356 * sysdep.c (rts_get_*): Fix style.
36358 2001-11-19 Laurent Guerby <guerby@acm.org>
36360 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
36361 since it is of no apparent use and cause warnings.
36363 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
36365 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
36367 (gnat_init): Don't return NULL.
36368 (finish_parse): Remove.
36370 2001-11-17 Laurent Guerby <guerby@acm.org>
36372 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
36373 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
36374 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
36375 * lang-spec.h: Add missing struct field to silence warnings.
36376 * sysdep.c (rts_get_*): Provide K&R prototype.
36377 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
36378 * traceback.c (Unlock_Task, Lock_Task): Likewise.
36379 * tracebak.c (__gnat_backtrace): Remove unused variable.
36380 * utils.c (end_subprog_body): Move to K&R style.
36382 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36384 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
36386 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
36388 * misc.c (gnat_init): Change prototype. Include the
36389 functionality of the old init_parse and init_decl_processing.
36390 (gnat_init_decl_processing): New prototype.
36391 (init_parse): Remove.
36392 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
36394 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
36396 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
36397 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
36398 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
36399 set_yydebug): Remove.
36401 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
36403 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
36404 (struct lang_hooks): Constify.
36405 (language_string, lang_identify): Remove.
36406 * utils.c (init_decl_processing): Update.
36408 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
36410 * misc.c: Include langhooks-def.h.
36411 * Makefile.in: Update.
36413 2001-10-30 Robert Dewar <dewar@gnat.com>
36416 (Check_Identifier): Rewrite circuit to be compatible with use of letters
36417 in the upper half of ASCII.
36418 (Check_Identifier): Minor reformatting
36420 2001-10-30 Geert Bosch <bosch@gnat.com>
36422 * (Associated_Node, Set_Associated_Node): Do not check for
36425 2001-10-30 Robert Dewar <dewar@gnat.com>
36427 * a-reatim.ads: Minor reformatting
36429 2001-10-30 Robert Dewar <dewar@gnat.com>
36431 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
36432 undocumented declarations.
36434 2001-10-30 Pascal Obry <obry@gnat.com>
36436 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
36437 to the binder and linker.
36440 * mdll.ads: Fix layout. Update copyright notice.
36442 * mdll.adb: Fix layout. Update copyright notice.
36444 2001-10-30 Robert Dewar <dewar@gnat.com>
36446 * usage.adb: Minor fix to output for -gnaty.
36448 2001-10-30 Ed Schonberg <schonber@gnat.com>
36450 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
36451 to accommodate all its possible values.
36453 * a-reatim.adb (Split): Special-case handling of Time_Span_First
36454 and of small absolute values of T.
36456 2001-10-30 Richard Kenner <kenner@gnat.com>
36458 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
36459 set_mem_attributes since not needed and wrong if RESULT if a REG;
36460 fixes ACATS failures.
36462 2001-10-30 Geert Bosch <bosch@gnat.com>
36464 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
36465 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
36467 2001-10-30 Robert Dewar <dewar@gnat.com>
36469 * bindusg.adb: Undocument -f switch.
36471 * gnatcmd.adb: Remove /FULL_ELABORATION.
36473 * opt.ads (Force_RM_Elaboration_Order): Document that this is
36476 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
36478 * gnatbind.adb: Minor update of warning msg.
36480 2001-10-30 Vincent Celier <celier@gnat.com>
36482 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
36483 for project file switches (-P (/PROJECT_FILE=),
36484 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
36487 2001-10-30 Geert Bosch <bosch@gnat.com>
36489 * decl.c: Minor whitespace fixes.
36491 2001-10-30 Richard Kenner <kenner@gnat.com>
36493 * utils2.c (build_allocator): Test for SIZE overflow in array case too
36495 2001-10-30 Geert Bosch <bosch@gnat.com>
36497 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
36498 Found due to GCC 3.0 warning of using uninitialized value.
36501 (Get_Max_Size): Use variant record for tracking value/expression.
36502 Makes logic clearer and prevents warnings for uninitialized variables.
36503 (Layout_Array_Type): Use variant record for tracking value/expression.
36504 Makes logic clearer and prevents warnings for uninitialized variables.
36506 2001-10-30 Robert Dewar <dewar@gnat.com>
36508 * lib.adb: Minor reformatting
36510 * s-taprop.ads: Minor reformatting
36512 2001-10-29 Laurent Guerby <guerby@acm.org>
36515 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
36517 (_gnat_error_handler): Make MSG const.
36519 2001-10-29 Richard Kenner <kenner@gnat.com>
36521 * sysdep.c: Fix localtime_r problem on LynxOS.
36522 Also remove #elif to avoid warnings.
36524 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
36527 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
36529 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
36531 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
36532 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
36533 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
36534 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
36535 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
36536 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
36537 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
36538 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
36539 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
36540 types.ads, urealp.adb: Fix spelling errors.
36542 2001-10-27 Laurent Guerby <guerby@acm.org>
36544 * trans.c (gigi): Fix non determinism leading to bootstrap
36545 comparison failures for debugging information.
36547 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
36549 * gnat_rm.texi: Use @./@: where appropriate.
36551 2001-10-26 Robert Dewar <dewar@gnat.com>
36553 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
36555 2001-10-26 Richard Kenner <kenner@gnat.com>
36557 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
36559 2001-10-26 Richard Kenner <kenner@gnat.com>
36561 * decl.c (validate_size): Modify message for bad size to avoid
36562 implication that compiler is modifying the size.
36564 2001-10-26 Robert Dewar <dewar@gnat.com>
36566 * prj-util.adb: Minor reformatting. Fix bad header format.
36568 2001-10-26 Robert Dewar <dewar@gnat.com>
36570 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
36572 * sinfo.ads: Clarify use of Associated_Node (documentation only).
36574 * sem_ch12.adb: Change Node4 to Associated_Node. Change
36575 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
36576 much more narrowly in places where needed. These are cleanups.
36578 2001-10-26 Joel Brobecker <brobecke@gnat.com>
36580 * 5zosinte.ads (null_pthread): new constant.
36583 (Initialize_TCB): Initialize thread ID to null, to be able to verify
36584 later that this field has been set.
36585 (Finalize_TCB): ditto.
36586 (Suspend_Task): Verify that the thread ID is not null before using it.
36587 (Resume_Task): ditto.
36590 (Resume_All_Tasks): Lock the tasks list before using it.
36591 (Suspend_All_Tasks): ditto.
36593 2001-10-26 Richard Kenner <kenner@gnat.com>
36595 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
36596 Make constant variant of designated type for Is_Access_Constant.
36597 Call update_pointer_to with main variant.
36599 * trans.c (process_freeze_entity, process_type):
36600 Call update_pointer_to on main variant.
36602 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
36603 If main variant, update all other variants.
36605 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
36608 2001-10-26 Robert Dewar <dewar@gnat.com>
36610 * prj-util.adb: Minor reformatting
36612 2001-10-26 Robert Dewar <dewar@gnat.com>
36614 * prj-util.adb: Minor reformatting
36616 2001-10-26 Robert Dewar <dewar@gnat.com>
36618 * prj-attr.adb: Minor reformatting throughout
36620 2001-10-26 Robert Dewar <dewar@gnat.com>
36622 * prj-attr.ads: Minor reformatting
36623 Add ??? comment (this whole spec has almost no comments)
36625 2001-10-26 Vincent Celier <celier@gnat.com>
36627 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
36628 ("//") that precede the drive letter on Interix.
36630 2001-10-26 Geert Bosch <bosch@gnat.com>
36632 * gnat_rm.texi: Add GNAT Reference Manual.
36634 2001-10-25 Robert Dewar <dewar@gnat.com>
36636 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
36637 is Error. Similar change for other renaming cases.
36639 2001-10-25 Robert Dewar <dewar@gnat.com>
36641 * s-atacco.ads: Add pragma Inline_Always for functions.
36642 Fix header format. Add copyright 2001
36644 2001-10-25 Ed Schonberg <schonber@gnat.com>
36646 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
36647 return Error rather than Empty so that analysis can proceed.
36649 2001-10-25 Ed Schonberg <schonber@gnat.com>
36651 * sem_util.adb (Enter_Name): better handling of cascaded error
36652 messages when a unit appears in its own context.
36654 2001-10-25 Ed Schonberg <schonber@gnat.com>
36656 * sem_util.adb (Defining_Entity): in case of error, attach created
36657 entity to specification, so that semantic analysis can proceed.
36659 2001-10-25 Robert Dewar <dewar@gnat.com>
36662 (Defining_Entity): Deal with Error.
36663 (Process_End_Label): Deal with bad end label for.
36665 2001-10-25 Ed Schonberg <schonber@gnat.com>
36667 * sem_elab.adb (Check_A_Call): refine message when call is in an
36668 instance but callee is not declared in the generic unit.
36670 2001-10-25 Ed Schonberg <schonber@gnat.com>
36672 * sem_elab.adb (Check_A_Call): check for renaming before finding the
36673 enclosing unit, which may already be different from the calling unit.
36675 2001-10-25 Geert Bosch <bosch@gnat.com>
36677 * 4gintnam.ads: fix header format.
36679 2001-10-25 Ed Schonberg <schonber@gnat.com>
36681 * sem_res.adb (Resolve_Call): if the call is actually an indexing
36682 operation on the result of a parameterless call, perform elaboration
36683 check after the node has been properly rewritten.
36685 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
36686 inlined within the generic tree, the defining identifier is not a
36689 2001-10-25 Ed Schonberg <schonber@gnat.com>
36691 * sem_res.adb (Resolve): special-case resolution of Null in an
36692 instance or an inlined body to avoid view conflicts.
36694 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
36695 compatibility by retrieving the access type of the generic copy.
36697 2001-10-25 Robert Dewar <dewar@gnat.com>
36700 (Analyze_Number_Declaration): Handle error expression.
36701 (Signed_Integer_Type_Declaration): Handle error bound.
36702 (Analyze_Subtype_Indication): Handle error range.
36704 * sem_util.adb (Get_Index_Bounds): Check for Error.
36706 2001-10-25 Robert Dewar <dewar@gnat.com>
36708 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
36709 in no run time mode.
36711 2001-10-25 Pascal Obry <obry@gnat.com>
36713 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
36714 mode case for ALLOC case.
36716 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
36717 all platforms. Improvement of last change.
36719 2001-10-25 Robert Dewar <dewar@gnat.com>
36721 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
36723 2001-10-25 Geert Bosch <bosch@gnat.com>
36725 * osint.adb (Is_Relative): Remove duplicate.
36727 2001-10-25 Pascal Obry <obry@gnat.com>
36729 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
36730 pathnames in UNIX and DOS style with drive letter.
36731 (Is_Relative): new routine.
36733 * osint.adb: Minor reformatting
36735 * osint.adb (Is_Relative): implementation using
36736 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
36738 2001-10-25 Pascal Obry <obry@gnat.com>
36740 * g-dirope.adb (Basename): correctly compute offset between the
36741 original Path and the translated one.
36743 * g-dirope.adb: (Base_Name): add some comments.
36745 2001-10-25 Robert Dewar <dewar@gnat.com>
36747 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
36748 in HIE mode, avoids compilation abandoned message
36750 * exp_imgv.adb: Correct typo in previous change
36752 * exp_imgv.adb: Correct typo in previous change (not my day!)
36754 2001-10-25 Robert Dewar <dewar@gnat.com>
36756 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
36758 2001-10-25 Pascal Obry <obry@gnat.com>
36760 * g-awk.ads: Move all pragma inlines next to the routine
36761 declarations. This is more uniform with other GNAT spec.
36763 2001-10-22 Geert Bosch <bosch@gnat.com>
36765 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
36767 2001-10-19 Geert Bosch <bosch@gnat.com>
36769 * Makefile.in (tools, gnattools): Remove gnatmem.
36771 2001-10-17 Richard Henderson <rth@redhat.com>
36773 * Makefile.in (misc.o): Depend on langhooks.h.
36774 * misc.c: Include it.
36775 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
36776 (LANG_HOOKS_DECODE_OPTION): New.
36777 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
36779 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
36781 * trans.c (tree_transform): Adjust to recent change in
36782 expand_asm_operands to implement named asm operands.
36784 2001-10-11 Ed Schonberg <schonber@gnat.com>
36786 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
36787 renaming of discriminant for mutable record type.
36789 2001-10-11 Robert Dewar <dewar@gnat.com>
36791 * validsw.adb: Properly save -gnatVn status.
36793 2001-10-11 Robert Dewar <dewar@gnat.com>
36795 * usage.adb: Add lines for V switch.
36797 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
36798 (/VALIDITY_CHECKING).
36800 2001-10-11 Ed Schonberg <schonber@gnat.com>
36802 * sem_type.adb (Add_One_Interp): an operator for a type declared in
36803 an extension of System is known to be visible.
36805 2001-10-11 Ed Schonberg <schonber@gnat.com>
36807 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
36808 properly. Fixes regression on ACATS C34005G.
36810 2001-10-11 Robert Dewar <dewar@gnat.com>
36812 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
36813 loop in generic instance, since this is likely not very useful.
36815 2001-10-11 Robert Dewar <dewar@gnat.com>
36817 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
36818 the error message for high integrity mode.
36820 * rtsfind.adb (RTE): Give message if we try to find an entity that
36821 is not available in high integrity mode.
36824 (OK_To_Use_In_HIE_Mode): New array.
36825 (RTE): May return Empty in high integrity mode.
36827 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
36828 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
36830 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
36831 unit if not inlined always and in no runtime mode. Fixes problem
36832 caused by new Rtsfind changes.
36834 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
36837 * rtsfind.adb (RTE): Make sure we do not try to load unit after
36838 giving message for entity not available in high integrity mode.
36840 2001-10-11 Pascal Obry <obry@gnat.com>
36842 * impunit.adb: Add GNAT.CRC32.
36844 2001-10-11 Ed Schonberg <schonber@gnat.com>
36846 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
36847 properly the case where one universal operand in a non-static
36848 exponentiation of a real literal.
36850 2001-10-11 Ed Schonberg <schonber@gnat.com>
36852 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
36853 clause, return the gobal finalization list, for lack of anthing else.
36855 2001-10-11 Ed Schonberg <schonber@gnat.com>
36857 * exp_ch7.adb (Make_Transient_Block): if statement is within
36858 exception handler, always use new transient scope to place Clean
36861 2001-10-11 Pascal Obry <obry@gnat.com>
36864 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
36865 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
36866 (GNATLS_RTL_OBJS): add g-crc32.o
36867 (GNATMAKE_RTL_OBJS): add g-crc32.o
36870 (CRC_Match): new function.
36871 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
36872 instead of the previous simple checksum algorithm.
36873 (Time_Stamp_Mismatch): use CRC_Match for comparison.
36874 (Set_Source_Table): idem.
36877 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
36878 instead of simple checksum.
36879 (CRC_Match): new function.
36880 (CRC_Error): new constant.
36882 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
36883 a CRC now and not a simple checksum. A CRC uses lower-case hex
36884 letters, fixes ambiguity in parsing.
36886 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
36887 is what this variable will store.
36889 * bcheck.adb: Change reference to chechsum in comments by CRC.
36890 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
36891 rename All_Checksum_Match to All_CRC_Match. Change due to API
36892 renaming since now GNAT does not use a simple checksum but a
36893 CRC using GNAT.CRC32.
36895 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
36896 now and not anymore a simple checksum.
36898 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
36901 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
36904 (Restore_Scan_State): rename Checksum to CRC.
36905 (Save_Scan_State): idem.
36909 (Checksum): rename to CRC.
36910 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
36912 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
36913 GNAT.CRC32). Update copyright notice.
36915 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
36916 GNAT.CRC32). Update copyright notice.
36919 (Accumulate_Checksum): removed.
36920 (Update): new procedure. Add a wide-character into the CRC.
36923 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
36924 (Load_File): fix initialization of S (change Source_Checksum to
36927 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
36928 Source_CRC in S initialization.
36930 * sinput.adb (Source_Checksum): renamed to Source_CRC.
36932 * sinput.ads (Source_Checksum): renamed to Source_CRC.
36933 Update comments for the CRC.
36935 * types.adb (Hex): Use lowercase for the letter part.
36937 * types.ads (Get_Hex_String): Returns the hexadecimal representation
36938 for a word. This is currently used only for CRC. In previous version,
36939 the checksum was using a representation with all letter being
36940 upper-case. With the new implementation (using CRC) we do not remove
36941 the 32th bit of the CRC, so we can have an upper-case starting letter
36942 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
36943 It is ambigous since the CRC was optional and could be followed by
36944 options like EB, EE. So now this routines uses lower-case letter for
36945 the hexadecimal representation. Strange enough only lower case letters
36946 where checked in Scan_ALI (even if this was not a possible case).
36948 * gnatvsn.ads (Library_Version): changed to 3.15a.
36950 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
36953 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
36956 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
36957 Add 2001 to copyright notice
36958 (Accumulate_Checksum): Modify to use System.CRC32.
36960 * ali-util.ads: Redo changes of previous revision to continue to use
36961 the word Checksum. Add 2001 to copyright notice.
36963 * ali.adb: Undo some of previous changes, not needed.
36964 Keep the change for lower case letters in the checksum.
36966 * ali.ads: Undo previous change not needed.
36968 * bcheck.adb: Undo most of previous change, not needed.
36969 But do use Checksums_Match for checksum comparison.
36971 * gnatls.adb: Undo most of previous change, not needed.
36972 But do use Checksums_Match for comparing checksums.
36974 * lib-load.adb: Undo previous change, not needed.
36976 * lib-writ.adb: Undo previous change, not needed.
36978 * lib-writ.ads: Document that checksums use lower case,
36979 not upper case letters.
36981 * scans.adb: Undo previous change, not needed
36983 * scans.ads: Undo previous change, not needed.
36985 * scn-nlit.adb: Undo previous changes, not needed.
36987 * scn-slit.adb: Undo previous change, not needed. Fix header format.
36990 (Accumulate_Checksum): Use System.CRC32.
36991 (Initialize_Checksum): New procedure.
36992 Remove other changes of previous revision.
36994 * sinput-p.adb: Undo previous change, not needed.
36996 * sinput.adb: Undo previous change, not needed.
36998 * sinput-l.adb: Undo previous change, not needed.
37000 * sinput.ads: Undo previous change, not needed. Keep only comment
37001 on new checksum algorithm
37003 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
37004 Also remove a-tags and a-stream from GNAT sources.
37006 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
37008 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
37010 2001-10-11 Geert Bosch <bosch@gnat.com>
37012 * einfo.h: Regenerate.
37014 * nmake.ads: Regenerate.
37016 * nmake.adb: Regenerate.
37018 * sinfo.h: Regenerate.
37020 * treeprs.adb: Regenerate.
37022 2001-10-10 Geert Bosch <bosch@gnat.com>
37024 * gnat-style.texi: New file describing coding guidelines for Ada.
37026 2001-10-10 Ed Schonberg <schonber@gnat.com>
37028 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
37031 2001-10-10 Geert Bosch <bosch@gnat.com>
37033 * snames.ads: Add new names for project facility.
37035 * snames.adb: Update to reflect snames.ads changes.
37037 * snames.h: Update to reflect snames.ads changes.
37039 2001-10-10 Vincent Celier <celier@gnat.com>
37042 (Add_Switches): reflect the changes for the switches attributes
37043 Default_Switches indexed by the programming language,
37044 Switches indexed by the file name.
37045 (Collect_Arguments_And_Compile): Idem.
37046 Reflect the attribute name changes.
37049 (Initialisation_Data): Change the names of some packages and
37051 (Initialize): process case insensitive associative arrays.
37054 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
37057 (Parse_Attribute_Declaration): For case insensitive associative
37058 arrays, set the index string to lower case.
37061 Reflect the changes of the project attributes.
37064 Replace Check_Naming_Scheme by Ada_Check and
37065 Language_Independent_Check.
37068 Replaced Check_Naming_Scheme by 2 procedures:
37069 Ada_Check and Language_Independent_Check.
37072 (Process_Declarative_Items): For case-insensitive associative
37073 arrays, set the index string to lower case.
37074 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
37075 Prj.Nmsc.Check_Naming_Scheme.
37078 (Case_Insensitive): New function
37079 (Set_Case_Insensitive): New procedure
37082 (Case_Insensitive): New function
37083 (Set_Case_Insensitive): New procedure
37084 (Project_Node_Record): New flag Case_Insensitive.
37087 (Value_Of): new function to get the string value of a single
37088 string variable or attribute.
37091 (Value_Of): new function to get the string value of a single
37092 string variable or attribute.
37095 (Ada_Default_Spec_Suffix): New function
37096 (Ada_Default_Impl_Suffix): New function
37097 Change definitions of several constants to reflect
37098 new components of record types.
37101 (Naming_Data): Change several components to reflect new
37102 elements of naming schemes.
37103 (Project_Data): New flags Sources_Present and
37104 Language_Independent_Checked.
37105 (Ada_Default_Spec_Suffix): New function.
37106 (Ada_Default_Impl_Suffix): New function.
37109 Modification of predefined names for project manager: added
37110 Implementation, Specification_Exceptions, Implementation_Exceptions,
37111 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
37112 Default_Switches, _Languages, Builder, Cross_Reference,
37113 Finder. Removed Body_Part, Specification_Append, Body_Append,
37114 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
37117 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37120 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
37121 not that it is Nil_Variable_Value.
37123 * prj.ads: Add ??? for uncommented declarations
37125 2001-10-10 Ed Schonberg <schonber@gnat.com>
37127 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
37128 constant, do not indicate possible modification, so that gigi can
37129 treat it as a bona fide constant.
37131 2001-10-10 Robert Dewar <dewar@gnat.com>
37133 * sem_prag.adb: Add processing for pragma External.
37135 * snames.ads: Add entry for pragma External.
37137 * par-prag.adb: Add pragma External.
37139 * snames.adb: Updated to match snames.ads.
37141 2001-10-10 Ed Schonberg <schonber@gnat.com>
37143 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
37144 a dynamic task if the allocator appears in an indexed assignment
37145 or selected component assignment.
37147 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
37148 For a dynamic task in an assignment statement, use target of
37149 assignment to generate meaningful name.
37151 2001-10-10 Ed Schonberg <schonber@gnat.com>
37153 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
37156 * einfo.ads: Body_Entity is also defined for generic package.
37157 Documentation change only
37159 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
37160 others_choice for a discriminated component initialization,
37161 convert discriminant references into the corresponding discriminals.
37163 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
37164 only if original type is private and expression has to be wrapped
37168 (Apply_Constraint_Check): Do not perform length check
37169 if expression is an aggregate with only an others_choice.
37170 (Length_N_Cond): two references to the same in_parameter
37171 (typically the discriminal in an init_proc) denote the same value.
37172 Two useful optimization uncovered by bugfixes above.
37174 2001-10-10 Robert Dewar <dewar@gnat.com>
37176 * xeinfo.adb: Change int to char in translation of enumeration types.
37177 This fixes a problem in the C representation of component alignment.
37178 Add 2001 to copyright notice
37180 2001-10-10 Richard Kenner <kenner@gnat.com>
37182 * decl.c: (validate_size): Do check size of object of integral type
37183 if it is a packed array type.
37185 2001-10-10 Richard Kenner <kenner@gnat.com>
37187 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
37188 VAR_DECL for constant if not Is_Public but -O0.
37190 2001-10-10 Richard Kenner <kenner@gnat.com>
37192 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
37194 2001-10-10 Geert Bosch <bosch@gnat.com>
37196 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
37197 use '/' as switch character, allowing for absolute file names.
37199 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
37201 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
37204 2001-10-08 Geert Bosch <bosch@gnat.com>
37206 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
37207 Automatically build utilities when files need to be regenerated.
37209 2001-10-08 Geert Bosch <bosch@gnat.com>
37211 * xsnames.adb: New utility for updating snames.ads and snames.adb
37213 2001-10-08 Zack Weinberg <zack@codesourcery.com>
37215 * Make-lang.in (ADAFLAGS): Add -W -Wall.
37216 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
37217 (gnat1): Also depend on attribs.o.
37218 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
37219 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
37220 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
37221 (ADAFLAGS): Add -W -Wall.
37222 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
37225 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
37226 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
37227 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
37228 Use $(ADAC), not $(CC), as compilation command.
37230 (gnattools): Depend directly on tools to build, don't use
37232 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
37234 * einfo.h, sinfo.h: New files (autogenerated).
37236 2001-10-08 Richard Henderson <rth@redhat.com>
37238 * comperr.adb (Abort_In_Progress): New.
37239 (Compiler_Abort): Use it to prevent recursion.
37241 2001-10-08 Robert Dewar <dewar@gnat.com>
37243 * atree.adb: Set Error_Posted in Error node, helps error recovery.
37245 * par-endh.adb (Output_End_Expected): We should also not test
37246 Error_Posted on the Error node, since now it is always set.
37248 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
37249 to help error recovery. Part of general work on 9407-004.
37251 * par.adb: Add ??? for misuse of error
37254 (Resolve): Defend against Error, fixes 9407-003.
37255 (Resolve_Discrete_Subtype_Indication): Defend against Error.
37257 * sinfo.ads (N_Error): Now has Etype field (which will be set
37258 to Any_Type to help error recovery).
37260 2001-10-08 Richard Kenner <kenner@gnat.com>
37262 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
37263 Consistently set MEM attributes from expression; fixes
37264 bootstrap failure on x86.
37266 2001-10-08 Geert Bosch <bosch@gnat.com>
37268 * 5oosinte.adb: Add 2001 to copyright notice.
37270 2001-10-08 Geert Bosch <bosch@gnat.com>
37272 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
37274 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
37276 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
37278 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
37280 2001-10-05 Geert Bosch <bosch@gnat.com>
37282 * adaint.h: Small formatting fix.
37284 2001-10-04 Geert Bosch <bosch@gnat.com>
37286 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
37287 Arg is int, not FILE *, in dummy version of functions.
37289 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
37290 Arg is int, not FILE *.
37292 2001-10-04 Geert Bosch <bosch@gnat.com>
37294 * 3lsoccon.ads: Added file, missed with initial check ins.
37296 * 4lintnam.ads: Fix header format.
37297 Change Linux to GNU/Linux.
37299 * 5iosinte.adb: Change Linux to GNU/Linux.
37301 * 5iosinte.ads: Change Linux to GNU/Linux.
37303 * 5itaprop.adb: Change Linux to GNU/Linux.
37305 * 5itaspri.ads: Change Linux to GNU/Linux.
37306 Update copyright notice.
37308 * 5lintman.adb: Change Linux to GNU/Linux.
37310 * 5lml-tgt.adb: Change Linux to GNU/Linux.
37312 * 5losinte.ads: Change Linux to GNU/Linux.
37314 * 5lsystem.ads: Change Linux to GNU/Linux.
37316 * 5qosinte.adb: Change Linux to GNU/Linux.
37318 * 5qosinte.ads: Change Linux to GNU/Linux.
37320 * 5qparame.ads: Change Linux to GNU/Linux.
37322 * 5qtaprop.adb: Change Linux to GNU/Linux.
37324 * 5qtaspri.ads: Change Linux to GNU/Linux.
37325 Add 2001 to copyright notice.
37327 * 5vintman.ads: Change Linux to GNU/Linux.
37328 Fix header format. Add 2001 to copyright notice.
37330 * g-soccon.ads: Change Linux to GNU/Linux.
37332 * g-trasym.ads: Change Linux to GNU/Linux.
37333 Add 2001 to copyright notice.
37335 * memtrack.adb: Change Linux to GNU/Linux.
37337 * s-intman.ads: Change Linux to GNU/Linux.
37338 Add 2001 to copyright notice. Fix header format.
37340 * s-stache.adb: Change Linux to GNU/Linux.
37342 * adaint.c: Change Linux to GNU/Linux.
37344 * cio.c: Change Linux to GNU/Linux.
37346 * cstreams.c: Change Linux to GNU/Linux.
37348 * init.c: Change Linux to GNU/Linux.
37350 * gmem.c: Change Linux to GNU/Linux.
37352 * tracebak.c: Change Linux to GNU/Linux.
37355 2001-10-02 Geert Bosch <bosch@gnat.com>
37357 * misc.c (insert_default_attributes): Add dummy version.